Page 1 of 1

Save data with pff

Posted: February 24th, 2024, 1:50 am
by chandi
Hi,
I am manipulating "pff" file and entry Ids using external program. in some cases I can pass all required case values to pff so no need to open data entry, at that point can I save data file without literally opening csentry application. My scope it to feed all data to data file and minimize user activities on data entry whenever, just for few points available such as no respondent etc.

Re: Save data with pff

Posted: February 26th, 2024, 9:16 am
by Gregory Martin
Are you generating the PFF from another CSPro application? If so, and you don't need any input from the user, you can simply construct the case in logic, with the data file's dictionary attached as an external dictionary, and then save the data using writecase:

https://www.csprousers.org/help/CSPro/w ... ction.html

Alternatively, if you still need to open the data entry application, you can use logic, or the values in the PFF, to fill in the appropriate values, and then use endlevel in logic to save the case:

https://www.csprousers.org/help/CSPro/e ... ement.html

Re: Save data with pff

Posted: February 26th, 2024, 10:15 pm
by chandi
Thanks Greg, It seems I can use endlevel, but at that point can I avoid asking "Accept this case => yes/no" prompt,
I am sending ID fields from android app via intent to CsEntry, sometime I can close case based on IDs Value itself, but it should reflect in final datafile I am stuck in that point as in CsEntry in such cases user does not need to enter anything. So I need to finish data entry from android app itself.

Re: Save data with pff

Posted: February 27th, 2024, 5:09 pm
by Gregory Martin
You can turn off that prompt here: https://www.csprousers.org/help/CSPro/c ... tions.html

Uncheck "Confirm end-of-case." I usually do that on most projects, and if I want a confirmation, I add it as the last field on my form.

Re: Save data with pff

Posted: February 27th, 2024, 10:05 pm
by chandi
Thanks that helps to solve my issue

Re: Save data with pff

Posted: February 29th, 2024, 11:09 am
by chandi
I tried this method but I get massage "Warning 1026" "All of the ID fields were not filled, please reenter" I just can save and case is correctly saved. Is there a way to avoid showing this massage too.
If I let user to go through all ID fields (as I am passing ids form intent IDS are filled already, so user just need to click next button") that massage not appear. but I do not want that behavior so I do not have ID form and use logic to end level based on condition inside preproc of the Form.

Re: Save data with pff

Posted: March 8th, 2024, 11:24 am
by sherrell
The user doesn't have to manually acknowledge all the ID fields, you can just prefill them as you're doing and either set the fields to protected (via field property) or add "noinput" to the preproc. But you have to get through the IDs at a minimum before CSPro will allow a case to be saved

Sherrell