cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community email notifications are disrupted. While we are working to resolve, please check on your favorite boards regularly to keep up with your conversations and new topics.

How to deselect a selected row from tree selection?

MN_10661566
8-Gravel

How to deselect a selected row from tree selection?

Hi,

Is there a way to deselect a particular row from the tree selection?
I have a few selected rows in a table. But depending on an attribute of the selected row, I need to deselect it.


Example:
//All the selected rows are obtained in this these selections variable
var selections = tree.selModel.getSelections();

//The attribute "Should_not_be_Selected" represents the row which should be deselected.
for (var icount = 0; icount < selections.length; icount++) {
      if (selections[icount].data.Should_not_be_Selected === "yes") {


      //What should I do now with selections[icount] to deselect this row?


      }
}

I couldn't find any help with TableUtils or TreeHandler.

Any idea?

 

Thanks

 

1 ACCEPTED SOLUTION

Accepted Solutions
NT_10748259
5-Regular Member
(To:MN_10661566)

PTC.jca.table.Utils.selectRow("changeNotice.changeSummary", "VR:wt.doc.WTDocument:617250438", false);
PTC.jca.table.Utils.selectRow(##tableID##, ##rowsObjectOID##, false);

View solution in original post

2 REPLIES 2
NT_10748259
5-Regular Member
(To:MN_10661566)

PTC.jca.table.Utils.selectRow("changeNotice.changeSummary", "VR:wt.doc.WTDocument:617250438", false);
PTC.jca.table.Utils.selectRow(##tableID##, ##rowsObjectOID##, false);

Thanks very much @NT_10748259 

That worked. One more favor do you have any link to these functions?  I used to checked https://support.ptc.com/cs/help/windchill_hc but couldn't get these functions with the full arguments.

 

Top Tags