Create Custom Dialog on Form

 Hi,


Create Custom Dialog on Form




 Dialog dialogU = new Dialog("Quantity Transaction",element);
                DialogField                 dlgQty= dialogU.addField(extendedTypeStr(InventQtyJournal), "Enter Quantity");
                DialogField                 dlgReason= dialogU.addField(enumStr(Reason), "Reason");
             
              
                InventQtyJournal dialogqty;
               Reason dialogReason;
                // if we click OK, we run, otherwise, close the form
                if (dialogU.run())
                {
                    boolean dlClosed = dialogU.closedOk();

                    if (dlClosed)
                    {
                        dialogqty = dlgQty.value();
                        dialogReason=dlgReason.value();
                      
                    }
                }
                else
                {
                    element.close();
                }

Comments