how to create page layout using SDK

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);  
1 answers

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:

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.