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

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

how do I search specific entity in grid Advanced??

RM12
13-Aquamarine

how do I search specific entity in grid Advanced??

Hello,

          I'm using Thingworx 9.0 version ,I want to find specific entity in grid Advanced I have ticked EnableGridSearch property How do I search specific entity in grid advanced??please refer below attachment.

Thanks in advance

 

 

ACCEPTED SOLUTION

Accepted Solutions
RM12
13-Aquamarine
(To:emscur)

Thank you so much for your answer! It works

View solution in original post

3 REPLIES 3
emscur
12-Amethyst
(To:RM12)

Hello @RM12,

 

The search functionality is related to the Filter event and Query property of the Advanced Grid

 

  1. Add a Query input parameter to the custom service returning infotable
  2. Edit custom service and apply the query to the infotable 
    • Now your service will return the queried infotable every time it is called
  3. Bind the Filter event of Advanced Grid to the service
    • Whenever the search query changes, the service will be called
  4. Bind the Query property of Advanced Grid to the service input parameter of type Query

Find the code snippet to be implemented in your custom service below:

 

var params = {
	t: <your infotable> /* INFOTABLE */,
	query: <the input query> /* QUERY */
};

// result: INFOTABLE
var result = Resources["InfoTableFunctions"].Query(params);

 

Regards,

Emmanuel

 

RM12
13-Aquamarine
(To:emscur)

Thank you so much for your answer! It works

slangley
23-Emerald II
(To:emscur)

Hi @RM12.

 

Since you have resolved the issue, could you please mark the post from emscur as the Accepted Solution?

 

Thank you for participating in our community!

 

Regards.

 

--Sharon

Announcements


Top Tags