Hi,
Clarion Ver: 10.0.12799
NetTalk Ver.: 11.57
This has been driving me nuts for a full day now.
In my PreUpdate Routine in the embed after ! Start of Pre Update After Primes" I have code to check if the Form is in View mode.
IF Loc:ViewOnly = TRUE
p_web.SSV('Loc:MessageDisplayMessage','Record in View Mode ? No Editing Allowed')
! Assign correct values from Related Tables
ELSE
p_web.SSV('Loc:MessageDisplayMessage','Please Change Fields as Required')
! Clear Certain Fields to force new values
END
I have put debug statements in the embed to check the values of:
Loc:ViewOnly
loc:action
loc:act
When I click on the InLIne View Button on the Browse my code runs 3 times in this embed.
This is the results from the Debug statements:
Loc:ViewOnly = 1
loc:action = View
loc:act = 5
Loc:ViewOnly = 1
loc:action = View
loc:act = 5
Loc:ViewOnly = 0
loc:action = Change
loc:act = 2
It changes from View to Change so it is messing up my code.
I would appreciate if someone can put me on the right track.
Regards
Johan de Klerk