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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Thingworx - Grid Widget Add Rows

Vipul_Oswal
13-Aquamarine

Thingworx - Grid Widget Add Rows

Hi Team,

 

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

 

Thanks in Advance

 

Vipul

ACCEPTED SOLUTION

Accepted Solutions

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
Tony

View solution in original post

1 REPLY 1

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
Tony
Announcements


Top Tags