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 toolbar

vishnu - Monday, December 13, 2010 7:47 AM:

I want to add relationships programatically but block user from selecting pick related/created related from the relationship toolbar.

Is there a way to disable the relationship toolbar?

 

Thanks in advance



Brian - Monday, December 13, 2010 6:04 PM:

Hi Vishnu,

There is no way of interacting with the Relationship Toolbar.

You can do one of these:

1) Respond to the Grid Event "onInsert" and return "false". Even though the user will be able to select "New Relationship" they will not actually be able to create the relationship.

2) Replace the standard grid with a "Customisable Grid" (see Grids under Administration) and point the Relationship Type to this new grid. There are some limitations on this grid as far as "click through" to the object represented by the row.

3) Replace the standard grid with a completely custom grid similar to the "Changes" grid in the "Part" item type. This grid has a complete HTML file which defines it and the data that it displays. This grid is more responsive and gives you complete control over things like the toolbar and the click events that you don't really get to control with the "Customisable" grid. This is obviously the most work but is readily achievable. The "Changes" grid is found under your Innovator installation under "Client/Solutions/PLM/Changes" and is a good place to start experimenting.

Cheers,

Brian.



vishnu - Tuesday, December 14, 2010 7:06 AM:

I am able to block the Create Related by writing OnInsertRow method.