Pass value through URL without setting local page item

Folks,
I have a table where I have created a dummy column with a hyperlink on it to go to another page in the application which runs a report passing through columns on the table
As I am doing this several times (for different pages in my application) - Is there a way of passing a variable through a URL to a report without setting a local variable
i.e.
Click Here
Here I am assigning a local variable on Page 25 which is hidden called P25_TEST1
What I would like to do is pass the value straight to page 25 (which runs the report) without the need to create hidden items on the report pages all the while
Thanks
Gareth

You have a plain HTML page that loads with a url with something like ?field=value
And you want "value" to show on your page, correct?
<html>
<body>
<script>
var qsParm = new Array();
function qs() {
var query = window.location.search.substring(1);
var parms = query.split('&');
for (var i=0; i<parms.length; i++) {
   var pos = parms<i>.indexOf('=');
   if (pos > 0) {
      var key = parms<i>.substring(0,pos);
      var val = parms<i>.substring(pos+1);
      qsParm[key] = val;
qsParm['field'] = null;
qs();
if (qsParm['field'])
     document.write('You selected ' + qsParm['field'] );
</script> 
</body>
</html>
Call that as test.html?field=Hello
Here's a nice link that explains it in detail: http://www.eggheadcafe.com/articles/20020107.asp

Similar Messages

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

  • How to pass arraylist through URL ?

    Hi,
    Can we pass arraylist through URL using params.put ?
    If so then how to access each value?..because pageContext.getParameter with return string...
    Any other method can we use ?
    Thanks

    You should store in on the session or transaction depending on the scope.

  • Question - any way to set a Page Item in a worksheet to default to All ?

    Well, I seem to have run across an interesting situation here. I have a table worksheet with page items. I have noticed one thing while testing this new worksheet/workbook. If I pick a value for one of the page items (and with page items, it seems I can only pick one value at a time) and then save the worksheet, close the workbook, and then reopen the workbook and run the worksheet, Discoverer has retained the page item value as the value when I saved it, rather than defaulting back to <All>. So I quickly learned a new lesson with this darn Discoverer product - make sure all page items set to the <All> value before I save a worksheet that I am going to want to promote to Production.
    Well, now I have run into a situation where based on the conditions I have to set in the workbook, I have a Page Item in the worksheet that today has only 1 value that pulls into the worksheet. When I do the drop down on that Page Item, it only shows the one value. It does not give me the ability to pick the <All> option. So I am unable to save the workbook with the <All> value today for that page item. There are other potential values for this Page Item that could show up in the future.
    Now granted if this were to happen, the Viewer user could do the drop down on the page item at that time and pick the <All> value at that time. But alas, since they are not the owner of the workbook, they could only save as a new workbook, with themselves as the owner - cannot change the production workbook so it would be changed going forward. This also means the user has to realize that they are missing data and that the fixed page item value is the cause of that, which I am skeptical that they will be able to figure out. So I really want this page item value to default to <All> when the users open and run this worksheet.
    So here is my question - does anyone know of a way to set the Page Item value to be <All> automatically when a worksheet is run?
    I hope this makes some sense. Always a challenge to explain an issue well. It took me a bit to realize that when saving a worksheet/workbook, it was retaining the selected page item values when I performed the save. It is also very unusual to have a situation where a page item does not currently have multiple values. So this may be a situation that few people have run across.
    John Dickey

    Ah, there is a potential workaround, as I have finally figured out. The workaround does require that you have the ability to bring in multiple values for the page item from the worksheet run result set. If you have a situation, like I have, where today you only have one valid value, you will still have a problem.
    The workaround is this. Figure out a way to get multiple values into the worksheet run result set. That way when you do the page item drop down list, you will see the <All> value in that list. Pick that value, refresh the worksheet, and save the workbook. Now reset your worksheet back to your desired conditions, where you end up with just one value in the worksheet result set, and refresh the worksheet. The <All> is still retained as the page item default and when you do the drop down list for the page item, you see two values in the list - your 1 valid value plus the <All> value. So once you get that <All> set as the page item default, then it will be retained. This explains how support originally tested (on an existing worksheet) and said they were able to see and pick the <All> value.
    Since it should be rare for something to have just one valid value in a worksheet result set, and even rarer to have just one current valid value in Oracle, this workaround should take care of most of the situations where you might encounter this issue. I still will push for an enhancement request to have that <All> value show in the drop down list even when just one value in the worksheet result set.
    John Dickey

  • Populating local page items with Application Process onload

    I called a page passing a parameter to that. On loading of that page, I executed an application process that will fetch some data from table based on the on the input parameter to that page. The fetched data should now get displayed on the local page.
    The above is my requirement. I designed accordingly. The application process could able to fetch the data. But it is not displaying in the local page item
    Here is the content of the application process
    SELECT vun_catalog_type
    INTO :p46_catalog_type
    FROM eeb_unit_reels unit_reels
    , eeb_valid_units units
    WHERE unit_reels.ure_vun_id = units.vun_id
    AND unit_reels.ure_id = :p46_ure_id;
    Scratching my head !!!!!!!!!!!!
    Thanks
    Deb

    Deb,
    This might work. Establish a Page Process is of Type PL/SQL Anonymous Block.
    Process Point = On Load - Before Header
    Run Process = Once Per Page Visit(default)
    Source/Process
    DECLARE
       c_catalog_type   VARCHAR2( 10 );
    BEGIN
       SELECT vun_catalog_type
       INTO   c_catalog_type
       FROM   eeb_unit_reels unit_reels, eeb_valid_units units
       WHERE  unit_reels.ure_vun_id = units.vun_id
              AND unit_reels.ure_id = :p46_ure_id;
       apex_util.set_session_state( 'P46_CATALOG_TYPE', c_catalog_type );
    END;Jeff

  • Page 404 Error when passing Session values through URL

    The current application I'm working on is a 'Targeted Email Communications' application. Bascially, employees at the school at which I'm employed can go in and select services to recieve outage notification emails on.
    The problem I'm discussing in this post has to do with our so called 'Notification Summary Screen.' This screen is basically a report region which displays all outage notifications issued by this application. In the left-most column of this report, I have an edit button that when clicked, redirects the user to the 'Create / Update / Send Screen' with the primary key values passed through the URL. When this happens, all other page items query their values based on the NOTIF_ID passed in through the URL. All of this works fine.
    The problem is, on the Notification Summary Screen, I also have a button labeled 'Create a new notification.' This button redirects the user to the same page as before, except now all of the values are NULL because this outage notification has not yet been created. The problem is, when I try and do this - I get a page 404 not found error. I'm pretty sure it's because my application is getting confused because earlier all of the values were passed in through a URL. For the 'Create New' button, I clear the page cache for this page - and it still does nothing. I am at a loss for what to do here because I keep getting the error.
    Here's the code for the URL button found in the report query in the 'Notification Summary Screen' :
    ('<a href='
              || 'f?p=&APP_ID.:2:&SESSION.::&DEBUG.::'
              || 'P2_NOTIF_ID,P2_NOTIF_SEQ,P2_INFO_TYPE:'
              || a.notif_id ||','|| b.notif_seq || ',' || 'Update'
              || '>'
              || '<img src="#APP_IMAGES#EditButton.gif" />'
              || '</a>') as "edit",** NOTE, I took out the double quotes after href and before the closing right karat brackets because for some reason the code in the URL wouldn't display...weird.... **
    The NOTIF_ID value is the primary key identifier for each outage notification. Additionally, the NOTIF_SEQ value is the sequence number for each (because each notification could have multiple updates). The INFO_TYPE value just references whether this is 'Initial', 'Updated', or 'Closing' information.
    Any suggestions would be much appreciated.
    Eric
    Edited by: user11685190 on Nov 6, 2009 1:12 PM
    Edited by: user11685190 on Nov 6, 2009 1:13 PM
    Edited by: user11685190 on Nov 6, 2009 1:14 PM

    Hey you guys,
    Thanks for your responses. I actually just started working for this academic institution, and have to finish a probationary period before I have access to their VPN (5 Months). Therefore, I cannot access my workspace, nor will they allow me to export my application because it's considered their intellectual property. I believe it may be the &DEBUG portion of it.
    Though I cannot state the exact URL the error states, I can tell you that if I go into application builder to the page in question and try and run it before the page that links to it, I get the error. However, when I use the link everything works fine. When I use the 'Create New' button to link to the page with no values passed, I get the error again. I work again on Monday and will have more information then.
    Thanks again!
    Eric

  • Passing javascript values to jsp without refreshing the page

    Hi,
    How do u pass a value of a javascript variable to the jsp without refreshing the page ?
    For example, a file called test.jsp in which a javascript variable x contains value 254. I need to pass the value of x to a method declared in test.jsp(same page).

    Hi Mona,
    when i say refresh i do mean a blink of the browser.
    This is a small example i wrote to show you how you can pass javascript varables to JSP variables. If you don't want the refresh to be seen by the user just include this code in a hidden frame on a page and instead of refreshing the entire page, refresh the hidden frame.
    i have to say, i didn't test the code so i don't guarantee it's flawless.
    if you need an more detailed example just tell me, i'll create one, but it won't be for today :)
    <html>
    <head>
         <title>Log in to the system</title>
    </head>
    <body>
    <script>
    //we retrieve the parameter 'user' from the URL
    <%
      String username = request.getParameter("user");
    %>
    var user = "<%= username%>";
    //check if there is a username in the URL
    if(user=="null")
      //there is no username so we log the person in as a guest
      user="guest";
      //we refresh the page and set the user parameter to 'guest'
      //the parameter now contains the javascript variable 'user'.
      //The parameter can be read by the JSP (see the top op this script).
      //This way we gave the javascript variabele to the JSP variable
      location="login.jsp?user="+user;
    else if(user=="guest")
    {  alert("Welcome "+user+", I hope you like this site"); }
    else
    {  alert("Welcome "+user+", I'm glad to see you again"); }
    </script>
    </body>
    </html>

  • How to pass form value through URL?

    I have a page set up so that pressing the submit on a form will execute a certain page. For certain reasons I also have a URL HREF link that performs a different function. I need to get the value of a radio button group (all with the same name) and pass that value through the URL if it is pressed. So if someone clicks on the second radio button in the list which has a value of 2, I need to somehow set that to a variable to pass through a URL link. Each time the user changes the radio button I need to dynamically change the variable too.
    Is there any way to do this?

    Thanks for the suggestions everyone. Here is what I have so far:
    I have a cfInput that binds to the radio buttons so the value of the cfinput changes dynamically.
    I have a CFDIV that binds to a separate .cfm page that passes the cfinput through as an argument.
    The .cfm is very basic:
    <cfoutput>
        <cfif isdefined("url.InputText") AND url.InputText NEQ "">
            <cfset FeedVar = #url.InputText#>
        <cfelse>
        </cfif>
    </cfoutput>
    This method appears to work and it sets the Feedvar variable to the appropriate value. However on my first page with the cfdiv tag when I try to pass the #FeedVar# variable through a URL it says it is not defined.
    Any clue if I am doing something wrong passing the new variable back?
    Here is the CFINPUT and CFDIV tags:
    <cfinput type="text" name="update_typeURL" bind="{update_type}" bindonload="true" />
    <cfdiv bind="URL:setURlVar.cfm?InputText={update_type}" ID="theDiv" bindonload="true"  />
    Any ideas on how to read the newly set variable?

  • How to pass parameter through URL to bounded task flow with page fragment

    I want to pass parameter to Bounded Task Flow With Page Fragment trough URL
    as I start this taks flow with router and according to this Param I will rout the user.
    I added input param to taks flow named direction and make the task flow called URL invoke url-invoke-allowed
      <input-parameter-definition id="__41">
          <name id="__42">direction</name>
          <value>#{pageFlowScope.direction}</value>
          <class>java.lang.String</class>
        </input-parameter-definition>but I don't know how to add this to the JSPX that I will add the bounded task flow Inside.
    and How to pass this from URL

    Hi,
    url-invoke-allowed is only required if the task flow itself is directly accessible from a browser (which is not the case at all if the task flow uses page fragments). To pass input parameters to a task flow that is embedded in a region and that has input parameters, you define the input parameters on the taskFlow Id that is created in the PageDef file of the containing page. To learn ADF task flows, have a look at the videos below. They also contain a sample for passing parameters to a region
    http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/taskflow-overview-p1/taskflow-overview-p1.html
    http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/taskflow-overview-p2/taskflow-overview-p2.html
    Frank

  • Reporting - Pass value on url (Querystring)

    Has anyone out there had success passing values into Configmgr 2012 SSRS reports through "QueryString?" 
    I'd like to be able to email clients a report (either that I create or canned) that I can pass a variable in the http url and it presents that data.  That way the report can be dynamic - but allow us to email the exact data we want to the client.
    I have read several posts it is possible, but I have not been able to successfully do this with any of the existing SCCM reports.
    Any ideas or thoughts? 

    So I sort of stumbled upon a bit of the solution after doing a bit of research on the SSRS technet articles.  It appears that it matters how you access your reports. 
    There appears to be a different report engine if you go to ReportServer and ReportViewer.aspx instead of Reports and Report.aspx.  The ReportViewer.aspx must give you access to querystring and other command options you pass in including the rs:.
    SO - other folks with more SSRS experience may be able to explain with greater details the real reasons this works but if you need to do this - simply change your URL to the following:
    http://<ServerName>/ReportServer/Pages/ReportViewer.aspx?%2f<SSRS-Folder>%2f<ReportHTTPName>&rs:Command=Render&variable=<VariableValue>
    So a real example would be:  http://<ServerName>/ReportServer/Pages/ReportViewer.aspx?%2f<SSRS-Folder>%2fHardware+-+Memory%2fMemory+information+for+a+specific+computer&rs:Command=Render&variable=Computer1
    The two keys I saw are:
    rs:Command (this forces the report to run and execute and not just load up and ask you for a value)
    variable=xxx - this is the name of the parameter in the SSRS report.  So you need to edit the report and then determine the name of the actual variable.  Also - this appears to be case sensitive.
    If someone out there is a report expert and wants to clarify my statement - please feel free to do so.  Hopefully this helps out someone else who needs this!
    We have requests for data from clients who want a "live report" - but explaining the values in the fiels (or getting them not to type computer names incorrectly) is a pain - so this will help me significantly in day to day reporting for clients! 
    We also have a report for App Dev folks to see their distributions (pie-charts) - and I can now send them a dynamic report of their specific app w/out having to filter down and remember what I named their package or application.  Direct link to their
    data!
    Thanks again if anyone wants to add to my "solution here" and clarify the technicalities of SSRS and Querystring.

  • Passing DBCS through URL

    I need to pass double byte character such as Japanese as value in the name value pair through URL to another page. Are there a way to encode the double byte characters in the URL , then decode in the following page.
    You help is highly appreciated.
    Helpseeker

    See the Japanese Character Encoding for Internet Messages,
    http://www.faqs.org/rfcs/rfc2237.html
    good luck!

  • Update a browser URL without reloading the page

    Is there any way to update the browser url from flash without
    reloading the page?
    My main interest is in being able to use flash to change the
    url variables to reflect what is currently being displayed in the
    swf.
    ie.
    http://www.blah.com?frame=0 might be set to
    http://www.blah.com?frame=10 when the swf reaches frame 10,
    allowing the user to go directly to frame 10 if they return to the
    page later.
    Thanks
    Rick

    You can try a technique that is used by web designers to
    prevent back button actions. Through JavaScript you can write
    strings after hash "#" - like bookmarking (anchors) and then read
    this variables. The advantage is that page doesn't reload and
    bookmarks are saved in the browser history (back button issues).
    Hope it helps.

  • Passing value of View Attribute from standard page to custom page

    Hi everyone,
    I have a custom page which needs to be called from a standard page. Now this custom page is based on some parameters whose value will depend on the dynamic selection by user. So how to get the currently executed value from VO.
    For ex: Vendor Id , contact id and site Id all are to be fetched which are present in three different VOs. When user select particular vendor, contact and site these values will change accordind to selection.
    Here do I need to extend the controller and application module of the standard page or it can be done by passing parameters in destination URI of submit button.
    I tried using parameters in destination URI of submit button as {VO.ViewAttributeName} and printing in custom page but it was printing " {VO.ViewAttributeName}" as it is.
    Please help..
    Thanks in advance.
    Edited by: Kittu on Nov 18, 2010 1:05 PM

    Hi Meher,
    I tried doing it by destination uri but it was not taking the value.
    I tried CO extension with the following code in my extended CO :
    public class ExtendedByrCntDirCO extends ByrCntctDirCO
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    /* I WANT TO CREATE TEH SUBMIT BUTTON PROGRAMATICALLY */
    OASubmitButtonBean oasb= (OASubmitButtonBean)pageContext.getWebBeanFactory().createWebBean(pageContext,"BUTTON_SUBMIT");
    oasb.setID("SubmitBtn");
    oasb.setUINodeName("SubmitBtn");
    oasb.setEvent("xxSubmitButton");
    oasb.setText("Submit");
    webBean.addIndexedChild(oasb);
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    String url = "OA.jsp?page=/oracle/apps/aeap/Vendors/webui/VendorContactsPG";
    OAApplicationModule am =
    (OAApplicationModule)pageContext.getApplicationModule(webBean);
    OAViewObject VendorsVO = (OAViewObject)am.findViewObject("VendorsVO1"); // To retrive the attribute of a particular VO
    Number VendorId = (Number)VendorsVO.getCurrentRow().getAttribute("VendorId"); *// But here its showing null pointer exception*
    HashMap params = new HashMap(1);
    params.put("VendorId", VendorId);
    String strEvent= pageContext.getParameter(EVENT_PARAM) ;
    if ( strEvent.equals("xxSubmitButton"))
    pageContext.setForwardURL(url,
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    params,
    true,
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
    OAWebBeanConstants.IGNORE_MESSAGES);
    So how can I retrive the value from VO . Is there any another way . Plz help...
    Edited by: Kittu on Nov 19, 2010 12:46 PM

  • How to release  PRs through workflows without setting release procedures?

    Dear all,
             I am involved in overall purchase requisition workflow.I have copied standard workflow WS20000077.
             For overall PR release,I will be using the standard task TS20000159 which uses BOR as BUS2105 and method SINGLERELEASE.This method is defined with RELEASECODE as mandatory parameter.
             My functional consultant wants me to get release codes from ztable based on plant and PR value without setting release groups and release code in SPRO transaction.
             So,I have created an entry in ztable for release code with data element FRGCO as in T16FC standard table with SAP log on id of agent ,plant and PR values.I have created a custom background method to pick the appropriate release code from ztable based on PR value and plant.The picked release code now can be passed to he above standard task.Is this a right procedure for PR release?Please correct me if I am wrong ,as this is the first time I am involved in release workflows, for which I will be grateful.
    Thanks and regards,
    S.Suresh

    Dear Swaminathan,
                     Thank you so much for your reply.
                     I will get back shortly once this is done.
    Thanks and regards,
    S.Suresh

  • Close page using javscript and set other page item values

    hy all, i'm trying to create a sort of pop up page.. i open this page (lets say 100) from another page(lets 101).. the page number 100 is opened as a pop up window. it is a report page, so i'd like by clciking the value of one culomn set some values for the item of page101 and close it..
    i'm trying to do it with javscript, but it doesnt work..
    could u maybe help me.. thanks

    Take a look at the HowTo on creating popup pages:
    Build Custom Popup Pages in Oracle Application Express<br><br>
    After completing this How-To, you should understand:<br>
    <br>
    * How to make a custom popup window page in an HTML DB application<br>
    * Passing values from a form page to a popup window.<br>
    * Passing values back from a popup window to the opening form page.

Maybe you are looking for

  • Purpose of Data Template

    What is the purpose of Data Templates in BI Publisher? I understand their format, creating one, and uploading it into BI Publisher Enterprise, our current environment, but I am trying to see what value and power they provide. Is it the lexical refere

  • Adobe Creative Cloud Apps is broken

    Hello guys, my name is Lukas and im new member. First, i have to apologize for my english language. Guys, i have problem with application "Adobe Creative Cloud for desktop". In bookmark "Apps" in Creative Cloud i have warning and that, application Cr

  • Error in Interface Sync RFC-XI-SOAP

    Hi, I have an interface RFC - XI - SOAP Sync. The error appears only in PRD environment and is intermittent error. Follow the message error in sxmb_moni: <SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: SOAP: response message contains

  • Using iPad in Support Community - Issues

    How can I stay logged in longer on iPad?  If I leave the Page inactive and use other pages, I often find that I have to sign in again.  See below. How can I quickly get back to the community page I was on when I sign in?  I get taken to the home, whe

  • NOTHING appears on my Ipod Screen except....

    alright the other day i was listening to my ipod and i turned it off and put it in my pocket then a few hours later i took it out and i couldnt get it to turn on at all. i did everything i could, then i hooked it up to the computer (to see if the bat