Function invoked dynamically not found

rolguin

Member
Hi,

I have started to use dinamics, but I think I missing some step: Error message:

"User-defined function 'removeQuerySelection' invoked dinamically but could not be found. (5639)"
"User-defined function 'openQuery' invoked dinamically but could not be found. (5639)"

I have created Smart Data Object, then Smar Data Browser using the SDO.

Also I have create a button where it should apply a filter:

IF f-pono:SCREEN-VALUE <> "" THEN
DYNAMIC-FUNCTION('assignQuerySelection':U IN h_dynbrowser-2,
"po.po-number",f-pono:SCREEN-VALUE,"=").
ELSE
DYNAMIC-FUNCTION('removeQuerySelection':U IN h_dynbrowser-2,
"po.po-number","=").
DYNAMIC-FUNCTION("openQuery" IN h_dynbrowser-2).

Any comments would be much appreciated.

Thanks,

Regards,
 

RealHeavyDude

Well-Known Member
From the name of the handle h_dynbrowser-2 I suspect that you try to invoke this functions in a smart data browse of some sort (they come in static and dynamic flavors). But the functions you are invoking are not part of the browse class, they are part of the SDO (smart data object), the data source of a smart data browse.

If that's the case the error messages are expected behavior.

On a side note: Trying to learn ADM2/Dynamics by yourself with no assistance from somebody that is familiar with them will lead you to frustration because of the steep learning curve on the almost non-existent documentation. Therefore I recommend you to get some training before you actually start to do something serious.

Out of experience I can tell you that most developers I know got frustrated because their employers didn't allow them to get proper training for this frameworks.

Heavy Regards, RealHeavyDude.
 
Top