UiXML and query string parameters
Is there a simple way to access a query string parameter within the destination page?
Example:
- in my source page I have something like:
<link text="My page destination"
destination="page?param1=value1" />
What I want is to be able to acces directly to the param1 within page.uix without handling events or writing any kind of java code.
I have tried to use ctrl:page, ctrl:eventResult or ctrl:servletRequest without success (thought it was not the right thing to do but gave it a try anyway).
As i understand (?) the doc query string parameters are event parameters:
- does it mean we can only deal with query string parameters in an event handler?
Oscar
Hi Oscar -
As i understand (?) the doc query string parameters are event parameters:
- does it mean we can only deal with query string parameters in an event handler? Right. The UIX Controller allows you to pass data to a new page using URL parameters in one of two ways: as event parameters - in which case you need to have a corresponding event handler - or as page properties. So, the built-in data providers that are supported by the UIX Controller (ctrl:page, ctrl:eventResult) are designed for supporting these two mechanisms.
If you do not want to write an event handler, then you could consider using page properties to pass your parameters. The following link shows how to use the pageURL bound value to construct a destination which includes a single page property:
<link text="Go to target page" xmlns="http://xmlns.oracle.com/uix/ui">
<boundAttribute name="destination">
<pageURL name="targetPage" xmlns="http://xmlns.oracle.com/uix/controller">
<properties>
<property key="prop1" value="value1"/>
</properties>
</pageURL>
</boundAttribute>
</link>
And the following sample shows how to bind to the same property:
<styledText data:text="prop1@ctrl:page"/>
Andy
Similar Messages
-
Another bug in Flex? (Application.parameters and query strings)
I'm passing in two query string parameters in the source of SWFLoader and both of them are clumped together in the first parameter by application.parameters.
But I switch the order of the parameters in the query string and both parameters are returned correctly:
Case #1:
Query String: ?cfg=zzzzzzz54B&embed_div=x
parameters.cfg: zzzzzzz54B&embed_div=x
parameters.embed_div: [nothing]
Case #2:
Query String: ?embed_div=x&cfg=zzzzzzz54B
parameters.cfg: zzzzzzz54B
parameters.embed_div: x
Here is the actual debug commands:
Dumper.info(this.url);
Dumper.info(this.parameters.cfg)
Dumper.info(this.parameters.embed_div);
And output:
(Case #1)
[INFO]: file:///C:/Program%20Files/WordRad234/chm/wordrad_kt/web%20pages/zzzzzzz5/rad_3xf.swf?cfg =zzzzzzz54B%26embed_div%3Dx (String)
[INFO]: zzzzzzz54B&embed_div=x (String)
[INFO]: (Object)
(Case #2)
[INFO]: file:///C:/Program%20Files/WordRad234/chm/wordrad_kt/web%20pages/zzzzzzz5/rad_3xf.swf?emb ed_div=x&cfg=zzzzzzz54B (String)
[INFO]: zzzzzzz54B (String)
[INFO]: x (String)
Something I just noticed: the equal sign after embed_div is replaced by %3D but only if embed_div comes last.NEVERMIND:
It was something I was doing to the source of SWFLoader beforehand (involving encodeURIComponent).
I have to say, I have many, many times thought something was a bug in Flex and it was in fact my code. In general, I think Flex/AS3 is an elegant and useful product. The sort of ad hoc tweaks that have to be done to avoid memory leaks though is ridiculous (though I do have that figured out pretty much as well.) -
Using Query String Parameters with Session Scoped bean
I would like to pass query string parameters from a product page (user clicks on a specific product commandLink) that is request scope to a details page that is session scoped.
The problem is that the session scoped page only handles the first request. If you view the details of a product and then navigate back to the product page and choose another product ... the details page will not handle the new query string parameters and display the details for the first product chosen.
Is there a way to make the session scoped bean recognize the query string parameters past the first request?I was able to replicate this problem with a very simple app that performs a redirection... just like the real app. Here's the simple app that I put together:
From request scope page:
<f:view>
<h:form>
<h:commandButton value="Link 1" action="#{reqbean.Link1}"/>
<br/><br/>
<h:commandButton value="Link 2" action="#{reqbean.Link2}"/>
</h:form>
</f:view>
From request scope bean:
public String Link1() throws IOException
// Add event code here...
//redirect the user
FacesContext.getCurrentInstance().getExternalContext().redirect("untitled2.jspx?p=1");
return null;
public String Link2() throws IOException
// Add event code here...
//redirect the user
FacesContext.getCurrentInstance().getExternalContext().redirect("untitled2.jspx?p=2");
return null;
}At this point... I put a println in the constructor of the session scoped bean because this is where I want to get the query string params. The constructor only gets called the first time a redirect is performed. -
Masking of query string parameters
Hello all,
I have a dot net application which has a query string parameters coming from a sharepoint site. I want to mask those incoming query string parameters.
Can anybody sugeest me whats the best method to mask paramters which are coming from another application, but not from any other aspx page.
Any help is greatly appreciated.
ThanksHello,
Seems that you've post your question in Sharepoint Forums, and some developers have given you suggestions or solutions. Please check the answers there and follow up if needed.
https://social.msdn.microsoft.com/Forums/office/en-US/d999d231-c517-4dbb-80e3-ede99eab09ed/encrypt-query-string-parameters?forum=sharepointdevelopment#d999d231-c517-4dbb-80e3-ede99eab09ed
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Encrypt query string parameters
Hi All,
I have a SharePoint designer workflow email. I want to send encrypted link to users within email. Is there any way to send encrypted query string parameters?
Please guide me how to send parameters with url in email so that users cannot see it.
All suggestions are highly appreciated.
Regards and ThanksHi,
Per my knowledge, we can't Encrypt query string parameters in SharePoint Designer.
As a workaround, we can encrypt query string parameters using C# code and store the URL in a list. Then we can get the URL in SharePoint Designer.
http://www.codeproject.com/Articles/33350/Encrypting-Query-Strings
Best Regards
Dennis Guo
TechNet Community Support -
Revision: 13412
Revision: 13412
Author: [email protected]
Date: 2010-01-11 02:02:20 -0800 (Mon, 11 Jan 2010)
Log Message:
WebPlayer: optimizing JS code to forward all query string parameters to WebPlayer.swf.
Modified Paths:
osmf/trunk/apps/samples/framework/WebPlayer/html-template/index.template.html
osmf/trunk/apps/samples/framework/WebPlayer/src/Configuration.asls -l /var/run/lighttpd/
And how are you spawning the php instances? I don't see that in the daemons array anywhere.
EDIT: It looks like the info in that page is no longer using pre-spawned instances, but lighttpd adaptive-spawn. The documentation has been made inconsistent it looks like.
You will note that with pre-spawned information, the config looks different[1].
You need to do one or the other, not both (eg. choose adaptive-spawn, or pre-spawn..not both).
[1]: http://wiki.archlinux.org/index.php?tit … oldid=8051 "change" -
Action and Query-String in HTTP Adapter
Hi,
I am doing an IDOC -> SAP PI -> HTTP scenario
HTTP application is external party (using Party).
I have to build the URL Dynamically; so I use Dynamic Configuration in Message Mapping.
The URL format (from help.sap.com) is http://<hostname:port>/<path>?<query-string>
Hostname and port are know to me.
From where will I get information about path and query-string , are they mandatory?
help.sap.com has given details about sender HTTP: http://help.sap.com/saphelp_nwpi711/helpdata/en/44/8f54b8b01e3673e10000000a114a6b/content.htm but i want to know about receiver HTTP.
Is there any example available?
Thank you,
Pankaj.> So I have to ask the External Parties to send the message (to SAP PI) to the URL (http://hostname:port/<action>?<query-string>)?
When you replace the varaibles, yes.
> Any idea about my original question (about action and query-string in receiver channel's URL) or should I use a RFC destination there (now it will be Type G I suppose)
Just put the URL of the receiver.
> There is SSL configuration also between External Parties and SAP PI (if this information is required).
In that case, you put a URL with https://.. -
How to customize the SharePoint 2010 search query string parameters
Hi All,
I am trying to redirect default SharePoint search to a custom search results page.
I modified the Search Settings to redirect to the URL that I want.
But my custom search page takes different query string parameters to provide the results.
Eg: SharePoint search passes k=search term when we perform a search. But my custom page needs
test=search term
I would like to pass 'test' instead of 'k' as a query string. Is this possible?
Thanks
CarolThere is no way out of the box to change it. You could always write your own control that passes the value or inherit from SearchBoxEx web part (if you are using a search center) to pass a different value. Query String Filter web part won't
help you here I am afraid. However, wouldn't it be easier just to change your code to take the value that SharePoint passes you?
Corey Roth - SharePoint Server MVP blog:
www.dotnetmafia.com twitter: @coreyroth -
FLVPlayback source with query strings (parameters) doesn't load
Flash version: CS4
AS version: AS3
I'm currently trying to use the FLVPlayback component and pass a source FLV that's living on a cloudfront webserver. The problem is that the cloudfront requires authentication in the form of query strings in the source FLV. For example:
import fl.video.*;
var mainMovie:FLVPlayback = new FLVPlayback();
mainMovie.source = "http://www.somedomainname.com/firmware.flv?dummyquery=22";
trace(addChild(mainMovie));
As soon as I take away the "dummyquery", it works fine. When I add a query string, it breaks (nothing loads).
Here is the error output I get:
[object FLVPlayback]
VideoError: 1005: Invalid xml: URL: "http://www.somedomainname.com/firmware.flv?dummyquery=22&FLVPlaybackVersion=2.1" No root node found; if url is for an flv it must have .flv extension and take no parameters
at fl.video::SMILManager/http://www.adobe.com/2007/flash/flvplayback/internal::xmlLoadEventHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
It adds on "&FLVPlaybackVersion=2.1" to the end.
I saw a different article that said I should add a dummy variable at the end like "&dummy=.flv" because I was told that Flash is basically looking for an .flv extension at the end and you can trick it, but it doesn't work because they add on additional code.
Does anyone know how to work around this?Hey supervu,
I know you already found a workaround to make this work, just figured I'd post an alternative to editing the FLVPlayback compoent. I also am retrieving an FLV file via a .Net ASHX file. To keep both worlds happy, I used a URLRewriter module to translate for me... this one translates what I am using for the FLVPlayback component source:
http://domain.com/flv/22.flv to be resolved as http://domain.com/API/resource.ashx?ID=22
There is of course no flv folder in the root of my application...
Here is my very simple URLRewriter class in vb.net:
Imports Microsoft.VisualBasic
Imports System
Imports System.Web
Public Class URLRewriter
Implements IHttpModule
Public Sub Init(ByVal inst As System.Web.HttpApplication) Implements System.Web.IHttpModule.Init
AddHandler inst.BeginRequest, AddressOf Me.OnBeginRequest
End Sub
Public Sub OnBeginRequest(ByVal app As Object, ByVal e As EventArgs)
Dim inst As HttpApplication = CType(app, HttpApplication)
Dim req_path As String = inst.Context.Request.Path
Dim trans_path As String = ""
Dim search As String = "/flv/"
Dim pos As Integer = req_path.IndexOf("/flv/")
If pos > -1 Then
Dim key as string = req_path.Substring(pos + search.Length, (req_path.LastIndexOf(".flv") - (pos + search.Length)))
HttpContext.Current.Response.Redirect("~/API/resource.ashx?ID=" & key )
End If
End Sub
Public Sub Dispose() Implements System.Web.IHttpModule.Dispose
End Sub
End Class
and make sure you add this to your web.config.. this will cause URLRewriter to intercept all HTTP requests, and redirect as needed.
<system.web>
<httpModules>
<add name="URLRewriter" type="[Namespace].URLRewriter"/>
</httpModules>
</system.web>
Hope this helps someone. -
SSOServlet - query string parameters being lost
Hi,
We recently upgraded ALUI from version 5.04J to 6.1. After the upgrade, we noticed one issue with the redirection. When the user is not logged in & accesses a secure commnity, he/she is redirected to the SSO Servlet. For instance, if the following URL is accessed
/portal/server.pt?open=512&objID=326&PageID=0&cached=true&mode=2&userID=2&CommunityID=326
the user should be redirected to (as in version 5.04J)
/portal/SSOServlet?open=512&objID=326&PageID=0&cached=true&mode=2&userID=2&CommunityID=326
Instead the user is redirected to /portal/SSOServlet?
(without the query string)
Does anyone know why?
Thanks,
DevI've tired doing this and it did not work for me. However, I was able to find a solution that helped me a whole lot.
After running all test runs - I found a solution that helped me take off the extra parameters that Eloqua adds to all URL's.
I created my urls without placing "http://" or "https://" or http://www." or "https://www." and that helped take off all tracking.
Re: Use of tinyUrl -
Reports 6i Encrypting query string parameters using Web.Show_Document()
I am developing Forms 6i form which initiates a report on our reports server (using rwcgi60) using a call to Web.Show_Document(). However, we pass several parameters to the report from the form which we'd like to encrypt, otherwise they're likely to be abused.
For example, I might have something like:
http://www.myserver.com/dev60cgi/rwcgi60?report=MYREPORT&p_unsecure_param=1234
I am aware of the following document which describes how to use a JavaBean implmentation and client cookie to hide sensitive information using a client side cookie - but this appears to be specific to hiding user logon information - can it be extended to cover any parameter on the query string?
http://www.oracle.com/technology/products/forms/pdf/secure_webshowdoc_rep6i.pdf
...or will I have to provide my own solution - e.g. perhaps using the DBMS_OBFUSCATION encryption and decryption functions to pass an encrypted parameter string to the report, and have the report decrypt the string on the reports server....
I should probably point out that the parameter values are dynamic - not static, so adding an entry to cgicmd.dat isn't going to solve my problem.
Any ideas?
ShaneFrank,
Thanks for confirming this - this is what I had suspected - just wanted to check that there wasn't already some inbuilt functionality which I had overlooked. DBMS_OBFUSCATION_TOOLKIT it is then!
Shane -
HTTPS Receiver Adapter with POST and query String
Hi there,
we are currently running a http connection with an external partner. We use the plain http adapter to send documents.
Now we want to secure the whole thing and switch to https.
Currently we solely use the comm. channel in the directory. In the URL we include the required query string (http:/xxx/yyy<b>?msgtype=order</b>)
As I understand, the only way to use httpS is to use a RFC Dest. Type G in sm59.
But I am not able to add a query to the url there.
I guess that it is not an option to ask our partner to search the posted document for parameters. We were already happy that they were able to do it like we have it.
Does anyone has an idea how we could include a query in the url or give somehow the partner explicitly the info about the message type we send?
Thanks in advance,
HelgeHi Helge,
as far as I know this should be possible with SP16 by using the settings in the adapter configuration.
We had this requirement, but with SP15 it isn´t possible.
Have a look on the documentation
http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
Chapter Adapter-Specific Message Attributes
There you can use up to 6 URL Parameters. I never used it, if you have SP16, try it.
Regards
Thomas -
Need example for using query string parameters in Web Dynpro
Hello,
Is it possible to transfer a Web DynPro application parameters at the query string (URL)?
Can someone please show me an example of how to pass it and how to retreive it using code inside an application?
Thank you in advanceHi,
when launching WD apps in the Portal you have to define a WD iView in the Portal. This can be started using the NavigationTarget parameter.
Parameters (ie. Business Parameters) that should be passed to the WebDynpro application can be defined in the iView itself - the iView attribute is called "Application Parameters". Here you can also define variable expressions like "emailaddr=<User.email>" so that the value of the email address is evaluated on runtime.
This way you don't have to care about URL encodings at all
The following user expressions can be used:
<User.displayname>
<User.uniquename>
<User.firstname>
<User.lastname>
<User.salutation>
<User.jobtitle>
<User.department>
<User.email>
<User.telephone>
<User.mobile>
<User.fax>
<User.streetaddress>
<User.city>
<User.zip>
<User.country>
<User.state>
<User.timezone>
udo -
Hi,
I am filtering SharePoint list view web part based on Query string parameter and I am doing Export to Excel by using following code.
<a href="#" onclick="javascript:window.location='../_vti_bin/owssvr.dll?CS=109&Using=_layouts/query.iqy&List=0DC67399-BE11-48F3-ADFC-E911FB8B5845&View=54671412-3EFE-4281-835A-9EF747AE774E&CacheControl=1'"><img
alt="Excel" src="/_layouts/images/icxlsx.gif" border="0"/> Export to Excel</a>
Issue: Able to do Export to Excel when there are no filters applied on list view web part but if applied filters on web part and do export to excel , only header fields are displaying in the excel sheet.
I don't know why owssvr.dll is behaving like that .
Please share your ideas.
Thanks in Advance.Hi,
According to your post, my understanding is that you wanted to create hyperlink to export to excel.
The URL to execute the export is as follows:
{Site URL}/_vti_bin/owssvr.dll?CS=109&Using=_layouts/query.iqy&List={List GUID}&View={View GUID}&CacheControl=1
After getting the GUID, you need to “decode” the list GUID.
Replace %7B with {
Replace %2D with –
Replace %7D with }
More information:
Create Link to Export Library Contents to Excel
SharePoint - Create a link to export to Excel
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
Problem in retrieving query string parameters
Hi All,
AM working on wsrp in weblogic..Have a doubt in it..
I have two tabs in my application home page..One is tab HOME and another one is tab SEARCH..
So i want to navigate between these two tabs and i have my consumer portlet in tab HOME and producer portlet in tab SEARCH..
AM trying to pass some values when i click the tab SEARCH from the home page in query string using <render:param> tag.. AM using that tag, since have used <render:paramURL> tag for navigation..
so it will be like this:
<render:param name="test" value="sample"/></render:pageUrl>">
but am not able to retrieve the value in my producer doview()..
i get NULL value
when i try to access it using
request.getParameter("test")
but when i focus the mouse pointer on the SEARCH tab in my application, i see the value gets appended to the query string but not able to retrieve it inmy producer portlet..
Does anyone have idea about this??
RegardsHello,
There is no way to generate a URL to another portal page from a producer portlet, as the producer has no idea what the structure of the consumer-side portal looks like or how to change a page.
By far your best bet is to use events to change the page, and put an "activatePage" handler on the portlet on your "HOME" page, and send an event to trigger the page change.
Put an "activatePage" handler in your remote portlet's .portlet file (on the producer side), such as:
<?xml version="1.0" encoding="UTF-8"?>
<portal:root xmlns:html="http://www.w3.org/1999/xhtml-netuix-modified/1.0.0" xmlns:portal="http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0" xmlns:netuix="http://www.bea.com/servers/netuix/xsd/controls/netuix/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0 portal-support-1_0_0.xsd">
<netuix:portlet title="Sample Page Activating Portlet" definitionLabel="eventsLinkDef1">
<netuix:handleCustomEvent event="SampleCustomEvent">
<netuix:activatePage /> <!-- This changes the page to the page this portlet is on when this event is received -->
</netuix:handleCustomEvent>
<netuix:titlebar>
<netuix:minimize/>
<netuix:maximize/>
</netuix:titlebar>
<netuix:content>
<netuix:jspContent contentUri="whatever"/>
</netuix:content>
</netuix:portlet>
</portal:root>This way, when you send the event (and you can include a payload in the event if you want to send search terms), the consumer will automatically switch pages to the page containing the search portlet. And it works over WSRP and locally (not over WSRP).
Kevin
Maybe you are looking for
-
Can't get computer up, maybe disc too full?
I knew I needed to delete some things as my machine was running slowly and I checked and the disk was too full. But I hadn't gotten around to it. So today, after leaving it on during the night, the screen was completely black and wouldn't respond. I
-
Manual Payment (J04102) - Missing Amounts in The Payment Lines (Fold)
Dear Fellows; I need your helps on this annoying issue. We use JDE Wolrd in AS400 database environment. We have a problem in J04102 (Enter Manual Payments) when matching the payment amount with the pay items (invoices). In the screen, we cannot view
-
Create GPP drive mapping entries programmatically
Can anyone provide any sample codes that creates drive mapping entries in group policy preference? I am not looking for script to create the GPO, I am looking for codes to create mapping entries inside it instead. I've been searching for MS document
-
Now You Have iPhone 4, What are You Doing w/ Your Old iPhone?
It basically becomes and iPod Touch if you disable the network and enable the wireless. Have any charities mentioned that they will take old iPhones?
-
Apple TV Problem with Video green static noise locked screen
My AppleTV is stuck with solution in sight. Hadn't used it in a while, turned it on noticed speckled noise throughout the screen was getting stuck due to the new version of itunes. i reset it to where it never left the Apple logo screen. Noise throug