9/28/2023 0 Comments Omnis studio 10Here is the code for the private method "makeList", and "pGridRef" is a parameter of type Item Reference: "gridRef" is a local variable of type Item Reference. The $construct method of the popup form then uses $cinst.$container to access the public methods of the underlying form and creates a list of columns.ĭo $cinst.$container().$getGrid Returns gridRef The popup form "jsExport" creates a list of all columns from the calling window If you are using the $layouttype kLayoutTypeResponsive, then set the height and width manually. Note: If the remote form has the $layouttype kLayoutTypeSingle, you can set the width and height of the instance using the $width and $height property of the class. "subformdialogshow",row('jsExport',#NULL,'Export List',Ĭlasses.jsExport.$width,$classes.jsExport.$height)) $getGrid which returns the reference to the Grid object in the remote form class (not the instance):Īnd $getList which simply returns the list from the form:īehind a button you can then open the modal remote form "jsExport" with the $clientcommand: Our main remote form containing the data grid (or its superclass) has two public methods: Preparing the main remote form (or its superclass) A prerequisite is that the data grid is $userdefined and that the individual columns of the data grid are named with the name of the respective column in the $columdatacol property. In this example, the user will get a list with all columns shown in the data grid, they can change the order with drag & drop and click in the column "export" to omit columns. You can open a modal remote form using the $clientcommand "subformdialogshow". This tech note describe how you can create a popup form to do this. It would be even better if the user could choose the order of the columns or which columns to export. Now it would be great if there was a way to export the data directly from the grid as a CSV file. Many developers use a Data Grid in Remote Forms to display data. Omnis Technical Note TNJS00 Popup Form for exporting data from a Data Gridīy Andreas Pfeiffer, Senior Omnis Consultant
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |