b-korr-artbw.w 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548
  1. &ANALYZE-SUSPEND _VERSION-NUMBER UIB_v8r12 GUI ADM1
  2. &ANALYZE-RESUME
  3. /* Connected Databases
  4. anadat PROGRESS
  5. */
  6. &Scoped-define WINDOW-NAME CURRENT-WINDOW
  7. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CUSTOM _DEFINITIONS B-table-Win
  8. /*------------------------------------------------------------------------
  9. File:
  10. Description: from BROWSER.W - Basic SmartBrowser Object Template
  11. Input Parameters:
  12. <none>
  13. Output Parameters:
  14. <none>
  15. ------------------------------------------------------------------------*/
  16. /* This .W file was created with the Progress UIB. */
  17. /*----------------------------------------------------------------------*/
  18. /* Create an unnamed pool to store all the widgets created
  19. by this procedure. This is a good default which assures
  20. that this procedure's triggers and internal procedures
  21. will execute in this procedure's storage, and that proper
  22. cleanup will occur on deletion of the procedure. */
  23. CREATE WIDGET-POOL.
  24. /* *************************** Definitions ************************** */
  25. /* Parameters Definitions --- */
  26. /* Local Variable Definitions --- */
  27. DEF VAR VText AS CHAR FORMAT "x(30)" NO-UNDO.
  28. DEF VAR Vorhanden AS LOG NO-UNDO.
  29. /* ---------- Globale Variablen ---------------------------------- */
  30. { v8/globvar.i" " " " "SHARED" }
  31. { v8/debivar.i " " " " "SHARED" }
  32. { v8/artivar.i " " " " "SHARED" }
  33. { v8/contvar.i " " " " "SHARED" }
  34. /* _UIB-CODE-BLOCK-END */
  35. &ANALYZE-RESUME
  36. &ANALYZE-SUSPEND _UIB-PREPROCESSOR-BLOCK
  37. /* ******************** Preprocessor Definitions ******************** */
  38. &Scoped-define PROCEDURE-TYPE SmartBrowser
  39. &Scoped-define DB-AWARE no
  40. &Scoped-define ADM-SUPPORTED-LINKS Record-Source,Record-Target,TableIO-Target
  41. /* Name of first Frame and/or Browse and/or first Query */
  42. &Scoped-define FRAME-NAME F-Main
  43. &Scoped-define BROWSE-NAME br_Artbw
  44. /* External Tables */
  45. &Scoped-define EXTERNAL-TABLES Artst
  46. &Scoped-define FIRST-EXTERNAL-TABLE Artst
  47. /* Need to scope the external tables to this procedure */
  48. DEFINE QUERY external_tables FOR Artst.
  49. /* Internal Tables (found by Frame, Query & Browse Queries) */
  50. &Scoped-define INTERNAL-TABLES Artbw
  51. /* Define KEY-PHRASE in case it is used by any query. */
  52. &Scoped-define KEY-PHRASE TRUE
  53. /* Definitions for BROWSE br_Artbw */
  54. &Scoped-define FIELDS-IN-QUERY-br_Artbw Artbw.Artnr Artbw.Inhalt Artbw.Jahr ~
  55. Artbw.Bez1 Artbw.Tr_Art VText @ VText Artbw.Datum Artbw.KGeb_Me ~
  56. Artbw.VGeb_Me Artbw.GGeb_Me Artbw.Lager
  57. &Scoped-define ENABLED-FIELDS-IN-QUERY-br_Artbw
  58. &Scoped-define OPEN-QUERY-br_Artbw OPEN QUERY br_Artbw FOR EACH Artbw WHERE Artbw.Firma = Artst.Firma ~
  59. AND Artbw.Artnr = Artst.Artnr NO-LOCK ~
  60. ~{&SORTBY-PHRASE}.
  61. &Scoped-define TABLES-IN-QUERY-br_Artbw Artbw
  62. &Scoped-define FIRST-TABLE-IN-QUERY-br_Artbw Artbw
  63. /* Definitions for FRAME F-Main */
  64. /* Standard List Definitions */
  65. &Scoped-Define ENABLED-OBJECTS br_Artbw RECT-1
  66. /* Custom List Definitions */
  67. /* List-1,List-2,List-3,List-4,List-5,List-6 */
  68. /* _UIB-PREPROCESSOR-BLOCK-END */
  69. &ANALYZE-RESUME
  70. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _XFTR "Foreign Keys" B-table-Win _INLINE
  71. /* Actions: ? adm/support/keyedit.w ? ? ? */
  72. /* STRUCTURED-DATA
  73. <KEY-OBJECT>
  74. &BROWSE-NAME
  75. </KEY-OBJECT>
  76. <FOREIGN-KEYS>
  77. FRW||y|AnaDat.Artbw.FRW
  78. Firma||y|AnaDat.Artbw.Firma
  79. Trnr||y|AnaDat.Artbw.Trnr
  80. </FOREIGN-KEYS>
  81. <EXECUTING-CODE>
  82. **************************
  83. * Set attributes related to FOREIGN KEYS
  84. */
  85. RUN set-attribute-list (
  86. 'Keys-Accepted = ,
  87. Keys-Supplied = "FRW,Firma,Trnr"':U).
  88. /* Tell the ADM to use the OPEN-QUERY-CASES. */
  89. &Scoped-define OPEN-QUERY-CASES RUN dispatch ('open-query-cases':U).
  90. /**************************
  91. </EXECUTING-CODE> */
  92. /* _UIB-CODE-BLOCK-END */
  93. &ANALYZE-RESUME
  94. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _XFTR "Advanced Query Options" B-table-Win _INLINE
  95. /* Actions: ? adm/support/advqedit.w ? ? ? */
  96. /* STRUCTURED-DATA
  97. <KEY-OBJECT>
  98. &BROWSE-NAME
  99. </KEY-OBJECT>
  100. <SORTBY-OPTIONS>
  101. </SORTBY-OPTIONS>
  102. <SORTBY-RUN-CODE>
  103. ************************
  104. * Set attributes related to SORTBY-OPTIONS */
  105. RUN set-attribute-list (
  106. 'SortBy-Options = ""':U).
  107. /************************
  108. </SORTBY-RUN-CODE>
  109. <FILTER-ATTRIBUTES>
  110. </FILTER-ATTRIBUTES> */
  111. /* _UIB-CODE-BLOCK-END */
  112. &ANALYZE-RESUME
  113. /* *********************** Control Definitions ********************** */
  114. /* Definitions of the field level widgets */
  115. DEFINE RECTANGLE RECT-1
  116. EDGE-PIXELS 2 GRAPHIC-EDGE NO-FILL
  117. SIZE 114 BY 10.48.
  118. /* Query definitions */
  119. &ANALYZE-SUSPEND
  120. DEFINE QUERY br_Artbw FOR
  121. Artbw SCROLLING.
  122. &ANALYZE-RESUME
  123. /* Browse definitions */
  124. DEFINE BROWSE br_Artbw
  125. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _DISPLAY-FIELDS br_Artbw B-table-Win _STRUCTURED
  126. QUERY br_Artbw NO-LOCK DISPLAY
  127. Artbw.Artnr FORMAT "999999":U
  128. Artbw.Inhalt FORMAT "9999":U
  129. Artbw.Jahr FORMAT "9999":U
  130. Artbw.Bez1 COLUMN-LABEL "Artikel" FORMAT "x(25)":U
  131. Artbw.Tr_Art COLUMN-LABEL "BA" FORMAT "99":U
  132. VText @ VText COLUMN-LABEL "Transaktionsart" FORMAT "x(20)":U
  133. Artbw.Datum FORMAT "99.99.9999":U
  134. Artbw.KGeb_Me COLUMN-LABEL "KGeb" FORMAT "zzzz9-":U
  135. Artbw.VGeb_Me COLUMN-LABEL "VGeb" FORMAT "zzzz9-":U
  136. Artbw.GGeb_Me COLUMN-LABEL "GGeb" FORMAT "zzzz9-":U
  137. Artbw.Lager COLUMN-LABEL "LG" FORMAT "99":U
  138. /* _UIB-CODE-BLOCK-END */
  139. &ANALYZE-RESUME
  140. WITH NO-ASSIGN NO-ROW-MARKERS SEPARATORS SIZE 112 BY 10
  141. BGCOLOR 15 .
  142. /* ************************ Frame Definitions *********************** */
  143. DEFINE FRAME F-Main
  144. br_Artbw AT ROW 1.48 COL 3
  145. RECT-1 AT ROW 1.24 COL 2
  146. WITH 1 DOWN NO-BOX KEEP-TAB-ORDER OVERLAY
  147. SIDE-LABELS NO-UNDERLINE THREE-D
  148. AT COL 1 ROW 1 SCROLLABLE .
  149. /* *********************** Procedure Settings ************************ */
  150. &ANALYZE-SUSPEND _PROCEDURE-SETTINGS
  151. /* Settings for THIS-PROCEDURE
  152. Type: SmartBrowser
  153. External Tables: AnaDat.Artst
  154. Allow: Basic,Browse
  155. Frames: 1
  156. Add Fields to: EXTERNAL-TABLES
  157. Other Settings: PERSISTENT-ONLY COMPILE
  158. */
  159. /* This procedure should always be RUN PERSISTENT. Report the error, */
  160. /* then cleanup and return. */
  161. IF NOT THIS-PROCEDURE:PERSISTENT THEN DO:
  162. MESSAGE "{&FILE-NAME} should only be RUN PERSISTENT.":U
  163. VIEW-AS ALERT-BOX ERROR BUTTONS OK.
  164. RETURN.
  165. END.
  166. &ANALYZE-RESUME _END-PROCEDURE-SETTINGS
  167. /* ************************* Create Window ************************** */
  168. &ANALYZE-SUSPEND _CREATE-WINDOW
  169. /* DESIGN Window definition (used by the UIB)
  170. CREATE WINDOW B-table-Win ASSIGN
  171. HEIGHT = 11
  172. WIDTH = 117.2.
  173. /* END WINDOW DEFINITION */
  174. */
  175. &ANALYZE-RESUME
  176. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CUSTOM _INCLUDED-LIB B-table-Win
  177. /* ************************* Included-Libraries *********************** */
  178. {src/adm/method/browser.i}
  179. /* _UIB-CODE-BLOCK-END */
  180. &ANALYZE-RESUME
  181. /* *********** Runtime Attributes and AppBuilder Settings *********** */
  182. &ANALYZE-SUSPEND _RUN-TIME-ATTRIBUTES
  183. /* SETTINGS FOR WINDOW B-table-Win
  184. NOT-VISIBLE,,RUN-PERSISTENT */
  185. /* SETTINGS FOR FRAME F-Main
  186. NOT-VISIBLE Size-to-Fit */
  187. /* BROWSE-TAB br_Artbw 1 F-Main */
  188. ASSIGN
  189. FRAME F-Main:SCROLLABLE = FALSE
  190. FRAME F-Main:HIDDEN = TRUE.
  191. /* _RUN-TIME-ATTRIBUTES-END */
  192. &ANALYZE-RESUME
  193. /* Setting information for Queries and Browse Widgets fields */
  194. &ANALYZE-SUSPEND _QUERY-BLOCK BROWSE br_Artbw
  195. /* Query rebuild information for BROWSE br_Artbw
  196. _TblList = "AnaDat.Artbw WHERE AnaDat.Artst ..."
  197. _Options = "NO-LOCK KEY-PHRASE SORTBY-PHRASE"
  198. _JoinCode[1] = "Artbw.Firma = Artst.Firma
  199. AND Artbw.Artnr = Artst.Artnr"
  200. _FldNameList[1] = AnaDat.Artbw.Artnr
  201. _FldNameList[2] = AnaDat.Artbw.Inhalt
  202. _FldNameList[3] = AnaDat.Artbw.Jahr
  203. _FldNameList[4] > AnaDat.Artbw.Bez1
  204. "Artbw.Bez1" "Artikel" "x(25)" "character" ? ? ? ? ? ? no ? no no ? yes no no "U" "" ""
  205. _FldNameList[5] > AnaDat.Artbw.Tr_Art
  206. "Artbw.Tr_Art" "BA" ? "integer" ? ? ? ? ? ? no ? no no ? yes no no "U" "" ""
  207. _FldNameList[6] > "_<CALC>"
  208. "VText @ VText" "Transaktionsart" "x(20)" ? ? ? ? ? ? ? no ? no no ? yes no no "U" "" ""
  209. _FldNameList[7] = AnaDat.Artbw.Datum
  210. _FldNameList[8] > AnaDat.Artbw.KGeb_Me
  211. "Artbw.KGeb_Me" "KGeb" "zzzz9-" "decimal" ? ? ? ? ? ? no ? no no ? yes no no "U" "" ""
  212. _FldNameList[9] > AnaDat.Artbw.VGeb_Me
  213. "Artbw.VGeb_Me" "VGeb" "zzzz9-" "decimal" ? ? ? ? ? ? no ? no no ? yes no no "U" "" ""
  214. _FldNameList[10] > AnaDat.Artbw.GGeb_Me
  215. "Artbw.GGeb_Me" "GGeb" "zzzz9-" "decimal" ? ? ? ? ? ? no ? no no ? yes no no "U" "" ""
  216. _FldNameList[11] > AnaDat.Artbw.Lager
  217. "Artbw.Lager" "LG" ? "integer" ? ? ? ? ? ? no ? no no ? yes no no "U" "" ""
  218. _Query is NOT OPENED
  219. */ /* BROWSE br_Artbw */
  220. &ANALYZE-RESUME
  221. &ANALYZE-SUSPEND _QUERY-BLOCK FRAME F-Main
  222. /* Query rebuild information for FRAME F-Main
  223. _Options = "NO-LOCK"
  224. _Query is NOT OPENED
  225. */ /* FRAME F-Main */
  226. &ANALYZE-RESUME
  227. /* ************************ Control Triggers ************************ */
  228. &Scoped-define BROWSE-NAME br_Artbw
  229. &Scoped-define SELF-NAME br_Artbw
  230. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CONTROL br_Artbw B-table-Win
  231. ON ROW-DISPLAY OF br_Artbw IN FRAME F-Main
  232. DO:
  233. RUN ANZEIGE.
  234. END.
  235. /* _UIB-CODE-BLOCK-END */
  236. &ANALYZE-RESUME
  237. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CONTROL br_Artbw B-table-Win
  238. ON ROW-ENTRY OF br_Artbw IN FRAME F-Main
  239. DO:
  240. {src/adm/template/brsentry.i}
  241. END.
  242. /* _UIB-CODE-BLOCK-END */
  243. &ANALYZE-RESUME
  244. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CONTROL br_Artbw B-table-Win
  245. ON ROW-LEAVE OF br_Artbw IN FRAME F-Main
  246. DO:
  247. {src/adm/template/brsleave.i}
  248. END.
  249. /* _UIB-CODE-BLOCK-END */
  250. &ANALYZE-RESUME
  251. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CONTROL br_Artbw B-table-Win
  252. ON VALUE-CHANGED OF br_Artbw IN FRAME F-Main
  253. DO:
  254. {src/adm/template/brschnge.i}
  255. END.
  256. /* _UIB-CODE-BLOCK-END */
  257. &ANALYZE-RESUME
  258. &UNDEFINE SELF-NAME
  259. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CUSTOM _MAIN-BLOCK B-table-Win
  260. /* *************************** Main Block *************************** */
  261. &IF DEFINED(UIB_IS_RUNNING) <> 0 &THEN
  262. RUN dispatch IN THIS-PROCEDURE ('initialize':U).
  263. &ENDIF
  264. /* _UIB-CODE-BLOCK-END */
  265. &ANALYZE-RESUME
  266. /* ********************** Internal Procedures *********************** */
  267. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE adm-open-query-cases B-table-Win adm/support/_adm-opn.p
  268. PROCEDURE adm-open-query-cases :
  269. /*------------------------------------------------------------------------------
  270. Purpose: Opens different cases of the query based on attributes
  271. such as the 'Key-Name', or 'SortBy-Case'
  272. Parameters: <none>
  273. ------------------------------------------------------------------------------*/
  274. /* No Foreign keys are accepted by this SmartObject. */
  275. {&OPEN-QUERY-{&BROWSE-NAME}}
  276. END PROCEDURE.
  277. /* _UIB-CODE-BLOCK-END */
  278. &ANALYZE-RESUME
  279. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE adm-row-available B-table-Win _ADM-ROW-AVAILABLE
  280. PROCEDURE adm-row-available :
  281. /*------------------------------------------------------------------------------
  282. Purpose: Dispatched to this procedure when the Record-
  283. Source has a new row available. This procedure
  284. tries to get the new row (or foriegn keys) from
  285. the Record-Source and process it.
  286. Parameters: <none>
  287. ------------------------------------------------------------------------------*/
  288. /* Define variables needed by this internal procedure. */
  289. {src/adm/template/row-head.i}
  290. /* Create a list of all the tables that we need to get. */
  291. {src/adm/template/row-list.i "Artst"}
  292. /* Get the record ROWID's from the RECORD-SOURCE. */
  293. {src/adm/template/row-get.i}
  294. /* FIND each record specified by the RECORD-SOURCE. */
  295. {src/adm/template/row-find.i "Artst"}
  296. /* Process the newly available records (i.e. display fields,
  297. open queries, and/or pass records on to any RECORD-TARGETS). */
  298. {src/adm/template/row-end.i}
  299. END PROCEDURE.
  300. /* _UIB-CODE-BLOCK-END */
  301. &ANALYZE-RESUME
  302. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE ANZEIGE B-table-Win
  303. PROCEDURE ANZEIGE :
  304. /*------------------------------------------------------------------------------
  305. Purpose:
  306. Parameters: <none>
  307. Notes:
  308. ------------------------------------------------------------------------------*/
  309. VText = ''.
  310. IF NOT AVAILABLE Artbw THEN RETURN.
  311. FIND Tabel USE-INDEX Tabel-k1
  312. WHERE Tabel.Firma = GVFirma
  313. AND Tabel.RecArt = 'LAGKORR'
  314. AND Tabel.CodeC = ''
  315. AND Tabel.CodeI = Artbw.Tr_Art
  316. AND Tabel.Sprcd = 0 NO-LOCK NO-ERROR.
  317. IF AVAILABLE Tabel THEN VText = Tabel.Bez1.
  318. ELSE VText = FILL('?', 10).
  319. END PROCEDURE.
  320. /* _UIB-CODE-BLOCK-END */
  321. &ANALYZE-RESUME
  322. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE disable_UI B-table-Win _DEFAULT-DISABLE
  323. PROCEDURE disable_UI :
  324. /*------------------------------------------------------------------------------
  325. Purpose: DISABLE the User Interface
  326. Parameters: <none>
  327. Notes: Here we clean-up the user-interface by deleting
  328. dynamic widgets we have created and/or hide
  329. frames. This procedure is usually called when
  330. we are ready to "clean-up" after running.
  331. ------------------------------------------------------------------------------*/
  332. /* Hide all frames. */
  333. HIDE FRAME F-Main.
  334. IF THIS-PROCEDURE:PERSISTENT THEN DELETE PROCEDURE THIS-PROCEDURE.
  335. END PROCEDURE.
  336. /* _UIB-CODE-BLOCK-END */
  337. &ANALYZE-RESUME
  338. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE local-open-query B-table-Win
  339. PROCEDURE local-open-query :
  340. /*------------------------------------------------------------------------------
  341. Purpose: Override standard ADM method
  342. Notes:
  343. ------------------------------------------------------------------------------*/
  344. IF NUM-RESULTS('Br_Artbw':U) <> ? THEN CLOSE QUERY Br_Artbw.
  345. Vorhanden = FALSE.
  346. IF NOT AVAILABLE Artst THEN RETURN.
  347. OPEN QUERY Br_Artbw
  348. FOR EACH Artbw USE-INDEX Artbw-k7
  349. WHERE Artbw.Firma = Artst.Firma
  350. AND Artbw.Artnr = Artst.Artnr
  351. AND Artbw.Inhalt = Artst.Inhalt
  352. AND Artbw.Jahr = Artst.Jahr
  353. AND Artbw.Tr_Art > 10
  354. AND Artbw.Tr_Art < 21
  355. AND Artbw.Knr = 0 NO-LOCK.
  356. DO WHILE TRUE WITH FRAME {&FRAME-NAME}:
  357. IF NUM-RESULTS('Br_Artbw':U) = ? THEN LEAVE.
  358. IF NUM-RESULTS('Br_Artbw':U) = 0 THEN LEAVE.
  359. Vorhanden = TRUE.
  360. LEAVE.
  361. END.
  362. END PROCEDURE.
  363. /* _UIB-CODE-BLOCK-END */
  364. &ANALYZE-RESUME
  365. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE send-key B-table-Win adm/support/_key-snd.p
  366. PROCEDURE send-key :
  367. /*------------------------------------------------------------------------------
  368. Purpose: Sends a requested KEY value back to the calling
  369. SmartObject.
  370. Parameters: <see adm/template/sndkytop.i>
  371. ------------------------------------------------------------------------------*/
  372. /* Define variables needed by this internal procedure. */
  373. {src/adm/template/sndkytop.i}
  374. /* Return the key value associated with each key case. */
  375. {src/adm/template/sndkycas.i "FRW" "Artbw" "FRW"}
  376. {src/adm/template/sndkycas.i "Firma" "Artbw" "Firma"}
  377. {src/adm/template/sndkycas.i "Trnr" "Artbw" "Trnr"}
  378. /* Close the CASE statement and end the procedure. */
  379. {src/adm/template/sndkyend.i}
  380. END PROCEDURE.
  381. /* _UIB-CODE-BLOCK-END */
  382. &ANALYZE-RESUME
  383. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE send-records B-table-Win _ADM-SEND-RECORDS
  384. PROCEDURE send-records :
  385. /*------------------------------------------------------------------------------
  386. Purpose: Send record ROWID's for all tables used by
  387. this file.
  388. Parameters: see template/snd-head.i
  389. ------------------------------------------------------------------------------*/
  390. /* Define variables needed by this internal procedure. */
  391. {src/adm/template/snd-head.i}
  392. /* For each requested table, put it's ROWID in the output list. */
  393. {src/adm/template/snd-list.i "Artst"}
  394. {src/adm/template/snd-list.i "Artbw"}
  395. /* Deal with any unexpected table requests before closing. */
  396. {src/adm/template/snd-end.i}
  397. END PROCEDURE.
  398. /* _UIB-CODE-BLOCK-END */
  399. &ANALYZE-RESUME
  400. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE state-changed B-table-Win
  401. PROCEDURE state-changed :
  402. /* -----------------------------------------------------------
  403. Purpose:
  404. Parameters: <none>
  405. Notes:
  406. -------------------------------------------------------------*/
  407. DEFINE INPUT PARAMETER p-issuer-hdl AS HANDLE NO-UNDO.
  408. DEFINE INPUT PARAMETER p-state AS CHARACTER NO-UNDO.
  409. CASE p-state:
  410. /* Object instance CASEs can go here to replace standard behavior
  411. or add new cases. */
  412. {src/adm/template/bstates.i}
  413. END CASE.
  414. END PROCEDURE.
  415. /* _UIB-CODE-BLOCK-END */
  416. &ANALYZE-RESUME