Anyone tried to change linkType on the fly in a Form? I try to change VendTable_ds.linkType from Outerjoin (set when the form opens) to InnerJoin (when I click a button on that form). It just doesn't seem like it works. Records that are supposed to be skipped (cause of the InnerJoin) are still there.
Here's my code :
VendTable_ds.linkType(3); // Change to InnerJoin
VendTable_ds.research();
element.redraw();
Steeve...
-----Message d'origine-----
De�: seb dra [mailto:[EMAIL PROTECTED]
Envoy�: 24 mai 2004 07:45
��: yahoogroup-axapta
Objet�: [development-axapta] Re:Modify joinSource of DataSource while in the form
From: "Steeve Gilbert" <[EMAIL PROTECTED]>
Subject: Modify joinSource of DataSource while in the
form
>Anyone knows how to change the DataSource.joinSource
>property while the form is running?
>VendTable_ds.joinSource(JoinMode::InnerSource);
Hello Steeve,
after setting
VendTable_ds.joinSource(JoinMode::InnerJoin)
call VendTable_ds.research() to give the datasource
the command to research ( = execute the query again)
from the database
than call element.redraw() to give to form the command
to paint all components again; it's necessary because
the form doesn't know the change of the datasource.
bxe,
SebDra
Mit sch�nen Gr��en von Yahoo! Mail - http://mail.yahoo.de
Yahoo! Groups Links
| 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.

