Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
K.TRYFONIDIS
458 Views, 4 Replies

Multiple selections of drop down list, into iproperty as text

Hello all,

 

The problem here is that i would like to fill in the property value a single string text of the selections the user makes

 

at the dropdown and presses ok button.

 

For example, if the user selects and clicks ok at PRIONI option and then at next pop up selects TORNOS and hit ok and then closes window,

kTRIFONIDIS_0-1642773985104.png

 

the iproperty should look like this:

 

kTRIFONIDIS_1-1642774026595.png

 

NyfanRooting    PRIONI, TORNOS  as a single string text value.

 

 

 

At this moment it only saves the last clicked selection but not the previous ones.

 

 

Do you know a way to fix and save all selections?  Bellow is the code i am using now:

 

I feel i am close but i cant fix it yet..

 

 

Dim oTypes_Array As New ArrayList

oTypes_Array.Add("PRIONI")

oTypes_Array.Add("TRYPANI")

oTypes_Array.Add("TORNOS")

oTypes_Array.Add("MONTAZ")

oTypes_Array.Add("FREZA")

 

Dim oSelected As New ArrayList

 

While True

                oTypes_Selected = InputListBox("CHOOSE:", oTypes_Array, oTypes_Array(0), oRuleNo, X_oProp_Array)

                If IsNothing (oTypes_Selected) Then Exit While

                oSelected.Add(oTypes_Selected)             

End While

 

If oSelected.Count > 0 Then

               

                For Each oText In oSelected

               

                iProperties.Value("Custom", "NyfanRooting") = oText

               

                next

 

End If