Link to home
Start Free TrialLog in
Avatar of priyapurushoth
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
Avatar of p_partha
p_partha

If you just get the url and not the webpage, Then try to do like this in your agent:

Print |<script>location.href='| + YOURURL + |'</script>|
Avatar of priyapurushoth

ASKER

"True" is getting printed on the screen after i add this line.
If it is WebQuerySave agent, you can use

doc.replaceItemValue("$$return","[" + yourURL + "]")

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

The server was upgraded from R5.1.3 to R6.5.4.

A hotspot in the form opens the agent

@URLOpen(sfldDbNameWeb + "openstep8?openagent&useddate=" + 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(docContext.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
Agent shd be Run once @commands may be used. In R6, make target of the agent as None.

Partha
I tried that too. It did not work.
ASKER CERTIFIED SOLUTION
Avatar of p_partha
p_partha

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
what was the prob?