[Axapta-Knowledge-Village] Re: Need help in Axapta X++ code

2005-11-16 Thread Steeve Gilbert
Check Form : tutorial_Form_EnumerateControls. Just stuble on this and I thought that could be usefull to you. regards, Steeve... --- In Axapta-Knowledge-Village@yahoogroups.com, "@ Mollar @" <[EMAIL PROTECTED]> wrote: > > Hi All, > Iam using this code to loop the controls on a form. > > int i

Re: [Axapta-Knowledge-Village] Re: Need help in Axapta X++ code

2005-10-02 Thread Harry \(Harshawardhan Deshpande
hi   check out 'readcontrols' method of class syssavesetup   regards   harryeng_mollar <[EMAIL PROTECTED]> wrote: Hi again Varden,I am sorry for being so late replaying your message.Thanks you for your help. I just tried the solution you sent me but there is a problem in it.It only returns the m

[Axapta-Knowledge-Village] Re: Need help in Axapta X++ code

2005-10-01 Thread eng_mollar
Hi again Varden, I am sorry for being so late replaying your message. Thanks you for your help. I just tried the solution you sent me but there is a problem in it. It only returns the main containers on the form not the controls. Is There any way that I can get all the controls in a container??

RE: [Axapta-Knowledge-Village] Re: Need help in Axapta X++ code

2005-09-13 Thread Bayliss, Barry
September 2005 11:54 PM To: Axapta-Knowledge-Village@yahoogroups.com Subject: [Axapta-Knowledge-Village] Re: Need help in Axapta X++ code Thank you for your replay. my problem is : I don't know the controls names. The code I want to add will be applied to many forms so i need a generic code to loop o

Re: [Axapta-Knowledge-Village] Re: Need help in Axapta X++ code

2005-09-06 Thread Varden Morris
I think I have found your solution. On a form the following code displays the names of all the controls and also set the visible properties of all the controls to false.       int i;     for (i=1;i<= element.design().controlCount();i++)    {    info(strfmt('%1', element.design().cont

Re: [Axapta-Knowledge-Village] Re: Need help in Axapta X++ code

2005-09-05 Thread Varden Morris
I think I understand what you are saying. Here is another way you may access a control on a form without setting the autodeclaration property to yes:   FormWindowControl MyControl; ; MyControl = element.design().control(control::Accountnum); MyControl is now a handle to the control with the name

[Axapta-Knowledge-Village] Re: Need help in Axapta X++ code

2005-09-05 Thread eng_mollar
Thank you for your replay. my problem is : I don't know the controls names. The code I want to add will be applied to many forms so i need a generic code to loop on the form controls. In C# or Delphi that was easy as there is an array of controls in each form that I can access all controls using