Preprocessor

lord_icon

Member
Greetings Talkers,In ADM(1) there were a preprocessor something like {&update} / {&new-record} / {add-record}, something that would give the status as to what the ADM were doing, a mode flag if you will. It would show if the user had pressed the ADD button or the UPDATE button on the Smart Panel. Is there a similar flag / preprocessor for ADM 2 and the toolbar?TIA
 
Hello Lord,

I don't know, what you do or do not know, so excuse me if I'm being too obvious.

The underline of the TableIO link is a list of publish/subscribe events e.g. addRecord, deleteRecord, updateRecord etc. For a detailed list of events have a look at the ADM and SmartObjects doc, the chapter on SmartLinks, SmartLinks events.

Which are procedure names in the linked SmartObject. In our case we're talking about a target browser or viewer. The actual procedures are implemented in the data visual class and some are extended in the browser and viewer classes.

To extend an event/procedure and add you're own code for that event you create a local override procedure and add code before or after the standard behavior ( RUN SUPER. ) or replace it all together.

To create an override procedure bring up the browser or viewer object. Choose the edit code icon, procedures section and new. You'll be prompted either for adding a new procedure or an override. Select override and the event/procedure from the list. HTH
 
Back
Top