cancel
Showing results for 
Search instead for 
Did you mean: 

Create list with Javascript - SUP Workflow App

Former Member
0 Kudos

Hello community,

does anybody know how I can create a list (for a listview) manually via javascipt?

Thanks in advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

Vlad
Advisor
Advisor
0 Kudos

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!

Former Member
0 Kudos

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.