Page 1 of 1

Modification of data for partial save cases

Posted: September 15th, 2022, 11:40 am
by Sogo95
Hi

I would like to authorize the modification of my data only for the partial save case. I don't know how to do it. I need help

Re: Modification of data for partial save cases

Posted: September 16th, 2022, 8:23 am
by Gregory Martin
If you have a menu program, you can control what cases people are allowed to modify. When you're populating the list of eligible cases, you can check if the case is partial before adding it to your list of cases to display:
if ispartial(MY_DICT) then
   
// ...
Alternately, you can do this in your data entry program yourself. I would put the check in the preproc of the level, as that will get triggered as they open a case:
PROC SURVEY_LEVEL

preproc

    if not ispartial
() then
        errmsg
("You cannot modify this case.");
        stop(0);
    endif;

Re: Modification of data for partial save cases

Posted: September 23rd, 2022, 1:29 pm
by Sogo95
Hello,

I tried to put the command directly in the preproc of my dictionary. When I want to add a person it refuses. It runs if I only modify a partially registered ID and refuses when I want to add a new person.

Thanks