Question about parsing parameters through url

Hello,
I have some questions about parsing parameters through a url.
What I want to build is a page with some text fields and maybe one drop down list. After user enter values into the text fields and select one option in the drop down list, then press the submit button, a report will be opened, which according to the parameters parsed.
These were what I have done:
1. create a blank page and a region
2. create one text field in the region, the name is FIRSTNAME
3. create one hidden items FN, of which the source value is item FIRSTNAME
4. create a process. the type is "Set Preference to value of Item" which set PN with the value of FIRSTNAME when the page submitted
5. create a button "Submit Page and Redirect to URL", in the URL I entered:
http://dianti.local.net:9704/xmlpserver/~shichao/GuestFolder/orderdetail/orderdetail.xdo?_xpf=&_xpt=0&_xdo=%2F~shichao%2FGuestFolder%2Forderdetail%2Forderdetail.xdo&FIRSTNAME=&FN.&_xt=orderdetail&_xf=pdf&_xmode=4
My problem is: it seems working for the first time after I entered a value in the FIRSTNAME text field and press submit button, but when I come back to the page (the report was opened in the same page, wondering how to open it in a new window?), the value is saved in the text field and after I enter another value and submit the page again. It still parse the old value to the report. The value of the parameter doesn't change.
What's the reason? and is this the correct way to build what I want?
Thank you in advance.
Best Regards,
Shichao

Hi Scott,
Thank you again for the help.
But this didn't answer my question exactly. I have tested what you created and the problem remains. When I first time enter a value in the text field and press the button, it goes to page 2, but the parameter didn't parsed. When I go back to page 1 and then click the button again. After that I can see the value I parsed on page 2. Same thing happens when I try to enter a new value. So which means the button has to been pressed twice to parse the parameter.
Due to the limitation of my knowledge of Apex. I don't know how to fix it. Could you please help me again and hope you understand what the problem is. Thank you very much.
Shichao

