Showing posts with label Multi selected records. Show all posts
Showing posts with label Multi selected records. Show all posts

Monday, August 5, 2024

Multi selection

My requirement is to move multiple records from one grid to another grid by using the clicked method.


public void clicked()

        {

            super();

            SECURITYROLE            sECURITYROLELoc = SECURITYROLE_Ds.cursor();

            vendgroup               vendgrouploc;

            vendgroup               vendorgroup;

            ynv_xdscustomization    xdscustomization;

            int                     recordsCount;

 

            recordsCount = vendgroup_ds.recordsMarked().lastIndex();  // Total number of marked records.

            vendgrouploc    = vendgroup_ds.getFirst(1);

 

            while (vendgrouploc)

            {

                ttsbegin;

                xdscustomization.vendgroup      = vendgrouploc.vendgroup;

                xdscustomization.name           = vendgrouploc.name;

                xdscustomization.securityname   = securityroleloc.name;

                xdscustomization.insert();

                ttscommit;

                vendgrouploc = vendgroup_ds.getNext();

            }

        }

Purchase Orders

 Before confirming a Purchase Order, the system should display a confirmation popup if the purchase order is associated with an active inter...