Set different data file name

Discussions about CSEntry
Forum rules
New release: CSPro 8.0
Post Reply
Arjun Brti
Posts: 49
Joined: October 15th, 2020, 3:40 am

Set different data file name

Post 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
Gregory Martin
Posts: 1774
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Set different data file name

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