Adding a URL parameter to the path to spry XMLdataset

anyone know an easy way to code this one.
I can pull in xml and do what ever I want with it, but I want to pull in an XML page that is generated with the URL parameters of the current page
so  instead of
var ds1 = new Spry.Data.XMLDataSet("my_XML.php", "export/row",{useCache:false,loadInterval:2000});
i'd like the url to include the params of the current page
in php something like "my_XML.php?jobnumber=".$var1."&version=".$var2 ;
where var1 and var2 are URL params of the current page URL
I'm guessing I need to create the javascript equivalent to var ds1 = new Spry.Data.XMLDataSet("my_XML.php",  etc
but I've got no idea what that might be
anyone help??

And Spry version where the URL is myfile.html?file=employees
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<script src="SpryAssets/xpath.js"></script>
<script src="SpryAssets/SpryData.js"></script>
<script src="SpryAssets/SpryURLUtils.js"></script>
<link href="SpryAssets/SpryMasterDetail.css" rel="stylesheet">
<script type="text/javascript">
var params = Spry.Utils.getLocationParamsAsObject();
var ds1 = new Spry.Data.XMLDataSet(params.file+".xml", "employees/employee");
</script>
<body>
<div class="MasterDetail">
  <div spry:region="ds1" class="MasterContainer">
    <div class="MasterColumn" spry:repeat="ds1" spry:setrow="ds1" spry:hover="MasterColumnHover" spry:select="MasterColumnSelected">{firstname}<br />
    {lastname}</div>
  </div>
  <div spry:detailregion="ds1" class="DetailContainer">
    <div class="DetailColumn">{firstname}</div>
    <div class="DetailColumn">{lastname}</div>
    <div class="DetailColumn">{joinDate}</div>
  </div>
  <br style="clear:both" />
</div>
</body>
</html>
The URL parameters can be adjusted to suit.
Gramps

