how to create page layout using SDK

1
I am going to create  a page with DataView widget,  i think I need go through following steps, Create DataView Widget Create Layoutcall  Create layoutCallArgument Create Page but when I try creating layoutCallArgument, I found parameter is needed,how can I create or get parameter?   let argument = pages.LayoutCallArgument.createIn(layoutCall); argument.parameter = parameter; argument.widgets.push(widget);  
asked
1 answers
1

If you want to figure out what code you need to write in order to build a particular model component you can use the handy reverse engineering functionality:

https://docs.mendix.com/apidocs-mxsdk/mxsdk/generating-code-from-the-model

If you build the page in Mendix that you are looking to build, you can then connect the model sdk to it and reverse engineer it. This will give you the necessary code to rebuild that page. This is extremely useful for learning how to code with the Model SDK.


Regards

Simon

answered