Hiding/showing columns in relationship grid based on field values

How can I hide/show columns in the relationship grid based on the changes in the dropdown box of the parent form?

Parents
  • Hello Alexis,

    If you want to hide columns of relationship use following code.

    Hide Column:

    parent.findCurrentRelationshipsTab().document.getElementById('gridTD').children[1].getElementsByTagName('th')[ColumnIndex].setAttribute('style','display:none;');

    Show Column:

    parent.findCurrentRelationshipsTab().document.getElementById('gridTD').children[1].getElementsByTagName('th')[ColumnIndex].setAttribute('style','text-align:left;text-align:center;width:100px');

    Thanks,

    Praful Gurav

Reply
  • Hello Alexis,

    If you want to hide columns of relationship use following code.

    Hide Column:

    parent.findCurrentRelationshipsTab().document.getElementById('gridTD').children[1].getElementsByTagName('th')[ColumnIndex].setAttribute('style','display:none;');

    Show Column:

    parent.findCurrentRelationshipsTab().document.getElementById('gridTD').children[1].getElementsByTagName('th')[ColumnIndex].setAttribute('style','text-align:left;text-align:center;width:100px');

    Thanks,

    Praful Gurav

Children
No Data