cancel
Showing results for 
Search instead for 
Did you mean: 

Catch values of form

Former Member
0 Kudos

Hi all,

I wanna know how catch the values of a form like the vendor, due date of the A/P Invoice, there are an examples of that functionality?....

Hope your answers!!!!

Best Regards

Christian

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

you should use the DBDATASOURCES collection of the chosen system form.

See the documentation and the examples in the SDK...

Regards

Former Member
0 Kudos

Hi Enrico

There some example on sdk examples??? ...

Best Regards

Christian

rasmuswulff_jensen
Active Contributor
0 Kudos

Example of catching get currently displayed documents CardCode, DocNum and DocEntry (Hidden and only set in saved documents)


DBDataSource dbds = oForm.Datasources.DBDataSource.Item("OINV");
int recordNumber = dbds.OffSet;
string CardCode = dbds.GetValue("CardCode",recordNumber);
int DocNum = Convert.ToInt32(dbds.GetValue("DocNum",recordNumber));
int DocEntry = Convert.ToInt32(dbds.GetValue("DocEntry",recordNumber));

Hope this helps

Former Member
0 Kudos

hi,

other question , how do i when i have details like outgoing payments and i want to pay two invoices? .. how i catch this two rows ?? ..

Best Regards

Christian

Former Member
0 Kudos

Do you mean in matrix and you want to catch the selected rows?

You could use this to get the selected row number

oMatrix.GetNextSelectedRow()

so just say you want to get the first selected row u just have to put this

 oEditText = oMatrix.Columns.Item("V_0").Cells.Item(oMatrix.GetNextSelectedRow(0)).Specific

Hope this helps

Answers (0)