How to Filter child table

In Quality Inspection DocType, using a script, I’m adding the list of checks that has to be performed into a child table(Quality Inspection Reading) based on item_group.

But now, the options for each check is different. i.e., the options for a particular check should be filtered based on the check(Options are coming from another table - Quality Check Options where all the options are stored).

I’ve to use get_query to achieve the above functionality.

Struggled a lot to achieve this. Even refresh_field is not working. And finally found your(@nabinhait ) reply.

As you said, if get_query and set_query are for only manual entires, how can I add them beforehand?

Tutorial or detailed note is really appreciated.