It is better if you dont make them mandatory in the form(using the
property). But write the code on the PurchLine table, validatewrite method
or in the validatewrite method of the datasource/purchline/validatewrite
method
cheers,
Girish
-----Original Message-----
From: ottawa_m2003 [mailto:[EMAIL PROTECTED]
Sent: 13 October 2004 22:17
To: [EMAIL PROTECTED]
Subject: [development-axapta] How to make Costcenter field mandatory at
runtime
Hi,
I am trying to make Costcenter dimension field mandatory in PO lines.
I have two types of Items say A and B. A requires Costcenter
mandatory, but B does not require mandatory.
I wrote this code. But its not working.
1. I made the field as mandatory in the form. I override validate
method with the following code on the StrEdit::dimension[2] in the
grid..
boolean validate()
{
boolean ret;
if ( this.ItemID == 'A' )
this.mandatory(true);
else
this.mandatory(false);
}
But it seems not working. Can anyone tell me how to
make "costcenter" ( column ) in the form mandatory at runtime with
respect to PO lines ( rows ) of the form.
Appreciate your help.
thanks,
Ottawa
Yahoo! Groups Sponsor
ADVERTISEMENT
----------------------------------------------------------------------------
--
Yahoo! Groups Links
a.. To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
b.. To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
c.. Your use of Yahoo! Groups is subject to the Yahoo! 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.

