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 --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/kGEolB/TM
--------------------------------------------------------------------~-> 

Sharing the knowledge on Axapta. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/Axapta-Knowledge-Village/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to