&ANALYZE-SUSPEND _VERSION-NUMBER AB_v10r12 GUI ADM2 &ANALYZE-RESUME /* Connected Databases anadat PROGRESS */ &Scoped-define WINDOW-NAME CURRENT-WINDOW {adecomm/appserv.i} &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CUSTOM _DEFINITIONS dTables /*------------------------------------------------------------------------ File: Description: from DATA.W - Template For SmartData objects in the ADM Input Parameters: Output Parameters: Modified: February 24, 1999 ------------------------------------------------------------------------*/ /* This .W file was created with the Progress AppBuilder. */ /*----------------------------------------------------------------------*/ /* Create an unnamed pool to store all the widgets created by this procedure. This is a good default which assures that this procedure's triggers and internal procedures will execute in this procedure's storage, and that proper cleanup will occur on deletion of the procedure. */ CREATE WIDGET-POOL. /* *************************** Definitions ************************** */ /* Parameters Definitions --- */ /* Local Variable Definitions --- */ &glob DATA-LOGIC-PROCEDURE .p &SCOPED-DEFINE Tabelle ArtUms &SCOPED-DEFINE TabWhere USE-INDEX ArtUms-k1 ~ WHERE {&Tabelle}.Firma = tRowObject.Firma ~ AND {&Tabelle}.Jahr = tRowObject.Jahr ~ AND {&Tabelle}.Artnr = tRowObject.Artnr ~ AND {&Tabelle}.Inhalt = tRowObject.Inhalt ~ AND {&Tabelle}.JahrG = tRowObject.Jahrg { incl/datdefinition.i } /* _UIB-CODE-BLOCK-END */ &ANALYZE-RESUME &ANALYZE-SUSPEND _UIB-PREPROCESSOR-BLOCK /* ******************** Preprocessor Definitions ******************** */ &Scoped-define PROCEDURE-TYPE SmartDataObject &Scoped-define DB-AWARE yes &Scoped-define ADM-SUPPORTED-LINKS Data-Source,Data-Target,Navigation-Target,Update-Target,Commit-Target,Filter-Target /* Db-Required definitions. */ &IF DEFINED(DB-REQUIRED) = 0 &THEN &GLOBAL-DEFINE DB-REQUIRED TRUE &ENDIF &GLOBAL-DEFINE DB-REQUIRED-START &IF {&DB-REQUIRED} &THEN &GLOBAL-DEFINE DB-REQUIRED-END &ENDIF &Scoped-define QUERY-NAME Query-Main /* Internal Tables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Define APPLICATION-SERVICE &Scoped-Define ASSIGN-LIST rowObject.Ep_Mon1 = ArtUms.Ep_Mon[1] rowObject.Ep_Mon2 = ArtUms.Ep_Mon[2]~ rowObject.Ep_Mon3 = ArtUms.Ep_Mon[3] rowObject.Ep_Mon4 = ArtUms.Ep_Mon[4]~ rowObject.Ep_Mon5 = ArtUms.Ep_Mon[5] rowObject.Ep_Mon6 = ArtUms.Ep_Mon[6]~ rowObject.Ep_Mon7 = ArtUms.Ep_Mon[7] rowObject.Ep_Mon8 = ArtUms.Ep_Mon[8]~ rowObject.Ep_Mon9 = ArtUms.Ep_Mon[9]~ rowObject.Ep_Mon10 = ArtUms.Ep_Mon[10]~ rowObject.Ep_Mon11 = ArtUms.Ep_Mon[11]~ rowObject.Ep_Mon12 = ArtUms.Ep_Mon[12]~ rowObject.Li_Mon1 = ArtUms.Li_Mon[1] rowObject.Li_Mon2 = ArtUms.Li_Mon[2]~ rowObject.Li_Mon3 = ArtUms.Li_Mon[3] rowObject.Li_Mon4 = ArtUms.Li_Mon[4]~ rowObject.Li_Mon5 = ArtUms.Li_Mon[5] rowObject.Li_Mon6 = ArtUms.Li_Mon[6]~ rowObject.Li_Mon7 = ArtUms.Li_Mon[7] rowObject.Li_Mon8 = ArtUms.Li_Mon[8]~ rowObject.Li_Mon9 = ArtUms.Li_Mon[9]~ rowObject.Li_Mon10 = ArtUms.Li_Mon[10]~ rowObject.Li_Mon11 = ArtUms.Li_Mon[11]~ rowObject.Li_Mon12 = ArtUms.Li_Mon[12]~ rowObject.Me_Mon1 = ArtUms.Me_Mon[1] rowObject.Me_Mon2 = ArtUms.Me_Mon[2]~ rowObject.Me_Mon3 = ArtUms.Me_Mon[3] rowObject.Me_Mon4 = ArtUms.Me_Mon[4]~ rowObject.Me_Mon5 = ArtUms.Me_Mon[5] rowObject.Me_Mon6 = ArtUms.Me_Mon[6]~ rowObject.Me_Mon7 = ArtUms.Me_Mon[7] rowObject.Me_Mon8 = ArtUms.Me_Mon[8]~ rowObject.Me_Mon9 = ArtUms.Me_Mon[9]~ rowObject.Me_Mon10 = ArtUms.Me_Mon[10]~ rowObject.Me_Mon11 = ArtUms.Me_Mon[11]~ rowObject.Me_Mon12 = ArtUms.Me_Mon[12]~ rowObject.Vp_Mon1 = ArtUms.Vp_Mon[1] rowObject.Vp_Mon2 = ArtUms.Vp_Mon[2]~ rowObject.Vp_Mon3 = ArtUms.Vp_Mon[3] rowObject.Vp_Mon4 = ArtUms.Vp_Mon[4]~ rowObject.Vp_Mon5 = ArtUms.Vp_Mon[5] rowObject.Vp_Mon6 = ArtUms.Vp_Mon[6]~ rowObject.Vp_Mon7 = ArtUms.Vp_Mon[7] rowObject.Vp_Mon8 = ArtUms.Vp_Mon[8]~ rowObject.Vp_Mon9 = ArtUms.Vp_Mon[9]~ rowObject.Vp_Mon10 = ArtUms.Vp_Mon[10]~ rowObject.Vp_Mon11 = ArtUms.Vp_Mon[11]~ rowObject.Vp_Mon12 = ArtUms.Vp_Mon[12] &Scoped-Define DATA-FIELD-DEFS "d-artums.i" &Scoped-Define DATA-TABLE-NO-UNDO NO-UNDO &Scoped-define QUERY-STRING-Query-Main FOR EACH ArtUms NO-LOCK INDEXED-REPOSITION {&DB-REQUIRED-START} &Scoped-define OPEN-QUERY-Query-Main OPEN QUERY Query-Main FOR EACH ArtUms NO-LOCK INDEXED-REPOSITION. {&DB-REQUIRED-END} &Scoped-define TABLES-IN-QUERY-Query-Main ArtUms &Scoped-define FIRST-TABLE-IN-QUERY-Query-Main ArtUms /* Custom List Definitions */ /* List-1,List-2,List-3,List-4,List-5,List-6 */ /* _UIB-PREPROCESSOR-BLOCK-END */ &ANALYZE-RESUME /* ************************ Function Prototypes ********************** */ {&DB-REQUIRED-START} &ANALYZE-SUSPEND _UIB-CODE-BLOCK _FUNCTION-FORWARD getQueryBuffer dTables _DB-REQUIRED FUNCTION getQueryBuffer RETURNS HANDLE ( /* parameter-definitions */ ) FORWARD. /* _UIB-CODE-BLOCK-END */ &ANALYZE-RESUME {&DB-REQUIRED-END} {&DB-REQUIRED-START} &ANALYZE-SUSPEND _UIB-CODE-BLOCK _FUNCTION-FORWARD openQuery dTables _DB-REQUIRED FUNCTION openQuery RETURNS LOGICAL ( /* parameter-definitions */ ) FORWARD. /* _UIB-CODE-BLOCK-END */ &ANALYZE-RESUME {&DB-REQUIRED-END} /* *********************** Control Definitions ********************** */ {&DB-REQUIRED-START} /* Query definitions */ &ANALYZE-SUSPEND DEFINE QUERY Query-Main FOR ArtUms SCROLLING. &ANALYZE-RESUME {&DB-REQUIRED-END} /* ************************ Frame Definitions *********************** */ /* *********************** Procedure Settings ************************ */ &ANALYZE-SUSPEND _PROCEDURE-SETTINGS /* Settings for THIS-PROCEDURE Type: SmartDataObject Allow: Query Frames: 0 Add Fields to: Neither Other Settings: PERSISTENT-ONLY COMPILE APPSERVER DB-AWARE */ /* This procedure should always be RUN PERSISTENT. Report the error, */ /* then cleanup and return. */ IF NOT THIS-PROCEDURE:PERSISTENT THEN DO: MESSAGE "{&FILE-NAME} should only be RUN PERSISTENT.":U VIEW-AS ALERT-BOX ERROR BUTTONS OK. RETURN. END. &ANALYZE-RESUME _END-PROCEDURE-SETTINGS /* ************************* Create Window ************************** */ &ANALYZE-SUSPEND _CREATE-WINDOW /* DESIGN Window definition (used by the UIB) CREATE WINDOW dTables ASSIGN HEIGHT = 1.62 WIDTH = 46.6. /* END WINDOW DEFINITION */ */ &ANALYZE-RESUME &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CUSTOM _INCLUDED-LIB dTables /* ************************* Included-Libraries *********************** */ {src/adm2/data.i} /* _UIB-CODE-BLOCK-END */ &ANALYZE-RESUME /* *********** Runtime Attributes and AppBuilder Settings *********** */ &ANALYZE-SUSPEND _RUN-TIME-ATTRIBUTES /* SETTINGS FOR WINDOW dTables VISIBLE,,RUN-PERSISTENT */ /* _RUN-TIME-ATTRIBUTES-END */ &ANALYZE-RESUME /* Setting information for Queries and Browse Widgets fields */ &ANALYZE-SUSPEND _QUERY-BLOCK QUERY Query-Main /* Query rebuild information for SmartDataObject Query-Main _TblList = "AnaDat.ArtUms" _Options = "NO-LOCK INDEXED-REPOSITION" _FldNameList[1] > AnaDat.ArtUms.Firma "Firma" "Firma" ? ? "character" ? ? ? ? ? ? yes ? no 8.4 yes ? _FldNameList[2] > AnaDat.ArtUms.Artnr "Artnr" "Artnr" ? ? "integer" ? ? ? ? ? ? yes ? no 9.6 yes ? _FldNameList[3] > AnaDat.ArtUms.Inhalt "Inhalt" "Inhalt" ? ? "integer" ? ? ? ? ? ? yes ? no 5.2 yes ? _FldNameList[4] > AnaDat.ArtUms.Jahrg "Jahrg" "Jahrg" ? ? "integer" ? ? ? ? ? ? yes ? no 5.2 yes ? _FldNameList[5] > AnaDat.ArtUms.Jahr "Jahr" "Jahr" ? ? "integer" ? ? ? ? ? ? yes ? no 4.8 yes ? _FldNameList[6] > AnaDat.ArtUms.Me_Kum "Me_Kum" "Me_Kum" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[7] > AnaDat.ArtUms.Li_Kum "Li_Kum" "Li_Kum" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[8] > AnaDat.ArtUms.Ep_Kum "Ep_Kum" "Ep_Kum" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[9] > AnaDat.ArtUms.Vp_Kum "Vp_Kum" "Vp_Kum" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[10] > AnaDat.ArtUms.Ep_Mon[1] "Ep_Mon[1]" "Ep_Mon1" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[11] > AnaDat.ArtUms.Ep_Mon[2] "Ep_Mon[2]" "Ep_Mon2" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[12] > AnaDat.ArtUms.Ep_Mon[3] "Ep_Mon[3]" "Ep_Mon3" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[13] > AnaDat.ArtUms.Ep_Mon[4] "Ep_Mon[4]" "Ep_Mon4" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[14] > AnaDat.ArtUms.Ep_Mon[5] "Ep_Mon[5]" "Ep_Mon5" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[15] > AnaDat.ArtUms.Ep_Mon[6] "Ep_Mon[6]" "Ep_Mon6" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[16] > AnaDat.ArtUms.Ep_Mon[7] "Ep_Mon[7]" "Ep_Mon7" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[17] > AnaDat.ArtUms.Ep_Mon[8] "Ep_Mon[8]" "Ep_Mon8" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[18] > AnaDat.ArtUms.Ep_Mon[9] "Ep_Mon[9]" "Ep_Mon9" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[19] > AnaDat.ArtUms.Ep_Mon[10] "Ep_Mon[10]" "Ep_Mon10" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[20] > AnaDat.ArtUms.Ep_Mon[11] "Ep_Mon[11]" "Ep_Mon11" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[21] > AnaDat.ArtUms.Ep_Mon[12] "Ep_Mon[12]" "Ep_Mon12" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[22] > AnaDat.ArtUms.Li_Mon[1] "Li_Mon[1]" "Li_Mon1" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[23] > AnaDat.ArtUms.Li_Mon[2] "Li_Mon[2]" "Li_Mon2" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[24] > AnaDat.ArtUms.Li_Mon[3] "Li_Mon[3]" "Li_Mon3" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[25] > AnaDat.ArtUms.Li_Mon[4] "Li_Mon[4]" "Li_Mon4" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[26] > AnaDat.ArtUms.Li_Mon[5] "Li_Mon[5]" "Li_Mon5" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[27] > AnaDat.ArtUms.Li_Mon[6] "Li_Mon[6]" "Li_Mon6" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[28] > AnaDat.ArtUms.Li_Mon[7] "Li_Mon[7]" "Li_Mon7" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[29] > AnaDat.ArtUms.Li_Mon[8] "Li_Mon[8]" "Li_Mon8" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[30] > AnaDat.ArtUms.Li_Mon[9] "Li_Mon[9]" "Li_Mon9" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[31] > AnaDat.ArtUms.Li_Mon[10] "Li_Mon[10]" "Li_Mon10" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[32] > AnaDat.ArtUms.Li_Mon[11] "Li_Mon[11]" "Li_Mon11" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[33] > AnaDat.ArtUms.Li_Mon[12] "Li_Mon[12]" "Li_Mon12" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[34] > AnaDat.ArtUms.Me_Mon[1] "Me_Mon[1]" "Me_Mon1" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[35] > AnaDat.ArtUms.Me_Mon[2] "Me_Mon[2]" "Me_Mon2" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[36] > AnaDat.ArtUms.Me_Mon[3] "Me_Mon[3]" "Me_Mon3" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[37] > AnaDat.ArtUms.Me_Mon[4] "Me_Mon[4]" "Me_Mon4" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[38] > AnaDat.ArtUms.Me_Mon[5] "Me_Mon[5]" "Me_Mon5" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[39] > AnaDat.ArtUms.Me_Mon[6] "Me_Mon[6]" "Me_Mon6" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[40] > AnaDat.ArtUms.Me_Mon[7] "Me_Mon[7]" "Me_Mon7" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[41] > AnaDat.ArtUms.Me_Mon[8] "Me_Mon[8]" "Me_Mon8" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[42] > AnaDat.ArtUms.Me_Mon[9] "Me_Mon[9]" "Me_Mon9" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[43] > AnaDat.ArtUms.Me_Mon[10] "Me_Mon[10]" "Me_Mon10" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[44] > AnaDat.ArtUms.Me_Mon[11] "Me_Mon[11]" "Me_Mon11" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[45] > AnaDat.ArtUms.Me_Mon[12] "Me_Mon[12]" "Me_Mon12" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[46] > AnaDat.ArtUms.Vp_Mon[1] "Vp_Mon[1]" "Vp_Mon1" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[47] > AnaDat.ArtUms.Vp_Mon[2] "Vp_Mon[2]" "Vp_Mon2" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[48] > AnaDat.ArtUms.Vp_Mon[3] "Vp_Mon[3]" "Vp_Mon3" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[49] > AnaDat.ArtUms.Vp_Mon[4] "Vp_Mon[4]" "Vp_Mon4" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[50] > AnaDat.ArtUms.Vp_Mon[5] "Vp_Mon[5]" "Vp_Mon5" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[51] > AnaDat.ArtUms.Vp_Mon[6] "Vp_Mon[6]" "Vp_Mon6" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[52] > AnaDat.ArtUms.Vp_Mon[7] "Vp_Mon[7]" "Vp_Mon7" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[53] > AnaDat.ArtUms.Vp_Mon[8] "Vp_Mon[8]" "Vp_Mon8" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[54] > AnaDat.ArtUms.Vp_Mon[9] "Vp_Mon[9]" "Vp_Mon9" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[55] > AnaDat.ArtUms.Vp_Mon[10] "Vp_Mon[10]" "Vp_Mon10" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[56] > AnaDat.ArtUms.Vp_Mon[11] "Vp_Mon[11]" "Vp_Mon11" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[57] > AnaDat.ArtUms.Vp_Mon[12] "Vp_Mon[12]" "Vp_Mon12" ? ? "decimal" ? ? ? ? ? ? yes ? no 14 yes ? _FldNameList[58] > "_" "IF (RowObject.Vp_Kum <> 0 AND RowObject.Ep_Kum <> 0) THEN (100 - (RowObject.Ep_Kum * 100 / RowObject.Vp_Kum)) ELSE (0.0000)" "Marge" "Marge" "zzz,zz9.99-%" "Decimal" ? ? ? ? ? ? yes ? no 12 no ? _Design-Parent is WINDOW dTables @ ( 1.14 , 2.6 ) */ /* QUERY Query-Main */ &ANALYZE-RESUME &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CUSTOM _MAIN-BLOCK dTables /* *************************** Main Block *************************** */ { incl/datmainblock.i } &IF DEFINED(UIB_IS_RUNNING) <> 0 &THEN RUN initializeObject. &ENDIF /* _UIB-CODE-BLOCK-END */ &ANALYZE-RESUME /* ********************** Internal Procedures *********************** */ {&DB-REQUIRED-START} &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE DATA.CALCULATE dTables DATA.CALCULATE _DB-REQUIRED PROCEDURE DATA.CALCULATE : /*------------------------------------------------------------------------------ Purpose: Calculate all the Calculated Expressions found in the SmartDataObject. Parameters: ------------------------------------------------------------------------------*/ ASSIGN rowObject.Marge = (IF (RowObject.Vp_Kum <> 0 AND RowObject.Ep_Kum <> 0) THEN (100 - (RowObject.Ep_Kum * 100 / RowObject.Vp_Kum)) ELSE (0.0000)) . END PROCEDURE. /* _UIB-CODE-BLOCK-END */ &ANALYZE-RESUME {&DB-REQUIRED-END} {&DB-REQUIRED-START} &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE dataAvailable dTables _DB-REQUIRED PROCEDURE dataAvailable : /*------------------------------------------------------------------------------ Purpose: Super Override Parameters: Notes: ------------------------------------------------------------------------------*/ { incl/datdataavailable.i } END PROCEDURE. /* _UIB-CODE-BLOCK-END */ &ANALYZE-RESUME {&DB-REQUIRED-END} &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE disable_UI dTables _DEFAULT-DISABLE PROCEDURE disable_UI : /*------------------------------------------------------------------------------ Purpose: DISABLE the User Interface Parameters: Notes: Here we clean-up the user-interface by deleting dynamic widgets we have created and/or hide frames. This procedure is usually called when we are ready to "clean-up" after running. ------------------------------------------------------------------------------*/ /* Hide all frames. */ IF THIS-PROCEDURE:PERSISTENT THEN DELETE PROCEDURE THIS-PROCEDURE. END PROCEDURE. /* _UIB-CODE-BLOCK-END */ &ANALYZE-RESUME {&DB-REQUIRED-START} &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE INAKTIVIEREN dTables _DB-REQUIRED PROCEDURE INAKTIVIEREN : /*------------------------------------------------------------------------------ Purpose: Parameters: Notes: ------------------------------------------------------------------------------*/ { incl/datinaktivieren.i } END PROCEDURE. /* _UIB-CODE-BLOCK-END */ &ANALYZE-RESUME {&DB-REQUIRED-END} {&DB-REQUIRED-START} &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE initializeObject dTables _DB-REQUIRED PROCEDURE initializeObject : /*------------------------------------------------------------------------------ Purpose: Super Override Parameters: Notes: ------------------------------------------------------------------------------*/ { incl/datinitialize.i } END PROCEDURE. /* _UIB-CODE-BLOCK-END */ &ANALYZE-RESUME {&DB-REQUIRED-END} {&DB-REQUIRED-START} &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE REAKTIVIEREN dTables _DB-REQUIRED PROCEDURE REAKTIVIEREN : /*------------------------------------------------------------------------------ Purpose: Parameters: Notes: ------------------------------------------------------------------------------*/ { incl/datreaktivieren.i } END PROCEDURE. /* _UIB-CODE-BLOCK-END */ &ANALYZE-RESUME {&DB-REQUIRED-END} {&DB-REQUIRED-START} &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE REPOS_TABELLE dTables _DB-REQUIRED PROCEDURE REPOS_TABELLE : /*------------------------------------------------------------------------------ Purpose: Parameters: Notes: ------------------------------------------------------------------------------*/ { incl/datrepos.i } END PROCEDURE. /* _UIB-CODE-BLOCK-END */ &ANALYZE-RESUME {&DB-REQUIRED-END} {&DB-REQUIRED-START} &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE SET_FILTER dTables _DB-REQUIRED PROCEDURE SET_FILTER : /*------------------------------------------------------------------------------ Purpose: Parameters: Notes: ------------------------------------------------------------------------------*/ { incl/datsetfilter.i } END PROCEDURE. /* _UIB-CODE-BLOCK-END */ &ANALYZE-RESUME {&DB-REQUIRED-END} {&DB-REQUIRED-START} &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE SET_OPENFLAG dTables _DB-REQUIRED PROCEDURE SET_OPENFLAG : /*------------------------------------------------------------------------------ Purpose: Parameters: Notes: ------------------------------------------------------------------------------*/ { incl/datsetopenflag.i } END PROCEDURE. /* _UIB-CODE-BLOCK-END */ &ANALYZE-RESUME {&DB-REQUIRED-END} {&DB-REQUIRED-START} &ANALYZE-SUSPEND _UIB-CODE-BLOCK _PROCEDURE SET_SORT dTables _DB-REQUIRED PROCEDURE SET_SORT : /*------------------------------------------------------------------------------ Purpose: Parameters: Notes: ------------------------------------------------------------------------------*/ { incl/datsetsort.i } END PROCEDURE. /* _UIB-CODE-BLOCK-END */ &ANALYZE-RESUME {&DB-REQUIRED-END} /* ************************ Function Implementations ***************** */ {&DB-REQUIRED-START} &ANALYZE-SUSPEND _UIB-CODE-BLOCK _FUNCTION getQueryBuffer dTables _DB-REQUIRED FUNCTION getQueryBuffer RETURNS HANDLE ( /* parameter-definitions */ ) : /*------------------------------------------------------------------------------ Purpose: Notes: ------------------------------------------------------------------------------*/ RETURN BUFFER rowObject:HANDLE. END FUNCTION. /* _UIB-CODE-BLOCK-END */ &ANALYZE-RESUME {&DB-REQUIRED-END} {&DB-REQUIRED-START} &ANALYZE-SUSPEND _UIB-CODE-BLOCK _FUNCTION openQuery dTables _DB-REQUIRED FUNCTION openQuery RETURNS LOGICAL ( /* parameter-definitions */ ) : /*------------------------------------------------------------------------------ Purpose: Super Override Notes: ------------------------------------------------------------------------------*/ DEF VAR Felder AS CHAR NO-UNDO. DEF VAR Inhalt AS CHAR NO-UNDO. DEF VAR ix AS INT NO-UNDO. DEF VAR cFeld AS CHAR NO-UNDO. /* IF NOT fOpen THEN RETURN FALSE. */ xWhere = ''. xSort = ''. xString = ''. Felder = DYNAMIC-FUNCTION('getForeignFields':U) NO-ERROR. Inhalt = DYNAMIC-FUNCTION('getForeignValues':U) NO-ERROR. /* ix = LOOKUP('Feld', Felder, ',') / 2. */ /* cFeld = ENTRY (ix , Inhalt, CHR(01)). */ /* xWhere = 'Aufko.Firma = ' + QUOTER(Firma) + ' AND ' */ /* + 'Aufko.Auf_Sta = ' + STRING(Auf_Sta) + ' '. */ /* xString = 'FOR EACH Debop ' + xSort + 'WHERE ' */ /* + 'Debop.Firma = "' + Firma + '" AND ' */ /* + 'Debop.Knr = ' + STRING(Knr) + ' ' */ /* + 'NO-LOCK BY Debop.FakDat DESCENDING INDEXED-REPOSITION '. */ xSort = 'Jahr DESCENDING'. { incl/datopenquery.i } IF xWhere <> '' THEN DYNAMIC-FUNCTION('setQueryWhere':U , INPUT xWhere ). IF xString <> '' THEN DYNAMIC-FUNCTION('setQueryString':U, INPUT xString). IF xSort <> '' THEN DYNAMIC-FUNCTION('setQuerySort':U , INPUT xSort ). RETURN SUPER( ). END FUNCTION. /* _UIB-CODE-BLOCK-END */ &ANALYZE-RESUME {&DB-REQUIRED-END}