Display Method

hi, i have a question regarding display method, how can i return multiple value using display methods, Thanks

hai

You can not return multiple values using display method.You can return only one value from it. It means that you can return only one value for each record.

I have a display method in the datasource of the form as below:

display name emplname(hprDailyAttendance _hprDailyAttendance)
{
;
return dirpartytable::find(empltable::find(_hprDailyAttendance.EmplId).PartyId).Name;
}

The _hprDailyAttendance brings the record and return statement returns the value for each record.

Thanks for the quick reply can you suggest a method on how to return multiple values that can be use in a report. Thanks

Hi,

If u want to display multiple values then u can write the method in 1 programmable section and try to execute that section in body execution() for ā€˜nā€™ times

You can use some global variables and design a method to fill those variables, but again you need seperate display methods for each variable.

If you are able to elaborate your requirement with some more details, you may get a better solution even.