Under Review

how to hide relationship columns when add/edit

Hi community

In our case, I want to  hide relationship columns when add/edit, because these columns would  send to others to fill by workflow.

I have try following way, but using index to specify hidden columns will cause problems when users manually adjust their column sorting.

parent.findCurrentRelationshipsTab().grid.setColumnVisible(ColumnIndex, false, 150);

Is there a more precise way to hide specified columns?

Another question, after using the above method to hide the columns, after clicking Save, I want the hidden columns to be displayed again. What should I do? Currently, hidden columns will not be displayed after clicking Save.

Thanks very much!