Similar Messages

  • Passing parameters through URL in ADF Application with UIShell

    Hi,
    JDeveloper Studio Edition Version 11.1.1.6.0
    The UI in our application is developed with UIShell pageTemplate.
    We have a Home page created with PageTemplace "UIShell.jspx" and this page is placed as a view in adfc-config.xml (the Unbounded Task Flow).
    The other pages for our application are created using Page Fragments and these pages are called from Home_taskmenu.xml through Bounded task flows.
    With this setting, the URL(after SignIn) will look like,
    http://localhost:7101/OperationalPlanning/faces/Home?_afrWindowMode=0&_adf.no-new-window-redirect=true&_afrLoop=6811862222491857&_adf.ctrl-state=29wus7giw_19
    We have a requirement to build the URL which should open a Page Fragment directly after Signing In to the application. And we have a id to be passed as a parameter, so it should open the page fragment with the details based on the id value that we pass.
    The parameters are already registered in the Bounded Task Flow(which has the page fragment) and I could open in the "localArea" using a link in the Home Page.
    Now, I want to directly launch the Bounded task flow by passing a parameter, so that it opens the Page Fragment as a tab once we signIn.
    Let me know if there is any solution for this requirement.
    If there is any document to follow for this kind of requirement in an application which is created using the UIShell, please let me know.
    Thanks,
    Tamil

    hi Frank,
    Thanks for the response. We followed your suggestion and managed to capture URL parameters in afterPhase(LifeCycle.PREPARE_MODEL) and save parameters to ViewScope.
    Then in beforePhase(LifeCycle.PREPARE_RENDER), we retrieve parameters back and invoke FndUIController.openMainTask method to launch the correponding taskflow but nothing happens.
    public static void openTaskflowOnNewTab(String taskflowId) {
    try {
    FacesContext fc = FacesContext.getCurrentInstance();
    ELContext elc = fc.getELContext();
    ExpressionFactory ef = fc.getApplication().getExpressionFactory();
    ValueExpression valExp = ef.createValueExpression(elc,"#{bindings.openMainTask}",Object.class);
    JUCtrlActionBinding methodBinding = (JUCtrlActionBinding)valExp.getValue(elc);
    Map params = methodBinding.getParamsMap();
    params.put("label", "Some Title");
    params.put("taskFlowId", taskflowId);
    params.put("reuseInstance", true);
    methodBinding.invoke();
    } catch (Exception e) {
    e.printStackTrace();
    To prove that this method works, we create a UI button on the page (which binds this method in PageDef.xml), and associate this method to onclick event. At runtime after page is opened, clicking on the button does launch the taskflow on new tab successfully.
    Do you happen to know what I do wrong in the beforePhase() method?
    Thanks
    -Phi

  • Question about "Get Web Drawing URL and Page Name From" for Visio Web Access

    I am trying to get both the web drawing URL and the page name from a list through Share Point Designer 2013, but it doesn´t work.
    It looks fine when a do the web part connection wizard. I select from which columns to get the URL and the page name. But on the final web part page nothing happens. It just shows the URL that is selected in the Visio Web Access Web part. I had hoped that
    that value should be overrided by the SPD-settings.
    I have googled for hours..

    Hello,
    I have now saved the Visio-file in .vdw-format, but it says Visio 2010 Web Drawing (*.vdw). Is there a .vdw-format for 2013? Isn´t that the .vsdx-format?
    Still doesn´t work with the .vdw-format, but maybe I am doing something wrong.
    Any ideas?

  • AIR auto update error, and question about POST parameters

    Hello,
    I'm getting a Download Failed error in the AIR autoupdating process;
    There was an error downloading the update. Error# 16822
    I recall this working once, the very first time that I tried it.
    My app.xml file contains this line:
        <version>12</version>
    and my update.xml file contains:
    <update xmlns="http://ns.adobe.com/air/framework/update/description/1.0">
      <version>12</version>
      <url>http:/players.biemedia.com/ooyala/Composer/Composer.air</url>
      <description>12 - Bug fixes and prepopulating defaults for player creation screen</description>
    </update>
    Pasting the URL into a browser works.
    However, this stuffresides on cloudfront.  in the past i have noticed that if something tries to send post parameters along with the request, cloudfront will deny the request.  Is it possible that the AIR app is sending POST parameters when hitting the download URL, and could this behavior be new in the last 6 months or so?
    Any other ideas?
    Thanks,
    Gerry

    Just Got The Solution for Error 16811 &  16816
    Note Following things to avoide update error
    No 1.>
    You xml schema for update descriptor.xml in  server should look similar to this
    <?xml version="1.0" encoding="utf-8"?>
    <update xmlns="http://ns.adobe.com/air/framework/update/description/2.5">
      <versionNumber>2.0</versionNumber>
      <url>http://localhost/SerialHunter/SerialHunter.air</url>
      <description><![CDATA[
    SerialHunter Version 2.0 by Rajendra Khope
    This new version includes:
        * AutoUpdate
        * Enhaced UI functions
        * Ability to add providers       
      ]]></description>
    </update>
    Note xmlns="http://ns.adobe.com/air/framework/update/description/2.5"
    and versionNumber instead of version
    Also make similar changes in appxml version field (in Burrito its by default versionNumber )
    No 2>
    if u are using code to display veesion number make sure it should look like:
    var appXML:XML = NativeApplication.nativeApplication.applicationDescriptor;
    var ns:Namespace = appXML.namespace();
    pnlMain.title=appXML.ns::name+" v "+appXML.ns::versionNumber
    Thats it...!
    Rajendra Khope
    bkrajendra at gmail dot com

  • Question about publishing Calendar and URLs

    Hi everyone, have a question that hopefully knows the answer too. I have been researching on how to publish individual user calendars to external users.
    I have seem to come across 2 different ways to do this
    1) is to right-click on my calendar in OWA, then I select the external recipient and it emails the recipient a long url similar to:
    http://webmail.mydomain.com/owa/calendar/[email protected]/4d9f8b52769b4ddca3e51f6f82d01b6f1902995877095312719/S-1-8-2306188436-3125773453-2945785077-3615357645/reachcalendar.html
    2) Within Outlook 2013, I click on "publish calendar" and it takes me to an ECP url for my exchange server where I can select how many months I want to share, the permission they can see, etc... and then it provides me at the bottom with two links
    like:
    http://webmail.mydomain.com/owa/calendar/[email protected]/Calendar/calendar.html
    My question is what are the differences between these two methods and also, both of these urls will NOT work unless I change them to HTTPS instead, how I can modify the links that get emailed out? I did see for the 2nd method above I can set it using the
    "PublishedCalendarUrl" in Powershell, but that is impractical for a lot of users.
    thanks!

    Hi BMIG,
    Please re-start IIS for testing.
    If not working unfortunately, please use IIS Manager to simplify the OWA url and force redirection to SSL.
    Steps as below:
    1. Start IIS Manager.
    2. Expand the local computer, expand Sites, and then click
    Default Web Site.
    3. At the bottom of the Default Web Site Home pane, click Features View if this option isn't already selected.
    4. In the IIS section, double-click HTTP Redirect.
    5. Select the Redirect requests to this destination check box.
    6. Type the absolute path of the /owa virtual directory. For example, type
    https://mail.contoso.com/owa.
    7. Under Redirect Behavior, select the Only redirect requests to content in this directory (not subdirectories) check box.
    8. In the Status code list, click Found (302).
    9. In the Actions pane, click Apply.
    10. Click Default Web Site.
    11. In the Default Web Site Home pane, double-click SSL Settings.
    12. In SSL Settings, clear Require SSL.
    13. For the new settings to take effect, open a Command Prompt window, and then type
    iisreset /noforce to restart IIS.
    Details in the following article:
    Simplify the Outlook Web App URL
    http://technet.microsoft.com/en-us/library/aa998359(v=exchg.150).aspx
    Hope it is helpful
    Thanks
    Mavis
    Mavis Huang
    TechNet Community Support

  • Question about parsing delimiter file using import server

    I am using import server to load comma delimiter file; but some fields contain comma covered by ", like "1GB, 200HZ", import server parses it into "1GB and 200HZ" two fields and it caused whole import process failed.
    The same map and same file works in Import manager. I specified , in delimiter field in port table.
    Any idea to solve this issue? Thanks.

    hi
    Try setting the policy for ur applet
    All the Best
    Kumar.R

  • Questions about parser of jdom

    hi:
    I am using SAXBuilder to build a sax parser so that my program
    can read in xml file.
    When I tried to run my program, it said "in thread "main" org.jdom.JDOMException: Could not load default SAX parser: org.apache.xerces.parsers.SAXParser.......". It complained because
    it couldn't find the default parser. BTW, I can sepecify my own parser .
    e.g. public SAXBuilder(String saxDriverClass) {
    this(saxDriverClass, false);
    The problem is where I can get a such parser or a saxDriverClass
    they mention in the code . Where should I put it?

    You can find a list of Java XML Parsers here:
    http://java-source.net/open-source/xml-parsers
    Or just google for "java xml parsers" for other lists.
    Common values for the saxDriverClass are
    org.apache.crimson.parser.XMLReaderImpl and
    org.apache.xerces.parsers.SAXParser.
    But it is often better to specify the system property org.xml.sax.driver to specify the driver class. Normally you should not need to specify anything at all. As far as I know the JDK should provide a default xml parser.
    You just have to provide the class on the classpath (e.g. org.apache.xerces.parsers.SAXParser).
    You can chose any other class implementing the org.xml.sax.XMLReader interface (or the older org.xml.sax.Parser interface for sax 1). Any XML Parser implementation will provide such a class.

  • Question about function parameters

    Looking at a piece of code.
    A function is defined with 3 parameters.  None of the parameters are "default" parameters.
    Call to the function only passes 2 paramters.  ie myfunc(parm1,parm2).  Have read the docs regarding
    function parameters.  Not sure how this is working (which it is).   Am I missing something ?
    I am new to flex so it could be I am missing a fundamental concept of flex.
    thanks.

    Thanks but its not defaulted.
    Here is the call
    mystuff.call(buildstuff, parms);
    here is the definition:
    public class mystuff{
      public function call (remote1:string,  remote2:Function, parms:Object):void{
        remote1 = "prefix." + remote1;
        different.call(remote1, new Responder(remote2, this.onFault),parms);
    public function onFault(fault:String):void{
      Alert.show(fault, "Error:", mxcontrols.Alert.OK);
    thanks.

  • Question about lexical parameters

    They are passing me parameters field with the data such as test,test,test for a field. I am supposed to pick that up and create a lexical parameter.
    How do I read that parameter to create the following.
    and fieldname not in ('test','test','test')
    I want to append this to my sql for instance.
    select * from testTable where userid := :P_USERID
    &P_SQL

    Assume they send you the field list in a parameter called paramlist and they seperate the fields by @ then
    You need the following
         :P_SQL := 'AND fieldname not IN ('''||REPLACE(:paramlist,'@',''',''')||''')';     
    You can use other charachters than @

  • Question about organizing tab by url location.

    Instead of just always opening all bookmarks and sorting by location I was wondering if I could set up an option were the bookmarks aren't just sorted by location but next time I go to the bookmark tab and hover over a folder that folder is sorted by location as well.
    Don't know if there is a way to do this and I just think it's a preferable way to organize bookmarks to me. Hope anyone can help me out with this.

    Look at this extension:
    * SortPlaces: https://addons.mozilla.org/firefox/addon/sortplaces/

  • Question about passing parameters

    I have a page where after a button is press I insert a record using pl/sql.
    Set an item to the new sequence number and then branch to another page.
    On the branch page I read that number and try to use it using pl/sql to read that information that was inserted.
    The problem is that I see the new sequence number because I set an item to it.
    But when I try to read that information using pl/sql on the page rendering process
    it does not get the record.
    I have a report section and it reads that new information along with the other records into a report.
    I am using On load before header but have tried on load before region also.
    Does anyone know what I need to do to make this work?
    howard
    On that p

    Howard,
    Can you please show us all of your code that relates to what you described? And also explain exactly what componets are on the page and all attributes of each component (sounds like an after-submit process, a branch, a before-header process, a report region, ...).
    Scott

  • Passing parameter through url to report

    Hi
    I'm sorry if this question already exist anywhere in forum i didnt found it.
    so my question is:
    CAN I PASS PARAMETER VIA URL TO REPORT USING WEBFORM
    i don have RAS(Because in beta version of 2008 is this not included)
    I tried
    http://localhost/CRWEB/Default.aspx?param0="value" ->here i'm prompt for value instead of showing report with set value
    and
    http://localhost/CRWEB/DocumentDoc.rpt?param0=krneki&init=html_page -> here i prompt to save rpt file
    so But both doesnt work!
    OR it is necessery to have RAS to pass parameters through url
    thanks for quick answer

    URL reporting and RAS are not available with CR2008. To view reports over the web you will need to use the Crsytal Reports for .NET runtime engine inside a .NET app. This engine is licensed with CR 2008.
    Rob Horne<br /><a href="/blog/10">Rob&#39;s blog - http://diamond.businessobjects.com/robhorne</a>

  • URLConnection problems(Sending parameters with URL)

    Guys i have some problems with sending parameters through URL using URLConnection class.
    That's my code:
    URL url = new URL("http://kiosk.homebank.kz:9090/default.asp?action=SaveContact&src=C_HOMEBANK&ClientId="+request.getParameter("ClientId")+
                        "&IdService="+request.getParameter("IdService")+
                        "&Contact="+URLEncoder.encode(request.getParameter("Contact"),"utf-8")+
                        "&Number="+URLEncoder.encode(request.getParameter("Number"),"utf-8")+
                        "&Work="+URLEncoder.encode(request.getParameter("Work"),"utf-8")+
                        "&Mobile="+URLEncoder.encode(request.getParameter("Mobile"),"utf-8"));
            URLConnection connection = url.openConnection();
            connection.setDoInput(true);
            connection.setDoOutput(true);I want just send these parameters without going to this link. How can i do it using URLConnection class? Help please!

    Try using this set method in the URL class (query is the parameters):
    protected void set(String protocol,
    String host,
    int port,
    String authority,
    String userInfo,
    String path,
    String query,
    String ref)

  • Again question about restricting access to files through URL?

    I found many topics about this, but every time it is some special case.
    I want to ask it simple. How can I restrict access to some files in my application through entering URL in Browser, no matter if I am logged or not.
    For example I have included JSP files with jspf extension. I don't want to access them through url. How can I do this?

    May be it will work, but it seems somehow workaround decision - one half of jsp files in one place and another part in other place.
    Message was edited by:
    cheltsov

  • Question about mangled URLs

    Hello,
    I have a load testing app that I'm adapting to work with BSPs and I have a question about the mangled URLs that are used.
    If I record a URL that is mangled, can I save that URL and reuse it during the playback of a session?  From what I understand it includes things like theme, language and such.  But obviously if it includes a session  ID, it won't work.
    Session ID seems to be stored in a cookie.  Can it also be stored in a mangled URL and if so, why the duplication?
    Any help greatly appreciated!
    Thanks!!!

    Those parameters are there for a reason; to pass along information to the page so that the dynamic content can be manipulated based on them. So your question really is: "Can I pass along this information to the page in another way than URL parameters?"
    There are always options, but most of them require work. For example:
    1) use a POST to generate the page
    In a POST request the parameters are part of the request body, so you don't see them. The trouble is that a POST request cannot be created just like that; it requires some sort of form submission behind it. This can be facilitated with javascript (output a form and let the link submit it through an onclick handler), but it is far from a clean solution.
    Added pain: form submits behave badly in combination with the browser back/forward buttons. Also, bookmarking cannot work like this.
    2) "web 2.0". Using Ajax it is possible to do page updates in the background, so you could do the request (with parameters) asynchronously and update the page accordingly.
    Added pain: again back/forward buttons and bookmarking will be broken unless you take very specific steps (that I don't know of myself).
    3) conversation scope technology. Some APIs provide a so called "conversation" scope, which allows you to hold on to certain values across requests until you end the conversation. You could use this to push certain values into the conversation and reuse them in different pages without having to pass along the values as request parameters or in a form. Even without a conversation scope, you could simply abuse the session for this purpose.
    I hope this has given you some idea how to go about implementing your requirement.

Maybe you are looking for

  • Regarding conversion of Image file to video file

    Hi All, I need a small help. My requirement is to convert a text file in to an image file by attaching a background and that image is converted into video file by attaching audio file. please guide me how i can achieve this using sun java API. Is thi

  • N95 8GB - drive not shown in explorer

    I recently replaced my troublesome N95 with an 8GB version. (nicer screen, less crashing, faster nav :-) ) when I installed the latest version of pc suite v1.6.80.0 it no longer shows the n95 drive in windows explorer. I used to be able to copy files

  • How to set alarm

    in my project iam measuring temperature,if the value goes above or below certain values alarm is indicated in a file.But this alarm should be shown in a file ,if the alarm set and clear occure more than 3 times in 5 seconds .If the alarm set or clear

  • RTMT - Multiple Installs, Same version?

    Hello, I've done some reading about mutiple installs of RTMT but can't get it to work right.  All of our UC Products are at 8.x.  They all seem to use the same version of RTMT.  When I try to use the version that was downloaded from Presence, I get a

  • Bug Report:  Loading Process Takes 5 Minutes when Opening A File

    The last Vista 64-bit Windows auto update dated 28Oct09 installed iTunes v9.0.2.25 and Quicktime v7.6.4 ()1327.73). Quicktime seems to have a flaw. When you open a .mov or mp3 file the little quarter inch "working" circle continues to spin for about