Function to capture demode and ispartial
Posted: September 7th, 2024, 1:23 pm
Hi, everyone
I'm trying to store information about data entry mode, i.e. whether the case is in add or modify mode, and whether the case is partially saved, i.e. ispartial() = 1.
I made the following function in my application
the result of this function will be stored in an item named AKHIR2 in my application. My goal is whenever the interviewers upload the data into the server, the case status will be reflected by the value of AKHIR2. However, it doesn't work all the time. it failed to capture the value 4, after endlevel is executed at the end of my application.
I put this function in OnStop() global function, postproc in PROC LEVEL, and the last item in my form.
does anyone have any idea where to put the function to achieve my goal?
cheers,
Hafiz
I'm trying to store information about data entry mode, i.e. whether the case is in add or modify mode, and whether the case is partially saved, i.e. ispartial() = 1.
I made the following function in my application
Code: Select all
function masih_partial()
if demode() = 1 & ispartial() = 1 then
masih_partial = 1;
elseif demode() = 1 & ispartial() = 0 then
masih_partial = 2;
elseif demode() = 2 & ispartial() = 1 then
masih_partial = 3;
elseif demode() = 2 & ispartial() = 0 then
masih_partial = 4;
endif;
end;
I put this function in OnStop() global function, postproc in PROC LEVEL, and the last item in my form.
does anyone have any idea where to put the function to achieve my goal?
cheers,
Hafiz