Hey all,
I have a dialog list (called Divisions) where the user will select an option.
Based on the option selected, i would like it to gather the information for that option from another database…
Can anyone help with my code as im new to coding lotusscript.
Sub Postopen(Source As Notesuidocument)
Dim ws As New NotesUIWorkspace
Dim divisonsdoc As NotesDocument
Dim divisionsname As String
'Getting the users to select a division
Dim db As NotesDatabase
Set db = session.currentdatabase
Divisions = divisionsList(db.Search({Form = "Aset"}, "Divisons", 0))
If Ubound(Divisions) = 0 Then
divisionsname = Strright(Divisions(0), "|")
Else
Dim export As NotesDocument
Set export = dbcreatedocument
'List of all the divisions for the user to select
export.divisions = divisions
export.divisions = divisions(0)
x = ws.DialogBox("(dlgCustomExport)", True, True, False, False, False, False, "Choose Division", export, False, False)
If x = False Then divisonname = ""Else divisionname = export.divisons(0)
End If
If divisionsname = "" Then Msgbox "Sorry an error was cause. Please try again...":
Exit Sub
End Sub
Any help given will be grateful.
Thank you
Gem x