Skip to main content

 
developerWorks
AIX and UNIX
Information Mgmt
Lotus
New to Lotus
Products
How to buy
Downloads
Live demos
Technical library
Training
Support
Forums & community
Events
Rational
Tivoli
WebSphere
Architecture
Java™ technology
Linux
Multicore acceleration
Open source
SOA and Web services
Web development
XML
My developerWorks
About dW
Submit content
Feedback


developerWorks  >  Lotus  >  Forums & community  >  Notes/Domino 4 and 5 Forum

Notes/Domino 4 and 5 Forum

developerWorks

  

Sign in to participate

RE: Adding views to a hidden design
Rod Whiteley 29.Oct.01 07:40 Lotus Notes
Domino Designer -- Templates All Releases All Platforms


Here is experimental code to set (hide = True) or clear (hide = False) the hidden design flag. This is no different in its effect from using a hex editor on the NSF. With either method you might have to fiddle about to get the new setting recognized -- it must be cached somewhere. Making a trivial change to the replication settings often works.

    Const APIModule = "NNOTES" ' Windows/32 only
    Const REPLFLG_HIDDEN_DESIGN = &H0020

    Type ReplicaInfo
    ID(1) As Long
    Flags As Integer
    CutoffDays As Integer
    CutoffDate(1) As Long
    End Type

    Declare Function NSFDbOpen Lib APIModule Alias "NSFDbOpen" _
    ( Byval P As String, H As Long) As Integer
    Declare Function NSFDbClose Lib APIModule Alias "NSFDbClose" _
    ( Byval H As Long) As Integer
    Declare Function OSPathNetConstruct Lib APIModule Alias "OSPathNetConstruct" _
    ( Byval Z As Long, Byval S As String, Byval F As String, Byval P As String) As Integer
    Declare Function NSFDbReplicaInfoGet Lib APIModule Alias "NSFDbReplicaInfoGet" _
    ( Byval H As Long, R As ReplicaInfo) As Integer
    Declare Function NSFDbReplicaInfoSet Lib APIModule Alias "NSFDbReplicaInfoSet" _
    ( Byval H As Long, R As ReplicaInfo) As Integer

    Sub HideDesign(db As NotesDatabase, hide As Variant)
    Dim hDB As Long
    p$ = Space(256)
    OSPathNetConstruct 0, db.Server, db.FilePath, p$
    NSFDbOpen p$, hDB

    Dim R As ReplicaInfo
    NSFDbReplicaInfoGet hDB, R
    If hide Then
    R.Flags = R.Flags Or REPLFLG_HIDDEN_DESIGN
    Else
    R.Flags = R.Flags And Not REPLFLG_HIDDEN_DESIGN
    End If
    NSFDbReplicaInfoSet hDB, R

    NSFDbClose hDB
    End Sub


Adding views to a hidden design (Christopher Har... 23.Oct.01)
. . RE: Adding views to a hidden design... (Rod Whiteley 23.Oct.01)
. . . . RE: Adding views to a hidden design... (Peter Haynes 28.Oct.01)
. . . . . . RE: Adding views to a hidden design... (Rod Whiteley 29.Oct.01)
. . . . . . . . RE: Adding views to a hidden design... (Peter Haynes 29.Oct.01)
. . . . . . . . . . RE: Adding views to a hidden design... (Gunnar Vinje 2.Dec.01)
. . . . . . . . RE: Adding views to a hidden design... (jones zhu 8.Aug.03)
. . . . . . . . . . RE: Adding views to a hidden design... (Rod Whiteley 8.Aug.03)
. . . . . . . . RE: Adding views to a hidden design... (Melissa L Snell... 3.Feb.06)



Lotus Software


  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Author
Category
Platform
Release
Advanced search

 Sign In or Register
Sign in
Forgot your password?
Forgot your user name?
Create new registration

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds

 Resources
Forum use and etiquette
Native Notes Access
Sandbox
Web site Feedback

  Lotus Support
Lotus Support
Product support pages index
Search knowledge base (Technotes)
Search support downloads
Lotus Support RSS

 Wikis
IBM accelerators
IBM Composite Applications
IBM Mashup Center
Lotus Connections
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Forms
Lotus Foundations
Lotus iNotes
Lotus Mobile Connect
Lotus Notes
Lotus Notes Traveler
Lotus Quickr
Lotus Sametime
Lotus Symphony
Lotus Web Content Management
Lotus Workforce Management
WebSphere Dashboard Framework
WebSphere Portal
WebSphere Portlet Factory

 Lotus Forums
Notes/Domino 8.5
Notes/Domino 8
Notes/Domino 6 and 7
Notes/Domino 4 and 5
Lotus ActiveInsight
Lotus Component Designer
Lotus Connections
Lotus Domino Document Manager
Lotus e-learning
Lotus Enterprise Integration
Lotus Expeditor
Lotus Forms
Lotus Labs
Lotus Mobile Connect
Lotus Quickr
Lotus Sametime
Lotus Sametime Unyte Events
Lotus Sametime Unyte Meeting
Lotus Sametime Unyte Share
Lotus SmartSuite
Lotus Symphony
Lotus Web Content Management
Lotus Widget Factory
Lotus Workflow