Feature Rich
Rapid Application Development
Helping you or your customers
Manage their Business

All Commands All Other
Commands

FORGET

This will tell the system to remove a query from cache.

When you run a query on a page, the system will cache the results of the query so that it doesn't need to reload it if you use it again.

Sometimes this can cause a problem if you are adding objects or relationships that effect the result of that query.

e.g.
You run a query to check if there are any objects linked to the current page.
Because there are not, you then use the REL_ADD() command to link an object.
You then list the linked objects using the same query you used to check if any were present.
The system wont list the the linked objects as it still thinks that they are not linked because that was the situation when the query was first run.

Running the FORGET() command for the current object and the original query after you have added the links and before you display the items will solve the problem.

Number Name Default Type Description
1 obj_id Current Object ID Integer The root ID of the query
2 query String The query to forget
- page_num 0 Integer The page number used in the original query, if applicable.
- page_size 0 Integer The page size used in the original query, if applicable.
to add a Comment.