Skip to main content
12-Amethyst
July 20, 2022
Solved

Grid SelectedRows cant be set

  • July 20, 2022
  • 1 reply
  • 4284 views

I recently updated thingworx to 9.3.3.

When i set the SelectedRows source i get the following error while debugging:

13:45:54 ERROR - Runtime exception handling data update for binding {"Id":"097e2722-4c44-48f8-babd-0eaa37bbd51e","SourceId":"GetSelected","SourceArea":"Data","SourceSection":"Things_Jens Test Thing","SourceDetails":"AllData","TargetArea":"UI","TargetSection":"","TargetId":"ptcsgrid-8","PropertyMaps":[{"SourceProperty":"","SourcePropertyType":"InfoTable","SourcePropertyBaseType":"INFOTABLE","TargetProperty":"SelectedRows","TargetPropertyType":"property","TargetPropertyBaseType":"INFOTABLE"}],"isBoundToSelectedRows":false,"nEntries":1}

Exception: this.updateSelectedRowsProperty is not a function on line number 1 in file mashup-common-widgets-runtime.js?_v=9.3.3

 

i put a demonstration file in the attachments. if you change the getSelected binding to the Gridadvanced widget it works as expected. but it doesnt work on the new Grid widget.

I am missing something, or is this a bug?

Best answer by slangley

Hi @JU_10321794.

 

ThingWorx 9.3.4 is now available, and this release contains a fix for your issue.  Please check it out.

 

Regards.

 

--Sharon

 

1 reply

Support
July 21, 2022

Hi @JU_10321794.

 

We took a look at your mashup, but we're not understanding what you're trying to do.  From our initial review, it appears this can be simplified but we need to understand more.  Row selection can be controlled without the GetSelected service.

 

What is your use case?  

 

Regards.

 

--Sharon

 

 

12-Amethyst
July 22, 2022

Dear Sharon,

 

I can give you some background. I have a list of machinegroups that is present on multiple mashups.

when i select a machine group i want it to remember what machinegroup was selected, so when i load a different mashup i can set the selected machinegroup to the previous selected machinegroup.

 

the above case is just an easy way to test.

Because i am upgrading from thingworx 9.0.3 to 9.3.3, and all existing pages use the advanced grid widget(now deprecated). when upgrading to the Grid widget, the selection proces doesn't work.

 

i will add some pictures to illustrate.

case 1 is the old advanced grid widget

Case 1.PNG

case 1 result.PNG

case 2 is the new grid widget

case2.PNG

case2 with error.PNG

Regards,

Jens

Support
July 28, 2022

Hi @JU_10321794.

 

So this is a little different.  What mechanism are you using for passing your selection to the other mashup?  Are you using a session parameter or opening a popup that would open another grid?  There are other ways of doing this as well, but we need more specifics so we can test further.

 

Regards.

 

--Sharon