Amending the Appbuilder Window Name

picasso22

New Member
Is it possible to Launch the Appbuilder with a specific name in the window title.

I use live and test sessions, I would like the Appbuilder to show "Appbuilder (live)" and "Appbuilder (test)" as the window titles and wondered if this was possible.

Many thanks in advance...
 
It's not nice, but it does the trick for me ...

{src/adm2/globals.i}

DEFINE VARIABLE hObject AS HANDLE NO-UNDO.
DEFINE VARIABLE cSessionTypeCode AS CHARACTER NO-UNDO.
DEFINE VARIABLE cDynamicsVersion AS CHARACTER NO-UNDO.

ASSIGN hObject = SESSION:FIRST-CHILD.

WINDOW-BLK:
DO WHILE VALID-HANDLE (hObject) :

IF hObject:TYPE = 'WINDOW':U THEN DO:

IF hObject:TITLE BEGINS 'AppBuilder':U THEN DO:

ASSIGN cSessionTypeCode = DYNAMIC-FUNCTION ('getSessionParam':U IN gshSessionManager, 'ICFSESSTYPE':U)
cDynamicsVersion = DYNAMIC-FUNCTION ('getSessionParam':U IN gshSessionManager, 'DynamicsVersion':U).

ASSIGN hObject:TITLE = 'Dynamics development ' + cDynamicsVersion + ' - ':U + cSessionTypeCode.
END.

END.

ASSIGN hObject = hObject:NEXT-SIBLING.
END.
HTH, RealHeavyDude.
 
Back
Top