Page 1 of 1

Set different data file name

Posted: October 24th, 2021, 1:40 pm
by Arjun Brti
Dear all

For the double data entry, I have designed the data entry app. Now I want to developed a "Entry Menu" and I want to add two options (1) First data entry (2) Second data entry, using the same dictionary to compare the data. So, how can I set/called the different data file name using the same dictionary?
ie
PROC SelectAnOption
First data entry
Second data entry

Regards
Brti

Re: Set different data file name

Posted: October 25th, 2021, 9:00 am
by Gregory Martin
How are you opening your data entry application from within your menu program? If you are running another PFF, you can modify the base PFF by doing something like:
pff entry_pff;
entry_pff.load(
"entry.pff");

when SelectAnOption;
   
1 -> entry_pff.setproperty("InputData", "First Entry.csdb");
   
2 -> entry_pff.setproperty("InputData", "Second Entry.csdb");
endwhen;

entry_pff.exec();