tools=addtolibrarylist=addon\myaddon\myaddonfile.pbd
With this feature can be added further with Powerbuilder produced librarys at run time.
Example for programming of Powerbuilder librarys:
1. Produce an AddOn:
Addon administration - right mouse button - Generate AddOn, name (example): helloworld
2. With the right Powerbuilder version set up a workspace. See: Setup Powerbuilder Workspace
Under an Add-On-list
e.g. addon\helloworld\helloworld.pbw
3. Set necessary global variables
This variable is needed:
ue_app gapp
4. Create objekt through inheritance from beas.pbd - ue_userobject
and save those under a unique name (uo_helloworld_test)
5. Deposit in function "of_funktion" now the function
e.g.
string ls_bef,ls_parm
ls_parm=as_parm
ls_bef=inv.of_gettoken(ls_parm)
choose case ls_bef
case "test"
gapp.of_meldung("info","hello world")
return success
end choose
return no_action
6. Store this in AddOn-directory
addon\helloworld\helloworld.pbl
7. Compile the library (build runtime library)
8. Expand AddOn
AddOn-administration - Hello Word - Development - ProgramLogic - AddOn - Programstart
Submit:
tools=addtolibrarylist=<global:systemtree_mandant>helloworld.pbd
object=ue_helloworld_test=test
Now appears the message "hello world" when the program starts.
All functions from this library are therefore available.
to declare your object. See "declare"