SSP checksum in Javascript envoked URL

Hi,
I have a report with a column link and an URL:
javascript:popupURL('f?p=&APP_ID.:300:&SESSION.:#QUELLE#::RP:P300_PSN_ID:#PERSON#')In the popup-window I get the missing checksum error message. How can I create a checksum for this URL inside of Javascript?
Thanks, Juergen

Juergen - You have to go to the server to call the prepare_url function which will give you a URL with a checksum. You might be able to do that using AJAX and an application process.
Scott

Similar Messages

  • Generating SSP checksum from PL/SQL?

    Hi,
    If you use SSP and need to call a page from a PL/SQL based page is there an API that can be used to generate a checksum for the URL?
    Regards Pete

    Check -
    SSP checksum in Javascript envoked URL
    Message was edited by:
    [email protected]
    Message was edited by:
    [email protected]

  • Problem with JavaScript in URL iView

    Hi,
    I am facing a problem with javascript when i am trying to access my application through URL iView. In the javascript window.top is used to access the frames in the window. But the EP is not recognizing it as valid. what exctly the problem and please suggest me a solution.
    Ashok.

    Hi,,
    thanks for the quick reply. But what i asked was different. I will put it in different way. I have deployed a application in Web Application Server and trying to access it through URL iView. My application is pure J2EE application with html,jsp and JS files. In javascript we used window.top property of the java script which is working fine MS IE. The problem is window.top is a IE specific property which is not having any equallent open standerd so EP is throwing a java script error. As I know the only possible solution for this problem is inherating IE rendaring capabilities to iView(i.e iFrame). is there any way to do that?
    Ashok.

  • Javascript in URL

    Hi:
    I am using Apex 4.0.
    I have a horizontal report that I am using for a page. I need to call javascript in the link to set an item on the page. My code does not seem to be working.
    Here is what I have done...
    How must the javascript for the link appear in the sql?
    Currently I have the following
    href="javascript:$s("P1_SUPPLIER_IND",Supplier Performance)">Supplier Performance</a></li>' as menu from dual"
    union all (and so on....)
    Then, I have a dynamic action triggered on the change of :p1_supplier_ind (the item being set by the link.
    The dynamic action does not seem to be triggering and makes me think that the javascript is not formatted correctly in the href.
    Any help would be apprecieated.
    Regards,
    Bruce
    Edited by: bclark on Jul 13, 2011 12:37 AM
    Edited by: bclark on Jul 13, 2011 12:41 AM

    Hi,,
    thanks for the quick reply. But what i asked was different. I will put it in different way. I have deployed a application in Web Application Server and trying to access it through URL iView. My application is pure J2EE application with html,jsp and JS files. In javascript we used window.top property of the java script which is working fine MS IE. The problem is window.top is a IE specific property which is not having any equallent open standerd so EP is throwing a java script error. As I know the only possible solution for this problem is inherating IE rendaring capabilities to iView(i.e iFrame). is there any way to do that?
    Ashok.

  • Can't execute javascript via URL Bar

    https://support.mozilla.com/en-US/questions/871548
    I suffer from this, the solution to use a bookmark works however I want to know how and what changes prevent the use of the URL Bar for such things.
    Sometimes Firefox will respond to it being pasted in the URL Bar and sometimes it won't. there does not seem to be any logic behind it hence my question.
    Edit: and just for the sake of it, not really important but how do you make mailto links always open in a new tab?

    Javascript runs with different levels of acces rights. When you type something in the URLbar, it get no access rights (Null principal - starting in Firefox 6 see question 876916), so you can do almost nothing. A bookmarklet runs with page access rights, so it can do more like alert("hello") etc. Javascript that runs inside an add-on has maximum power and can do everything "chrome privileges".

  • Want a javascript redirect URL using an already defined page item?

    Hello,
    i have a button where i configure a Redirect to URL option... and use : javascript:html_PopUp('http://yahoo.com', '_newwindow');
    That is pretty clear, and it works. I also have a defined page item which does contain a valid URL
    For example :P4_OFFICE_WEB_PAGE_LINK_V:='http://google.com'
    I want the pop up to use a stored value, not the hardcoded one at the top... I have tried all of these, but none seem to work :
    javascript:html_PopUp('P4_OFFICE_WEB_PAGE_LINK_V', '_newwindow');
    javascript:html_PopUp(':P4_OFFICE_WEB_PAGE_LINK_V', '_newwindow');
    javascript:html_PopUp(APEX_UTIL.GET_SESSION_STATE('P4_OFFICE_WEB_PAGE_LINK_V'), '_newwindow');
    What should i use?
    Thanks.

    user12602240 wrote:
    I am a bit novice... sometime i don't know when to use a : (colon) and when not! And i certainly didn't know an ampersand symbol, page item name followed by period (.) will return the value stored. All covered in the documentation.
    Please update your forum profile with a real handle instead of "user12602240".

  • Flash and a Javascript tagged URL

    I was sent a link for a 360 panorama, which I am linking to
    inside my flash movie. When I use the JS script tag, it get an 404
    error. When I strip the URL out of what I was sent, it gets to the
    server looking for the 360 Pan, but will not show it. It seems to
    see the information in the JS file however.
    Here is the test page
    link. Button 1 has the JS script tag, button 2 has the naked URL.
    How much information does Flash need to handle a link tagged
    with JS? Below is the original tag I was sent.

    Found another thread:
    https://support.mozilla.com/en-US/questions/861910#answer-232406
    and tried clearing the cache and the cookies, and amazingly, everything appears to be working for me now! :)

  • How to manually provide checksum in URL

    Hi -- I've just enabled session state protection in my application.
    All pages: Arguments must have checksum
    All page items: Checksum required - session level
    All application items: Checksum required - session level
    I have a javascript header that does a window.location.href to go
    to the specified URL. How do I provide the checksum in that URL?
    I know where to put it... but not how to provide a valid value.
    Without it, I'm getting:
    Attempt to save item DISPLAY_P1_MESSAGE_BUTTON in session state during show processing. Item protection level indicates "Item may be set when accompanied by a "session" checksum.". No checksum was passed in or the checksum passed in would be suitable for an item with protection level "(No checksum was provided)".
    Thanks,
    Carol

    Hi Carol,
    Have a look at APEX_UTIL.PREPARE_URL: http://download.oracle.com/docs/cd/E10513_01/doc/apirefs.310/e12855/apex_util.htm#CDEIBCJD as this allows you to append the checksum value to the url.
    Andy

  • Accessing an Apex app via a url from an email

    We have an issue tracking application which sends emails out to the applicable users throughout the request life cycle as action is taken. We would like to include in each email a link to the application with the applicable request, and upon login the user would be taken directly to the applicable request instead of page 1 of the application.
    My question is how can set I this up so that the user goes from the email, authenticates via login, and then is taken directly to the request. We also have session state enabled, would we need to disable this?

    Ed - Just try it, it should work. Can you show an example of such a URL here?
    We also have session state enabled, would we need to disable this?
    Session State Protection? No, but the checksum type used in generating the link would have to be a "public or private bookmark" type. The checksum type can be specified in the call to apex_util.prepare_url.
    My advice is to get the generic deep-linking behavior working first, then work on getting the SSP checksummed URL pieces working.
    Scott

  • Openning an URL in a new window when the page is submitted, from a pl/sql p

    Hi,
    What I want to do is a procedure (called by an apex process) that opens a new window browser at the URL defined in the procedure.
    I have tried with the following procedure:
    create or replace procedure reportes (par1 NUMBER, par2 NUMBER)
    BEGIN
    htp.htmlOpen;
    htp.headOpen;
    htp.title('Reporte SAF - .: SINERWARE - 2008:.');
    htp.headClose;
    htp.bodyOpen;
    htp.area('0,0,200,400', 'rect', '200.31.86.173/Orden_pedido.jsp?centro_costo='||par1||'&orden_inicial='||par2, NULL, '_blank');
    htp.bodyClose;
    htp.htmlClose;
    END;
    Thanks for any comment.
    Alejandro T.

    I assume your are writting an applet. You can do this by adding a little Javascript to your HTML page. Add this to the HEAD section:
    <SCRIPT LANGUAGE="JavaScript">
    <!-- Begin
      function openURL(url) {
        window.open( url, "", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes" );
      } //end openURL
    // End -->
    </SCRIPT>Execute the Javascript using showDocument():
    String url = "http://somewhere.com/" ;
    try {
      getAppletContext().showDocument((new URL("javascript:openURL(\"" + url +"\")"));
    } catch (MalformedURLException me) {
    } //end try

  • SOLVED: Unable to set Destination URI to URL stored in a VO attribute

    Hi OAF Gurus,
    I want to set destination URI for a message styled text bean in my custom OAF page, such that on clicking the link a popup window comes up with an external url. This external url is record specific and is stored in a db table. I have access to this url thru a VO attribute on my page.
    If I set destination URI declaratively using a static url, it works fine for me. However when I try to pick up the destination url from VO attribute, fwk is prefixing "http://server:port/" to the url and consequently making it an invalid url.
    Please suggest a way to stop fwk from prefixing "http://server:port/" to the url stored in my VO attribute.
    What works:
    Destination URI:
    javascript:var a = window.open('http://www.google.com/', 'a','height=500,width=900,status=yes,toolbar=no,menubar=no,location=no'); a.focus();
    What doesn't work:
    Destination URI:
    javascript:var a = window.open('{@BpelInstanceUrl}', 'a','height=500,width=900,status=yes,toolbar=no,menubar=no,location=no'); a.focus();
    VO attribute BpelInstanceUrl has value "http://www.google.com/".
    When I specify the above destination uri using VO attribute 'BpelInstanceUrl', I get the following url on the link:
    javascript:var a = window.open('http%u003a//www.google.com/', 'a','height=500,width=900,status=yes,toolbar=no,menubar=no,location=no'); a.focus();
    I searched the forum, but couldn't find any discussion on setting destination uri to an external url based on the value of a VO attribute.
    Thanks for the help. Waiting for your valuable inputs.

    Shiv,
    I don't think your suggestion will work, because jsp redirect which framework will use internally will take default port number if fully qualified url(like http://www.google.com/') is not used.So, Ritesh will have the same problem as he mentioned.
    Now, Ritesh coming back to your problem, the solution is to attach the fully qualified url in the table component at runtime. This will help you in two forms:
    1)There will be no MAC key validation for your javascript generated url.
    2)Your fully qauilified url will be attached to url property at runtime, so would not face the current problem.
    Hence you need to use bound values api. Here is the sample code:
    OATableBean tableBean =
    (OATableBean)webBean.findChildRecursive("<table item id>");
    OAMessageStyledTextBean m= (OAMessageStyledTextBean)tableBean.findChildRecursive("<message styled text in table item id>");
    OADataBoundValueViewObject tip1 = new OADataBoundValueViewObject(m, "<vo attr name which stores url for each row>");
    m.setAttributeValue(oracle.cabo.ui.UIConstants.DESTINATION_ATTR, tip1);
    I hope i am clear.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Javascript on Button displayed among this region's items?

    Hello,
    I have implemented Javascripts to used manual LOV, has well describe in "How To", and everything work well.
    I now want to put a button in my LOV page to return back a fix value to the calling page/item. From this button, I'm calling the javascript javascript:passBack('fix_value');
    If I put this javascript in URL Target of a region button, it is working well.
    But position of the button is not what I want. If I try to use a "button among region items" and I define a branching with URL target equal to the same javascript, I get a page not found error.
    Is there an easy solution for this?
    Thank you
    Jean

    check out whether this helps you.....
    when we create a button then automatically javascript:doSubmit("request") function gets attached to it and in this function , current page is submitted.
    If you have created the button among the region items , then i am pretty much sure that you wanted to display this button adjacent to some item (let us say A ) in the region
    If above assumption is right then i think it is better to use a IMG tag (displaying the button ) in < Post Element Text > of item A instead of creating the button in the region...
    e.g then you can put the same in <Post Elment Text > of item A of the region
    <IMG SRC="img src"
    alt="Query" border="0" align="bottom left"
    onclick = "<call javascript>">
    here you can
    1. use HREF to redirect ....then no need of javascript function
    2. put "#" in HREF and use a javascript function to re-direct...
    i have used this approach extensively and it works fine ...plus it gives you freedom to exactly place the button where you wanted on ur page ...
    P.S. i tried creating doSubmit(request) function on the page and thought that this function might override the HTMLDB's doSubmit function ..but it did not work
    ----------------------------------------------------------

  • Session State Protection invalid Checksum errors show valid checksum

    Hi,
    I am investigating Session Sate Prtection to let me make my appications more secure.
    I have created a simple Report / Form pair that allows me to open an item for edditing.
    I have set the Application to Session State Protection 'Enabled' and and my form page to Page Access Prtection 'Arguments Must Have Checksum'.
    From my report page I click on the edit icon for a row and I get the edit page with the url:
    f?p=126:3:7115846938209895::::P3_WORK_PACKAGE_ID:1179&cs=3CC0C97D3A8B114D2E40EDF158C0AECFB
    If I then manually manipulate this url, to change my P3_WORK_PACKAGE_ID from 1179 to 1180, to:
    f?p=126:3:7115846938209895::::P3_WORK_PACKAGE_ID:1180&cs=3CC0C97D3A8B114D2E40EDF158C0AECFB
    I get an error of:
    Error The checksum computed on the request, clear cache, argument names, and argument values (P3_WORK_PACKAGE_ID1180 [01BE394775DB7B5A861BEA77B6637A46] ) did not match the checksum passed into the show procedure (CC0C97D3A8B114D2E40EDF158C0AECFB).
    All well and good, but it tells me what the checksum should be. I can now update the url to use the displayed checksum to make the url:
    f?p=126:3:7115846938209895::::P3_WORK_PACKAGE_ID:1180&cs=301BE394775DB7B5A861BEA77B6637A46
    the form opens for P3_WORK_PACKAGE_ID 1180.
    How do I stop the error message telling my how to bypass the checksum security?
    Thanks,
    Martin

    I am not sure but maybe this detailed message is coming if you are logged in to Apex and otherwise it is showing more general error message with no checksum?

  • How to pass multiselect list values to javascript?...

    Hi, guys...
    (continuation...)
    Here is a Q. I have two multiselect lists item on the page. I need to use the values of these items in ODP. The button calls javascript, and javascript envoke ODP. Everything is working fine if i submit the page and then call javascript, But this is extra step and it's not kind of cool...
    So i am looking for the way to pass the value of multiselect lists to javascript without submitting the page first...
    Thnks...
    Mike
    Edited by: mishkar on Oct 1, 2009 10:59 AM

    Mike:
    Try using v('page_item') instead of :page_item in the ODP code
    varad

  • Strange  javascript  in Universal theme

    Hi
    I use Highcharts javascript Library , in  any legacy  theme  the   library  run ok ,  but  if  I wants to use the library in the new theme  I get   the next message  :
    Uncaught TypeError: Cannot read property 'addEvent' of undefined
    Uncaught ReferenceError: $ is not defined
    Please check  the applicacions in : https://apex.oracle.com
    workspace : apx50
    user            :test
    password    :test
    Application running ok  is  "OLD"  with legacy theme
    Application  not running  is  "NEW" with Universal Theme
    I test in  several  enviroments
    OS: OEL,Windows 7, Solaris
    DB: 11r2, 12c
    Listener : ORDS2.0
    app server : Glassfish & ORDS standalone
    Thanks

    mortus wrote:
    I use Highcharts javascript Library , in  any legacy  theme  the   library  run ok ,  but  if  I wants to use the library in the new theme  I get   the next message  :
    Uncaught TypeError: Cannot read property 'addEvent' of undefined
    Uncaught ReferenceError: $ is not defined
    Please check  the applicacions in : https://apex.oracle.com
    workspace : apx50
    user            :test
    password    :test
    Application running ok  is  "OLD"  with legacy theme
    Application  not running  is  "NEW" with Universal Theme
    I test in  several  enviroments
    OS: OEL,Windows 7, Solaris
    DB: 11r2, 12c
    Listener : ORDS2.0
    app server : Glassfish & ORDS standalone
    This obviously has something to do with the ordering and execution of JavaScript components, which is controlled by various substitution strings in the page template, and where you have created/executed your custom code.
    I've created a copy of your NEW application as NEW 586 in which the reference to the Highcharts library is moved from the legacy HTML Header attribute to the page JavaScript File URLs attribute, and the Highcharts demo code moved from the static region body to the JavaScript Execute When Page Loads attribute. The code then runs without error—i.e. all of the required components have been loaded before the demo code is executed—but I suspect the page does not render as you require...
    Please explain/demonstrate exactly how you are using Highcharts in your real application.

