Anil and Cenk, thanks for your answers.
Long time ago i sent the problem below. I had more important problems to resolve so i postponed it.
My problem is a little bit different. I add some formrealcontrol s in the init method of the form, the source is below :
public void init()
{
OyExpCostCenterTable _OyExpCostCenterTable;
FormBuildDesign formBuilddesign = form.design();
FormBuildGroupControl formBuildGroupControl;
int i;
str tempStr;
super();
i = 1;
c = myGrid.addControl(FormControlType::Real,'RunTimeControl');
c.label("KENDISI");
c.widthMode(0);
c.skip(NoYes::Yes);
c.dataSource("OyExpReport1Table");
tempStr = 'dataMethod' + int2str(i);
c.dataMethod(tempStr);
i ++;
while select _OyExpCostCenterTable
where _OyExpCostCenterTable.CCType == "YARDIMCI"
{
c = myGrid.addControl(FormControlType::Real,'RunTimeControl');
c.label(_OyExpCostCenterTable.CostCenter);
c.widthMode(0);
c.skip(NoYes::Yes);
c.dataSource("OyExpReport1Table");
tempStr = 'dataMethod' + int2str(i);
c.dataMethod(tempStr);
i++;
}
c = myGrid.addControl(FormControlType::Real,'RunTimeControl');
c.label("TOPLAM");
c.widthMode(0);
c.skip(NoYes::Yes);
c.dataSource("OyExpReport1Table");
tempStr = 'dataMethod' + int2str(i);
c.dataMethod(tempStr);
}
I created some dataMethods like dataMethod1, dataMethod2, dataMethod3, etc..
for ex., "dataMethod2" is a "table display method" that returns the second (2.) element of the container (table field of type "container").
This is not an effective solution moreover this is not a solution! I don't know how many method i must create and the solution is amateurish.
I did so many trials to solve the problem but i didn't succeed.
Is there any way or any method to send an integer as parameter to the display method? May i use the edit method?
Thanks in advance.
Baran
Cenk Ince <[EMAIL PROTECTED]> wrote:
Hi Baran
Put your display metod on table or data source. So you won't need to
send any parameters.
-----Original Message-----
From: Baran Sasmaz [mailto:[EMAIL PROTECTED]
Sent: Friday, June 18, 2004 1:42 PM
To: [EMAIL PROTECTED]
Subject: [development-axapta] Send parameter to display method
Hiii,
I added fields on my grid at runtime by addcontrol method.
The value of the field (i)th added to the grid is the content of the
container (i)th element.
How to send the int i to my display datamethod at the related table?
Thanks in advance.
---------------------------------
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
[Non-text portions of this message have been removed]
Yahoo! Groups Links
Yahoo! Groups SponsorADVERTISEMENT
---------------------------------
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
---------------------------------
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
[Non-text portions of this message have been removed]
| Yahoo! Groups Sponsor | |
|
|
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

