cherokee
10th July 2014, 15:13
Hello everyone,
I would like to populate the pop-up report menu from a different set of reports other than the current session's reports(the set of reports are from another package, I can't put them in the reports of the session). My session is in ts but my reports belong to td. So when I do execute(print.data), I would like to populate the td reports instead of ts reports. Then I can call my FS with the selected report code.
see attachment
Thanks in advance
bhushanchanda
10th July 2014, 15:44
Hi,
Go to Session - > Specific -> Reports - > Specific - > Link Report To Session
And select the report you want to link. Module doesn't matter just make sure the VRC's are same.
Note:- I am not sure about your Version. On LN it works like this.
Also, you can use brp.* functions to do it.
cherokee
10th July 2014, 16:22
Thanks for your help.
Sorry, I typed module instead of Package(corrected it)! in BaaN IV, you can not enter the package when linking the reports to a session.
Thanks again in advance
bhushanchanda
10th July 2014, 17:10
Hi,
Yes. You cannot link them. But you can do a work around using brp.* functions to use the reports present in other packages. And the other thing you can do is to copy that report in your package and link it. Depends on how you want to implement it.
cherokee
10th July 2014, 17:44
Thanks for the help again.
In brp.* functions, you have to pass/know the report code you want to open before calling the brp.* function. What I want is that the user chooses from some particular reports available in a session then use a FS to pass the report selected.
Thanks again.
mark_h
10th July 2014, 23:08
As far as I know the reports have to be in the same package. So I would probably just copy them across to the package you need them in. The only other option I can think of is to create a dummy list of reports. This way they can pick them - by the name. But then in the code you have to do all the brp and spool commands to get the right report to run.
bhushanchanda
11th July 2014, 08:01
And as I said it depends on how you implement. You can give drop down option on form to select report and based on that use brp.* functions. And as Mark and I said, if you dont want any script to be written or any form changes; just copy the report in your package.
vamsi_gujjula
11th July 2014, 11:01
@ Carlos ..... are you on ERPLN , if yes you can use programmable dialogs ,
in baaniv either 3-gl or creating dummy report () then map the dummy report with the one which you want in the 4gl script ( although its like a merry go around)
i feel bhushan's work around is better one.
cherokee
14th July 2014, 13:26
Thanks for your help.
I thought about the copy of the reports to the ts package but, I don't like to maintain four reports instead of two. Removed FS and added zoom to td session carring over selection values for printing session.
Thanks again.