d-artlotnr.w 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588
  1. &ANALYZE-SUSPEND _VERSION-NUMBER AB_v10r12 GUI ADM2
  2. &ANALYZE-RESUME
  3. /* Connected Databases
  4. anadat PROGRESS
  5. */
  6. &Scoped-define WINDOW-NAME CURRENT-WINDOW
  7. {adecomm/appserv.i}
  8. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CUSTOM _DEFINITIONS dTables
  9. /*------------------------------------------------------------------------
  10. File:
  11. Description: from DATA.W - Template For SmartData objects in the ADM
  12. Input Parameters:
  13. <none>
  14. Output Parameters:
  15. <none>
  16. Modified: February 24, 1999
  17. ------------------------------------------------------------------------*/
  18. /* This .W file was created with the Progress AppBuilder. */
  19. /*----------------------------------------------------------------------*/
  20. /* Create an unnamed pool to store all the widgets created
  21. by this procedure. This is a good default which assures
  22. that this procedure's triggers and internal procedures
  23. will execute in this procedure's storage, and that proper
  24. cleanup will occur on deletion of the procedure. */
  25. CREATE WIDGET-POOL.
  26. /* *************************** Definitions ************************** */
  27. /* Parameters Definitions --- */
  28. /* Local Variable Definitions --- */
  29. DEF VAR iLager AS INT INIT 0 NO-UNDO.
  30. &SCOPED-DEFINE Tabelle ArtLotnr
  31. &SCOPED-DEFINE TabWhere USE-INDEX ArtLotnr-k1 ~
  32. WHERE {&Tabelle}.Firma = tRowObject.Firma ~
  33. AND {&Tabelle}.Artnr = tRowObject.Artnr ~
  34. AND {&Tabelle}.Inhalt = tRowObject.Inhalt ~
  35. AND {&Tabelle}.Jahr = tRowObject.Jahr ~
  36. AND {&Tabelle}.Lager = tRowObject.Lager ~
  37. AND {&Tabelle}.Nummer = tRowObject.Nummer ~
  38. AND {&Tabelle}.Verfall = tRowObject.Verfall
  39. { incl/datdefinition.i }
  40. /* _UIB-CODE-BLOCK-END */
  41. &ANALYZE-RESUME
  42. &ANALYZE-SUSPEND _UIB-PREPROCESSOR-BLOCK
  43. /* ******************** Preprocessor Definitions ******************** */
  44. &Global-define DATA-LOGIC-PROCEDURE .p
  45. &Scoped-define PROCEDURE-TYPE SmartDataObject
  46. &Scoped-define DB-AWARE yes
  47. &Scoped-define ADM-SUPPORTED-LINKS Data-Source,Data-Target,Navigation-Target,Update-Target,Commit-Target,Filter-Target
  48. /* Db-Required definitions. */
  49. &IF DEFINED(DB-REQUIRED) = 0 &THEN
  50. &GLOBAL-DEFINE DB-REQUIRED TRUE
  51. &ENDIF
  52. &GLOBAL-DEFINE DB-REQUIRED-START &IF {&DB-REQUIRED} &THEN
  53. &GLOBAL-DEFINE DB-REQUIRED-END &ENDIF
  54. &Scoped-define QUERY-NAME Query-Main
  55. /* Internal Tables (found by Frame, Query & Browse Queries) */
  56. &Scoped-define INTERNAL-TABLES ArtLotnr
  57. /* Definitions for QUERY Query-Main */
  58. &Scoped-Define ENABLED-FIELDS Firma Artnr Inhalt Jahr Lager Eing_Dat Verfall Nummer Bestand Barcode~
  59. Nummer_2 ProduktionsNr
  60. &Scoped-define ENABLED-FIELDS-IN-ArtLotnr Firma Artnr Inhalt Jahr Lager ~
  61. Eing_Dat Verfall Nummer Bestand Barcode Nummer_2 ProduktionsNr
  62. &Scoped-Define DATA-FIELDS Firma Artnr Inhalt Jahr Lager Eing_Dat Verfall Nummer Bestand Barcode~
  63. Nummer_2 ProduktionsNr
  64. &Scoped-define DATA-FIELDS-IN-ArtLotnr Firma Artnr Inhalt Jahr Lager ~
  65. Eing_Dat Verfall Nummer Bestand Barcode Nummer_2 ProduktionsNr
  66. &Scoped-Define MANDATORY-FIELDS Firma
  67. &Scoped-Define APPLICATION-SERVICE
  68. &Scoped-Define ASSIGN-LIST
  69. &Scoped-Define DATA-FIELD-DEFS "d-artlotnr.i"
  70. &Scoped-Define DATA-TABLE-NO-UNDO NO-UNDO
  71. &Scoped-define QUERY-STRING-Query-Main FOR EACH ArtLotnr NO-LOCK INDEXED-REPOSITION
  72. {&DB-REQUIRED-START}
  73. &Scoped-define OPEN-QUERY-Query-Main OPEN QUERY Query-Main FOR EACH ArtLotnr NO-LOCK INDEXED-REPOSITION.
  74. {&DB-REQUIRED-END}
  75. &Scoped-define TABLES-IN-QUERY-Query-Main ArtLotnr
  76. &Scoped-define FIRST-TABLE-IN-QUERY-Query-Main ArtLotnr
  77. /* Custom List Definitions */
  78. /* List-1,List-2,List-3,List-4,List-5,List-6 */
  79. /* _UIB-PREPROCESSOR-BLOCK-END */
  80. &ANALYZE-RESUME
  81. /* ************************ Function Prototypes ********************** */
  82. {&DB-REQUIRED-START}
  83. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _FUNCTION-FORWARD getCurrentRecid dTables _DB-REQUIRED
  84. FUNCTION getCurrentRecid RETURNS RECID
  85. ( /* parameter-definitions */ ) FORWARD.
  86. /* _UIB-CODE-BLOCK-END */
  87. &ANALYZE-RESUME
  88. {&DB-REQUIRED-END}
  89. {&DB-REQUIRED-START}
  90. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _FUNCTION-FORWARD getQueryBuffer dTables _DB-REQUIRED
  91. FUNCTION getQueryBuffer RETURNS HANDLE
  92. ( /* parameter-definitions */ ) FORWARD.
  93. /* _UIB-CODE-BLOCK-END */
  94. &ANALYZE-RESUME
  95. {&DB-REQUIRED-END}
  96. {&DB-REQUIRED-START}
  97. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _FUNCTION-FORWARD openQuery dTables _DB-REQUIRED
  98. FUNCTION openQuery RETURNS LOGICAL
  99. ( /* parameter-definitions */ ) FORWARD.
  100. /* _UIB-CODE-BLOCK-END */
  101. &ANALYZE-RESUME
  102. {&DB-REQUIRED-END}
  103. /* *********************** Control Definitions ********************** */
  104. {&DB-REQUIRED-START}
  105. /* Query definitions */
  106. &ANALYZE-SUSPEND
  107. DEFINE QUERY Query-Main FOR
  108. ArtLotnr SCROLLING.
  109. &ANALYZE-RESUME
  110. {&DB-REQUIRED-END}
  111. /* ************************ Frame Definitions *********************** */
  112. /* *********************** Procedure Settings ************************ */
  113. &ANALYZE-SUSPEND _PROCEDURE-SETTINGS
  114. /* Settings for THIS-PROCEDURE
  115. Type: SmartDataObject
  116. Allow: Query
  117. Frames: 0
  118. Add Fields to: Neither
  119. Other Settings: PERSISTENT-ONLY COMPILE APPSERVER DB-AWARE
  120. */
  121. /* This procedure should always be RUN PERSISTENT. Report the error, */
  122. /* then cleanup and return. */
  123. IF NOT THIS-PROCEDURE:PERSISTENT THEN DO:
  124. MESSAGE "{&FILE-NAME} should only be RUN PERSISTENT.":U
  125. VIEW-AS ALERT-BOX ERROR BUTTONS OK.
  126. RETURN.
  127. END.
  128. &ANALYZE-RESUME _END-PROCEDURE-SETTINGS
  129. /* ************************* Create Window ************************** */
  130. &ANALYZE-SUSPEND _CREATE-WINDOW
  131. /* DESIGN Window definition (used by the UIB)
  132. CREATE WINDOW dTables ASSIGN
  133. HEIGHT = 1.62
  134. WIDTH = 46.6.
  135. /* END WINDOW DEFINITION */
  136. */
  137. &ANALYZE-RESUME
  138. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CUSTOM _INCLUDED-LIB dTables
  139. /* ************************* Included-Libraries *********************** */
  140. {src/adm2/data.i}
  141. /* _UIB-CODE-BLOCK-END */
  142. &ANALYZE-RESUME
  143. /* *********** Runtime Attributes and AppBuilder Settings *********** */
  144. &ANALYZE-SUSPEND _RUN-TIME-ATTRIBUTES
  145. /* SETTINGS FOR WINDOW dTables
  146. VISIBLE,,RUN-PERSISTENT */
  147. /* _RUN-TIME-ATTRIBUTES-END */
  148. &ANALYZE-RESUME
  149. /* Setting information for Queries and Browse Widgets fields */
  150. &ANALYZE-SUSPEND _QUERY-BLOCK QUERY Query-Main
  151. /* Query rebuild information for SmartDataObject Query-Main
  152. _TblList = "AnaDat.ArtLotnr"
  153. _Options = "NO-LOCK INDEXED-REPOSITION"
  154. _FldNameList[1] > AnaDat.ArtLotnr.Firma
  155. "Firma" "Firma" ? ? "character" ? ? ? ? ? ? yes ? yes 5 yes ?
  156. _FldNameList[2] > AnaDat.ArtLotnr.Artnr
  157. "Artnr" "Artnr" ? ? "integer" ? ? ? ? ? ? yes ? no 8.6 yes ?
  158. _FldNameList[3] > AnaDat.ArtLotnr.Inhalt
  159. "Inhalt" "Inhalt" ? ? "integer" ? ? ? ? ? ? yes ? no 5.2 yes ?
  160. _FldNameList[4] > AnaDat.ArtLotnr.Jahr
  161. "Jahr" "Jahr" ? ? "integer" ? ? ? ? ? ? yes ? no 4.8 yes ?
  162. _FldNameList[5] > AnaDat.ArtLotnr.Lager
  163. "Lager" "Lager" ? ? "integer" ? ? ? ? ? ? yes ? no 5.4 yes ?
  164. _FldNameList[6] > AnaDat.ArtLotnr.Eing_Dat
  165. "Eing_Dat" "Eing_Dat" ? ? "date" ? ? ? ? ? ? yes ? no 10.8 yes ?
  166. _FldNameList[7] > AnaDat.ArtLotnr.Verfall
  167. "Verfall" "Verfall" ? ? "date" ? ? ? ? ? ? yes ? no 10.8 yes ?
  168. _FldNameList[8] > AnaDat.ArtLotnr.Nummer
  169. "Nummer" "Nummer" ? ? "character" ? ? ? ? ? ? yes ? no 20 yes ?
  170. _FldNameList[9] > AnaDat.ArtLotnr.Bestand
  171. "Bestand" "Bestand" ? ? "decimal" ? ? ? ? ? ? yes ? no 11.8 yes ?
  172. _FldNameList[10] > AnaDat.ArtLotnr.Barcode
  173. "Barcode" "Barcode" ? ? "character" ? ? ? ? ? ? yes ? no 60 yes ?
  174. _FldNameList[11] > AnaDat.ArtLotnr.Nummer_2
  175. "Nummer_2" "Nummer_2" ? ? "character" ? ? ? ? ? ? yes ? no 20 yes ?
  176. _FldNameList[12] > AnaDat.ArtLotnr.ProduktionsNr
  177. "ProduktionsNr" "ProduktionsNr" ? ? "character" ? ? ? ? ? ? yes ? no 30 yes ?
  178. _Design-Parent is WINDOW dTables @ ( 1.14 , 2.6 )
  179. */ /* QUERY Query-Main */
  180. &ANALYZE-RESUME
  181. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CUSTOM _MAIN-BLOCK dTables
  182. /* *************************** Main Block *************************** */
  183. { incl/datmainblock.i }
  184. fOpen = FALSE.
  185. &IF DEFINED(UIB_IS_RUNNING) <> 0 &THEN
  186. RUN initializeObject.
  187. &ENDIF
  188. /* _UIB-CODE-BLOCK-END */
  189. &ANALYZE-RESUME
  190. /* ********************** Internal Procedures *********************** */
  191. {&DB-REQUIRED-START}
  192. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE dataAvailable dTables _DB-REQUIRED
  193. PROCEDURE dataAvailable :
  194. /*------------------------------------------------------------------------------
  195. Purpose: Super Override
  196. Parameters:
  197. Notes:
  198. ------------------------------------------------------------------------------*/
  199. { incl/datdataavailable.i }
  200. END PROCEDURE.
  201. /* _UIB-CODE-BLOCK-END */
  202. &ANALYZE-RESUME
  203. {&DB-REQUIRED-END}
  204. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE disable_UI dTables _DEFAULT-DISABLE
  205. PROCEDURE disable_UI :
  206. /*------------------------------------------------------------------------------
  207. Purpose: DISABLE the User Interface
  208. Parameters: <none>
  209. Notes: Here we clean-up the user-interface by deleting
  210. dynamic widgets we have created and/or hide
  211. frames. This procedure is usually called when
  212. we are ready to "clean-up" after running.
  213. ------------------------------------------------------------------------------*/
  214. /* Hide all frames. */
  215. IF THIS-PROCEDURE:PERSISTENT THEN DELETE PROCEDURE THIS-PROCEDURE.
  216. END PROCEDURE.
  217. /* _UIB-CODE-BLOCK-END */
  218. &ANALYZE-RESUME
  219. {&DB-REQUIRED-START}
  220. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE INAKTIVIEREN dTables _DB-REQUIRED
  221. PROCEDURE INAKTIVIEREN :
  222. /*------------------------------------------------------------------------------
  223. Purpose:
  224. Parameters: <none>
  225. Notes:
  226. ------------------------------------------------------------------------------*/
  227. { incl/datinaktivieren.i }
  228. END PROCEDURE.
  229. /* _UIB-CODE-BLOCK-END */
  230. &ANALYZE-RESUME
  231. {&DB-REQUIRED-END}
  232. {&DB-REQUIRED-START}
  233. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE initializeObject dTables _DB-REQUIRED
  234. PROCEDURE initializeObject :
  235. /*------------------------------------------------------------------------------
  236. Purpose: Super Override
  237. Parameters:
  238. Notes:
  239. ------------------------------------------------------------------------------*/
  240. { incl/datinitialize.i }
  241. END PROCEDURE.
  242. /* _UIB-CODE-BLOCK-END */
  243. &ANALYZE-RESUME
  244. {&DB-REQUIRED-END}
  245. {&DB-REQUIRED-START}
  246. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE REAKTIVIEREN dTables _DB-REQUIRED
  247. PROCEDURE REAKTIVIEREN :
  248. /*------------------------------------------------------------------------------
  249. Purpose:
  250. Parameters: <none>
  251. Notes:
  252. ------------------------------------------------------------------------------*/
  253. { incl/datreaktivieren.i }
  254. END PROCEDURE.
  255. /* _UIB-CODE-BLOCK-END */
  256. &ANALYZE-RESUME
  257. {&DB-REQUIRED-END}
  258. {&DB-REQUIRED-START}
  259. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE REPOS_TABELLE dTables _DB-REQUIRED
  260. PROCEDURE REPOS_TABELLE :
  261. /*------------------------------------------------------------------------------
  262. Purpose:
  263. Parameters: <none>
  264. Notes:
  265. ------------------------------------------------------------------------------*/
  266. { incl/datrepos.i }
  267. END PROCEDURE.
  268. /* _UIB-CODE-BLOCK-END */
  269. &ANALYZE-RESUME
  270. {&DB-REQUIRED-END}
  271. {&DB-REQUIRED-START}
  272. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE SET_FILTER dTables _DB-REQUIRED
  273. PROCEDURE SET_FILTER :
  274. /*------------------------------------------------------------------------------
  275. Purpose:
  276. Parameters: <none>
  277. Notes:
  278. ------------------------------------------------------------------------------*/
  279. { incl/datsetfilter.i }
  280. END PROCEDURE.
  281. /* _UIB-CODE-BLOCK-END */
  282. &ANALYZE-RESUME
  283. {&DB-REQUIRED-END}
  284. {&DB-REQUIRED-START}
  285. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE SET_LAGER dTables _DB-REQUIRED
  286. PROCEDURE SET_LAGER :
  287. /*------------------------------------------------------------------------------
  288. Purpose:
  289. Parameters: <none>
  290. Notes:
  291. ------------------------------------------------------------------------------*/
  292. DEF INPUT PARAMETER ipiLager AS INT NO-UNDO.
  293. fOpen = TRUE.
  294. IF iLager = ipiLager THEN RETURN.
  295. iLager = ipiLager.
  296. DYNAMIC-FUNCTION('openQuery':U) NO-ERROR.
  297. END PROCEDURE.
  298. /* _UIB-CODE-BLOCK-END */
  299. &ANALYZE-RESUME
  300. {&DB-REQUIRED-END}
  301. {&DB-REQUIRED-START}
  302. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE SET_OPENFLAG dTables _DB-REQUIRED
  303. PROCEDURE SET_OPENFLAG :
  304. /*------------------------------------------------------------------------------
  305. Purpose:
  306. Parameters: <none>
  307. Notes:
  308. ------------------------------------------------------------------------------*/
  309. { incl/datsetopenflag.i }
  310. END PROCEDURE.
  311. /* _UIB-CODE-BLOCK-END */
  312. &ANALYZE-RESUME
  313. {&DB-REQUIRED-END}
  314. {&DB-REQUIRED-START}
  315. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE SET_SORT dTables _DB-REQUIRED
  316. PROCEDURE SET_SORT :
  317. /*------------------------------------------------------------------------------
  318. Purpose:
  319. Parameters: <none>
  320. Notes:
  321. ------------------------------------------------------------------------------*/
  322. { incl/datsetsort.i }
  323. END PROCEDURE.
  324. /* _UIB-CODE-BLOCK-END */
  325. &ANALYZE-RESUME
  326. {&DB-REQUIRED-END}
  327. {&DB-REQUIRED-START}
  328. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE viewObject dTables _DB-REQUIRED
  329. PROCEDURE viewObject :
  330. /*------------------------------------------------------------------------------
  331. Purpose: Super Override
  332. Parameters:
  333. Notes:
  334. ------------------------------------------------------------------------------*/
  335. PUBLISH 'GET-LAGER-IN-ARTIKEL' (OUTPUT iLager).
  336. RUN SUPER.
  337. /* Code placed here will execute AFTER standard behavior. */
  338. END PROCEDURE.
  339. /* _UIB-CODE-BLOCK-END */
  340. &ANALYZE-RESUME
  341. {&DB-REQUIRED-END}
  342. /* ************************ Function Implementations ***************** */
  343. {&DB-REQUIRED-START}
  344. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _FUNCTION getCurrentRecid dTables _DB-REQUIRED
  345. FUNCTION getCurrentRecid RETURNS RECID
  346. ( /* parameter-definitions */ ) :
  347. /*------------------------------------------------------------------------------
  348. Purpose:
  349. Notes:
  350. ------------------------------------------------------------------------------*/
  351. { incl/datgetcurrentrecid.i }
  352. END FUNCTION.
  353. /* _UIB-CODE-BLOCK-END */
  354. &ANALYZE-RESUME
  355. {&DB-REQUIRED-END}
  356. {&DB-REQUIRED-START}
  357. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _FUNCTION getQueryBuffer dTables _DB-REQUIRED
  358. FUNCTION getQueryBuffer RETURNS HANDLE
  359. ( /* parameter-definitions */ ) :
  360. /*------------------------------------------------------------------------------
  361. Purpose:
  362. Notes:
  363. ------------------------------------------------------------------------------*/
  364. RETURN BUFFER rowObject:HANDLE.
  365. END FUNCTION.
  366. /* _UIB-CODE-BLOCK-END */
  367. &ANALYZE-RESUME
  368. {&DB-REQUIRED-END}
  369. {&DB-REQUIRED-START}
  370. &ANALYZE-SUSPEND _UIB-CODE-BLOCK _FUNCTION openQuery dTables _DB-REQUIRED
  371. FUNCTION openQuery RETURNS LOGICAL
  372. ( /* parameter-definitions */ ) :
  373. /*------------------------------------------------------------------------------
  374. Purpose: Super Override
  375. Notes:
  376. ------------------------------------------------------------------------------*/
  377. DEF VAR Felder AS CHAR NO-UNDO.
  378. DEF VAR Inhalt AS CHAR NO-UNDO.
  379. DEF VAR ix AS INT NO-UNDO.
  380. DEF VAR cFeld AS CHAR NO-UNDO.
  381. DEF VAR iArtnr AS INT NO-UNDO.
  382. DEF VAR iInhalt AS INT NO-UNDO.
  383. DEF VAR iJahr AS INT NO-UNDO.
  384. IF NOT fOpen THEN RETURN FALSE.
  385. xWhere = ''.
  386. xSort = ''.
  387. xString = ''.
  388. Felder = DYNAMIC-FUNCTION('getForeignFields':U) NO-ERROR.
  389. Inhalt = DYNAMIC-FUNCTION('getForeignValues':U) NO-ERROR.
  390. ix = LOOKUP('Artnr', Felder, ',') / 2.
  391. iArtnr = INTEGER(ENTRY (ix, Inhalt, CHR(01))).
  392. ix = LOOKUP('Inhalt', Felder, ',') / 2.
  393. iInhalt = INTEGER(ENTRY (ix, Inhalt, CHR(01))).
  394. ix = LOOKUP('Jahr', Felder, ',') / 2.
  395. iJahr = INTEGER(ENTRY (ix, Inhalt, CHR(01))).
  396. /* xWhere = 'Aufko.Firma = ' + QUOTER(Firma) + ' AND ' */
  397. /* + 'Aufko.Auf_Sta = ' + STRING(Auf_Sta) + ' '. */
  398. xString = 'FOR EACH ArtLotnr ' + xSort + 'WHERE '
  399. + 'ArtLotnr.Firma = "&1" AND '
  400. + 'ArtLotnr.Artnr = &2 AND '
  401. + 'ArtLotnr.Inhalt = &3 AND '
  402. + 'ArtLotnr.Jahr = &4 AND '
  403. + 'ArtLotnr.Lager = &5 '.
  404. xString = SUBSTITUTE(xString, Firma, iArtnr, iInhalt, iJahr, iLager ).
  405. xString = xString + ' NO-LOCK INDEXED-REPOSITION '.
  406. { incl/datopenquery.i }
  407. IF xWhere <> '' THEN DYNAMIC-FUNCTION('setQueryWhere':U , INPUT xWhere ).
  408. IF xString <> '' THEN DYNAMIC-FUNCTION('setQueryString':U, INPUT xString).
  409. IF xSort <> '' THEN DYNAMIC-FUNCTION('setQuerySort':U , INPUT xSort ).
  410. RETURN SUPER( ).
  411. END FUNCTION.
  412. /* _UIB-CODE-BLOCK-END */
  413. &ANALYZE-RESUME
  414. {&DB-REQUIRED-END}