KB-68217: Title of screen indexed via DoModal method.

Question:

The title parameter is passed in a script using DoModal method to open an indexed screen. However, the text set up in the script is not displayed at run time, and the one set up at the screen’s Caption property is instead. How can I make sure the data from title parameter is sent?

Solution:

To do so, there are two possibilities:

  1. Leave both the Screen‘s and Viewer‘s Caption property blank; or
  2. At the indexed screen’s OnPreShow event, write a script where its Caption property receives a value from the screen’s instance’s Source.

Example:

Sub IndexedScreen_OnPreShow(Arg)
‘Receives Arg from clicked XControl 
Item(“XControlCommand”).Source = Arg
‘Titles the indexed screen
Caption = “Command: “ &Item(“XControlCommand”).Source.Name
End Sub

Result: “Command: XObject”

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Leave a Reply

Your email address will not be published.Required fields are marked *