Javascript function did't get item value

Hallo,
I setup the HTML Form Element Attributes from an select list:
style="width:265px" onclick="javascript:load('&P3_LOAD.')"
The problem is that the javascript function "load()" did't get the value of the item P3_LOAD.
Maybe I forgot some '' ?
Thank you in advance.

Hello Michael,
Try
style="width:265px" onclick="javascript:load($v('P3_LOAD'))"
Greetings,
Roel
http://roelhartman.blogspot.com/
You can reward this reply by marking it as either Helpful or Correct ;-)

Similar Messages

  • Javascript to get Item values

    Hi
    I am very new to javascript so bear with me.
    I am implementing a tabular Form where the Rows can be Updateable/Not Updateable based on a value of another Field.
    The form Displays Quote Lines. The Quote Status is passed from the previous page = DRAFT then lines are updateable else NOT updateable.
    I have looked at this post (Thanks to ATD) which is great!
    Re: A better method of handling tabular forms with variable column type?
    The java script to DISABLE a column based on the value of another Column in the array is as follows(works great):
    function disableItems(checkcolumn, columnvalue, disablecolumn)
    var f1 = document.getElementsByName(checkcolumn);
    var f2 = document.getElementsByName(disablecolumn);
    var k;
    if (f1)
    for (k = 0; k < f1.length; k++)
    if (f1[k].value == columnvalue)
    f2[k].readOnly = true;
    f2[k].style.backgroundColor = 'silver';
    Is there a way to reference an item in the page that is NOT in the array.
    I have an item which appears in the source as name='p_t01'
    var f3 = document.???('p_t01');
    Then in the function would be:
    if (f3.value = columnvalue)
    f2[k].readOnly = true;
    II realise this is very javascript - not APEX specific.
    Hoe you can help.
    Regards
    Chris

    To get element:
    - document.getElementById("element_id")
    - using Jquery -> $("#element_id")
    - using APEX API funct. -> $x("element_id")
    To get value:
    - document.getElementById('element_id').value()
    - using Jquery -> $("#element_id").val()
    - APEX API functions -> $v("element_id")
    In most cases element_id is equal to element_name
    Br,
    Marko
    Edited by: Marko Goricki on Apr 5, 2011 12:45 PM
    Edited by: Marko Goricki on Apr 5, 2011 1:07 PM

  • JavaScript Function to validate an item's value

    Can somebody please tell me how to write a Javascript Function that, upon losing focus on a text item, checks if the value just entered is a 6 digit number?
    Please show me the function and what the onblur command in the item would be. The name of the item is P21_PERMIT_NUMBER.
    BTW, this can't be done in a Validation, since it must be done onblur, which does not submit the page.
    Also, if there already is an onKeyPress for this item, what do I do? Do I just put a comma after the onKeyPress command and write the onblur command after it?
    Thanks.

    Prohan,
    Take a look at the following link to see how to do validation within a javascript function: Re: Implementing in-field validation the simple way.
    Thank you,
    Tony Miller
    Webster, TX

  • Get item value of hidden item in java script on standard report

    I've a report with following query:
    select "ROWID",
    "GTEMPDETAILID",
    "GTEMPID",
    "NORMTEXT",
    "ITEMTYP",
    "ITEM",
    "BEMERKUNG"
    from "#OWNER#"."ALAVIS_GTEMPDETAILS"
    Item GTEMPDETAILID is hidden (set in column attributes).
    I defined an onclick event in the report template to set the value of GTEMPDETAILID into a Page item. This works, if the GTEMPDETAILID is not hidden. But how can I get the value of an hidden item in javascript?

    I am guessing this hidden value is not a protected item because youre manipulating the value. How about setting is a textfield but inside the "HTML form element" property, specify style="display:none;" or you can nest <script type="text/javascript">$x_Hide("ID_OF_TEXTFIELD");</script> in the page somewhere...
    Question, have you tried using $x_Value('ID_OF_ITEM','VALUE_OF_ITEM') ? this is APEX javascript API
    you can also use $x('ID_OF_ITEM') to retrieve DOM object, or $v('ID_OF_ITEM); to retrieve item values.
    Let me know if you need additional assistance.
    Edited by: srbonham1 on Jul 27, 2012 4:31 PM

  • Table or Function Module to get Condition Values of Quotation

    Hi MM Gurus
    I created RFQ. Then I maintained Quotation for few Vendors. In the Quotation, I used tax code relevant to taxes in India (TAXINN procedure). I am asked to develop a Z report with the help of ABAPer to compare the quotations with Gross price, discounts, freight along with taxes like Excise Duty, VAT etc. When I had put this Quotation number in EKKO table, I am not getting the condition document number KNUMV. For other purchasing documents, this field is getting generated. Without this field, I can not get Condition values using KONV table as we need to link EKKO-KNUMV with KONV-KNUMV. Do you have any idea how we get the condition values of taxes for Quotation? Is there any function module to get it?
    I really appreciate the quick answer.
    Thanks
    Ravi

    Hi
    Try ME_GET_PRICE_CONDITION
    Regards
    Antony

  • WAD: Add variable to a called javascript function on button group item

    Hi All,
    I need your expertise regarding the following problem:
    To increase performance, I've decided to hide all analysis tables. To set these tables to visible, there is a button to switch the state for each table.
    Because this function is needed for each table, the function has two parameters for the analysis item name and the new state.
    Unfortunately, I get an useless error message after calling the function.
    The function in script item looks like
    function switchTable(itemName, newState)
    The function is started by a button of a button group item as javascript and the following script function
    switchTable('ANALYSIS_ITEM_1', 'VISIBLE')
    If I enter a without parameters, that will call the function with these parameters, it works.
    But if i try this directly from the script function in the button parameters, the function will be called correctly, but an error occurs and the analysis item wasn't displayed or the sendCommand wasn't processed completely.
    I hope there is a way to call javascripts by a button with variables, otherwise I would have to create many functions with only an other item_ref.
    Many thanks in advance and points of course for any help.
    Regards,
    Tobias

    One short note:
    It's possible to trigger the same function by an html input form button with onlick switchTable('ANALYSIS_ITEM_1', 'VISIBLE')
    and this works.
    Has anyone an idea what's the problem with a normal button item of the button group item?
    Another possibility is a menu item. The functions were called, but errors were shown.

  • Function Module to get Item Category.

    Hi,
    I am doing some error validation in CHECK badi while creating a shopping cart for GL Account field.
    Now what i want is, how or HOW can we get the Item category value in this check badi.
    I am using 'BBP_PD_SC_GETDETAIL' to get the shopping cart details. But cant find the field name.
    Theres a fieldname CATEGORY but this is empty.
    Now how to get this ?
    Helpful Answers Will be Rewarded.
    Regards,
    Ashwin.

    Hi,
    If you are looking for Account Assignment category then you must look in the E_ACCOUNT table. The field is ACC_CAT.
    Read the line item GUID from the table E_ITEM and read the corresponding entry in E_ACCOUNT table by passing P_GUID = line item guid.
    Hope this solves your problem.
    Regards
    Kathirvel

  • Function Module to get VAT value

    Hi,
    Is there a function module that returns the VAT value that
    we inserted at transaction FTXP in the "Output Tax" field.
    Thanks,
    Eyal.

    Eyal,
      Check these Function Module
      <b>1. VAT_CALL_PRICING
         2. VAT_CHECK_TOLERANCE
         3. VAT_COMPLETE_ITEM_CONDITION
         4. VAT_COMPL_ITEM_COND
         5. VAT_DISTRIBUTE
         6. VAT_SET_MANUALLY_GLOBAL</b>.
    Thanks
    Kam
    Message was edited by: Kam

  • Interactive Report how to get Item Values

    Hi there,
    I have created a workflow which is going through 12 pages. At each page the user needs to choose his variables.
    This could be the y-axes, x-axes, amount, surname ... etc.
    The variables are given to the next page via branch to next page process. Everything works well until I need to create an interactive report out of the choosen variables.
    Lets say I have a variable called :P7_XAXIS with static LOV :
    Amount,Amount;Date,Date;quantity,quantity
    Page 8 is my IR. If I try :
    Select :P7_XAXIS  from mytable This will not work.
    But if I try
    Select Date from mytable This will work. Why? In my workflow there are several variables that can be used in a where condition. This also works. But I need to access the values before the condition and I also need to get a chart out of it.

    Even if I try
    Select (Select :P7_XAXIS from dual)  from mytable this will not work in my IR. Just getting no result.

  • APEX 4.0.1: $v() function doesn't return multiple values for checkbox?

    Hello,
    I have a report that uses apex_item.checkbox(...) to generate checkbox. This report correctly displays a checkbox for each row. The source code generated in the html page is:
    <input type="checkbox" name="f01" value="202" id="P1_CHECKBOX" />
    <input type="checkbox" name="f01" value="220" id="P1_CHECKBOX" />
    <input type="checkbox" name="f01" value="210" id="P1_CHECKBOX" />
    I want to use the javascript function $v() to get the values of the checked checkbox. I thought that this function return the values of all the checked checkbox separated by ':' but I notice that my code alert($v('P1_CHECKBOX')); returns each time only the value of the first checkbox if it is checked.
    It returns '202' if the first checkbox is checked but nothing if only the second checkbox is checked and '202' if the first and second checkbox are checked.

    Hi,
    first of all, $v, $x and $s are suppose to only work for page items and not for tabular form columns or manually generated HTML elements.
    Second, I think your HTML code is not correct, because each of your checkboxes has the same ID. But the ID has to be unique in the browser DOM tree. So the different checkbox elements should actually be named P1_CHECKBOX_1 .. P1_CHECKBOX_3. Just have a look what is actually generated for a real checkbox page item. BTW, I think you shouldn't name these checkbox elements like a page item, because they are actually not page items. I think that could be confusing for other developers.
    Hope that helps
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • How to get real value from selectOneChoice with javascript?

    Hi,
    How to get real value from selectOneChoice with javascript? The event.getNewValue() only gets me the index of the selected item, not the value/title.
    JSF page:
    <af:resource type="javascript">
    function parseAddress(event)
    alert("new value: " + event.getNewValue());
    </af:resource>
    <af:selectOneChoice label="Location:" value="" id="soc4">
    <af:clientListener type="valueChange" method="parseAddress" />
    <f:selectItems value="#{Person.locations}" id="si7"/>
    </af:selectOneChoice>
    HTML :
    <option title="225 Broadway, New York, NY-10007" selected="" value="0">225 Broadway (Central Office)</option>
    <option title="90 Mark St., New York, NY-10007" value="1">90 Mark St. (Central Office)</option>
    Thanks a lot.

    Something I was missing ,
    You need to add valuePassThru="true" in your <af:selectOneChoice component. I have personally tested it and got the actual value in alert box. I hope this time you got the real solution. You can also test the following code by your end.
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document id="d1">
    <af:form id="f1">
    <af:panelBox text="PanelBox1" id="pb1">
    <af:selectOneChoice label="Set Log Level" id="soc1"
    value="#{SelectManagedBean.loggerDefault}"
    valuePassThru="true">
    <af:selectItem label="select one" value="First" id="s6"/>
    <af:selectItem label="select two" value="Second" id="s56"/>
    <af:clientListener method="setLogLevel" type="valueChange"/>
    </af:selectOneChoice>
    <af:resource type="javascript">
    function setLogLevel(evt) {
    var selectOneChoice = evt.getSource();
    var logLevel = selectOneChoice.getSubmittedValue();
    // var logLevelObject = AdfLogger.NONE;
    alert("new value is : " + logLevel);
    //alert(evt.getSelection);
    //alert(logLevelObject);
    evt.cancel();
    </af:resource>
    </af:panelBox>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>

  • How to pass value from Javascript function to JSP ?

    hi,
    hello i have 2 jsp page and one external javascript page.
    from page 1.jsp
    i am calling a fuction named fun(1).and i am passing that value to external
    javascript page
    from external javascript.js
    i am getting this value in the fun(w) and sending this Page2.jsp like this
    var url = "page2.jsp?id ="+w;
    http.open("get","page2.jsp?id ="+w );
    and in page2.jsp
    i am getting that value like
    String k = request.getParameter("w");
    but this is showing error. how cloud i get that value on this page2.jsp ?
    plz any one help me to study this
    regards
    Vishnu Sankar S

    hello sir
    thank u very much..i got the output
    Message was edited by:
    vishnu_shankar

  • Setting the value of a java variable in javascript function

    How can i set the value of a java variable in a javascript function?
    <%
    String fName = "";
    %>
    now i want to define a javascript function which can set the value of fName to the value it has been passed.
    <script language="javascript">
    function setJValue(val)
    </script>
    Thanks

    The only way you could simulate this, would be call the same page inside the Javascript function, and send it the parameter that was passed. Then you would have your Java code retrieve this parameter by request.getParameter("value");, and set the variable accordingly.

  • All I want to do is get the value associated..

    All I want to do is get the value associated with a dropdown item...
    1. I have a combo box
    2. It has text values that you can click
    3. The text values have export values associated with it
    4. When I click a text value from the list, I want to get the numeric value associated with it
    Example combo box:
    "Orange" has the export value of "1234"
    When I click "orange" I want to get the export value "1234" and alert it to the screen
    I'm using javascript, here's what I have so far:
    In the combo box properties I have the following validation script:
    theFruitClicked();
    I have a function in the document javascript:
    function theFruitClicked()
         app.alert(event.value);
    This is alerting the text value not the export value.
    What else should I do to get the export value?
    Thank You.

    You may need the scripting forum http://forums.adobe.com/community/acrobat

  • Setting an item value before print report in BI Publisher

    Hi,
    I am having an issue with setting a page item's value once a button (that prints a BI Publisher report) is pressed. The session state for the item is set, however because the page does not re-load no value appears in the item on the page.
    I am using a button as a page Item and using a Page Branch with the Branch Point set as On Submit: After Processing(After Computation, Validation, and Processing) with the Page set to 0 and the Request set to PRINT_REPORT=REPORT
    Is there any way to set the item value on the page before branching to the report?
    Your help is greatly appreciated.
    -Marsha

    Marsha,
    You can do that as follows:
    1- create a hidden text item (P20_date_hidden) with default value set to sysdate.
    2- for your button >> edit >> Buttom display attributes >> attributes >> type in : onFocus= "set_date();" (( note: am using onFocus because it takes places before onClick ))
    3- In your page >> edit >> HTML header >> type in :
    <script language="JavaScript" type="text/javascript">
    function set_date()
    v_date = $x('P20_DATE_HIDDEN').value;
    $x('P20_DATE_LETTER_SENT').value = v_date;
    </script>
    Hope this helps,
    Sam
    Please reward good answers by marking them correct or useful!

Maybe you are looking for