Disable add action on table for M2M

Whenever M:M grid is added to the form view the Add is always present

This is when no item added

This is when at least one item is added

In my case addition of item is implemented by separate rule using "create new related record with relationship" .

In my context the add action will lead wrong relationship because this out of box action is equivalent to "create relationship"

So I dont want "Add" to appear or at least it should be disabled.

What is a way to achieve this?

Best regards,

Uday Joshi

Parents
  • 0  

    Hi Uday,

    There is no ability to remove the add menu item from the form once you've added a Many2Many association to the Records Form. What you can do is control who has the ability to edit the records using business rules.

    For instance you could have a validation rule that prevents a user from creating a new relationship. So even though they click add and choose the Request to be added when the system tries to save this is prevented and an error message is shown based upon the criteria you set say they are part of a particular group or something similar.

    It's worth referring to the following doc link about validation rule:

    OpenText Documentation Portal (microfocus.com)

    Also take a look at what you can do around using the following expression for Many2Many:

    Thanks,

    Dave

  • 0 in reply to   

    Hi Dave,

    Thanks for the suggestion. 

    Let me try to see whether it serves my requirement.

    Regards,

    Uday

Reply Children
No Data