2
Views
3
Comments
Insert option with Javascript
Question
Hi everybody,

Is it possible to imitate a ListAppend action with javascript?
The objective is to add an option to a select widget in run-time using javascript without having to reload the page again.
2011-08-23 22-04-05
Tiago Simões
Staff
Hi,

This is possible but it’s not very advisable.
To keep eSpace easier to read it would be wiser to repost the page and create the logic in preparation.
Anyway, if that isn't really an option, you can see the attached oml with a small sample on how dynamically create options in a select widget.
dynamicselect.oml
2018-11-09 09-14-06
Gonçalo Almeida
Thanks for the oml. But can you do the same without using the special list and using the CustomRecordset property?
2011-08-23 22-04-05
Tiago Simões
Staff
Yes you can.
I've attached a modified oml that use a custom recordlist without a special list defined.
Check the attached Ok screen action where the variable value is checked if it is nullidentifier. If it is then the special variable should be used.
dynamicselect.oml
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.