Skip to main content
14-Alexandrite
September 15, 2020
Solved

how do I search specific entity in grid Advanced??

  • September 15, 2020
  • 1 reply
  • 2010 views

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

 

 

Best answer by RM12

Thank you so much for your answer! It works

1 reply

5-Regular Member
September 15, 2020

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

 

RM1214-AlexandriteAuthorAnswer
14-Alexandrite
September 17, 2020

Thank you so much for your answer! It works