Set different data file name

Discussions about CSEntry
Post Reply
Arjun Brti
Posts: 15
Joined: October 15th, 2020, 3:40 am

Set different data file name

Post by Arjun Brti » October 24th, 2021, 1:40 pm

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

Gregory Martin
Posts: 1552
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Set different data file name

Post by Gregory Martin » October 25th, 2021, 9:00 am

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();

Post Reply