Modification of data for partial save cases

Discussions about CSEntry
Post Reply
Sogo95
Posts: 3
Joined: May 9th, 2022, 2:19 pm

Modification of data for partial save cases

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

Re: Modification of data for partial save cases

Post 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;
Sogo95
Posts: 3
Joined: May 9th, 2022, 2:19 pm

Re: Modification of data for partial save cases

Post 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
Post Reply