AnsweredAssumed Answered

Help with Popup Window

Question asked by KenDeFilipps on Dec 9, 2014
Latest reply on Dec 21, 2014 by KenDeFilipps

Title

Help with Popup Window

Post

Hi.  I have a misbehaving popup window. (see attached screenshot)

1.  Global field g_ClassTime is not entering data into "class time" upon SetField script step

2.  Clicking off object is not triggering the OnObjectExit script trigger as evidenced by the variable not being reset and data not being cleared from the globabl fields

3.  clicking the "cancel" button does trigger the OnObjectExit script, data is cleared from global fields and variable is reset

4.  After creation of the record, when re-entering the Popup button, fields are not being cleared by the OnObjectExit script trigger and variable is not being reset

What am I missing here?

see scripts below.

 

Script Name: ClassPopup_OnExit
If [ $$Script_Trigger = 1 ]
Set Field [ Scheduled_Classes::g_ClassName ; "" ]
Set Field [ Scheduled_Classes::g_ClassDate ; "" ]
Set Field [ Scheduled_Classes::g_ClassTime ; "" ]
Set Field [ Scheduled_Classes::g_ClassInstructor ; "" ]
End If
Set Variable [ $$Script_Trigger; Value:0 ]
Close Popover
Exit Script [ ]

 

Script Name: ClassPopUpEnterData
Set Variable [ $$Script_Trigger; Value:0 ]
Enter Browse Mode
New Record/Request
Set Field [ Scheduled_Classes::ClassName ; Scheduled_Classes::g_ClassName ]
Set Field [ Scheduled_Classes::ClassDate ; Scheduled_Classes::g_ClassDate ]
Set Field [ Scheduled_Classes::ClassTime ; Scheduled_Classes::g_ClassTime ]
Set Field [ Scheduled_Classes::Instructor ; Scheduled_Classes::g_ClassInstructor ]
Set Variable [ $$Script_Trigger; Value:1 ]
Close Popover
Set Variable [ $$Script_Trigger; Value:1 ]
Exit Script [ ]

PopoverButton.jpg

Outcomes