Why are my posts always on one line after posting?
Which RTB version are you using ? the path seems to indicate rtb 10.1c.
In a recent RTB version I'd check if the automation toolkit can do it.
AFAIK you need to
for each rtb_object where wspace-id = myworkspace:
run rtb_nams to get the paths.
create the directories , not sure if it's required but it's in my code.
run rtb_extract_object to extract.
Don't know how to attach code here so I'll mail something .
Yes, we are still using 10.1C... Thanks, but I was hoping to directly call the procedure that is behind the menu Workspace, Workspace Maintenance, <select workspace>, File, Populate Workspace.
It is probably ./rtb/w/rtb_popws.w but it is encrypted so I have to figure out the i/o parameters. Any ideas? Probably I need the wspace-id...
If you don't mind being on an uncharted, undocumented path , r-code is partially human readable. You can see the signatures of routines.
Thanks, probably need to run it persistent and run the populate_workspace procedure...
Edit: no that is not true. probably can run it directly...
[/mls01/rtb/rtb101c/gui] strings ./rtb/w/rtb_popws.r | head -10
MAIN rtb\w\rtb_popws.w,,INPUT Pwspace-id CHARACTER
PROCEDURE start-super-proc,,INPUT pcProcName CHARACTER
It is the correct functionality but unfortunately this has a GUI in front of it. :-(
DEFINE VARIABLE Merror AS CHARACTER NO-UNDO.
DEFINE VARIABLE MhStatus AS HANDLE NO-UNDO.
DEFINE VARIABLE Mok AS LOGICAL NO-UNDO.
MESSAGE SUBSTITUTE("Populate module(s) '&1' in workspace '&2'?",Mmodule,Pwspace-id)
VIEW-AS ALERT-BOX WARNING
IF Mok THEN DO:
Display status window
IF CONNECTED("rtb":U) THEN DO:
RUN hideObject IN SOURCE-PROCEDURE.
MhStatus = DYNAMIC-FUNCTION('fnRtbRunWindowOnce':U,"rtb/w/rtb_procstat.w").
RUN rtb_set_window_title IN MhStatus (INPUT Malert-title).
Merror = DYNAMIC-FUNCTION('fnRtbPopulateWorkspace':U IN h_rtb_u_ws,Pwspace-id,Mmodule).
IF VALID-HANDLE(MhStatus) THEN DO:
RUN destroyObject IN MhStatus.
MhStatus = ?.
RUN viewObject IN SOURCE-PROCEDURE.
IF Merror <> "" THEN
VIEW-AS ALERT-BOX ERROR
MESSAGE SUBSTITUTE("Module '&1' in workspace '&2' successfully populated.",Mmodule,Pwspace-id)
VIEW-AS ALERT-BOX INFO
END. /* Mok */
Roundtable Product Architect
As long as Roundtable is running, you should just be able to execute this code as the Workspace procedure library is running super to the session.
Follow-up question. Is it also possible to populate to a different directory other than the workspace directory?
Hi Simon. No, not from the Populate Workspace routine.
You could create a Deployment which lets your specify the output directory. The Automation Toolkit has an API to help with Deployments.