Skip to content
FlorinSpuze edited this page Apr 8, 2024 · 2 revisions

1-> from grid to grid (1 grid per page)

  $layout = array(
                    0 => array(
                        "row" => 1,
                        "columns" => array(
                            0 => array(
                                "columns" => 1,
                                "units" => 12,
                                "vunits" => 100,
                                "rows" => array(
                                    0 => array(
                                        "componentname" => "scannertaskgrid",
                                        "type" => "verticalgrid"
                                    )
                                ),
                                "centered" => false
                            ),
                            1 => array(
                                "columns" => 1,
                                "units" => 0,
                                "vunits" => 0,
                                "rows" => array(
                                    0 => array(
                                        "componentname" => "scannertaskstepgrid",
                                        "type" => "verticalgrid"
                                    )
                                ),
                                "centered" => false
                            )
        
                        )
        
                    )
                );




                $data = array(
                    "name" => "SelectOutboundOrderline",
                    "actionExecution" => "inputform",
                    "actionResponse" => "showMessage(@name@);refreshAll();loadGrid(\"scannertaskstepgrid\");",
                    "viewId" => "viewId",
                    "link" => "Information Pickingtask",
                    "parentType" => "Workspace",
                    "objectType" => "Order",
                    "method" => "selectgridMethod" 
                );
                $mongoObjectFactory->createAndAdd($typeComp, (string) $returnComponentScannerTaskGrid, $typeContextMenu, $data);

2-> from grid to from with no popup $data = array( "name" => "ScanPallet", "actionExecution" => "inputform", "actionResponse" => "showMessage(@name@);refreshAll();loadNonPopupForm();", "viewId" => "viewId", "link" => "Scan pallet", "parentType" => "Bucket", "objectType" => "Pickingtask", "method" => "ScanPallet" // Input Form to be opened ); $mongoObjectFactory->createAndAdd($typeComp, (string) $returnComponentPStepsGrid, $typeContextMenu, $data);

3-> Button back on grid :

 $data = array(
                    "name" => "backTo",
                    "type" => array(
                        $json_type
                    ),
                    "actionExecution" => "loadGrid(\"scannertaskgrid\");"
                );
                $returnPar4 = $mongoObjectFactory->createAndAdd($typeComp, (string) $returnComponentScannerTaskGrid, $typePar, $data);

4-> button back on form to grid : $workspaceD->createField($viewId, "receivepallet2", \Application\Document\Field::TYPE_BUTTON, "", "back", "Back", true, "method", "", "backTo();", "", "loadGrid("orderlinereceiveunit");");

5-> from grid to grid without dropdown menu:

          $data = array(
                    "name" => "noDropdownMenu",
                    "type" => array(
                        $json_type
                    ),
                    "actionExecution" => "loadGrid(\"scannermytaskstepgrid\");"
                );
                $returnPar4 = $mongoObjectFactory->createAndAdd($typeComp, (string) $returnComponentmyScannerTaskGrid, $typePar, $data);

6-> 20 value inn field is for style (this example will make the box of the textarea bigger) :

                $workspaceD->createField($viewId, "informationtask", \Application\Document\Field::TYPE_TEXTAREA, "", "tasktype", "Task type^style='width: 300px; height: 26px'", false, "", true, "", "order", "", false, 'user', '', true,"","","","height:300");

tes

Clone this wiki locally