Structure of object

powerbuilder-logo

-- INTERNAL --

a beas object is inherited from beas.pbl.ue_userobject

Use only of_funktion

Don't use all other pre registered functions. This is History!!!

 

 

Every call execute the of_funktion with ONE parameter

Normal: command=property

 

We've different calls

 

System calls: init, click, doubleclick and lot of more

if the system call a system call, the variable ib_innerevent = true

 

Example APS Browser

 

// APS Browser
string ls_parm
ls_parm=as_bef
as_bef=inv.of_gettoken(ls_parm)
 
if ib_innerevent then    return no_action // we don't need system calls
 
choose case as_bef
   case "apsstatus"
      return(of_getapsstatus( ))
   case "mark","markall"
      return(of_markall(iws.wf_convert(ls_parm)))

   case else
      gapp.of_meldung("error","wrong method/property "+as_bef)
      return 1   
end choose

return no_action // imporant: Return always no_action, if the object do nothing

 

For all other function return success (1) or error (-1)