This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - Disable relationship tab in different life-cycle state.

arif - Tuesday, January 31, 2012 5:17 AM:

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4

Hi Community,
I need to disable relationship tab when item is in specific lifecycle state.
I assigned some relationship with my “Manufacturer Part” in item type definition. In addition is item type (“Manufacturer Part”) maintain some Life-Cycle states like Released, Inactive etc. “Possible Substitute” and “Substitute Item” are two child items of “Manufacturer Part” (in figure these two tabs are marked as red rectangle).  Suppose one of the item instances of “Manufacturer Part” is in Released state (green ellipse in figure). Now user can easily add some item instances in grid under “Possible Substitute” and “Manufacturer Part”, but I have to stop it. I should allow this adding only if the parent item instance is in “Inactive” state.
Regards
Arif


fli - Tuesday, January 31, 2012 6:54 AM:

Arif,

I think this is what you need

http://www.aras.comhttp://www.aras.com/Community/forums/p/728/2199.aspx

/ Christoffer



arif - Tuesday, January 31, 2012 8:19 AM:

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4

Thank you Christoffer,
 
You have respond so early. It is really helpful and now I can successfully disable tab according to life-cycle state. Could you please tell me the way to count the number of rows in relationship grid by Javascript? Thanks again.
Regards
Arif