Solved

Link to submitted document

Posted on 2004-03-22
7
223 Views
Last Modified: 2013-12-18



I have a webform , with $$ Return and WebQuerySave agent.
When i user creates a new document , i want to redirect him to his newly created document instead of a customised  " Document ha=s been created succesfully.

I can't find how to do it with $$Return since i dunno Univ ID of the new document yet.

Anyone can help ?
0
Comment
Question by:Steamer
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 19

Expert Comment

by:madheeswar
ID: 10648021
ur wrong.

When u create a new document, a new DocID is generated and u can redirect by using this docid.

http://domainname.com/dbname.nsf/0/(docID)!opendocument
0
 
LVL 15

Accepted Solution

by:
Bozzie4 earned 125 total points
ID: 10648041
So in the $$Return field, you can put

"[/" + @replacesubstring(@subset(@dbname;-1);" ":"\\";"+":"/") + "/_/" + @text(@documentuniqueid) + "?Open]"


Or, in the webquerysave agent, end with a print statement :

Print |[/| & db.filepath & |/_/| & doc.universalid & |?open]|

Caution : If you have at least 1 print statement, the $$Return field is ignored !

Tom
0
 
LVL 19

Expert Comment

by:madheeswar
ID: 10648067
What Tom is the same which I said before.

Tom has kept in a cool way.
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 14

Expert Comment

by:p_partha
ID: 10648990
My 2 cents:

Little less overhead on server's performance

"[[/" + @replacesubstring(@subset(@dbname;-1);" ":"\\";"+":"/") + "/_/" + @text(@documentuniqueid) + "?Open]]"


Partha
0
 
LVL 31

Expert Comment

by:qwaletee
ID: 10649157
Umm, partha, your code is identical to Tom's.

Also, the print statement overrides BOTH $$Return and any additional print |[ ... ]| statement.
0
 
LVL 14

Expert Comment

by:p_partha
ID: 10649166
Double square brackets Qwalette... :)

Partha
0
 
LVL 31

Expert Comment

by:qwaletee
ID: 10653395
Ah.

Of course, I'm nt CONVINCED that's really more efficient from the server side, but, whatever.  Also, the double-brackets are only guaranteed to work on search URLs.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question