You already know how to get a single field, so what’s the problem with getting the other fields? It’s just select Amount, AnotherAmount, YetAnotherAmount from payrollLedgerTable (…).
Or is Amount an array field? Then you would access individual fields by index, e.g. payrollLedgerTable.Amount[1].
i have one amount cloumn in payrollledger table with many rows with employee id and different pay element code rows…
i need to display column amount value in row wise(first payelemt code amount, second pay elelmentcode amount, tdird payelement code, so on) for select employee id
table look like
Eg: empid, payelementcode, amount
001 basic 1500
001 pf 500
001 transport 350
001 allowance 100
now i want to display (001, 1500,500,350,100) in text file. how to do this? pls reply
Aha, got it. Iterate through the records, convert each amount to string and either join it to a common string or add to a container (you’ll concatenate it to a single string by con2str()).