Domanda

I have 2 data block 'Employee' as master and 'Employee_Details' as details and 1 control block for navigation. I have used my menu and usually the default developer toolbar was not appeared. So I place a Enter-Query button to serve the purpose. I used when-button-pressed trigger.

GO_BLOCK('EMPLOYEE');
IF :System.Mode = 'NORMAL' THEN 
    Enter_Query;
ELSE
    EXECUTE_QUERY;
END IF;

In first trigger the Form goes to Enter-Query Mode. But when I pressed for Execute_Query it does not work. Rather it shows in status bar to press F8 to do query and Ctrl+q for cancel. I tried it to place the code in different button but not working. I do not want to press F8 for execute query. Why my button code not working for Executing Query? Have you any solution?

È stato utile?

Soluzione

The problem probably is that there are a few options with your trigger. One of them is if it will fire when in enter query mode. Because you are in enter-query mode right now this switch should be true. Then it will work.

The default for the switch is false, so no trigger will fire in enter-query mode.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top