Hi, thank you for the suggestion. That was the last peace of the puzzle.
I submit the final code in case anybody needs it.



public void tabChanged(int _FromTab, int _ToTab)

{

    #Admin

    super(_FromTab, _ToTab);



    if(_ToTab == 2)

    {

        SalesTable_ds.company(TestForm.dataAreaName);

        appl.setDefaultCompany(TestForm.dataAreaName,false);

        SalesTable.reread();

        SalesTable_ds.executeQuery();

    }



}

Med vennlig hilsen
Espen Kaasa
Fagansvarlig
BI & Collaboration



-----Opprinnelig melding-----
Fra: Hans-Walter Bous [mailto:[EMAIL PROTECTED]
Sendt: 15. mars 2005 08:39
Til: [email protected]
Emne: Re: [development-axapta] Change company in form



Hi Espen,
on the datasource you can set company by dsname_ds.company('XXX'). Did
you try it with that ?
John

Espen Kaasa <[EMAIL PROTECTED]> wrote:

Hi



I would like to change company on a Form with the
application.setDefaultCompany('dat',false) command.

I have a form with two tab pages. I am trying to show salestable data on
tab page 2 for the customer/company selected on tab page 1.  I
successfully change the company in the tabchange method, but the form
keep changing back afterwards, does anybody know how to avoid this from
happening?







Regards

Espen Kaasa





  <http://www.intero.no>

Tlf +47 98 22 75 10

Email: [EMAIL PROTECTED]

Web: www.intero.no

adresse: Intero AS, Hausmannsgate 19, 0182 Oslo





[Non-text portions of this message have been removed]





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.


           
---------------------------------
Gesendet von Yahoo! Mail - Jetzt mit 250MB kostenlosem Speicher

[Non-text portions of this message have been removed]







Yahoo! Groups Links











Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to