Hi Danny,
Suppose say you writing an job/class to create an Purchase order. If that
method was not on the table then you would have ended up writing the same
thing again in your job.
This is not the only case, there could be many other instances where you
would like to use that method. So it is very important to see where you are
writing your code. If possible the method should be on the Table (which can
be source for many functions) and if not possible then in the class and if
it's not possible here then form and this depends on the situation.
cheers,
Girish
_____
From: Danny Gaethofs [mailto:[EMAIL PROTECTED]
Sent: 16 December 2004 14:55
To: [EMAIL PROTECTED]
Subject: RE: [development-axapta] Default field from InventTable to Purchase
Line
Dear Girish,
What exactly do you mean to say with your last
sentence?
regards,
Danny
--- Girish Bhatkal <[EMAIL PROTECTED]> wrote:
>
> When you select the Item the it first calls the
> InitFromInventTable method
> on the PurchLine table. This in turn calls the
> purchLineType.initFromInventTable method.
>
>
>
> Because of the "performance issue" this method is
> written on the table.
>
>
>
> In case if we want to use the same method of
> initializing the values from
> the InventTable, to the purchline table then we
> may not be able to use it
> if we have written on the form.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> _____
>
> From: Danny Gaethofs [mailto:[EMAIL PROTECTED]
> Sent: 16 December 2004 12:05
> To: [EMAIL PROTECTED]
> Subject: [development-axapta] Default field from
> InventTable to Purchase
> Line
>
>
>
>
>
> Dear all,
>
> I created a new field on the InventTable. This field
> has to be
> defaulted automatically to the PurchLine.
>
> It looks like I need to add the defaulting to the
> method
> initFromInventTable() on the Class PurchLineType.
> But I am not sure
> this is the correct place.
>
> I found out there is a modified() method on the
> datasource PurchLine
> Field ItemId in the form PurchTable, that is calling
> the method
> purchLine.itemIdChanged(). This method ulitmately
> calls the
> previously mentioned method.
>
> It is a bit strange to me that it is triggered by a
> method on a
> field. Why is it not in the node method on the
> datasource PurchLine?
>
> Can someone ensure this is the right spot to make
> the modification.
>
> regards,
> Danny Gaethofs
>
>
>
>
>
>
>
>
>
>
>
> Yahoo! Groups Sponsor
>
>
>
> ADVERTISEMENT
>
>
<http://us.ard.yahoo.com/SIG=12996o5if/M=294855.5468653.6549235.3001176/D=gr
>
oups/S=1705006764:HM/EXP=1103288712/A=2455396/R=0/SIG=119u9qmi7/*http:/small
> business.yahoo.com/domains/> click here
>
>
>
>
<http://us.adserver.yahoo.com/l?M=294855.5468653.6549235.3001176/D=groups/S=
> :HM/A=2455396/rand=766468140>
>
>
>
> _____
>
> 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]
>
<mailto:[EMAIL PROTECTED]>
>
>
> * Your use of Yahoo! Groups is subject to the Yahoo!
> <http://docs.yahoo.com/info/terms/> Terms of
> Service.
>
>
>
> [Non-text portions of this message have been
> removed]
>
>
>
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Yahoo! Groups Sponsor
ADVERTISEMENT
<http://us.ard.yahoo.com/SIG=1293010cr/M=298184.5639630.6699735.3001176/D=gr
oups/S=1705006764:HM/EXP=1103295993/A=2495208/R=0/SIG=11egg01lg/*http:/www.n
etflix.com/Default?mqso=60188914> click here
<http://us.adserver.yahoo.com/l?M=298184.5639630.6699735.3001176/D=groups/S=
:HM/A=2495208/rand=215676338>
_____
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]
<mailto:[EMAIL PROTECTED]>
* Your use of Yahoo! Groups is subject to the Yahoo!
<http://docs.yahoo.com/info/terms/> Terms of Service.
[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.

