Domino 9 und frühere Versionen > ND8: Entwicklung

Antwortdokumente im Web ermitteln/abfragen/bearbeiten

<< < (2/3) > >>

pimpfling:
Wie kann ich den Aufruf @Command([ToolsRunMacro]; "SetActiveDevice") im WebQuerySave Event debuggen?
Ich sehe keine print Ausgaben in der Domino Server Konsole...

atbits:
Verwende msgbox ;-)
Das landet dann auf der Serverkonsole und in der log.nsf

oder ein logging framework  8)

pimpfling:
Es kommt keine Meldung auf der Konsole...

Hier nochmal der Agent:

--- Code: ---Sub Initialize
Msgbox "Hallo"
Dim parentUnid As String
Dim db As NotesDatabase
Dim Parent As NotesDocument
Dim collection As NotesDocumentCollection
Dim currentResponse As NotesDocument
Dim session As NotesSession
Dim item As NotesItem
Dim doc As NotesDocument
Dim view As NotesView

Set session = New NotesSession
Set db = session.CurrentDatabase
Msgbox 1
Set view = db.GetView("VWDevices")
Set doc = session.DocumentContext
Set parent = db.GetDocumentByUNID ( doc.ParentDocumentUNID )
Set collection = parent.Responses
Msgbox 2
Set currentResponse = collection.GetFirstDocument
Call doc.Save(True,True)
Msgbox 3
If doc.GetItemValue( "DC_ActiveDevice" )(0) = "Yes" Then
While Not currentResponse Is Nothing
If doc.UniversalID <> currentResponse.UniversalID Then
Set item = currentResponse.ReplaceItemValue( "DC_ActiveDevice", "" )
Call currentResponse.Save( True, True )
End If
Set currentResponse = collection.GetNextDocument(currentResponse)
Wend
End If
End Sub
--- Ende Code ---

pimpfling:
PS. Im Notes Client funktioniert es.
Dokument in einer View markiert und den Agenten über Aktionen ausführen...

atbits:
Was sagt denn das Log des Agents im Designer, wurde der Agent überhaupt ausgeführt. Mußt Du vielleicht Klammern ergänzen oder wegnehmen beim Agentnamen oder den Trigger anders setzen?

Ist es evtl ein restricteter Agent und das darfst Du nicht?

Navigation

[0] Themen-Index

[#] Nächste Seite

[*] Vorherige Sete

Zur normalen Ansicht wechseln