Adding Query String Parameters to Table loadData

I am new to ADF/JDeveloper, so hopefully this is a simple question...
I have created an ADF task flow containing a table of fake weather data. This data is loaded using a URL Service Data Control. The URL service takes a zip code as a querystring parameter and returns a CSV of weather data. All of this works fine when I create the data control, test the URL and add the table. However, right now I am hard coding the zip code into my loadData argument (where I submit the zip code).
What I want to do is read a querystring parameter from the JSPX page my task flow resides on and submit that zip code to loaddata in my bindings. When I write the EL that I think should do this (the same EL works when I put it in an outputText box), the task flow fails to load the correct zip code.
I have tried creating a backing bean and loading the data from there, but this doesn't seem to work either. So what is the "ADF way" to do this?
Here are my current bindings from the task flow page definition (see NDValue):
<bindings>
<methodAction id="loadData" RequiresUpdateModel="true" Action="invokeMethod"
MethodName="loadData" IsViewObjectMethod="false"
DataControl="ZipWeatherDC" InstanceName="ZipWeatherDC"
ReturnName="ZipWeatherDC.methodResults.loadData_ZipWeatherDC_loadData_result">
<NamedData NDName="zip"
NDValue="#{param.zipcode}" NDType="java.lang.String"/>
</methodAction>
<tree IterBinding="loadDataIterator" id="Return">
<nodeDefinition DefName="net.hross.adf.weather.model.ZipWeatherDC.loadData_Data">
<AttrNames>
<Item Value="dayOfWeek"/>
<Item Value="hiTemp"/>
<Item Value="lowTemp"/>
<Item Value="precip"/>
<Item Value="sky"/>
<Item Value="zipCode"/>
<Item Value="img"/>
</AttrNames>
</nodeDefinition>
</tree>
</bindings>
Thanks in advance for any advice!
Ross

OK.  I typed the Name manually. But I neglected to hit the tab key twice to arrive at the Value input field.
Screenshot 1
After hitting tab key twice, value field is in focus and 2nd lightening bolt appears.
Gads!  No wonder people mess this up. 
Thanks, David.  I appreciate your clarification. 
Nancy O.

Similar Messages

  • 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.

  • Adding query string parameter to link

    I'm reviewing this tutorial by David Powers and I'm using CS6. 
    http://www.adobe.com/devnet/dreamweaver/articles/first_dynamic_site_pt2.html
    Everything went well until I tried to add query string parameters to links (EDIT and DELETE) on the manage_posts.php  page.
    "You add a query string to the end of a link through the Parameters dialog box, and bind the primary key from the recordset. Although it's a simple operation, many people tend to get it wrong, so follow the next steps carefully."
    I did.  In fact I did it twice.  Both times DW inserted = sign in the wrong place.
    DWCS6 code:
    <td><a href="update_post.php?<?php echo $row_getPosts['post_id']; ?>=<?php echo $row_getPosts['post_id']; ?>">EDIT</a></td>    
    Corrected Code:
    <td><a href="update_post.php?post_id=<?php echo $row_getPosts['post_id']; ?>">EDIT</a></td>
    Anyone else experiencing this?
    Nancy O.

    OK.  I typed the Name manually. But I neglected to hit the tab key twice to arrive at the Value input field.
    Screenshot 1
    After hitting tab key twice, value field is in focus and 2nd lightening bolt appears.
    Gads!  No wonder people mess this up. 
    Thanks, David.  I appreciate your clarification. 
    Nancy O.

  • 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

  • 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.
    Thanks

    Hello,
    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 Thanks 

    Hi,
    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

  • [svn:osmf:] 13412: WebPlayer: optimizing JS code to forward all query string parameters to WebPlayer.swf .

    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.as

    ls -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"

  • 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
    Carol

    There 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

  • 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?
    Shane

    Frank,
    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

  • 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.

  • Adding query string to files already within shared documents

    Am a Sharepoint newbie, so hopefully this is an easy one. Am trying to add a query string to some hyperlinks (of PDF files) that are already published in a Shared Documents web part. What's the best way to accomplish this? Can't seem to find an easy
    way to edit the raw HTML anchor tag, which would be so simple. Is the anchor tag HTML exposed someplace where I can edit?
    Thanks in advance.

    You could potentially modify the rendering of a specific Shared Documents by modifying the XSL of your view in SharePoint Designer. However, this will not affect all libraries and not all views of the library, just the specific page.
    The jQuery method is actually very easy and can be deployed site-wide by adding a reference to your MasterPage, or to a specific view / page by using the Content Editor Web Part. The actual jQuery would look something like:
    $(document).ready(function() {
    $("a[href$='.pdf']").attr('href', function(i, v) {
    return v + '#YourCustomQueryString';
    Dimitri Ayrapetov (MCSE: SharePoint)

  • 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,
    Dev

    I'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

  • 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 advance

    Hi,
    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

  • Passing query string parameters to Visual Web Parts?

    Does anyone know how to get the parameters from a query string to a Visual Web Part?
    Dan Marth

    Hi,
    you can read the query string parameter from the code behind using:
    Request.QueryString["YourParam"];
    You can also use Javascript or jQuery:
    http://archive.plugins.jquery.com/project/query-object
    http://javascript.about.com/library/blqs1.htm
    HTH!
    Regards, Sjoukje
    Web: http://sjoukjezaal.com | LinkedIn:
    http://www.linkedin.com/in/sjoukjezaal | Twitter:
    @SjoukjeZaal
    Please click "Propose As Answer" if a post solves your problem or "Vote As Helpful" if a post has been useful to you.

  • Export to Excel is not working for List View Web Part after filtering using Query String parameters in SharePoint 2010

    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"/>&nbsp;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

Maybe you are looking for