Reference to a Page element in the expression of the dynamics of the Javascript Actions

I hope it is easy enough for the experts here!

I have a dynamic as action below

Event - lose Focus
Selection type - jQuery Selector
jQuery Selector - entry: text
Condition - Javascript expresion
value - this.triggeringElement.value > 37.5

instead of the 37.5 I would like to make reference to: P16_HOURS

What is the syntax to refer to this element of the page, I tried as above and P16_HOURS v ('P16_HOURS'), $v('P16_HOURS').value

nothing works (as you can see javascript is not my forte!)

Thanks in advance

Chris

Hello

Did you try

$v('P16_HOURS')

http://docs.Oracle.com/CD/E37097_01/doc/doc.42/e35127/javascript_api.htm#autoId34

Kind regards
Jari
-----
My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
Twitter: http://www.twitter.com/jariolai

Tags: Database

Similar Questions

  • A page element to the 'CALENDAR' page instead of 34 488 requires pixelation, but it is too large to rasterize. Resize it smaller and try again

    I get this error message,

    A page element to the 'CALENDAR' page instead of 34 488 requires pixelation, but it is too large to rasterize. Resize it smaller and try again

    This basically means that there is an object that has its upper left corner at x: 34 y: 488 which is too large to be rasterized, it could be due to any extreme wide or tall object.

    Try to check the contents of the page and then resize to verify the behavior. Please let me know how it goes.

    Thank you

    Sanjit

  • APEX 5 - missing values in link for the PAGE that is modal if it has used some PAGE ELEMENTS in the VALUE of the

    Hi Experts,

    There is a problem in the APEX when I open a modal page-> submit modal page and refresh parent region (report one).

    When I first open a report from the region and click the modal page, everything is ok:

    Modal page values are defined in the sense of link that open to it.

    Submit after modal page by button (there is a process of dialogue), the dialog box is closed. On the parent page, there is a DA - dialogue close report parent refresh.

    After update - waiting indicator is indicated - all the element referenced in the link to open modal values are defined as empty values.

    Is there a problem in the links when I use it it set the values of the elements of the page? (not report items)

    I reproduced the problem on apex.oracle.com:

    https://Apex.Oracle.com/pls/Apex/f?p=16502:9

    user/pass: demo/demo

    "Just check the link in 1 region report-#OPEN_MODAL" report item. You can check the link with the appropriate values.

    After opening modal, simply click on the button. Dialog box is closed and updated in the region. Check the link again. Link is not valid because the values are empty. (screenshots above)

    concerning

    J

    Hi Jozef,

    the values of your page P9_NEW1 - P9_NEW5 items are not in persistent session state, they are only available in memory at the time when the page is rendered. Every time when you want to refer to an element in your report, and no matter if it is in the report SQL statement or as a substitution in a link, it must present the server as part of the "Refresh" / AJAX call so that the server can initialize this session state and you are able to reference it. You can do this by setting "Page elements must send" your report. In your case, you must set it to P9_NEW1, P9_NEW2, P9_NEW3, P9_NEW4, P9_NEW5. See the example updated, you provided.

    Concerning

    Patrick

  • Value of the page element in the APA process not maintained after the send this page

    Hello - I have a sequence of events that goes like this:

    (1) region 0 REG_1 Page is rendered before footer
    -REG_1 region uses javascript / AJAX to call App process PROC_1
    -PROC_1 defines Page1 item PAGE1_MESSAGE for X
    -After that PROC_1 runs correctly, REG_1 don't doSubmit()

    (2) region 0 REG_2 Page is rendered before footer; in this case
    After the page sent by REG_1. (Requirements to ensure that)
    REG_1 has not yet reached)
    -REG_2 region shows an alert PAGE1_MESSAGE (= X).
    -REG_2 region uses javascript / AJAX to call App process PROC_2
    -PROC_2 sets page 1 point PAGE1_MESSAGE to Y
    -PROC_2 sets point Application DEBUG to PAGE1_MESSAGE (this is for debugging)
    -PROC_2 defines the point of Application APP_MESSAGE to Y (this is also for debugging)
    -After that PROC_2 runs correctly, REG_2 don't doSubmit()

    (3) after that REG_2 sent the page, here's what I have:
    -Point application APP_MESSAGE = y. good. That's what it has been for PROC_2.
    -Point Page 1 PAGE1_MESSAGE is bad. X. That's what he has been put to in PROC_1.
    -Point application DEBUG = y. good. This shows at least that PAGE1_MESSAGE was
    the value Y in PROC_2... but for some reason this value is not be kept
    After the application process is running.
    -There's that several other elements of the application located in PROC_2, and they are all correct.


    Any ideas as to why this is happening? It seems like it should be
    quite simple: set the value, send page, the value must be that
    I put it.

    Thank you
    Carol

    Hello

    Exhibition (doesnot save session state), I am not changing who is P1_MESSAGE_1.

    Why does that matter? Why does the hidden item behave differently?
    

    Yes, Hidden Items by usually default state saves. But this isn't the problem in this case because I had changed the item to display only (state saved) and that did not help. Finally back in doesnot save state.

    Try to replace alert (ajaxResponse); with the lines below

    $s('P1_MESSAGE_1',ajaxResponse);
    alert($v('P1_MESSAGE_1'));
    

    Maybe the session state is defined (server), but the value in the DOM HTML (browser) to P1_MESSAGE_1 is not defined. If adding the line above works then the hypothesis is correct.

    And I see that you made the source "static" assignment ...
    

    Yes, I made this change, because it was a reference in itself I think it was redundant. And I had to correct what I thought is not just before debugging. Which cannot be linked to the problem though.

    Kind regards

  • Can be used as headers page elements in the header of the report?

    Apex 4.1 / 11g

    Hello

    In a report, the headers are generally select alias of the instructions. However, in the attributes of the report, we can change the column header to any text of our choice. I was wondering if we can replace that with a page element with something like: P8_item?

    Thank you
    Sun

    Published by: ryansun on June 28, 2012 23:00

    ryansun wrote:
    Apex 4.1 / 11g

    Hello

    In a report, the headers are generally select alias of the instructions. However, in the attributes of the report, we can change the column header to any text of our choice. I was wondering if we can replace that with a page element with something like: P8_item?

    You can use, but using this syntax * & P8_item.*

    And make sure that you complete the items before the report area

  • to access the page elements in the document, but outside the page boundaries

    I am also new to indesign in indesign scripting so bear with me and my lack of termonology. I have page elements that are located in the white space in the document, but outside the page limits. I have access to all page elements that are still partially on the page using the myPage.pageItems. However this collection does not include page elements that are not touch to this page. So is there anyway to access page items in the space outside the page?

    So where are OK, you stuck?

    If you have a variable, say, page, it is a particular page, where page.pageItems is all the elements on this page, then page.parent.pageItems will be all the items on the spread, which includes the editing table that surround it.

    Good?

  • How to create page elements in the Office of discoverer

    Hi all
    any body can help me creating a page of items. How we create pageitems in discoverer.
    Thanks in advance.

    Hello

    When you select bussiness area and select the items that are required by the wizard of workbook. In step 3 of the wizard of workbook, you can check the page see the box and drag and drop the item you want to see in the page element section.

    Hope that helps you!

    Kind regards
    Murielle

  • Assigning a page element in the region of the "body of function return PLSQL SQL query.

    I've not been here in a long time. I like the new forum text editor!

    I have a search page in my application that contains a return region of query SQL PLSQL function body. I use PLSQL to build a query based on the user entries in various page numbers (search text, serial number, year, etc.). Using PLSQL is very useful to enforce the page quickly because there are 1/2 million lines with a lot of text fields some of which are CLOB.

    Users want to know how many rows were returned, but if I allow using a paging system that includes the total performance dies because ApEx has to sort through all the pages of output. Instead, I use ' line varies X to Y "without the part of" Z", and it's pretty fast. I can't use the #TOTAL_ROWS # because it does not work with this system of pagination.

    So, I built a code within the region of function body PLSQL to build a second query that counts only the lines based on the input parameters. I can do this query within the region using EXECUTE IMMEDIATE and the number to an output variable. The disconnect is that I can not then assign it to a page element. If I add a statement assigned to a page element, either by

    : P45_COUNT: = p_count;
    or
    APEX_UTIL. SET_SESSION_STATE ('P45_COUNT', p_count);

    then when I submit the changes I get

    ERR-1002 unable to find point item ID 'P45_COUNT' in the application '4000 '.

    as if the ApEx is not looking for the item in my application, but in the application development environment. I am able to write the results to a table and then recover data in the next region. That's how I got around the problem, but it seems too complicated and unnecessary.

    I wrote the following code just to illustrate the problem.

    Make sense? Any ideas?

    Thank you!

    Bill


    declare
    p_sql varchar2 (32767).
    p_sql_count varchar2 (32767).
    p_table_count number (2);
    p_count number (10);
    p_instr number (10);
    Start
    p_sql: = q'! Select g.id, g.widget, g.year_made, g.serial!';
    p_sql: = p_sql | q'! g table_g where g.status = 1!';

    If: P45_YEAR_MADE is not null then
    p_sql: = p_sql | q'! and $P45_YEAR_MADE = g.year_made!';
    end if;
    If: P45_SERIAL is not null then
    p_sql: = p_sql | q'! and upper (g.serial) like '% "| Upper ($P45_SERIAL) | » %' !';
    end if;
    If: P45_WIDGET_SEARCH is not null then
    p_sql: = p_sql | q'! and upper (g.widget) like '% "| Upper ($P45_WIDGET_SEARCH) | » %' !';
    end if;

    p_instr: = instr (p_sql, 'of g table_g where g.status = 1');
    p_sql_count: = ' select count (g.id) of "| substr (p_sql, p_instr);

    p_sql_count: = replace (replace (replace (p_sql_count, ' $P45_YEAR_MADE ',: P45_YEAR_MADE), "$P45_SERIAL", "' |: P45_SERIAL |)) ('), "$P45_WIDGET_SEARCH", "' | : P45_WIDGET_SEARCH | '''');

    run immediately p_sql_count in p_count;

    / * the following

    : P45_COUNT: = p_count;

    gives this error when I submit the region in the development environment

    ERR-1002 unable to find point item ID 'P45_COUNT' in the application '4000 '.

    */

    Select count (1) in the table_sql p_table_count where app_session =: APP_SESSION.
    If p_table_count = 0 then
    insert into table_sql (app_session, sql_text, session_date, count) values (: APP_SESSION, p_sql_count, sysdate, p_count);
    on the other
    Update table_sql set sql_text = p_sql_count, session_date = sysdate, count = p_count where app_session =: APP_SESSION.
    end if;

    / * the above written SQL and count of a table * /.

    Return replace(p_sql,'$',':');
    end;

    Hello

    Try the suggestion of Scott in Re: how to get the query region "PL/SQL function body returns the query string"?

    Andy

  • Change several Page elements at the same time

    Hello
    I would like to know if there is a table that I use to day/change the properties of multiple items.
    For example, let's say I have an existing application and I want to change all the elements on each page read-only.

    I use apex 4.1/4.2

    Hansen.

    Is there anything available like this. Could be useful however, and has been requested.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Apress.com/9781430235125
    http://Apex.Oracle.com/pls/Apex/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • How to specify the opacity of a page element in the script?

    In my following script:

    myDoc var = app.documents.item (0);

    var app.activeWindow.activePage = myPage.

    var myBounds = myPage.bounds;

    var myBounds = pageWidth [3] - myBounds [1];

    var myBounds = pageHeight [2] - myBounds [0];

    myRectangle var = myPage.appliedMaster.rectangles.add ({geometricBounds: [0, 0, pageHeight, pageWidth]});

    myRectangle.fillColor = 'Black ';

    myRectangle.strokeWeight = '0 '.

    I want to change the opacity of the object myRectangle.

    Can someone help me with the correct command to specify the opacity in javascript?

    Hello

    Try this...

    myRectangle.transparencySettings.blendingSettings.opacity = 39;
    

    Concerning

  • HTML5 reference code works is not inside the Javascript on DW CS6 function

    Hello

    I'm working on Dreamweaver CS6 and indicators of code does not work as expected when you write Javascript code.

    The minute that I insert a code hinting feature no longer appears the HTML5 elements.

    dw-with-function.gif

    Should I remove the function then him reappears indicators of HTML5.

    dw-no-function.gif

    How can I get the code referring to work when I add in the function?

    Thank you

    Herman

    Thank you for reporting this issue, Herman!

    We have recorded a bug for it and you're tracking internally.

  • Stop the JavaScript action game

    Hi everyone_

    I have a JavaScript code to create a new custom document

    But if the active document has not yet been saved, this script only

    create new document , BUT will ORDER other actions.


    Now, is it possible? (I hope so guys)


    Please, see photo below...

    Thank you in advanced for your help.

    Captura.PNG

    What about a simple conditional that determines whether to execute the action?

    var valid = true;

    If (app.documents.length > {0})

    app.doScript ('Create The File", (the set name));

    }

    else {}

    Alert ("No Document Open!");

    valid = false;

    }

    if(valid && App.activeDocument.Saved) {}

    app.doScript ("Run The Rest of the Action", (the set name));

    }

    ElseIf (valid &! app.activeDocument.saved) {}

    Alert ("save your document!");

    }

    I agree that this would be better done through JS. But it is a simple solution that bypasses the inability of measures to use conditional statements.

  • How can I save the references to the elements of the xml elements page?

    Hello

    I am trying to add coordinates of the page elements to their associated as xml attributes xml elements.

    I can easily create xml help items

    myDocument.mapStylesToXMLTags ();

    Now, I want to browse the xml document and find details of each element of the associated page and then add them in the corresponding as attributes xml node.

    In other words, I'm trying a code (assuming that all the nodes as children of the root for simplicity) as follows:

    for (var i = 0; i < myRootXMLElement.xmlElements.length; i ++) {}

    var myElement = myRootXMLElement.xmlElements.item (i);

    var myElementsPageItem = * did not find a reference of function / correct documents *.

    var myBounds = myElementsPageItem.visibleBounds;

    addORupdate (myElement, "y1", myBounds [0]);

    addORupdate (myElement, ' x 1', myBounds [1] ");

    addORupdate (myElement, "y2", myBounds [2]);

    addORupdate (myElement, ' x 2', myBounds [3] ");

    }

    In my example of document all the xml that is created by mapStylesToXMLTags() are history of type.

    So I need a way to refer to the corresponding (or rectangle) page element of the history so that I can add information about contact information item xml as attributes.

    Thank you very much...

    myElement.xmlContent.parentTextFrames was not defined in the xml document that is generated by mapStylesToXMLTags()

    After some research the object model, I found my data in

    myElement.xmlContent.textContainers [0]

    Thank you

    Halin

  • Using the page submit after elements in the process of treatment page

    Hi all

    I have a form of DML in which the user can update a column.

    After clicking the Apply Changes button that I need to send an email saying the record has been updated with some page elements in the body of the email.

    I am able to send email, but I'm not able to display the page elements in the body.

    After changing the save the session state for the 'yes' also he did not.

    Y at - it another option that must be set so that I can use the page elements in the body of the email.

    Thank you

    MJ

    Make sure that after settlement it is normally a reset page call, is perhaps what kills the variables you are trying to access.  You should put your mail send processes PRIOR to the reset page process...

    Thank you

    Tony Miller
    Los Alamos, NM

  • How to position the page element?

    Hello

    I created a report in the same region, has also created a page element in the same region. The page element is now on the top of the report, but I need to show in the report. How can I achieve that?

    Thank you

    Victor

    Depends on your version of the apex. 4.1/4.2ish there is an attribute on the region of the "Position of the display element.

    Enter this below content.

Maybe you are looking for