I have made a userdefined form called as InPatient , i have design separate Invoice form for it now i want to do "copy from" on Button like it is done in Sales A/R and draw form document wizard so that my Invoice form Matrix is populated with data from Inpatient form
SAme as Sales A/R "copy from " sales Order for User defined form
Write a Cycle (for) to fill the Matrix,
If you are using dbdatasources to bind the matrix or UDO in this case:
1. Bind your columns of the target matrix to userdatasoureces
2. Use GetLineData / SetLineData to set the line data,
3. Bind the Matrix to the DbDataSource (UDO),
4. And us eOmatrix.FlushToDataSource function to fill the UDO before you save your data.