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 - programmatically show hidden column on relationship tab

newcomer - Monday, August 27, 2012 6:51 AM:

Hi all,

I wrote a client method that runs when the form is populated(onFormPopulate event). In these method I want to hide/show columns from the relationship tab depending on the workflow activity.

I can hide columns. But i can't show them again. The method "grid.SetColumnVisible" does not work when I pass the value true... Has anyone experience with this function and knows what am I doing wrong?

//param: value=boolean: if true the column should be shown, if false the column should be hidden

function hideCustomerColumns(value) {
       var tabbar = parent.relationships.relTabbar;
       var tabContent = tabbar.GetTabId("Affected Program Mngt");
        tabbar.SelectTab(tabContent);
        var tab = parent.relationships.document.getElementById(tabContent);
        var grid = tab.contentWindow.document.getElementById("grid");
        var calwid = grid.GetColWidth(1);
        grid.SetColumnVisible(1,value,calwid);

...

}

Greets

newcomer



Shiva - Monday, December 17, 2012 7:11 AM:

Hello,

I am trying the exact same thing. Did you get any further with hiding and displaying the columns on the Relationship Grids?

Regards

Shiva



newcomer - Tuesday, December 18, 2012 4:13 AM:

No, unfortunately not...

Regards

newcomer