Link to submitted document




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 ?
SteamerAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Bozzie4Connect With a Mentor Commented:
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
 
madheeswarCommented:
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
 
madheeswarCommented:
What Tom is the same which I said before.

Tom has kept in a cool way.
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

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

 
p_parthaCommented:
My 2 cents:

Little less overhead on server's performance

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


Partha
0
 
qwaleteeCommented:
Umm, partha, your code is identical to Tom's.

Also, the print statement overrides BOTH $$Return and any additional print |[ ... ]| statement.
0
 
p_parthaCommented:
Double square brackets Qwalette... :)

Partha
0
 
qwaleteeCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.