Ajesh
28th November 2018, 17:56
Hello There
I have used a Wrapper on a standard ACR report Session and i get the report printed. Now i dont want the Report Window selection to be coming up. I have used brp.open in my wrapper script but to no avail, as brp.open is again used in standard script/object.
Any way i can supress the Device Selection Window?
Regards
Ajesh
mark_h
28th November 2018, 21:01
The only way I know to suppress something like that is to re-write or replace that whole section in the wrapper program itself. So for example if I did not like what the choice.cont.process did I would write the new section in my wrapper program and make sure I did not call the standard code for that event.
Ajesh
29th November 2018, 08:52
Hi Mark,
Thanks for the reply.
Yes, but it kindof defeats the purpose of wrapper itself, having to write the code..
Was thinking on the lines of a predefined variable which sets to suppress the Device Selection Window, so far couldnt find any
bhushanchanda
29th November 2018, 13:45
Ajesh,
I think what Mark meant is, find the function where the standard code is calling brp.open() and then re-write that function in the wrapper with your own version of brp.open()
mark_h
29th November 2018, 14:33
What Bhushan said. The wrapper technique works good for adding addition checks and such, but something more complicated like this you basically have to replace infor code with your code - not much choice. Well - the other choice is to buy source code.
KaasKarthik
3rd June 2021, 20:29
Hi all,
the standard report gives the report selection pop up 2 times and followed by 2 device selection.( i run the standard session (tdpur4405m000).
1)report selection 1
2)device
3)corresponding report open
4) again report se;ection window opens
5) device selection.
the standard also runs the same.( if means if take wrapper script , is there any way to suppress it.(single report selection is enough,i don't know why it give 2 times the report selection box )
please guide me..........to solve this issue.
very very urgent.
KaasKarthik
3rd June 2021, 20:34
when i run a standard session from my custom vrc.(program script attached with the session was different),but it runs same as that of my custom program script .
thanks in advance, i am stucked in this............
mark_h
3rd June 2021, 22:35
The way I used a wrapper scripts was not for something this complicated. For this case you would have to replicate the code sections that is opening what I would guess would be 2 reports. But it could be that Infor screwed up and it asks you to open it twice, but you only get 1 report. So you could change like the choice.continue section and/or the choice.print.data sections to do what you want. To me to rewrite some of those sections you would need the code to get it correct - or at least know what calls to make to other subroutines.
With me if the standard session opened the report twice (when it shouldn't) then I would report it to infor and let them fix it. Maybe there is something ln that would cause it, but not sure since I do not know ln at all.