Hello everyone!
I am currently struggling with the a small problem. I am looking for a way to add values, when a button is pressed. I can call a method, when the button is pressed and I can also retrieve the wanted information. But I do not find any steps how to add values to form items, when the form is already shown. When the window/form is shown, the listbox is still empty, because the listbox has to be filled, when a certain action is triggered.
I went through the forms in the Innovator, but I did not find not even one solution to my problem. I went through the examples, documentation and so on, but I have no clue what is the best practice. I created a form, where I have a button. By pressing the button, a JavaScript/client method is invoked and the client calls the business logic. The value is returned to the client and has to be set into the Listbox - I am trying to add an array of values to the Listbox. How can I programatically add values to the Listbox. Should I write the reference of the Lisbox name and set those array values by going with something like "this.form.listbox.value" and then afterwards refresh the form. In this way the value is linked to the form item (the linked value to the item is then set) and I only have to refresh the page after the set. OR is there another way to deal with it? Should I rather create an custom HTML code if I am trying to programmatically add stuff to the window?
If the first option is possible, is there somewhere written how you can pass values to those items? I know I can get the value of a filled textfield through this.form.ITEM_NAME.value. Can you get all the values (Radio button list, listbox, etc) from the form items like this? Can you also set those value like this and then only refresh the window?