Skip to content

Update current element when new list is given #3

Description

@CarloR93

Hi there, I am successfully passing to the 'rows' property a list of elements. I want to set the 'current' property to the first element of the new rows list but changing it seems to not work. For example if I do this:

let newRows = [["name1"],["name2"],["name3"]];
let newCurrent = "name1";
Screen.Items("Select_1").Properties.rows = newRows;
Screen.Items("Select_1").Properties.current =  newCurrent; //<- the dropdown stays empty, though it seems that the value is passed anyway if I check with trace

newRows and newCurrent in this example are not formatted as they truly should be, but they are in the final code and are passed correctly. Should I do something different instead of changing the 'current' property?

And is it possible to remove the empty element in the list?

Anyway great job with this control!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions