%EDITTABLE is field in the work record DERIVED. This field is generally used a prompt table for various fields. This field would mostly be set at the Page Activate Level or the main keys RowInit Level. This field can be used to dynamically change prompt tables.

Consider a scenario where if an employee opens a page and clicks on a prompt, then he must see details from one view whereas when a manager clicks on the prompt he must see the details from some other view. This means that we need to change the prompt table dynamically depending on the type of user.

In this scenario, you would most probably see the following code in the RowInit or Page Activate:

if <employee> then 
%EDITTABLE=3D"EMPLOYEE_VIEW"; 
else 
%EDITTABLE=3D"MANAGER_VIEW"; 
end-if;

The EDITTABLE field of the DERIVED record must be present on the current page as a read only, invisible field.

05-02 04:34