• Anonymous
  • Login
  • Register
Document Viewer - Feature Request: Use the button from inside of a document (not only from a view)


Form: CustomShowDocFields2
Add following:
Globals/Declaration: Dim uidoc As NotesUIDocument
Globals/Initialize: Set uidoc = ws.CurrentDocument

Change following:
Form/QueryOpen:
Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
Const DEBUG = False
If(Not ws.CurrentView Is Nothing) Then
'### categories starts with '8000'
If( Not Instr(ws.CurrentView.CaretNoteID,"8000") = 1) Then
notesID = ws.CurrentView.CaretNoteID
If(DEBUG) Then Msgbox("NoteID: "+notesID)
databasePath = ws.CurrentView.View.Parent.filepath
If(DEBUG) Then Msgbox("DatabasePath: "+databasePath)
server = ws.CurrentView.View.parent.server
If(DEBUG) Then Msgbox("Server: "+server)
Exit Sub
End If
Elseif (Not uidoc Is Nothing ) Then
notesID = uidoc.Document.NoteID
If(DEBUG) Then Msgbox("NoteID: "+notesID)
databasePath = uidoc.Document.ParentDatabase.FilePath
If(DEBUG) Then Msgbox("DatabasePath: "+databasePath)
server = uidoc.Document.ParentDatabase.Server
If(DEBUG) Then Msgbox("Server: "+server)
Exit Sub

End If



Taken Actions by Owners



Documents
In this field you can enter the actual request.

You can use the rich text editor for rich text formating. You can also enter HTML to embed objects, e.g. to embed a YouTube video or a screenshot of the project. In this case use '[' and ']' to mark the passthrough HTML as such.

Please note that the first time you use the new UI your description is converted from rich text to MIME. You might want to copy and paste the raw plain text from the old UI in the new UI so that you don't loose information.
In this field owners can describe what they have done or want to do.

You can use the rich text editor for rich text formating. You can also enter HTML to embed objects, e.g. to embed a YouTube video or a screenshot of the project. In this case use '[' and ']' to mark the passthrough HTML as such.

Please note that the first time you use the new UI your description is converted from rich text to MIME. You might want to copy and paste the raw plain text from the old UI in the new UI so that you don't loose information.