Page 1 of 1

Application Startup Error

Posted: November 27th, 2019, 4:12 am
by munirmdee1
Hi everyone

I have csentry application for a certain survey, but it has some problem and I failed to figure out and solve it. The problem is as follows:

When I run the application in Add mode the error does not appear, but when I run the same application ni Modify mode, it display an error saying:

"Application Startup Error
The case specified for modifying,, was not located in the data file
"

In Add mode, the .pff file looks like this
[DataEntryInit]
StartMode=Add
Lock=Modify,Verify
FullScreen=Yes
NoFileOpen=Yes
Interactive=Ask

And in Modify mode the .pff file looks like this
[DataEntryInit]
StartMode=Modify
Lock=Add,Verify
FullScreen=No
NoFileOpen=No
Interactive=Ask

Is anything wrong? or what is the reason for this error im getting?
Thank you in advance.

Re: Application Startup Error

Posted: November 27th, 2019, 9:45 am
by Gregory Martin
When you use StartMode=Modify, then you have to specify the case key (IDs) of the case that you want to modify. For example:

StartMode=Modify;010502

If you don't want to open up a certain case for modification, then leave that line out of your PFF.

Re: Application Startup Error

Posted: November 27th, 2019, 12:38 pm
by munirmdee1
Thank you Greg,
Do you mean it should appear like this:

[DataEntryInit]
Lock=Add,Verify
FullScreen=No
NoFileOpen=No
Interactive=Ask

Is that what you mean?

Re: Application Startup Error

Posted: November 27th, 2019, 12:57 pm
by Gregory Martin
Sure. Nearly all lines in the PFF are optional, so just leave out that StartMode line.