on 06-19-2012 10:09 AM
Hello community,
does anybody know how I can create a list (for a listview) manually via javascipt?
Thanks in advance.
Hello Patrik,
It seems that it is not possible to create controls on the fly. But if you know a way how to get necessary information from MBOs, you can create an HTML tag that represents list-like layout: SELECT tag dynamically. The document.createElement (http://www.javascriptkit.com/javatutors/dom2.shtml) does this job.
You can also add necessary options to the SELECT tag as described in this resource: http://www.programmersheaven.com/2/FAQ-JavaScript-Create-Dynamic-Select-Boxes
Finally, you can use a jQuery based library to create list-like UI elements.
Anyway, if there is a chance to examine SUP code creating lists, you can try to repeat it.
Kind regards!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Vladislav,
thanks for your answer.
I don't want to create the whole list. In the screen there's an empty list with the needed cells.
My problem is, that in the data comes from an MBO object query which will be performed on the previous screen. In the customBeforeNavigateForward function I need to extract this data and put it into the empty list.
The extracted data are needed for a MBO operation which has parameter mapped to the empty list. The structures of the output data of the MBO object query and the input table of the MBO operation doesn't match, therefore it's necessary to transfer the data from the object query result to the empty list.
Currently I'am looking at the SUP-Code to find a way to perform this.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.