AnsweredAssumed Answered

Using a pop-up List to select a script comand

Question asked by XRayKing on Dec 3, 2008
Latest reply on Dec 10, 2008 by XRayKing

Title

Using a pop-up List to select a script comand

Post

I'm trying to use a button to call up a pop-up list field and then use the results of the user selection to perform another script function. 

 

The script below works well on a MAC platform (OS X) but on Windows (XP Pro) we experience a delay to pull up the Value List used and the value selected doesn't get selected.  Any ideas why this is or any better ideas for a script to perform the same function?

 

<!--   StartFragment   -->

Set Field [Field Service Reports:: Print Selection Button;”PRINT”]

 

Clear [Select; Field Service Reports :: Print SelectionField]

 

If [Field Service Reports::Print selection field = "PrintSelection" or IsEmpty(Field        Service Reports::Printselection field)

 

        Goto Field [Field Service Reports :: Print Selection Field]

 

Loop

 

If [Field Service Reports::Print selectionfield = "Print Selection" or IsEmpty(Field Service Reports::Printselection field]

 

Go to Field [Select/perform;FieldService Reports :: Print Selection Field]

 

              Pause/ResumeScript [Duration (seconds): Time(0;0;4)]

 

         Goto Field [Select/perform;Field Service Reports :: Print Selection Field]

 

Exit Loop If [Field ServiceReports::Print selection field     "PrintSelection"   and     Field ServiceReports::Print selection field  ≠""]

 

Go to Field[Field Service Reports :: Print Selection Field]

 

End If

 

End Loop

 

If [Field Service Reports::Print selection field ="Invoice"]

 

            PerformScript [Print Invoice]

 

End If

 

If [Field Service Reports::Print selection field = "Field ServiceReport"]

 

Perform Script [Print Field ServiceReport]

 

End If 

 

Thanks 

Outcomes