Showing posts with label click method for marked records in ax 2012. Show all posts
Showing posts with label click method for marked records in ax 2012. Show all posts

Thursday, 24 December 2015

Click method for marked records

/* Take a Button in butongroup,change the property “Multiselect = yes”
and write the follwing code clicked method of the control. */

void clicked()
{
   UB_Student_Dtl  _Student_Dtl;
   ;

   breakpoint;

   super();

   if(Stdtl_ds.anyMarked())
   {
   _Student_Dtl = Stdtl_ds.getFirst(1,false);
    while (_Student_Dtl)
    {
       info(_Student_Dtl.ID);
    _Student_Dtl = Stdtl_ds.getNext() ;
    }

   }

}

Click method for marked records

/* Take a Button in butongroup,change the property “Multiselect = yes”
and write the follwing code clicked method of the control. */

void clicked()
{
   UB_Student_Dtl  _Student_Dtl;
   ;

   breakpoint;

   super();

   if(Stdtl_ds.anyMarked())
   {
   _Student_Dtl = Stdtl_ds.getFirst(1,false);
    while (_Student_Dtl)
    {
       info(_Student_Dtl.ID);
    _Student_Dtl = Stdtl_ds.getNext() ;
    }

   }

}