Ajesh
15th January 2010, 15:02
Hi
I wanted to simulate a scenario where i will get an option similar to
Selection amongst multiple reports during Print session.
Kind of like
At continue process
What option you would like to Choose?
Create
Delete
Modify
Regards
Shinoj
Hitesh Shah
15th January 2010, 19:52
Optionally u can ask a question in cont.process with these answers as options and depending on the answer u can call the respective function / choices to do the appopriate task .
If u want the report like choice only then create dummy reports with appropriate description and and attach it to a new reportgrp (which is set in cont.process for this purpose ) and call choice.print.data . And depending on reportno u can call the respective function / choices to do the appropriate task . Do the reprt_close with right argument so that u dont get any 'no data within selection'
MilindV
17th January 2010, 06:37
Hi Shinoj
If you want to do it in LN, then there are functions to create dialog box and in this dialog box you can add listbox specifying your options.
Refer Programmers Guide for the Following functions:
dialog.new() : Creates a new dialog. dialog.name will be used for the title bar of the new dialog.
dialog.add.listbox() : This function creates a dynamic list box (not representing an enum domain) on the dialog. If there is an enum domain, use the function dialog.add.field().
Refer to example in Programmers Guide, u ll get an idea.
Thanks And Regards
Milind V
Ajesh
19th January 2010, 09:07
The problem in Question was there were too many options and their positioning on screen was looking rather odd. It was only going to be a matter of time before Client would have asked us to change it.
MilindV, we are using BaanIV. I would have wanted similar functionality in IV as dialog.add.listbox() . Thanks for the suggestion
MilindV
22nd January 2010, 12:27
Hi Shinoj,
Another thing that I can suggest is, create a new small intermediate session like the dialog box just to show the list of your options.
Not a good solution, but try, till you find any other solution.
Thanks and Regards
MilindV