Skip to main content
17-Peridot
July 13, 2021
Question

Advanced Grid: isEditable actually not working

  • July 13, 2021
  • 5 replies
  • 3938 views

Hi Folks,

 

I have an advanced grid to make editable on a user defined trigger but its not working as expected.

I have a toggle widget being used to make it enabled(editable) and again button click will change the state to false, using some functions( Expression).

Can anybody help me with troubleshooting of the same, if I have missed something?

 

Attached is the sample mashup and table file.

5 replies

5-Regular Member
July 13, 2021

It seems to be working fine at my end. Once you toggle it to right(state=true), the grid becomes editable. When you click on the button, it makes the toggle state false(using an expression) which in turn makes the grid noneditable. Can you explain the problem at your end?

TanmeyTWX17-PeridotAuthor
17-Peridot
July 13, 2021

Hi @mnarang ,

 

Same is not happening at my end. After button click (state-->false) not making the grid noneditable again.

Point to note here is, I have same Mashup and functionality running fine on another Thingworx instance.

 

5-Regular Member
July 13, 2021

And your both ThingWorx versions are the same?

TanmeyTWX17-PeridotAuthor
17-Peridot
July 13, 2021

Yes, both server's Thingworx is of same version.

I tried restarting tomcat to fix any intermediate issues but still the same.

TanmeyTWX17-PeridotAuthor
17-Peridot
July 14, 2021

Hi Experts,

Any idea what could be the fix for this weird issue? Same edit functionality is working as expected on another Thingworx composer.

 

TIA.

5-Regular Member
July 14, 2021

You might have to debug this on mashup runtime using mashup general debug and trace functionality. You need to check which particular event/call is not triggering on runtime. Or else I would suggest you open a support case for more debugging. I am not able to reproduce the issue so it's hard to tell what's the problem. Have you already tried opening up this mashup in incognito?

TanmeyTWX17-PeridotAuthor
17-Peridot
July 15, 2021

Yes, tried in Incognito mode but same result.

One observation: In all Mashups wherever Toggle widget is being used to make grid editable/non-editable, has same issues fo Thingworx server A. But same mashups are toggling editable property of grid fine in Server B. Strange!

TanmeyTWX17-PeridotAuthor
17-Peridot
July 16, 2021

Hi,

 

Could there be any reason that same widget (with same bindings) works differently in two o more thingworx platform?

TanmeyTWX17-PeridotAuthor
17-Peridot
July 19, 2021

@paic @CarlesColl 

Observation here that Widget(AdvancedGrid) itself is not consuming True/false boolean value when provided dynamically from another widget output (expression, textfield) but working fine if the isEdiatble property is set to True/False in the properties section manually.

Don't know if its Thingworx platform bug or any configuration?

 

Here's the debug snapshot of the same.

TanmeyTWX_0-1626681759491.png

 

 

Anyone any idea on this?