PDA

View Full Version : SetActionMode



FrankValcarcel
18-Jun-2015, 07:56 PM
18.1B2
Set action mode does not seem to work with OnCloseModalDialog. Works with OnClick and other procedures.



Procedure OnCloseModalDialog Handle hoModalDialog
Boolean cancel
String sHold
Send GetRetval of hoModalDialog (&sHold) (&bCancel)
If (bCancel) Procedure_Return
WebSet psFTString of oSelectSerials to sHold
Send Rebuild_Constraints to (Server(oGrid))
Send MovetoFirstRow to oGrid
End_Procedure
Procedure OnLoad
Forward Send OnLoad
Send SetActionMode (RefProc(OnCloseModalDialog)) scModeProgress "Please wait while loading ..."
End_Procedure

raveens
18-Jun-2015, 08:15 PM
Hi Frank,

SetActionMode only works with published procedures - OnCloseModalDialog may not not published.

FrankValcarcel
18-Jun-2015, 08:17 PM
Most respectfully disagree.
1. I would get unpublished error message if it's not published.
2. OnCloseModalDialog must be published as other objects have to find it to return call.

I think OnCloseModalDialog is just "special".

raveens
18-Jun-2015, 08:24 PM
Hi Frank,

You're right - it is published! Strange!

Is OnCloseModalDialog even firing? You might want to check "NotifyCloseModalDialog" and the value of psReturnObject