Hi,

It is like you pass data from a form (via a button clicked method) to a 
report. You have to create a variable args and pass the current selected 
record to the args var. That way you will not foget any field you might 
need.

Example:
//...
Args args = new Args();
;
args.record(Form_Datasource_ds);
//...

After doing this, all data of the currenct selected record will be 
available in this args variable.

Succes,
/byteway







pvraghavanmca wrote:

>Hi all,
>   I want to add a button called "copy from" in a form.By clicking 
>that button i want to copy the data from one record to another(new) 
>record.We will normaly add the below code in the button click method
>
>Ex:(This is only an example)Consider that i'm copying an employee 
>record(by getting the name of the employee) to a new employee.so i 
>will get the following details from the enduser:
>          Existing employee name,New employee name
>
>  
>
>    EmplTable  emp1,emp2;
>
>    select emp1
>    where
>    emp1.Name == "AxaptaGuy";
>
>     emp2.phonenr == emp1.phonenr;
>     ..........
>     ..........(there may be 30 to 40 fields)
>
>   Instead of associating 30 to 40 fields(like this emp2.phonenr == 
>emp1.phonenr) is there any alternative option?Can we do anything 
>using field groups in the tables?It will help for my problem?
>
>Thanks and regards,
>Venkat
>
>
>
>
>
>
>
>
>Sharing the knowledge on Axapta.
>Visit www.frappr.com/axapta for axapta friends. 
>Yahoo! Groups Links
>
>
>
> 
>
>
>
>  
>



Sharing the knowledge on Axapta.
Visit www.frappr.com/axapta for axapta friends. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/Axapta-Knowledge-Village/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to