Quantcast
Channel: Dynamics User Group
Viewing all articles
Browse latest Browse all 15740

Kindly check my method

$
0
0

hello friends

i want to make a  report which will produce output of name (1 coloumn) and city(2 coloumn) of all the customers from CustTable......
but i dont want to give CustTable as a data source.
i want to fetch data using codes


so just check my code ,,,,M i doing right?


1) class declaration
   
    CustTable custtable ; // creating a table buffer
   
    str name;
  
    str city;

2)execution section // method in body:sectiongroup
 
   while select name,city from custtable
    {
     name = custtable.name
     city = custtable.city

}

super();

 

3) display method for name //body:section group method
  

   display str name ()
   
  {
     return name;
}

 

4) display method for city // body:section group method

   display str city()
{
return city;
}

 

 


Viewing all articles
Browse latest Browse all 15740

Trending Articles