for years, I used code like this when calling a form from a browse,
at the top of GenerateForm Routine for the Form:
if some condition
packet.SetValue( 'Security Restriction (' & P_WEB.GSV('Loc:PrivatePage') & '), This Action is Not permitted for ' & p_web.gsv('ProfileLoginID') & '!' )
do SendPacket
Return -3
end
My menus are such that this would show the message, that would appear under my menu - and stopping the action.
(Avoiding what Nettalk does by default- not serving the page with the user unaware of why?)
if the form is a popup, this does not work, the Return works but you get a blank (incomplete) popup, i would like to communicate to the user the reason that the form will not let them continue..
I was wondering if someone has a suggestion on how to accomplish showing an alert or message on the popup for this circumstance?
TIA
poul