Similar Messages

  • [svn:osmf:] 14474: Adding a 'dispatchInitialChangeEvent' parameter to the ' watch' method in order to allow the initial change event from being dispatched, continued.

    Revision: 14474
    Revision: 14474
    Author:   [email protected]
    Date:     2010-02-28 23:53:31 -0800 (Sun, 28 Feb 2010)
    Log Message:
    Adding a 'dispatchInitialChangeEvent' parameter to the 'watch' method in order to allow the initial change event from being dispatched, continued.
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/metadata/MetadataWatcher.as

    *Feedback*
    "Use the form below to send us your comments. We read all feedback carefully, but please note that we cannot respond to the comments you submit."
    http://www.apple.com/feedback/ipad.html
    We can complain about Apple's business decisions, but these discussions are user to user talk about possible solutions.
    Here are the places to report bugs:
    Get an account at
    http://developer.apple.com/  then submit a bug report to http://bugreporter.apple.com/
    Once on the bugreporter page,
       -- click on New icon
       -- See if you need to attach a log file or log files, clicking on Show instructions for gathering logs.  Scroll down to find the area or application that matches the problem.
       -- etc.

  • [svn:osmf:] 14473: Adding a 'dispatchInitialChangeEvent' parameter to the ' watch' method in order to allow the initial change event from being dispatched.

    Revision: 14473
    Revision: 14473
    Author:   [email protected]
    Date:     2010-02-28 23:45:28 -0800 (Sun, 28 Feb 2010)
    Log Message:
    Adding a 'dispatchInitialChangeEvent' parameter to the 'watch' method in order to allow the initial change event from being dispatched.
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/metadata/MetadataWatcher.as

    Perhaps you're not handling the "EndOfStreamEvent" correctly/at all, and thus not freeing up the socket to listen for the "NewReceiveStreamEvent " after the initial stream has ended...
    ?

  • Adding A URL PARAMETER TO AJAX

    Please i'm wondering if anyone could help me embedding a url parameter to an ajax linkk. here's my code
    $('#read').load('sources/news_read.asp?news_id=<%=news_id%>');
    the problem is i can't create a recordset on html page and dats creating the problem

    And Spry version where the URL is myfile.html?file=employees
    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <script src="SpryAssets/xpath.js"></script>
    <script src="SpryAssets/SpryData.js"></script>
    <script src="SpryAssets/SpryURLUtils.js"></script>
    <link href="SpryAssets/SpryMasterDetail.css" rel="stylesheet">
    <script type="text/javascript">
    var params = Spry.Utils.getLocationParamsAsObject();
    var ds1 = new Spry.Data.XMLDataSet(params.file+".xml", "employees/employee");
    </script>
    <body>
    <div class="MasterDetail">
      <div spry:region="ds1" class="MasterContainer">
        <div class="MasterColumn" spry:repeat="ds1" spry:setrow="ds1" spry:hover="MasterColumnHover" spry:select="MasterColumnSelected">{firstname}<br />
        {lastname}</div>
      </div>
      <div spry:detailregion="ds1" class="DetailContainer">
        <div class="DetailColumn">{firstname}</div>
        <div class="DetailColumn">{lastname}</div>
        <div class="DetailColumn">{joinDate}</div>
      </div>
      <br style="clear:both" />
    </div>
    </body>
    </html>
    The URL parameters can be adjusted to suit.
    Gramps

  • Adding a new parameter to the existing report in GL(GLRTR1.rdf)

    Hi Friends,
    I was new to this oracle Forums and i am working as a oracle apps technical consultant, i have been assigned a task in GL module to customise the existing report in GL the report name is "GLRTR1.rdf" (available in vision-demo) and its concurrent program name is "Trial Balance Summary-1" this program has the predefined parameters like:
    (Parameter Name : Values to be entered/as u wish)
    Pagebreak Segment : Company
    Pagebreak Segment Low :01
    Pagebreak Segment High:01
    Currency :USD
    Period Name :feb-2003
    Amount Type :PTD(Period to Date)
    user-parameters to be added to above parameterlist
    costcenterfrom :segment2 value of (GL_CODE_COMBINATIONS table)
    costcenterto : -- do---
    Now what i want is i want to add a user parameter to this concurrent program like costcenterfrom and costcenterto these are optional parameters and the its value set type is TABLE and i want to display value is SEGMENT2.
    when i select the parameters along with predefined and costcenterfrom and costcenter to the report output should be between the costcenter from and costcenterto along with predefined values,
    and if i am not giving any value to the costcenterfrom and costcenterto parameters then the report out put should be based on the above parameters ie predefined parameters only.
    i think u haveunderstoood the requirement and does any one please tell me know the solution for my problem its very urgent.
    i will be very greatful to them.
    Regards,
    Azeez
    [email protected]

    Hi,
    Please check whether the auth object is switched on for the info-provider or not. By default its switched on if the info-object is part of the info-provider.
    To switch it on again, enter the info-provider name in the section 'Checks For Info-provider'. Click on pencil button to enter into change mode and select your auth object.
    Hope it helps
    Thanks
    Soumya

  • Using a URL parameter by the JSP to pull in an html file for dynamic content ??

    I would like to have a simple jsp which could be called from an URL
              with a parameter. I'd like the parameter to be used by the JSP to form
              a filename of a second file. This second will be a chunk of HTML
              which is sucked in to the JSP to form some content in a particular
              HTML table cell.
              The ASP is this :
              <%
              targetPath = Server.MapPath(Request.QueryString("Content")+".txt")
              // makes a variable called targetpath which is a filename called
              something.txt
              Dim filesys, myloadedfile, line
              Set filesys = CreateObject("Scripting.FileSystemObject")
              Set myloadedfile = _
                   filesys.OpenTextFile(targetPath,1,0)
              Do
              // loops round each line of the something.txt file putting them in the
              JSP
                   line = myloadedfile.Readline
              %>
              <%=line%>
              <%
              Loop Until myloadedfile.AtEndOfStream
              myloadedfile.Close
              %>
              Please can someone help me out with some info on the JSP equivalent
              please?
              Thanks Heaps
              Rob
              

              See Content tag on http://www.servletsuite.com/jsp.htm
              This custom tag lets to add any file (even the outisde
              of your web application).
              [email protected] (rob) wrote:
              >I would like to have a simple jsp which could be called from an URL
              >with a parameter. I'd like the parameter to be used by the JSP to form
              > a filename of a second file. This second will be a chunk of HTML
              >which is sucked in to the JSP to form some content in a particular
              >HTML table cell.
              >
              >The ASP is this :
              >
              ><%
              >targetPath = Server.MapPath(Request.QueryString("Content")+".txt")
              >// makes a variable called targetpath which is a filename called
              >something.txt
              >
              >Dim filesys, myloadedfile, line
              >Set filesys = CreateObject("Scripting.FileSystemObject")
              >Set myloadedfile = _
              >     filesys.OpenTextFile(targetPath,1,0)
              >Do
              >// loops round each line of the something.txt file putting them in the
              >JSP
              >     line = myloadedfile.Readline
              >%>
              ><%=line%>
              ><%
              >Loop Until myloadedfile.AtEndOfStream
              >myloadedfile.Close
              >%>
              >
              >Please can someone help me out with some info on the JSP equivalent
              >please?
              >
              >Thanks Heaps
              >
              >Rob
              

  • How to change the fields in a JSF form based on a URL parameter

    I am trying to build a generic JSF form of parameters which I want to dynamically change (i.e.
    change which field is visible, what the label text should be, etc) based on a URL parameter.
    I can set the fields using logic in the backing bean as an action on a command button pressed.
    But how do I do it based on the URL parameter ? I can retrieve the URL parameter but I
    don't know where to put (or hook) the Java code to do this initialization prior to
    the page being rendered for the first time.
    The fields in the JSF is being configured dynamically using a database table.
    BTW I am using Jdeveloper 10.1.3.5
    Thanks
    CK

    Thanks. I decided to set a Session bean to store the value of the URL parameter (if it is set)
    and then to use the session bean to initialize the attributes of the fields on the JSF Page.
    There also seems to be some caching of the inputText fields (i.e. it reverts back to the first
    initialized value) even though I tried to change it using the URL parameter in the requestScope
    backing bean. So, setting the values into the Session bean and retrieving it back from there
    seems to be more reliable.

  • CSS11500 SSL handling question for multiple url/FQDNs with the same ip address

    I know that it's possible on the CSS to handle multiple incoming HTTP requests that terminate on the same IP address and port and balance them to various servers based on the url.   For instance, I can set up www.cats.com and www.dogs.com at the same 192.168.35.12 address in DNS, and set up two different content rules:
    content cats
    vip address 192.168.35.12
    port 80
    url "//www.cats.com/*"
    add server cats1
    add server cats2
    active
    content dogs
    vip 192.168.35.12
    port 80
    url "//www.dogs.com/*"
    add server dogs1
    add server dogs2
    active.
    Easy and straightforward.
    But what if I want to add SSL handling for https://www.cats.com and https://www.dogs.com?
    I'm not sure how to create the ssl-proxy-list where one content rule (ip address/port) combination needs to pass through the ssl module and get matched with the proper ssl certificate.
    Can this be done?  Can one associate multiple certs and keys with a single ssl-server entry and a single ssl accelerator service?  Or do I have to create multiple ssl-proxy-lists for cats and dogs and build multiple ssl services each referring to a unique ssl-proxy-list, and then use the url parameter in the https content rule to determine which ssl service (and therefore which key/cert pair) gets the traffic?
    Thanks in advance for any insights.

    Hi Tim,
    Unfortunately this is not possible; you can't associate multiple certificates to a single proxy list due to the fact that SSL handshake is done first with no visibility of the URL being requested, so the CSS won't know which public server to use in order to perform the traffic decryption.
    But there are a couple of options that you may want to look at (depending on the URL string)
    If your URLs are subdomains and you hold a wildcard SSL certficate to match multiple requests, i.e your domain being "pets.com" you can have a certficate that will match request for dogs.pets.com or cats.pets.com because the cert will be in the form *.pets.com
    The second option is SAN (Subject alternative names) certificates; which give you the option to include up to 4 flavors of the domain within the same file, such as pets.com, pets.net, www.1pets.com.
    I hope this helps.
    Pablo

  • What is 'URL' parameter in JCO.createClient method?

    Hi,
    What is the 'URL' parameter in the following createClient method.. can anyone provide an example?
    public static JCO.Client createClient(
    java.lang.String client,
    java.lang.String user,
    java.lang.String passwd,
    java.lang.String lang,
    java.lang.String url)
    Creates an instance of a client connection to a remote SAP system (with load balancing)
    Parameters:
    url - the url to the remote host
    Thx

    Hi Serle,
    Use following code for creating Client.
    client = JCO.createClient( "100",       // SAP client
                                     "test",   // userid
                                     "*****",     // password
                                     "EN",        // language
                                     "appserver", // host name
                                     "00" );      // system number
    Or you can make connection pool and use client from this pool like:
    // Add a connection pool to the specified system
          //    The pool will be saved in the pool list to be used
          //    from other threads by JCO.getClient(SID).
          //    The pool must be explicitely removed by JCO.removeClientPool(SID)
          JCO.addClientPool( SID,         // Alias for this pool
                             10,          // Max. number of connections
                             "100",       // SAP client
                             "test",   // userid
                             "*****",     // password
                             "EN",        // language
                             "appserver", // host name
                             "00" );
            // Get a client from the pool
            JCO.Client client = JCO.getClient(SID);
    Regards,
    Bhavik

  • Passing url parameter

    Hi,
    I would like to pass a url parameter, with the following format,  to a get method.
         http://myserver/send?param-id=1234@5678
    I was able to do it using the HTTPService send(parameter) but the characters "-" and "@" are changed. I want to send the parameter as is, can anyone teach me how?
    Thanks in advance..

    rockstar888,
    for a GET, you can only use things which are permitted characters in a URL string. Hence some characters won't work just as they are. Now, we all know some browsers are very accommodating with things like this (eg a space character should be sent as %20 but if typing in a URL you can usually get away with it in a browser), but you have to be more strict in this situation. One way is to have some encode/decode stuff at each end. Another (if you are going to use the result simply as a URL at the other end) is just to let the URL encoding go on its way without problems. Another is to use POST rather than GET, since POST variables are passed like entries in an HTML form rather than a querystring, so you have more flexibility. To do this you just use the method property of HTTPService.
    Richard

  • How to pass url parameter string to a query

    I need urgent help please, to pass a mysql query string from a master page to another details jsp page using a url parameter. The master page's url parameter looks like this;
    <a href="Details.jsp?jobs=<c:out value="${row.actions_id}"/>"><c:out value="${row.action_title}"/></a>How can I query the mysql database using the url query string to get the query details.
    Please help me out with detailed example please.

    You can get the parameter value using HttpServletRequest#getParameter():String jobs = request.getParameter("jobs");You can interact with databases using the JDBC API. This is a different topic. If you aren't familiar with it yet, then learn it. There is a very good JDBC tutorial here at Sun.com: [http://java.sun.com/docs/books/tutorial/jdbc/index.html]. Once you're familiar with that, create a DAO class which does the all the database interaction tasks. Create a method which takes the jobs value as parameter and let it return result(s) accordingly. You may find this article useful either: [http://balusc.blogspot.com/2008/07/dao-tutorial-data-layer.html].

  • Read a csv file in a PL/SQL routine with the path as a parameter

    hello oracle community,
    System Windows 2008, Oracle 11.1 Database
    I have created a directory in the database and there is no problem to read a csv file from there. Since the files can be at different places, my java developer is asking me, if he can give me the path of the file as a parameter. So far I know I will need a directory to open the file with the UTL_FILE package, but I cannot create diretories for folders, that will be created in the future. Is there any way to solve that problem, so I can use the path as a parameter in my routine ?
    Ikrischer

    BluShadow wrote:
    Ikrischer wrote:
    as I said before, they are dynamic. As usal to most other companies, you get new partners and you will lose partners, so new folders will be added, old ones will be deleted. if you use different directories for different folders, you have more work to handle them.I wouldn't call that dynamic, I would call that business maintenance. Dynamic would mean that the same company is putting their files into different folders each time or on a regular basis. If it's one folder per company then that's not dynamic.the folder structure is changing, I call that dynamic, does not look static to me. but thats just a point of view, it is not important how we call it. lets just agree, the folder structure will change in the future, no matter how many folders one partner will have.
    BluShadow wrote:
    So you're receiving files and you don't even know the format of them? Some of them are not "correct"? Specify that the company must provide the files in the correct format or they will be rejected.
    Computers work on known logic in most cases, not some random guessing game.we know the correct format, but we also know, that the partner wont always send the correct format, period. Cause of that we want to deliver an error log, record 11,15 and 20 is wrong cause of....that is a very usefull service.
    BluShadow wrote:
    The folders should be known.impossible, we do not know the future.
    BluShadow wrote:
    The file format should be known.see above, it has a fixed format, but thats not a gurantee you get the correct format. for me thats a normal situation, it happens every day, you have fixed rules and they will be broken.
    BluShadow wrote:
    The moment you allow external forces to start specifying things how they want it then you're shooting yourself in the foot. That's not good design and not good business practice.maybe we are talking about different things, we do not allow to load data into our system with a wrong format. but we do allow to to send us a wrong format, and even more, we do allow them to send wrong content, but still we dont load it into our system. format and content must be correct to be loaded in the real system, but both we are checking. and with external tables you cannot check a wrong format we a detailed error log.
    Ikrischer

  • Receive a parameter in the URL in adf application

    Hello,
    using the sendRedirect to direct control to another adf application, as:
    ((HttpServletResponse)FacesContext.getCurrentInstance().getExternalContext().getResponse()).sendRedirect("some url");assuming that I am pushing parameters to the url, how can I read them in called application !!
    to make the post clearer, assume that I have two adf applications A and B,
    A will redirect the user to B using the sendRedirect method,
    where shall I receive the request to get the parameters or attributes added to the URL !!!
    hopefully I have made the post clearer so that you can help !!
    appreciated, thanks in advance.
    rgrds,

    For passing parameters to another ADF application, we could use as a parameter as part of the request parameter of the URL as mentioned in
    http://blogs.oracle.com/shay/entry/passing_parameters_to_adf_appl
    For reading the parameters in the another application (assuming CurrentDepartmentName is the parameter) ,
    HttpServletRequest request =
    *(HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();*
    String strvalue = request.getParameter("CurrentDepartmentName");
    Thanks,
    Navaneeth

  • Reading a parameter from the URL

    Hi,
    There is a custom OA page that I launch from another isupplier form. The custom OA page is supposed to query only details of the purchase order. I have taken the following approach but am unable to capture the parameter.
    on the source form, i have personalized the po number column to include an URL with OA.jsp?page=/../../../TestPG&PoHeaderId={@ICX_HEADER_ID}
    in the custom page, I write a code
    //PoHdrId = "2346";
    String PoHdrId = pageContext.getParameter("PoHeaderId")
    I cannot read the parameter and i am hard coding this to make my custom page query for a particular PO number.
    Appreciate a quick response.
    Regards,
    Jagan

    Hi Ram:
    I have the similar problem.
    I added a new Button thru' Personalization to the View Purchase Orders Page of iSupplier module.
    In the destination URI of the newly created button I gave,
    javascript:var print_window = window.open("http://server:port/OA_HTML/myJSPPage.jsp?PoNum={@PoNum}")
    Before cliccking the button when I checked the properties of the link, it is not well formed. (i.e The Parameter {@PoNum} is shown as it is. The value is not substituted.)
    When I Click the new button it is calling the custom jsp page, but not passing the PoNum parameter value instead it passes {@PoNum} string.
    Please help me ASAP.
    Thanks,
    San

  • How can I add a url parameter to choose the right database row to delete using php in Dreamweaver CC

    Hi all,
    I have just upgraded to Adobe Creative Cloup.  Though I find it very good there was one flaw and that was the omision of the database section.  I got this sorted but now I find that once I have set up the connection to the database and want to eithger delete or update records there is no 'url parameter' button to do so.  Can someone advise we how to get round this.
    Seasons Greatings from
    David J

    The link will look similar to
    myPage.php?ID=myVariable

Maybe you are looking for