Can outline be designed dynamically?

In a global database, I have employee profile documents which include department names. Department names are different among locations. In menu which will be shown in Notes Client, I would like to list all department names and let them link to department-specific views. I cannot put static names in outline. How can I accomplish it?

Thanks!

Subject: Can outline be designed dynamically?

Hi ,You can create a ouline using Lotus Script.

Sub Click(Source As Button)

Dim session As New NotesSession

Dim db As NotesDatabase

Dim outline As NotesOutline

Set db = session.CurrentDatabase

Set outline = db.CreateOutline(“MyOutline”)

Messagebox outline.Name

End Sub

you can also add entries to the outline programmatically.

Refer to lotus notes designer help

Dim session As New NotesSession

Dim db As NotesDatabase

Dim outline As NotesOutline

Dim oe As NotesOutlineEntry

Dim level As Long

Set db = session.CurrentDatabase

Set outline = db.GetOutline(“products”)

Set oe = outline.GetFirst()

Messagebox “Level”

Thanks

Sushant

Subject: RE: Can outline be designed dynamically?

That is very helpful!

So I can put all menu item names into a configuration document, create an agent to read them and create outline, and then create an action button putting somewhere. If I click the action, it will refresh outline right away…I will try.

Subject: Can outline be designed dynamically?

If the departments are in groups, I would assign roles and use the roles in hide-whens to show the groups the views they need to see in one big outline. More than one department could have the same role, which would take care of the problem of different department names.

Subject: RE: Can outline be designed dynamically?

Good suggestion! But here I need to not only rename menu item title, but also the formula of the view.