- This topic is empty.
- AuthorPosts
-
- 09/21/2015 at 2:25 am #7489
AnonymousParticipantHi Yonny,
n
n
Why not just hardcode the Source parameter into the GoToURL setting? can you provide me the more detail about your scenario?
n
n
- 09/22/2015 at 3:17 am #7161
AnonymousParticipanthi Henny,
Let me give u an example.
I have the following page where I show the Projects items (meetings, taks, announcements) based on the project ID.
http://sitex/SitePages/Navigation/ProjectPortal.aspx?SourceID=30
I added a quest list view for the tasks and then add a custom toolbar buttom for a new task. I defined the URL
http://sitex/SitePages/Navigation/TaskNewItem.aspx?SourceType=Project
Added an HttpParameter named SourceID but …
I also need send the Source parameter with the current url in the case :
Source=http://sitex/SitePages/Navigation/ProjectPortal.aspx?SourceID=30
Thanks
- 09/22/2015 at 3:41 am #4684
AnonymousParticipantHello,
I need to open a new page sending some parameters and between them the current URL. I already created a Custon Button and added a parameter type GotoURL, but I need send the Source=<current url> to be able to go back the actual item.
Some suggestions ?
Ex?
Regards
- 09/22/2015 at 3:41 am #7162
AnonymousParticipantHi there,
If your original URL has been contain the SourceID parameter, you can set the HttpReauest in the Source in the GoToURL setting, then the GoToURL will contain the SourceID parameter that catch the value form the original URL.
About the Source parameter, because the URL needs to carry the SourceID parameter, so it cannot be hardcoded in the GoToURL setting, unfortunately, it doesn’t support the parameter configuration in this scenario. I think you could try to write some special script in the target page, for example, if you can hardcode some special parameter in the GoToURL setting:
http://sitex/SitePages/Navigation/TaskNewItem.aspx?SourceType=Project&needToSetSource=true&Source= sitex/.../ProjectPortal.aspx
and you also has set the HttpRequest parameter into the GoToURL setting, and now, if you click the GoToURL button, the real URL should be:
http://sitex/SitePages/Navigation/TaskNewItem.aspx?SourceType=Project&needToSetSource=true&Source= http://sitex/SitePages/Navigation/ProjectPortal.aspx &SourceID=30
Then in the target page, write some script to detect the “needToSetSource” parameter, if exist, then construct the ‘Source’ URL toSource= sitex/.../ProjectPortal.aspx&SourceID=30
Then reload it.
-
- AuthorPosts
You must be logged in to reply to this topic.