Quantcast
Channel: aras PLM community
Viewing all articles
Browse latest Browse all 1103

Disable/Enable a cell on Relationship Grid based on a checkbox's check.

$
0
0

Hi,

Is it possible to Hide/Show a cell or disable/enable a cell on relationship grid?

I added two properties to my Relationship Itemtype. A checkbox property and an item property. While adding a relationship item I want to disable/enable item cell based on checkbox cell's check. On check the cell should be disabled/hidden.

I added a Property Event with OnEditFinish for 'checkbox' property. Code:

var no_item = getRelationshipProperty(relationshipID, propertyName);

var Cell = gridApplet.cells(relationshipID,2); //-- I am thinking that column numbers starts from 0, it is my 3rd column

if(no_item==="1")
{
    if(Cell)
    {
        //alert("Cell found");
        Cell.setEditable(false);
    }
}
else{
       if(Cell)
    {
        //alert("Cell found");
        Cell.setEditable(true);
    }
              
}

This not making the field not-editable.

Is this the correct way of disabling the cell? Please help me to solve this.

Thank you


Viewing all articles
Browse latest Browse all 1103

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>