
Question:
SLX 6.2
I have a form which I launched via the code below
Set objMainView = Application.MainViews.AddEx(“System:XYZ”, 0, False, 1, “”, “”)
objMainView.Caption =”Cancel ABCD”
objMainView.ShowModal
On the AXFormOpen event of the XYZ, I needed to capture the value for the ‘objMainView.Caption’ set above.
Answer:
I was able to get it done with the code below
If Application.MainViews(0).Caption = “My caption here” Then
‘ do something
ElseIf Application.MainViews(0).Caption = “My preferred caption here” Then
‘ do something else
End If
Subscribe To Our Newsletter
Join our mailing list to receive the latest Infor CRM (Saleslogix) and Creatio (bpm'online) news and product updates!
You have Successfully Subscribed!