Maybe you are looking for

  • Added new attribute to WBS

    Here is my current issue. I added a "deleted indicator" to the WBS_ELEMT_ATTR on r/3, then created a new infoobject in BW (did not flag it w/master data) and added this new infoobject as a navigational attribute to the WBS_ELEMT infoobject in BW. Wen

  • Child Report Window Size XI 3.0 SP2 Using Javascript

    Hi All, I have to admit this is not my area  . I'm trying to get a new webi report in a sizeable window using javascript. I want to achieve this by selecting an open doc link from an existing webi report. We have been trying with the code below but g

  • ITunes won't open, different from other problems

    Yeah. I don't have Norton (I do have the windwows firewall and stuff, but I already have it on the allowed list) and I've tried deleting the file. I double click on iTunes (I've even tried from the actual .exe file in the program files) and I get the

  • Outgoing Payment - Bank transfer method default

    Where / how is the default G/L set on the Bank Transfer tab of the payment means on an outgoing payment?  I want it to default to a new banks G/L account but I can't seem to get it to change. Thanks

  • ClassCastException TreeNode

    Hi ! I worked through the JTree tutorial and customized the sample code. The idea is to create Node-Objects which include getters/setters for the nodes' icons/labels/tootips ect. After adding this Object to the Tree, I try to receive it again in the