• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 251
  • Last Modified:

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 ?
0
Steamer
Asked:
Steamer
  • 2
  • 2
  • 2
  • +1
1 Solution
 
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
 
Bozzie4Commented:
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:
What Tom is the same which I said before.

Tom has kept in a cool way.
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
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

Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

  • 2
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now