How do I capture the value for the ‘objMainView.Caption’ in the code I have written in SalesLogix?

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

 

Submit a Comment

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

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!