Hi Thomas

1. You can address the datasources in a form as DATASOURCENAME_ds. In
your case it would be empltable_ds.yourMethod()

2. filter(fieldNum(table,field),someFilterString)

Hope it helps
/Lennart
     

-----Original Message-----
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of Thomas
Sent: 14. december 2005 15:37
To: [email protected]
Subject: [development-axapta] Calling a datasource method from my form

Hi,

I have a form displaying the empltable in a grid. On the same form I
have a button. On the datasource (empltable) I have created a method
that I would like to call when clicking the button in the form. How do
I do this? I cant find the correct syntax. I have tried with element
and this but without any luck.

Further I would like to add another button that filters only the
employees that have status "Employed" in the empltable. I think I can
do this by overriding the filter method on the datasource (empltable).
Can anybody help me doing this. It must be something like:

filter(fieldname2id(tablename2id("emplTable"),"status"),"Employed");











Yahoo! Groups Links











SPONSORED LINKS
Computer part Programming languages Microsoft axapta
Support exchange


YAHOO! GROUPS LINKS




Reply via email to