Solved

Link to submitted document

Posted on 2004-03-22
7
212 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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

707 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now