priyapurushoth
asked on
Document contents do not get displayed in the web
I get the document "useddate" from the webpage and with the help of an agent find the corresponding document from view. but i am not able to see the document contents in the web. but I am able to print the url that is generated and itseems to be perfect.
This problem has occured after server upgrade. what would be the problem?
Please help me...
Thanks
This problem has occured after server upgrade. what would be the problem?
Please help me...
Thanks
ASKER
"True" is getting printed on the screen after i add this line.
If it is WebQuerySave agent, you can use
doc.replaceItemValue("$$re turn","[" + yourURL + "]")
Can you write more about your problem? Server upgrade from [version] to [version], agent run on [trigger], part of agent code ,...
doc.replaceItemValue("$$re
Can you write more about your problem? Server upgrade from [version] to [version], agent run on [trigger], part of agent code ,...
Remove all your print statements and then have just hte last statement whuch does the redirection
partha
partha
ASKER
The server was upgraded from R5.1.3 to R6.5.4.
A hotspot in the form opens the agent
@URLOpen(sfldDbNameWeb + "openstep8?openagent&usedd ate=" + UsedDate)
The Agents runs on all documents and the agent code is below
Sub Initialize
Dim ses As New notessession
Dim docStep8 As notesdocument
Dim docContext As notesdocument
Dim db As notesdatabase
Set docContext = ses.documentcontext
UsedDate$=AtMiddle(docCont ext.Query_ String(0), "&useddate=", "&")
If (UsedDate$ <> "") Then
Set db=ses.currentdatabase
' getStep8DocByDate method is used to get the corresponding doc from the view Set docStep8=getStep8DocByDate (db, UsedDate$)
'docDateIndex should be found or created at this point
Print "[" & db.filepath & "/AllDocByUNID/" & docStep8.universalid & "?opendocument]"
End If
End Sub
A hotspot in the form opens the agent
@URLOpen(sfldDbNameWeb + "openstep8?openagent&usedd
The Agents runs on all documents and the agent code is below
Sub Initialize
Dim ses As New notessession
Dim docStep8 As notesdocument
Dim docContext As notesdocument
Dim db As notesdatabase
Set docContext = ses.documentcontext
UsedDate$=AtMiddle(docCont
If (UsedDate$ <> "") Then
Set db=ses.currentdatabase
' getStep8DocByDate method is used to get the corresponding doc from the view Set docStep8=getStep8DocByDate
'docDateIndex should be found or created at this point
Print "[" & db.filepath & "/AllDocByUNID/" & docStep8.universalid & "?opendocument]"
End If
End Sub
Agent shd be Run once @commands may be used. In R6, make target of the agent as None.
Partha
Partha
ASKER
I tried that too. It did not work.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I can see Google page.
I added error code too. But I dont get any error.
My actual problem is I can see the page but the values are missing..
The same code worked fine before server upgrade.
I added error code too. But I dont get any error.
My actual problem is I can see the page but the values are missing..
The same code worked fine before server upgrade.
what was the prob?
Print |<script>location.href='| + YOURURL + |'</script>|