One solution is to add this line in the init()

salesTable_ds.query().dataSourceNo(1).addRange(fieldnum(SalesTable,Sales
Id)).value(myOwnSalesId);

Good luck
Tony
=============================================
Tony DePalo  B.Comp.
Technical Services Consultant
Moore Stephens Technology Australia
Business Building Strategies

Phone (Direct):      + 61 (7) 3100 0012
Phone (Switch):      + 61 (7) 3317 7877
Phone (Mobile):      0407 634 748
Fax:      + 61 (7) 3221 0812
Address:       GPO Box 1396, Brisbane  Qld  Australia
E-mail:                    [EMAIL PROTECTED]
Visit our web site:  www.moorestephens.com.au/tech

Disclaimer: This email message and any accompanying attachments should
only be read by those persons to whom it is addressed and is not
intended to be relied upon by any person without subsequent written
confirmation of its contents.  Accordingly Moore Stephens Technology
Australia disclaim all responsibility and accept no liability (including
in negligence) for the consequences for any person acting, or refraining
from acting, on such information prior to the receipt by those persons
of subsequent written confirmation.
If you have received this email message and any accompanying attachments
in error, please notify us immediately by telephone (+61 7 3317 7877).
Please also permanently delete the message from your computer.  Any form
of reproduction, dissemination, copying, disclosure, modification,
distribution and/or publication of this email message and any
accompanying attachments is strictly prohibited without the prior
consent of Moore Stephens Technology Australia.
A member of the Moore Stephens International Limited Group of
Independent Firms.



-----Original Message-----
From: kamtt [mailto:[EMAIL PROTECTED]
Sent: Monday, 11 October 2004 9:18 PM
To: [EMAIL PROTECTED]
Subject: [development-axapta] Set Active Data





Dear everyone,

I'd like to call SalesTable from my Customize form. During my
calling, I pass the args with myOwnSalesId. What I need is to check
myOwnSalesId with SalesTable's SalesIds.. Once it is match, I'd like
to set active (Highlight value) of that SalesId as a default data.

Example, if I have sales oder 001, 002 003 at SalesTable and if I
pass myOwnSalesId=002 then the SalesOrder form will open with
SalesId 002 is active.


At the SalesOrder's init method, I come out like this
init
{
      MyOwnTable myOwnTable;
;  
myOwnTable = element.args().record();

              if(SalesTable::checkExist
(myOwnTable.myOwnSalesId))       /// already created
              {
           // I'd like to set active the SalesOrder with saleId
which is equal ot myOwnSalesId
      SalesTable_ds.setCurrent();// this gives me error :(

      }
}

Please advice me.
Thanks in advance,
kamtt











Yahoo! Groups Links








Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to