Skip to main content
13-Aquamarine
November 10, 2023
Solved

Thingworx - Grid Widget Add Rows

  • November 10, 2023
  • 1 reply
  • 942 views

Hi Team,

 

Is it possible to set the default value on the grid Add row button for a certain column?

 

Thanks in Advance

 

Vipul

Best answer by TonyZhang

Hi @Vipul_Oswal ,

 

I'm afraid this is not possible to achieve on UI.

Here are some workarounds:

  1. Use a label to give user hint about the default value for certain columns
  2. When defining Data Shape, you can configure a default value for certain columns if you wish
  3. In the implementation of add row JS service which will be triggered to persist the data after UI editing completed, check the input value and assign default value to certain columns if they were left blank (configure this column to be not editable if you wish the certain column to have fixed value rather than custom value provided by user) - once the data has been updated in the backend, refresh the grid display, the default value will be reflected on Grid

1 reply

TonyZhang16-PearlAnswer
16-Pearl
November 14, 2023

Hi @Vipul_Oswal ,

 

I'm afraid this is not possible to achieve on UI.

Here are some workarounds:

  1. Use a label to give user hint about the default value for certain columns
  2. When defining Data Shape, you can configure a default value for certain columns if you wish
  3. In the implementation of add row JS service which will be triggered to persist the data after UI editing completed, check the input value and assign default value to certain columns if they were left blank (configure this column to be not editable if you wish the certain column to have fixed value rather than custom value provided by user) - once the data has been updated in the backend, refresh the grid display, the default value will be reflected on Grid