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

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

I want to create a Checkbox to select a row in a grid..? Is it possible..?

mnalla
7-Bedrock

I want to create a Checkbox to select a row in a grid..? Is it possible..?

with the help of it I want execute some actions such as edit and delete..?

ACCEPTED SOLUTION

Accepted Solutions
liliu
8-Gravel
(To:mnalla)

Hi Nalla,

What your screenshot displayed is our composer page, not mashup or widgets, which means we cannot have an exactly the same design on your mashup. I designed a sample that may work for you.

1. Create a State Definition named TableControler

2. Create a Mashup and add Radio button  and Grid widgets on the mashup

     The Grid should be set up as my first replay.

     The Radio button should bind TableControler for it's ButtonStates

3. Customized service to response delete and update event is very important. My customized service named UpdateorDelete

4. Bind Radio Button's Selected Text to UpdateorDelete's input parameter

     Bind Radio Button's SelectionChanged event to UpdateorDelete service

     Bind Grid's EditedTable to UpdateorDelete service

     Bind UpdateorDelete's ServiceInvokeCompleted event to GetDataTableEntries.

The run time page is like this.

Best Regards,

Lily

View solution in original post

6 REPLIES 6
liliu
8-Gravel
(To:mnalla)

Hi Nalla,

Yes, it' is possible.

You may need to add a boolean colum for your table first and check this colum is editable.

My sample: Checkbox is boolean type. And the default is false. (I set Checkbox default value to be false)

Also please check the IsEditahble for the grid

Bind the editedTable to the service that can upate the datatable. (Your customized service).

Should you have any concern, please just let ne know.

Best Regards,

Lily

mnalla
7-Bedrock
(To:liliu)

Hi Li,

ThankYou for the response.

My requirement is as shown in figure. I want to create such buttons and boxes.doubt.PNG

liliu
8-Gravel
(To:mnalla)

Hi Nalla,

What your screenshot displayed is our composer page, not mashup or widgets, which means we cannot have an exactly the same design on your mashup. I designed a sample that may work for you.

1. Create a State Definition named TableControler

2. Create a Mashup and add Radio button  and Grid widgets on the mashup

     The Grid should be set up as my first replay.

     The Radio button should bind TableControler for it's ButtonStates

3. Customized service to response delete and update event is very important. My customized service named UpdateorDelete

4. Bind Radio Button's Selected Text to UpdateorDelete's input parameter

     Bind Radio Button's SelectionChanged event to UpdateorDelete service

     Bind Grid's EditedTable to UpdateorDelete service

     Bind UpdateorDelete's ServiceInvokeCompleted event to GetDataTableEntries.

The run time page is like this.

Best Regards,

Lily

mnalla
7-Bedrock
(To:liliu)

Hi Li,

Many thanks for the response. I am able to create checkbox now. But I am new to Thingworx. I don't Know how to write code to create services in thingworx. Is there any basic material to create services so after that I can create the services. because I have to add more options. please provide the code that you have used while creating the DeleteOrUpdate service

regards,

madhu

liliu
8-Gravel
(To:mnalla)

Hi Madhu,

The customized service is javascript. I suggest you to learn some JS and it's program.

BR,

Lily

mnalla
7-Bedrock
(To:mnalla)

Hi Li,

I am able to delete and update a row by selecting. at the same time, Is it possible to add data and

I tried checkbox as key to delete a row but I have not successful in that can you suggest me anything

Regards,

madhu

Announcements


Top Tags