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 - How to disable toolbar on relationship?

simmatecusa - Friday, February 5, 2010 6:46 PM:

Hello, how would I identify and then disable (gray out) the lower tool bar on a relationship tab?

The main reason is we want the user to only be able view the related items for this tab of a project but not be able to pick/create a new one. There is no choice for disabling this in the standard relationship settings item, would be nice in future builds..

Anyways Im not really sure how to achieve this, any help appreciated!



Andy - Monday, February 8, 2010 2:26 PM:

You should disable "Use Source Access" on the relationship ItemType?

Then you can set seperate permissions used on the relationship ItemType to restrict Can Add, Update, and Delete.

Disabling the toolbar is not the same as diabling the actions.

~Andy



swathi_149 - Friday, February 3, 2012 1:00 AM:

Hello Andy,

I would like to know if there is any way of disabling the 'Create new' button on the relationship tab tool bar.

I am using innovator 9.3...... 

 



newcomer - Monday, July 9, 2012 9:44 AM:

I have the same problem...



Pravin Kumar - Tuesday, July 10, 2012 1:32 PM:

If the requirement is to only view related items and no need to add/create a new relationship then I suggest using the null relationship to add dummy tab on the main itemtype that will display the related items. The related item will be populated via a Grid (Administration - Grids option) OR through a Form (Admin -Forms options that will contain HTML code embeded with Grid control i.e. Aras.Client.Controls.GridContainer) which will display the related contents on this new tab.To link the newly built Grid or Form to the new tab use the null relationship itemtype view option. Good luck! Pravin

newcomer - Wednesday, July 11, 2012 3:34 PM:

I need to update the related items but deny adding and deleting them. Is there a way to add items and dates in a grid?  Like a property(cell) of type item(identity)? I never used the aras grid before... but it looks like that just strings can be entered in a grid cell. Maybe I can do this with an event that opens a searchdialog(how can I do this?). Then i could save the id of the selected item in a hidden cell and show the keyed name in the grid.

 

Has someone done something similar and  can provide me example code? Especially how to open a searchdialog via javascript and save the result in a grid cell.

 

Greets