1 &ANALYZE-SUSPEND _VERSION-NUMBER UIB_v8r12
3 &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CUSTOM _DEFINITIONS Procedure
4 /*--------------------------------------------------------------------------
5 File
: process
/linkexpt.p
6 Purpose
: Export menu definitions
8 Syntax
: process
/linkexpt.r
( report-options
)
10 Description
: Export ProgramLinks
, LinkNodes
, UsrGroupMenus and UsrGroupMenuItems
12 Author
(s
) : Andrew McMillan
15 ------------------------------------------------------------------------*/
17 &SCOPED-DEFINE DEBUG No
19 DEF INPUT PARAMETER report-options
AS CHAR NO-UNDO.
21 /* _UIB-CODE-BLOCK-END
*/
25 &ANALYZE-SUSPEND _UIB-PREPROCESSOR-BLOCK
27 /* ******************** Preprocessor Definitions
******************** */
29 &Scoped-define PROCEDURE-TYPE Procedure
30 &Scoped-define DB-AWARE no
34 /* _UIB-PREPROCESSOR-BLOCK-END
*/
39 /* *********************** Procedure Settings
************************ */
41 &ANALYZE-SUSPEND _PROCEDURE-SETTINGS
42 /* Settings for
THIS-PROCEDURE
46 Add Fields to
: Neither
47 Other Settings
: CODE-ONLY
COMPILE
49 &ANALYZE-RESUME _END-PROCEDURE-SETTINGS
51 /* ************************* Create Window
************************** */
53 &ANALYZE-SUSPEND _CREATE-WINDOW
54 /* DESIGN Window definition
(used by the UIB
)
55 CREATE WINDOW Procedure
ASSIGN
58 /* END WINDOW DEFINITION
*/
65 &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CUSTOM _MAIN-BLOCK Procedure
68 /* *************************** Main Block
*************************** */
69 DEF VAR w1
AS WIDGET-HANDLE NO-UNDO.
70 DEF VAR prev-window
AS WIDGET-HANDLE NO-UNDO.
73 ASSIGN TITLE = "Dumping Link Tables"
79 prev-window
= CURRENT-WINDOW.
81 DO WITH FRAME default-frame
:
82 RUN prodict
/dump_d.r
( "LinkNode,ProgramLink,UsrGroup,UsrGroupMenu,UsrGroupMenuItem,UsrGroupRights", "lnk", ?
).
84 CURRENT-WINDOW = prev-window.
87 /* _UIB-CODE-BLOCK-END
*/
91 /* ********************** Internal Procedures
*********************** */
93 &IF DEFINED(EXCLUDE-export-group-menu-items) = 0 &THEN
95 &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE export-group-menu-items Procedure
96 PROCEDURE export-group-menu-items
:
97 /*------------------------------------------------------------------------------
101 ------------------------------------------------------------------------------*/
103 IF {&DEBUG} THEN MESSAGE "Exporting User Group Menu Items" VIEW-AS ALERT-BOX.
105 OUTPUT TO GPMIDATA.TXT.
107 FOR EACH UsrGroupMenuItem
NO-LOCK:
109 UsrGroupMenuItem.ButtonLabel
110 UsrGroupMenuItem.GroupName
111 UsrGroupMenuItem.LinkCode
112 UsrGroupMenuItem.MenuName
113 UsrGroupMenuItem.SequenceCode.
120 /* _UIB-CODE-BLOCK-END
*/
125 &IF DEFINED(EXCLUDE-export-group-menus) = 0 &THEN
127 &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE export-group-menus Procedure
128 PROCEDURE export-group-menus
:
129 /*------------------------------------------------------------------------------
133 ------------------------------------------------------------------------------*/
135 IF {&DEBUG} THEN MESSAGE "Exporting User Group Menus" VIEW-AS ALERT-BOX.
137 OUTPUT TO GPMNDATA.TXT.
139 FOR EACH UsrGroupMenu
NO-LOCK:
141 UsrGroupMenu.Autostart
142 UsrGroupMenu.GroupName
143 UsrGroupMenu.MenuName
144 UsrGroupMenu.NodeCode.
151 /* _UIB-CODE-BLOCK-END
*/
156 &IF DEFINED(EXCLUDE-export-link-nodes) = 0 &THEN
158 &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE export-link-nodes Procedure
159 PROCEDURE export-link-nodes
:
160 /*------------------------------------------------------------------------------
164 ------------------------------------------------------------------------------*/
166 IF {&DEBUG} THEN MESSAGE "Exporting Link Nodes" VIEW-AS ALERT-BOX.
168 OUTPUT TO NODEDATA.TXT.
170 FOR EACH LinkNode
NO-LOCK:
184 /* _UIB-CODE-BLOCK-END
*/
189 &IF DEFINED(EXCLUDE-export-program-links) = 0 &THEN
191 &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE export-program-links Procedure
192 PROCEDURE export-program-links
:
193 /*------------------------------------------------------------------------------
197 ------------------------------------------------------------------------------*/
199 IF {&DEBUG} THEN MESSAGE "Exporting Program Links" VIEW-AS ALERT-BOX.
201 OUTPUT TO LINKDATA.TXT.
203 FOR EACH ProgramLink
NO-LOCK:
205 ProgramLink.ButtonLabel
207 ProgramLink.CreateViewer
208 ProgramLink.Description
210 ProgramLink.FilterPanel
214 ProgramLink.SortPanel
224 /* _UIB-CODE-BLOCK-END
*/
229 &IF DEFINED(EXCLUDE-export-user-groups) = 0 &THEN
231 &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE export-user-groups Procedure
232 PROCEDURE export-user-groups
:
233 /*------------------------------------------------------------------------------
237 ------------------------------------------------------------------------------*/
239 IF {&DEBUG} THEN MESSAGE "Exporting User Groups" VIEW-AS ALERT-BOX.
241 OUTPUT TO USGPDATA.TXT.
243 FOR EACH UsrGroup
NO-LOCK:
246 UsrGroup.Description.
253 /* _UIB-CODE-BLOCK-END
*/