Das Notes Forum

Domino 9 und frühere Versionen => ND8: Entwicklung => Thema gestartet von: Flachmann am 18.04.19 - 08:35:30

Titel: Parameter von API DesignRefresh()
Beitrag von: Flachmann am 18.04.19 - 08:35:30
Hallo!

Ich habe hier (https://atnotes.de/index.php/topic,53513.msg345351.html) den API DesignRefresh gefunden:

Declare Function W32_DesignReplace Lib "nnotes.dll" Alias "DesignReplace" (Byval ht As Long, Byval hDB As Long, Byval dw1 As Long, Byval dw2 As Long, Byval dw3 As Long, Byval dw4 As Long) As Integer

Was bedeuten denn die vier dw-Parameter? In anderen Beispielen im Web sind die mal auf 0, mal auf 1 gesetzt. Nur eine Erklärung, was das jeweils bedeutet, fehlt.

Es gibt ja sicher eine API-Doku, aber ich finde leider nichts dazu.  :-X
Titel: Re: Parameter von API DesignRefresh()
Beitrag von: Gutierrez am 18.04.19 - 09:46:27
Moin,

evtl. sind die Parameter diese Schalter aus dem Dialog:

Inherit future design changes
Hide formulas and LotusScript
Update Folder Design

Beste Grüße
Gutierrez
Titel: Re: Parameter von API DesignRefresh()
Beitrag von: eknori am 18.04.19 - 11:36:48
DesignREPLACE ist im Gegensatz zu DesignREFRESH undokumentiert.

Die parameter habe ich momentan nicht parat, kann ich aber am WE nachliefern.

https://searchdomino.techtarget.com/tip/Replace-Database-Design-With-Lotusscript (https://searchdomino.techtarget.com/tip/Replace-Database-Design-With-Lotusscript)
Titel: Re: Parameter von API DesignRefresh()
Beitrag von: eknori am 18.04.19 - 12:22:44
Hier die Informationen die mir vorliegen

Code
/* DesignReplace - Redesign a notefile from a template 
* 
*        This replaces ONLY the notes that exist in the design collection, 
*        that is, Forms, Views, Fields, and Filters. 
* 
*        Note that this subroutine also refreshes the database class, etc. 
* 
*        Inputs: 
*                hSrcDB - DB handle of template file 
*                hDstDB - DB handle of destination file 
*                fForce - Operation should always be done, even if destination is "up to date" 
* 
*        Outputs: 
*                Return value - error status. 
*/ 
STATUS far PASCAL DesignReplace( 
DBHANDLE hTemplate,  
DBHANDLE hDB,  
BOOL fPropagateSrcClass,  
BOOL fForce,  
ABORTCHECKPROC AbortCheck,  
OSSIGMSGPROC MessageProc); 

/* DesignReplaceExtended - Redesign a notefile from a template 
* 
*        This replaces ONLY the notes that exist in the design collection, 
*        that is, Forms, Views, Fields, and Filters. 
* 
*        Note that this subroutine also refreshes the database class, etc. 
* 
*        Inputs: 
*                hSrcDB - DB handle of template file 
*                hDstDB - DB handle of destination file 
*                fForce - Operation should always be done, even if destination is "up to date" 
*                fPreserveFolders - allows folders without the preserve bit set to be retained 
*                                                        if TRUE.  This was added to v4.53 and 4.61 to prevent new folders 
*                                                        from being blown away in a mail conversion where the mail 
*                                                        file was created without the "Inherit from design" checkbox 
*                                                        checked.  Existing callers of DesignReplace are unaffected. 
*                pLangList - List of languages.  When the template is a multilingual and this argument 
*                                        is specified, design notes in the template which have a language tag not 
*                                        in the list are excluded. 
* 
*        Outputs: 
*                Return value - error status. 
*/
STATUS far PASCAL DesignReplaceExtended(DBHANDLE hTemplate, 
DBHANDLE hDB, 
BOOL fPropagateSrcClass, 
BOOL fForce, 
ABORTCHECKPROC AbortCheck, 
OSSIGMSGPROC MessageProc, 
BOOL fPreserveNewElements, 
LIST *pLangList,  
BOOL fRestoreAgentCode, 
BOOL fHideWhenDone, 
BOOL AllowDupes); 
Titel: Re: Parameter von API DesignRefresh()
Beitrag von: Flachmann am 18.04.19 - 12:26:34
Super, vielen Dank!  :)