Get item URLS with Javascript Page

I want to make a link to a page, passing in a variable (P99_SOMETHING) in the URL:

f? p = xx:xx:xx:NO:P99_SOMETHING:TEST

On the page (P99), I want to be able to access P99_SOMETHING with Javascript.

I tried to add a page hidden page called P99_SOMETHING, but what is hidden is not filled with the TEST. Also when I try to access JavaScript with:

Alert (' val: "+ $v ("P99_SOMETHING")");

The alert says, but he has an empty value.

Parameters of the Page element:

Name = P99_SOMETHING
Serves as a source = always, by replacing the value that exists in session state
Type = Item (the item application or page name)
Expression = P99_SOMETHING

What am I missing or doing wrong?
Using Apex 4.2

Published by: 973239 on November 26, 2012 07:06

Published by: 973239 on November 26, 2012 07:07

Hello

If I understand correctly, you set the value of P99_SOMETHING in another page in your application. In this case, the setting of page # 99 article can be modified to:
Source used (s) = only when the current value in session state is zero
Type = static assignment (the value corresponds to the attribute of the source)

No need to put anything in the field of Expression.
Can you check in 'Session' (in the developer toolbar) to ensure that the value of the element is used?
And in your alert, try $v ('P99_SOMETHING') - apostrophes to see if there is a difference.

Thank you
Rohit

Published by: jaouad khalifi on November 26, 2012 07:42

Tags: Database

Similar Questions

  • How can I redirect a URL with JavaScript submit in Adobe LiveCycle

    How can I redirect a specific URL with JavaScript on submit in Adobe LiveCycle?

    I already have the code in place where the submit event is managed and just need specific code to do the redirect.

    Standard type asp.net redirects as

    Windows.Location.Replace (http://myURL.com);

    do not work.

    Any help would be appreciated.

    To be able to redirect a Web site with a "submit" button, you must have a custom submit button and insert the following line:

    app.launchURL ("www.url.com");

  • Get the objects on a page or get the selection with JavaScript?

    I have a bunch of page PDFs with an ornament on the page. I need to crop all pages the same distance of the ornament. The problem is that the ornament is never in the same horizontal position.

    I have the script where the operator cultures page tight for ornament and I use getPageBox and setPageBox to develop harvest evenly around the entire page, but I would like to completely automate it.

    Basically I need a way to know where the ornament is on the page. Is it possible in Java (I couldn't find one) to browse objects on the page to check their size?

    Thank you very much

    Ken

    Gobs much gratitude to MD_quake for posting back here when he or she finds his answer.

    It turns out that the boxes have BEEN changing, but the & #* $%! dialogue of cultures was not showing the changes on all the boxes! Save the file and open it again displays the boxes correctly. By mail to the MD, you can also use a preflight.

    I'm done with this JavaScript but could also change the media box to clean things up a bit.

    var TargetWid = 302

    var TargetHt = 477

    To display the culture for the page

    var CurrRect = this.getPageBox ({cBox: "Crop", nPage:0});})

    var AdjWid = (TargetWid-CurrRect [2]) / 2

    var AdjHt = (TargetHt-CurrRect [1]) / 2

    App.Alert (AdjWid);

    The value of the new culture area of the box (in pixels)

    CurrRect [0]-= AdjWid;  Adjust the left side

    CurrRect [1] += AdjHt; Adjust the upper part

    CurrRect [2] += AdjWid;  Adjust the right side

    CurrRect [3]-= AdjHt; Adjust the lower side

    Apply the new harvest area to the area of all pages

    this.setPageBoxes ({cBox: "Crop", nStart:0, nEnd:this.numPages - 1, rBox:CurrRect});})

    Reset the CurrRect to the new crop and adjust the other boxes

    var CurrRect = this.getPageBox ({cBox: "Crop", nPage:0});})

    this.setPageBoxes ({cBox: "Art", nStart:0, nEnd:this.numPages - 1, rBox:CurrRect});})

    this.setPageBoxes ({cBox: "Trim", nStart:0, nEnd:this.numPages - 1, rBox:CurrRect});})

    this.setPageBoxes ({cBox: "Bleed", nStart:0, nEnd:this.numPages - 1, rBox:CurrRect});})

    Best,
    Ken

  • Replace the message "No Items Found" with Javascript

    On this page http://www.sedonamagoretreat.org/test in the second box "Program Dates" in the sidebar on the right, I'm trying to set up a script that I found to replace the "No items found" message with a custom html file.

    The javascript is here: http://www.sedonamagoretreat.org/js/no-items-found.js and here is the html file that is used to replace the message: http://www.sedonamagoretreat.org/prog-dates-alternate-content.

    I'm sure this is an easy fix and I'm just on something... suggestions to get this script working are welcome - thanks!

    Linda

    Well Yes, it's easy to fix.  You are the javascript file requires jQuery is working properly and in the HEAD of your page or the page template you load the '/js/no-items-found.js' before calling jQuery.  Just move this SCRIPT reference in your page or your page template to the bottom of line to make AFTER the dismissal of javascript jQuery.

    Once correct you this error, it seems that the script is a not can prepare to deal with multiple instances of your web applications list.

  • Direction to a url with a page values

    I am a branch to this url and try to pass the P3_PID but the & P3_PID. does not pass.

    f? p = & APP_ID.:2: & APP_SESSION.:CIR:CURRENT_NODE_ID: & P3_PID.

    Is this the way to convey value?

    macwadu wrote:
    I'm on page 3 and I have the P3_ID element and after a submit want to go to page 2 with the value of page 3 in the url.

    I have a connection to a page in the application

    In general it would work. However the item you set must be on the target page (or column on the interactive report).
    If it's an element of page 0, I think you need another approach. For example, you can call a calculation that simply defines this element. Or maybe a level application process, but I think it would be too much.

    But here would be the steps how to set up such a process:

    on the components page shared create an application process, the value ON DEMAND.
    Process text would be similar to this:

    declare
    begin
      :P0_CURRENT_NODE_ID :=  :P3_ID;
    end;
    

    Then call this your page process application process.

  • How can I get a URL with a bunch of code?

    Hello

    I play a cfhttp (get) and it returns the content of a Web page. In the upper part contains the following code in the < head > tag:

    < head > < title > you have new picture messages! < /title >
    <!-lsPictureMail-part-aEAr4d7TmUP9t8s8L08x-comment
    & lt;? XML version = & quot; 1.0 & quot; Encoding = & quot; UTF & #45; 8 & quot;? & gt;
    & lt; shareMessage & gt;
    & lt; messageContents = type & quot; PHOTO & quot; & gt;
    & lt; messageText & gt; This is a test & lt; / messageText & gt;
    & lt; mediaItems & gt;
    & lt; mediaItem id = & quot; 1 & quot; & gt;
    & lt; title & gt; & lt; / title & gt;
    & amp; Lt; URL & amp; GT; http://yyyyyyyy.xxxxxxx.com/getMMBOXMessageMedia?id=Xw1004H8sLv6S3x76lVPYmsnJP2O20g3G1ktos 3o40eowQu2ISQurwmk5gW % 2FZUWGmojEaNnHPwvp % 0AeQvD0picW27ax3ydBrpRXHd8C % 2BjWdodHSDGRx6c3XwebI Tvfl1HKgeiA % % 2FmkgvO3ur95DU % 2Bmg % 3D % 3D % 0a 2BR & amp; lt; / url & amp; gt;

    & lt; urlExpiration & gt; 2007 & #45; 01 & #45; T 29, 19: 44:23Z & lt; / urlExpiration & gt;
    & lt; / mediaItem & gt;
    & lt; / mediaItems & gt;
    & lt; / messageContents & gt;
    & lt; / shareMessage & gt;

    ->
    <!-lsPictureMail-UserInfo-aEAr4d7TmUP9t8s8L08x-comment
    & lt;? XML version = & quot; 1.0 & quot; Encoding = & quot; UTF & #45; 8 & quot;? & gt;
    & lt; Timestamp = UserInfo & quot; 2007 & #45; 01 & #45; T 22, 19: 44:23.414 + 00:00 & quot; originating_from_address = & quot;[email protected] & quot; & gt; & lt; credential name = & quot; DND & quot; & gt; 3333333333 & lt; / identifying information & gt; & lt; / UserInfo & gt;
    ->
    < / head >

    What I need to do, is check out items such as the URL, the subject and the originating_from_address. Someone suggests the best way to do it?

    Thank you!!

    Thanks for all your help. I think that I thought about it. Here's what I did for someone else that may encounter this problem...


    #cfhttp.filecontent #.

    Click here to see photo

  • Dynamic URL with JavaScript

    I use this script to launch a url in a popup window:

    getURL ("javascript:openNewWindow('contact.html','thewin','width=700,height=400,toolbar=yes,scrollbars=yes')");

    I want to be able to make the dynamic URL, but when I try with the JavaScript window sizing, I can't make it work. What should I do?

    This one works, but not the window sizing:

    getURL ("contact /" + _root.agent + ".html", "_blank");

    Thank you

    Brian

    You have an additional "after .html '.

    You can see where the citation in red below:

    (' getURL ('javascript:openNewWindow('contact/"+_root.agent+".html' ", 'thewin',' width is 700, height = 400, toolbar = yes, scrollbars = yes')");

  • How can I get my sections with double pages to get started on the right side of the spread?

    (I use Indesign CC 2014, on Windows 7)

    My book has several sections.

    Each section is a separate file.

    All pages use 2up master pages.

    If all sections have an even number of pages, there is no problem. But some stops on a left page (side spread of the left page).

    Therefore, sections must begin their first page on the right side of the spread.

    I need to produce PDF files for production, and because of the fluctuation of the content, the amount of pages in each plank is random.

    What I have to indicate if each section begins on the left or right of the spread manually?

    Here is an example:

    pages.png

    Once the PDF file is released, I need the first page of the Section 2 to be automatically where is the pink rectangle.

    Instead, the last page of Section 1 and the first page of the Section 2 times use the left facing page of my pages master 2up.

    If the page has an odd number, that it will automatically switch to the correct position, if the property page shuffle in the side of the page is allowed and if it is possible to mix pages of the spread.

    In the book panel, you also have to set up you book numbering options.

  • How to build a URL with Checksum in "JAVASCRIPT"?

    Hi all..

    Could someone help me how to construct a URL with "checksum" in javascript?

    With PL/SQL, we can use apex_util.prepare_url to get the url with checksum. How can I make if I build the URL in javascript?

    Please help me with this.

    Thank you

    Hello

    Just an idea, in your javascript code, you can call an ajax function to construct your URL with PL/SQL code and then return the URL and use it in your javascript code.
    I have never tried but maybe works.

    Kind regards
    SDDC

  • problems of changing an item on a master page

    Hello

    I was faced with a problem all day.

    I have a large document, use multiple master pages. I want a button on one page to make an element on a master page to toggle visibility. This occurs on all pages that use the master page in question.

    So... here is my code:

    if (this.rawValue == '2') {

    this.resolveNode("#pageSet.CoreMaster.nonDis").presence = 'hidden ';

    }

    if (this.rawValue ! = '2') {

    this.resolveNode("#pageSet.CoreMaster.nonDis").presence = 'visible ';

    }

    I placed it on a radio button set that has values for 1 = no 2 = yes

    If the user selects Yes (ie the value 2) makes the field of text called ' nonDis visible - if they choose No. - He then hides it. The nonDis of the element is on the master page named CoreMaster.

    It works! Finally almost. It only works on the first page of the document. It's the visibility on all other pages (that use the master page in question) still have the text as hidden nonDis field.

    By the way, thinking it was my form (it's abig form) that was at fault, I tried another nine form but nothing that an item, but with two pages and got the same problem - hidden on the first page, but not on the second.

    I have no idea why - can anyone help?

    Thank you very much

    Sunil

    Master pages are repeatable object, they also have numbers of index as [0], [1], etc.

    Your current expression makes referring only the first instance of your master page.

    To refer to all instances, you will need a loop function.

    Member of the var = xfa.resolveNodes("#pageSet.CoreMaster[*].nonDis");

    for (var i = 0; i)< mp.length;="" i="" +="1)">

    MP. Item (i) .its presence = this.rawValue! = « 2 » ? "visible": "hidden";

    }

  • Hidden field in form with the url of the page value

    Hello world of Dreamweaver,

    Just a quick question im stuck on.

    I have created a simple form name, Email and Message. The problem is I want to use the same form on several different pages, but being able to say what the URL of the form was sent from. I see I want a hidden field in the form, but how could I go all that actually send the URL with the other information?

    Thanks in advance!

    Do better on the server side (ColdFusion, ASP, PHP, etc.).   In ColdFusion, you can use #cgi.script_name # to get the name of the document that contains the form.

    However, you can use JavaScript (not as reliable - esp if the user has JS disabled.)

    Location.href or document. URL will take the path of COMPLETE domain including the name of the document.  Don't forget to access the page via the domain name FULL or http://localhost or http://127.0.0.1.  If access you it via file:\\\C:\path\to\document.htm, so I don't know how this will work.

    ^_^

  • Pop - up page with javascript

    Hi all

    Thanks in advance for the help.

    I have a page I get the use of a javascript url in a popup page. The popup works fine, but on the page popup, I have a process that I use to add a record, then I want the closed and the page refreshed that from.

    I put the following in the Add button url: javascript:window.opener.location.reload();window.close();

    but then the process does not although the page closes, and the first page is refreshed. The process in conditioned to the same key.

    What Miss me?

    Thank you

    Hello

    Put present it with the application you need (SAVE or SUBMIT or other) in your url:

    JavaScript:doSubmit('REUQUEST_YOU_NEED'); Window.opener.Location.Reload (); Window.Close ();

    Jos

  • Cannot get new url of the tab open with the homepage (Google).

    After the upgrade, I cannot get rid of 12 boxes (Facebook, Youtube, etc.) on the new tab or make open with my homepage (Google). I tried two different newtaburl add-on, uninstall and reinstall Firefox and the directives of the object: subject: config, browser.newtab.url, etc. I can't even scratch try this approach. I can't get the 12 bar blues.

    Well, I know I'm repeating something you've read before, but just for completeness (and also, I suspect this isn't built-in Firefox page):

    (1) in a new tab, type or paste Subject: config in the address bar and press ENTER. Click on the button promising to be careful.

    (2) in the search above the list box, type or paste newtab and make a pause so that the list is filtered

    (3) double-click the preference browser.newtab.url and enter your favorite page:

    • (Default) page thumbnails = > subject: newtab
    • Blank tab = > subject: empty
    • Built-in Firefox homepage = > topic: welcome
    • Any other page = > full URL of the page

    Press Ctrl + t to open a new tab and check that it worked. Fixed?

    Some traps:

    If Firefox will not let you change this setting: you can have what is called SearchProtect on your system.

    Firefox if allows you to save your changes, but he doesn't know: one of your extensions may be the substitution of her. You can consult, disable and/or remove extensions on page modules. Either:

    • CTRL + SHIFT + a
    • "3-bar" menu button (or tools) > Add-ons

    In the left column, click on Extensions

    If the modification works during your session, but during the next startup is return to the unwanted page: you could have a user.js file in your personal settings Firefox (your Firefox profile folder). This article describes how to track down and delete the file: How to fix preferences that will not save.

    A little luck?

  • I lost my home page, by clicking on the home button all I get is URL is not valid, I tried suggestion in help, but they do not have. Can you plse.

    On enter Monzilla since the update, I no longer get I got the home page. In fact, the page is empty except for headerbar. When I clock on the Home button all I get is "URL is not valid" message it means that I can not leave a site without logging into my account from Firefox.

    -> To restore the default home page

    -> Now, put one website as your home page

    Check and tell if its working.

  • How can I get the web page translated from English? IM translator does nothing. I was getting this feature with Google Chrome and Maxthon.

    Recently, I installed the latest version of Firefox.Iwas happy to find characteristic imtranslator in this version. But the need, it don't nothing. To several times when I was faced with Web pages in German and Chinese, I tried to get them translated to English with the help of translator-ImTranslator. But there is no reply from her. Previosly, I used Google Chrome and Maxthon.They were just with the click of a button. But Firefox disappoints me. In fact I think to return to Maxthon.If, there is a way to translate Web pages in its entirety in Firefox please notify so that I can stick to.
    Thanking you,
    pnsdhrn

    You can use the keyworded bookmark shortcuts in Firefox to call the Google Translator, see

Maybe you are looking for