So I need a “Copy” button, which do that:
User select a row, and after it click Copy (So here I know how to do).
Then it opens a Create screen and insert the selected datas into the create screen’s fields.
I guess I need a service, and ‘getSelected’ function. But how to open create view and pass datas?
Or any example project?
To copy the selected record, open the edit screen by the openEditor() method and pass a new entity instance with desired fields set as an argument. Please take a look at the sample project attached.
Based on above picture, I would like to copy the row, but the only thing I want it to be differ is the month column. I want to make it as user can set the month column from and until which month, and the application can generate multiple rows at one time. How am I going to do that?
If you want the user to select the month range, it definitely requires some extra dialog window. Create a separate screen and open it on Copy button click. Using metadata create multiple new entity instances, and in the end commit them all at once.