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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

On clicking checkbox need to add filed in chart

bgupta-2
10-Marble

On clicking checkbox need to add filed in chart

Hi,

On clicking checkbox need to add filed in chart .If we uncheck check box. so respected field should remove from chart.

Capture.PNG

10 REPLIES 10
liliu
12-Amethyst
(To:bgupta-2)

Hi  Bhuwaneshwar,

You need a customized service. Please check my sample.

Sorry, I was in a hurry, and if the sample is not detial enough, just let me know

Lily

Hi Li Li Liu,

Thanks.Can U send me each step? I am missing something.

Hi Li Li Liu,


Can you provide me each step?


ankigupta
12-Amethyst
(To:bgupta-2)

Hi Bhuwaneshwar Gupta​,

You need to actually play with the Infotable.

1. Take the checkbox(s) as input parameters for a Service.

2. In the service; get the call the service to retrieve the data like getDataTableEntries.

3. Now based on what is unchecked; remove the field/column from the infotable.

4. Now in Mashup; bind the service with TimeSeries chart.

Hi Ankit,

As mentioned step done already, I am getting error during testing service . Kindly go through attached screen shot.

Capture.PNGCapture2.PNGCapture3.PNG

ankigupta
12-Amethyst
(To:bgupta-2)

Hi Bhuwaneshwar Gupta

Is chartTable a dataTable? If you are using some other entity for data; call the corresponding service to get the Data in the Infotable.

If it's a DataTable, service name is GetDataTableEntries.

Thanks Aniket,

I have tried using Datatable that error is not showing but nothing showing on chart.Capture4.PNG

ankigupta
12-Amethyst
(To:bgupta-2)

Bhuwaneshwar Gupta​, There is no option for x axis. Does the infotable have one column as DateTime?

Second if we run the service by testing in the Thing; does it return data?

NO data on running service.

ankigupta
12-Amethyst
(To:bgupta-2)

Try adding Data to the DataTable so that it shows in the TimeSeriesChart

Announcements


Top Tags