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
priyapurushothAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

p_parthaCommented:
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>|
priyapurushothAuthor Commented:
"True" is getting printed on the screen after i add this line.
SchrankeeCommented:
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 ,...
C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

p_parthaCommented:
Remove all your print statements and then have just hte last statement whuch does the redirection

partha

priyapurushothAuthor Commented:
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
p_parthaCommented:
Agent shd be Run once @commands may be used. In R6, make target of the agent as None.

Partha
priyapurushothAuthor Commented:
I tried that too. It did not work.
p_parthaCommented:
remove all the code from your agent and just check this, (take backup before htat)
and then slowly build each line, there might be a error somewhere in the agent

Sub Initialize  
Print "<script>location.href='http://www.google.com'</script>"
end sub

to check for errors:

Sub Initialize    
on error goto errorsub
     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
exit sub                    
errorsub:
Print "error occured on line number " & erl & error
exit sub
End Sub

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
priyapurushothAuthor Commented:
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.
p_parthaCommented:
what was the prob?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Lotus IBM

From novice to tech pro — start learning today.