how do I search specific entity in grid Advanced??
‎Sep 15, 2020
07:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
‎Sep 15, 2020
07:17 AM
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
Solved! Go to Solution.
Labels:
ACCEPTED SOLUTION
Accepted Solutions
‎Sep 16, 2020
11:28 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
3 REPLIES 3
‎Sep 15, 2020
09:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
‎Sep 15, 2020
09:49 AM
Hello @RM12,
The search functionality is related to the Filter event and Query property of the Advanced Grid.
- Add a Query input parameter to the custom service returning infotable
- Edit custom service and apply the query to the infotable
- Now your service will return the queried infotable every time it is called
- Bind the Filter event of Advanced Grid to the service
- Whenever the search query changes, the service will be called
- 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
‎Sep 16, 2020
11:28 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
‎Sep 16, 2020
11:28 PM
Thank you so much for your answer! It works
‎Sep 21, 2020
01:49 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
‎Sep 21, 2020
01:49 PM
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