cancel
Showing results for 
Search instead for 
Did you mean: 

Access to a variable with UI API

Former Member
0 Kudos

Hi,

When I use the Debug Information of the SBO Client, there are the form number, the item number and sometimes a variable number.

How do we have access to this variable with the UI API?

Thanks for your help.

Accepted Solutions (1)

Accepted Solutions (1)

Trinidad
Product and Topic Expert
Product and Topic Expert
0 Kudos

You can have access to all forms open in the application, they are saved in the collection Forms inside the Application you are connected to.

SBOApplication.Forms

You can directly access to the current active form by using:

SBOApplication.Forms.ActiveForm

or search for a specific form by using

SBOApplication.Forms.GetForm("FormType", count) where FormType is what you can see in the debug information. Count indicates the index of differents forms of the same type opened at the same time.

Once you have the current form you can access to its items by using:

oForm.Items.Item("itemUID") => The one you can see in the Debug Information

You should have a look to the UI SDK Help File, mainly to the Application, Form and Items objects.

Hope it helps

Trinidad.

Answers (1)

Answers (1)

Former Member
0 Kudos

Thank you,

It works properly !

I close this topic.