Javascript calculation with APEX_ITEM.TEXT question

Here is my code:
select APEX_ITEM.TEXT(10,conversion_factor,10,null,null,'conv'||rownum) "Convert", APEX_ITEM.CHECKBOX(1,null,'CHECKED') "Unlocked", APEX_ITEM.DISPLAY_AND_SAVE(2,spec_name) "Name", APEX_ITEM.CHECKBOX(3,null,'CHECKED') "N/A", APEX_ITEM.CHECKBOX(4,null,'UNCHECKED') "Unknown", CASE NVL(secondary_value, 'x')
WHEN 'x' THEN (APEX_ITEM.TEXT(5,null,35,null,'onChange=$x("PrimaryUnit'||rownum||'").value=$x(("conv'||rownum||'").value)*this.value;','PrimaryUnit'||rownum))
ELSE APEX_ITEM.TEXT(6,primary_value,35,null,'PrimaryUnit') END "Primary Unit",
CASE NVL(primary_symbol, 'x')
WHEN 'x' THEN ' '
ELSE APEX_ITEM.DISPLAY_AND_SAVE(7,primary_symbol) END "Primary Symbol",
CASE NVL(primary_symbol, 'x')
WHEN 'x' THEN ('<center>Edit</center>')
ELSE APEX_ITEM.TEXT(8,secondary_value,20,null,'onChange=$x("PrimaryUnit'||rownum||'").value=$x(("conv'||rownum||'").value)*this.value;','SecondaryUnit'||rownum) END "Secondary Unit",
CASE NVL(secondary_symbol, 'x')
WHEN 'x' THEN ' '
ELSE APEX_ITEM.DISPLAY_AND_SAVE(9,secondary_symbol) END "Secondary Symbol", conversion_factor
from prd_model_specs_maint_vw
where equip_id = :P201_EQUIP_ID
and spec_group_name = :P240_ID
The scenario is this: I have a field (PrimaryUnit + rownum). I would like to have a user put a number in this field and the javascript should take that value and take the conversion_factor and calculate what the new value is a place it in the second field (SecondaryUnit + rownum). I am currently getting a result of 0 every time. The javascript is an onChange call. This query is a bit messy, so let me know if you need more explanation. Thanks.
Jon

I like that solution. I will give that a shot. I did get the conversion to work, but it is messier than Andy's option. Here's is how the query looks now for anyone's reference:
select APEX_ITEM.TEXT(10,conversion_factor,10,null,null,'conv'||rownum) "Convert", APEX_ITEM.CHECKBOX(1,null,'CHECKED') "Unlocked", APEX_ITEM.DISPLAY_AND_SAVE(2,spec_name) "Name", APEX_ITEM.CHECKBOX(3,null,'CHECKED') "N/A", APEX_ITEM.CHECKBOX(4,null,'UNCHECKED') "Unknown", CASE NVL(secondary_value, 'x')
WHEN 'x' THEN (APEX_ITEM.TEXT(5,null,35,null,'onChange=$x("SecondaryUnit'||rownum||'").value='||conversion_factor||'*this.value;','PrimaryUnit'||rownum))
ELSE APEX_ITEM.TEXT(6,primary_value,35,null,'PrimaryUnit') END "Primary Unit",
CASE NVL(primary_symbol, 'x')
WHEN 'x' THEN ' '
ELSE APEX_ITEM.DISPLAY_AND_SAVE(7,primary_symbol) END "Primary Symbol",
CASE NVL(primary_symbol, 'x')
WHEN 'x' THEN ('<center>Edit</center>')
ELSE APEX_ITEM.TEXT(8,secondary_value,10,null,'onChange=$x("PrimaryUnit'||rownum||'").value=this.value/'||conversion_factor||';','SecondaryUnit'||rownum) END "Secondary Unit",
CASE NVL(secondary_symbol, 'x')
WHEN 'x' THEN ' '
ELSE APEX_ITEM.DISPLAY_AND_SAVE(9,secondary_symbol) END "Secondary Symbol", conversion_factor
from prd_model_specs_maint_vw
where equip_id = :P201_EQUIP_ID
and spec_group_name = :P240_ID
The change that made it work is this:
onChange=$x("SecondaryUnit'||rownum||'").value='||conversion_factor||'*this.value;
The '||conversion_factor||'*this.value is different and now works. Thanks,
Jon

Similar Messages

  • Column alignment with apex_item.text

    I am trying to create a tabular form with the following statement
    select apex_item.text(10,empno) empno,
    apex_item.text(20,ename) ename,
    apex_item.text(30,sal,15,15) sal,
    apex_item.text(40,comm) comm
    from emp
    The statement above works fine, however, if I try to align the sal column by adding style for the p_attribute parameter such as
    apex_item.text(30,sal,15,15,style="text-align:right;") sal
    I get the following
    Query cannot be parsed within the Builder. If you believe your query is syntactically correct, check the ''generic columns'' checkbox below the region source to proceed without parsing. ORA-00907: missing right parenthesis
    In addition to the column alignment I would like to format the column like $999,999.99 and provide a column total at the bottom, is this possible with apex_item.text?
    Any thoughts would be most appreciated
    Regards,
    Mark

    Hi,
    You could try using TO_CHAR(sal,'$999,999.99') but I'm not sure what that may do to the submit process - I tend to leave the number unformatted and only use formats for reports.
    If you are able to add in formatting, it may actually make it a lot harder to provide totals. A total could be done by looping through the input items that have a name attribute of "f30" (as you've used 30 for the index number of that item) - using parseInt() or parseFloat() javascript functions would convert the strings into numbers, but the commas and currency symbols would stop this working.
    Andy

  • Apex 4.2 Report region sql query with "apex_item.text" renders wrongly

    In APEX 4.2 page i have created region "Report data".
    Type="SQl Query".
    "User Interface"-->"Template"="Reports Region".
    "Region Source"="select apex_item.text(1, '111') as c1 from dual".
    Actually the select query is little bit more complex, but generally simplified it is such, that it uses function "select apex_item.text" to construct HTML textfield.
    If i run in Sql Developer query
    select apex_item.text(1, '111') as c1 from dual;Then result is:
    <input type="text" name="f01" size="20" maxlength="2000" value="111"  />But in APEX 4.2 the report is rendered so:
    <td  headers="c1">&lt ;input type=&quot ;text&quot ; name=&quot;f01&quot; size=&quot;20&quot; maxlength=&quot;2000&quot; value=&quot;111&quot;  /&gt ;</td>(for this forum to display correctly i had to put extra spaces between" &gt" and ";" and so on)
    And APEX 4.2 shows ugly html inside report cell/slot for me, displaying characters/symbols ">". The reason is that APEX HTML page source does not have symbol ">" but has " &gt ;" .
    In APEX 3 i have similar query working well, without such anomaly.
    What attribute should i change in APEX 4.2 region to display my query result as needed?
    I need that function "apex_item.text", i cannot remove it.
    Edited by: CharlesRoos on 13.02.2013 15:28
    Edited by: CharlesRoos on 13.02.2013 15:29
    Edited by: CharlesRoos on 13.02.2013 15:29

    CharlesRoos wrote:
    In APEX 4.2 page i have created region "Report data".
    Type="SQl Query".
    "User Interface"-->"Template"="Reports Region".
    "Region Source"="select apex_item.text(1, '111') as c1 from dual".
    Actually the select query is little bit more complex, but generally simplified it is such, that it uses function "select apex_item.text" to construct HTML textfield.
    If i run in Sql Developer query
    select apex_item.text(1, '111') as c1 from dual;Then result is:
    <input type="text" name="f01" size="20" maxlength="2000" value="111"  />But in APEX 4.2 the report is rendered so:
    <td  headers="c1">&lt ;input type=&quot ;text&quot ; name="f01" size="20" maxlength="2000" value="111"  /&gt ;</td>(for this forum to display correctly i had to put extra spaces between" &gt" and ";" and so on)
    And APEX 4.2 shows ugly html inside report cell/slot for me, displaying characters/symbols ">". The reason is that APEX HTML page source does not have symbol ">" but has " &gt ;" .
    In APEX 3 i have similar query working well, without such anomaly.
    What attribute should i change in APEX 4.2 region to display my query result as needed?Ensure that the Display As Column Attribute for the C1 column is Standard Report Column.

  • Two questions on apex_item.text when date field

    Hi, I have a tabular collection with a date field. I need to have validation on the date field, so wanted to create and authorization (is this the best way). In order to do so, I needed to create an application item (again...is this the best way?).
    I am very new to javascript and use of the ONCHANGE. Is there a way to have a the value of this apex_item.text placed into that application_item? I have tried the following, but it does not work.
    select apex_item.text(6,c006,10,null,
    ||'style="width:100px;background-color:#FBEC5D; "'
    ||'onchange="f_set_start_date(this,f6_'||LPAD (seq_id, 4,'0')||')"') start
    from apex_collection...where.....
    Also, is there a way to force a format for an apex_item.text. I would like it to be in the format dd-mon-yyyy.
    thanks again.

    Hi Ravi, the javascript is located in the page header.
    the Javascript (and this is long as the form has many (8) cascading LOVs) is:
    <script language="JavaScript" type="text/javascript">
    htmldb_delete_message='Are you sure you want to delete the selected records?';
    // Row - Highglight Function
    var rowStyle = new Array(10);
    var rowActive = new Array(10);
    var rowStyleHover = new Array(10);
    rowStyle[1]='';
    rowStyleHover[1]='';
    rowActive[1]='N';
    function highlight_row(checkBoxElemement,currentRowNum)
    if(checkBoxElemement.checked==true)
    for( var i = 0; i
    < checkBoxElemement.parentNode.parentNode.childNodes.length; i++ )
    if (checkBoxElemement.parentNode.parentNode.childNodes.tagName=='TD')
    if(rowActive=='Y')
    rowStyle[currentRowNum] = rowStyleHover[currentRowNum];
    else
    {rowStyle[currentRowNum] =
    checkBoxElemement.parentNode.parentNode.childNodes[i].style.backgroundColor;
    checkBoxElemement.parentNode.parentNode.childNodes[i].style.backgroundColor
    = '#FFFF66';
    rowStyleHover[currentRowNum] = '#FFFF66';
    else
    for( var i = 0; i
    < checkBoxElemement.parentNode.parentNode.childNodes.length; i++ )
    if (checkBoxElemement.parentNode.parentNode.childNodes[i].tagName=='TD')
    checkBoxElemement.parentNode.parentNode.childNodes[i].style.backgroundColor = '';
    rowStyleHover[currentRowNum] = '';
    document.wwv_flow.f11.checked=false;
    // Funntion to Check and un-check rows Rows
    function checkAllDetail(pAllCheckbox)
    if (pAllCheckbox.checked)
    for (var i = 0; i<document.wwv_flow.f11.length; i++)
    if (!document.wwv_flow.f11[i].checked)
    document.wwv_flow.f11[i].checked=true;
    highlight_row(document.wwv_flow.f11[i],i);
    } else
    for (var i = 0; i<document.wwv_flow.f11.length; i++)
    if (document.wwv_flow.f11[i].checked)
    document.wwv_flow.f11[i].checked=false;
    highlight_row(document.wwv_flow.f11[i],'');
    }; // checkAllDetail
    // Cascading Select List Function
    function f_set_casc_sel_list_item(pThis,pSelect){
    var l_Return = null;
    var l_Select = html_GetElement(pSelect);
    var get = new htmldb_Get(null,$x('pFlowId').value,
    'APPLICATION_PROCESS=tab_casc_sel_list',0);
    get.add('TAB_CASCADING_ITEM',$x(pThis).value);
    gReturn = get.get('XML');
    //alert(gReturn);
    if(gReturn && l_Select){
    var l_Count = gReturn.getElementsByTagName("option").length;
    l_Select.length = 0;
    for(var i=0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("option")[i];
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue)
    get = null;
    // cascading list for Market Category
    function f_set_casc_sel_list_item_mkt(pThis,pSelect){
    var l_Return = null;
    var l_Select = html_GetElement(pSelect);
    var get = new htmldb_Get(null,$x('pFlowId').value,
    'APPLICATION_PROCESS=tab_casc_sel_list_mkt',0);
    get.add('TAB_CASCADING_ITEM',$x(pThis).value);
    gReturn = get.get('XML');
    //alert(gReturn);
    if(gReturn && l_Select){
    var l_Count = gReturn.getElementsByTagName("option").length;
    l_Select.length = 0;
    for(var i=0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("option")[i];
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue)
    get = null;
    // cascading list for Grade
    function f_set_casc_sel_list_item_grd(pThis,pSelect){
    var l_Return = null;
    var l_Select = html_GetElement(pSelect);
    var get = new htmldb_Get(null,$x('pFlowId').value,
    'APPLICATION_PROCESS=tab_casc_sel_list_grd',0);
    get.add('TAB_CASCADING_ITEM',$x(pThis).value);
    gReturn = get.get('XML');
    //alert(gReturn);
    if(gReturn && l_Select){
    var l_Count = gReturn.getElementsByTagName("option").length;
    l_Select.length = 0;
    for(var i=0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("option")[i];
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue)
    get = null;
    // cascading list for PORT
    function f_set_casc_sel_list_item_port(pThis,pSelect){
    var l_Return = null;
    var l_Select = html_GetElement(pSelect);
    var get = new htmldb_Get(null,$x('pFlowId').value,
    'APPLICATION_PROCESS=tab_casc_sel_list_port',0);
    get.add('TAB_CASCADING_ITEM',$x(pThis).value);
    gReturn = get.get('XML');
    //alert(gReturn);
    if(gReturn && l_Select){
    var l_Count = gReturn.getElementsByTagName("option").length;
    l_Select.length = 0;
    for(var i=0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("option")[i];
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue)
    get = null;
    // Cascading Select List INSTATE
    function f_set_casc_sel_list_item_distance(pThis,pSelect){
    var l_Return = null;
    var l_Select = html_GetElement(pSelect);
    var get = new htmldb_Get(null,$x('pFlowId').value,
    'APPLICATION_PROCESS=tab_casc_sel_list_instate',0);
    get.add('TAB_CASCADING_DISTANCE',$x(pThis).value);
    gReturn = get.get('XML');
    //alert(gReturn);
    if(gReturn && l_Select){
    var l_Count = gReturn.getElementsByTagName("option").length;
    l_Select.length = 0;
    for(var i=0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("option")[i];
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue)
    get = null;
    // cascading list for AREA
    function f_set_casc_sel_list_item_area(pThis,pSelect){
    var l_Return = null;
    var l_Select = html_GetElement(pSelect);
    var get = new htmldb_Get(null,$x('pFlowId').value,
    'APPLICATION_PROCESS=tab_casc_sel_list_area',0);
    get.add('TAB_CASCADING_INSTATE',$x(pThis).value);
    gReturn = get.get('XML');
    //alert(gReturn);
    if(gReturn && l_Select){
    var l_Count = gReturn.getElementsByTagName("option").length;
    l_Select.length = 0;
    for(var i=0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("option")[i];
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue)
    get = null;
    // cascading list for SUB-AREA
    function f_set_casc_sel_list_subarea(pThis,pSelect){
    var l_Return = null;
    var l_Select = html_GetElement(pSelect);
    var get = new htmldb_Get(null,$x('pFlowId').value,
    'APPLICATION_PROCESS=tab_casc_sel_list_subarea',0);
    get.add('TAB_CASCADING_AREA',$x(pThis).value);
    get.add('TAB_CASCADING_INSTATE',$x(pThis).value);
    gReturn = get.get('XML');
    //alert(gReturn);
    if(gReturn && l_Select){
    var l_Count = gReturn.getElementsByTagName("option").length;
    l_Select.length = 0;
    for(var i=0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("option")[i];
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue)
    get = null;
    // cascading list for LOCAL-AREA
    function f_set_casc_sel_list_local(pThis,pSelect){
    var l_Return = null;
    var l_Select = html_GetElement(pSelect);
    var get = new htmldb_Get(null,$x('pFlowId').value,
    'APPLICATION_PROCESS=tab_casc_sel_list_local',0);
    get.add('TAB_CASCADING_SUBAREA',$x(pThis).value);
    gReturn = get.get('XML');
    //alert(gReturn);
    if(gReturn && l_Select){
    var l_Count = gReturn.getElementsByTagName("option").length;
    l_Select.length = 0;
    for(var i=0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("option")[i];
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue)
    get = null;
    // cascading list for GEAR
    function f_set_casc_sel_list_gear(pThis,pSelect){
    var l_Return = null;
    var l_Select = html_GetElement(pSelect);
    var get = new htmldb_Get(null,$x('pFlowId').value);
    get.add('TAB_CASCADING_GEAR',$x(pThis).value);
    gReturn = get.get('XML');
    //alert(gReturn);
    if(gReturn && l_Select){
    var l_Count = gReturn.getElementsByTagName("option").length;
    l_Select.length = 0;
    for(var i=0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("option")[i];
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue)
    get = null;
    // cascading list for start_date
    function f_set_start_date(pThis,pSelect){
    alert("hello");
    var l_Return = null;
    var l_Select = html_GetElement(pSelect);
    var get = new htmldb_Get(null,$x('pFlowId').value);
    get.add('TAB_START_DATE',$x(pThis).value);
    gReturn = get.get('XML');
    //alert(gReturn);
    if(gReturn && l_Select){
    var l_Count = gReturn.getElementsByTagName("option").length;
    l_Select.length = 0;
    for(var i=0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("option")[i];
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue)
    get = null;
    function appendToSelect(pSelect, pValue, pContent) {
    var l_Opt = document.createElement("option");
    l_Opt.value = pValue;
    if(document.all){
    pSelect.options.add(l_Opt);
    l_Opt.innerText = pContent;
    }else{
    l_Opt.appendChild(document.createTextNode(pContent));
    pSelect.appendChild(l_Opt);
    function KeyCheck(e)
    var KeyID = (window.event) ? event.keyCode : e.keyCode;
    //alert(KeyID); // If you want to check out the values for other buttons
    if (KeyID == 120)
    doSubmit('SAVE'); // SAVE F9
    if (KeyID == 121)
    doSubmit('COMPLETE'); // complete F10
    </script>
    The actual (long) query is (and the date value is C006):
    select apex_item.hidden (1,seq_id) checkbox,
    apex_item.hidden (2,seq_id)||
    apex_item.select_list_from_query(3,c003,'select partner_name d,
    state_code r
    from partners
    where state_code is not null
    order by partner_name',
    'style="width:100px;background-color:#FBEC5D; "'
    ||'onchange="f_set_casc_sel_list_item_port(this,f4_'
    ||LPAD (seq_id, 4,'0')||')"',
    'YES',
    '0',
    '- Select State -',
    'f3_' || LPAD (seq_id,4, '0'),
    NULL,
    'NO'
    ) STATE,
    apex_item.select_list_from_query_xl(4,c004,'select fips_place_name, port
    from valid_ports
    where fips_state = '
    ||nvl(c003,0)
    ||' order by fips_place_name',
    'style="width:150px;background-color:#FBEC5D;"',
    'YES',
    '0',
    '- Select PORT -',
    'f4_' || LPAD (seq_id, 4, '0'),
    NULL,
    'NO' ) PORT,
    apex_item.POPUP_FROM_LOV(5,c005,'VESSELS',
    NULL,NULL,NULL,NULL,NULL,
    'style="width:100px;'
    ||'background-color:#FBEC5D; "') vessel_id,
    apex_item.text(6,c006,10,null,
    'style="background-color:#FBEC5D;"'
    ||'onchange="f_set_start_date(this,f6_'
    ||LPAD(seq_id, 4,'0')||')"') trip_start_date,
    apex_item.text(7,c007,5,null,
    'style="background-color:#FBEC5D"') trip_start_time,
    apex_item.text(8,c008,10,null,
    'style="background-color:#FBEC5D"') trip_end_date,
    apex_item.text(9,c009,5,null,
    'style="background-color:#FBEC5D"') trip_end_time,
    apex_item.SELECT_LIST_FROM_LOV(10,c010,'TRIP_TYPE',
    'style="width:100px;background-color:#FBEC5D; "') trip_type,
    apex_item.SELECT_LIST_FROM_LOV(11,c011,'YES_NO',4) multiple_fishermen,
    apex_item.text(12,c012,3,null,
    'style="background-color:#FBEC5D"') days_at_sea,
    apex_item.text(13,c013,4,null,
    'style="background-color:#FBEC5D"') nbr_of_crew,
    apex_item.hidden(14,c014) supplier_trip_id,
    apex_item.hidden(15,c015) trip_nbr,
    apex_item.text(16,c016) partner_vtr
    from apex_collections where collection_name = 'TRIP_C'

  • Would like to use apex_item to popup a calculator for a text item field, is this possible in apex 4.2.2?

    would like to use apex_item to popup a calculator for a text item field, is this possible in apex 4.2.2?

    I imagine you could reverse engineer what APEX delivers when you declaratively choose text field with calculator.
    For example, the generated source includes an event:
    onclick="calculatorPopUp_p_t01();"
    These get added to the attributes of your apex_item.text() call.
    Alternatively you just paste the entire generated content, escaping the necessary data.

  • Tabular form with uneditable apex_item.text column

    When I use the following query for my Tabular Form I have the AGE column uneditable
    select
    "ID",
    "ID" ID_DISPLAY,
    apex_item.text(44,"AGE") as "AGE"
    from "#OWNER#"."SAS_TEST"
    I changed the AGE column type to Standard Report Column but still the column values are not able to update the values.
    The column will show the HTML input and view the correct values from the table but you can not update the column.
    I have apex 4.0.2

    I found the solution. You must have both the original column in your sql (as hidden type), and you must add the APEX_ITEM.TEXT with an alias different than the true db column name.
    In order to set the hidden real column values after submitting the page, add the page process pl/sql below. Of course you need to find the g_fxx number by looking at your page source. This will transfer the values from one pl/sql table to the other which is mapped in the MRU process.
    On Submit - Before Computations and Validations
    BEGIN
    -- Database Column Name: DEFAULT_VALUE
    -- Set the hidden DEFAULT_VALUE field for all visible records to null
    -- Note: g_f19 maps to the hidden DEFAULT_VALUE column
    -- g_f30 maps to the visible DEFAULT_VALUE_ADMIN column
    FOR ii IN 1 .. APEX_Application.g_f19.COUNT
    LOOP
    APEX_Application.g_f19(ii) := APEX_Application.g_f30(ii);
    END LOOP;
    END;

  • APEX_ITEM.TEXT disable question

    Hello guys and girls,
    I have a small problem with my sql statement (last section as you can see below). In the query I am trying to generate an html text element that is either diabled or enabled. For some reason, my text fields are all disabled although int_prozent is not null in several cases.
    Do you have a hint for me how to solve that bug?
    {cod€}SELECT DECODE(STR_BA_KAT,'H',1,'N',2,'B',3) AS CS, STR_BA_LANG, STR_BA_KAT, STR_SELTEN, STR_BA_GRUPPE, CASE WHEN FLAG = 1 THEN APEX_ITEM.HIDDEN(1, CNT_TBL_MATRIX_INTERMEDIATE, 'disabled=true') ELSE APEX_ITEM.HIDDEN(1, CNT_TBL_MATRIX_INTERMEDIATE) END AS CNT_TBL_MATRIX_INTERMEDIATE,
    CASE WHEN FLAG = 1 THEN APEX_ITEM.SELECT_LIST_FROM_LOV(5, STR_GEWERTET, 'JEIN', 'disabled= true', 'class="combobox"') ELSE APEX_ITEM.SELECT_LIST_FROM_LOV(5, STR_GEWERTET, 'JEIN','%',
    '%', NULL,NULL, NULL, 'class="combobox"') END AS STR_GEWERTET,
    CASE WHEN INT_PROZENT is null THEN APEX_ITEM.TEXT(33, int_prozent, 10, null, 'disabled=true') else APEX_ITEM.TEXT(33, int_prozent, 10, null, 'disabled=false') end as INT_PROZENT FROM TBL_MATRIX_INTERMEDIATE_RESULT where FLAG != 1
    Any help is appreciated! Thanks a lot for your effort!
    Seb                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hello Jari!
    Happy new year and thanks for your hint. It worked well! disabled=disabled is suitable for input type text. For select lists it's disabled=true.
    One more thing though:
    When creating the html items (the text box) I am simultaneously assigning a format to my column and converting to char before.
    CASE WHEN INT_PROZENT is null THEN APEX_ITEM.TEXT(33, to_char(int_prozent,'FML999G999G999G999G990D00'), 10, null, 'disabled=disabled') else APEX_ITEM.TEXT(33, to_char(int_prozent,'FML999G999G999G999G990D00'), 10, null) end as INT_PROZENTThe problem is that my numeric values are displayed like the following example: ¿0,10. Do you know of a workaround?
    Many thanks again for your splendid and rapid help!
    Regards,
    Seb

  • Help!  Question, how do I move an image along with the text

    New to InDesign and I'm creating a how-to brochure of sorts for my business and as I'm making edits/updates I realize I need to insert another picture at the beginning of the document.  I already have a bunch of other images throughout the document in specific places that need to remain with the text they are wrapped around.  If I try to insert a new picture at the beginning of the document and wrap the text, all of the text moves down throughout the document but the images do not.  That means none of the images are in the correct place anymore.  Is there a way to make sure if I insert a new picture or text at any place in the document all of the following images move with the text they are by?  I'm sure its a simple fix, I just can't figure it out.  Thanks.

    Look into anchored objects.

  • Question on "text flow" with two text fields:

    Hi Folks,
    I was hoping you could help me to see if this is possible with Livecycle Designer, any assistance would be much appreciated:
    I'm populating a dynamic pdf and have the need to have multiple lines of text composed of two text fields (name and description) where name is bold text followed by description in regular text for example:
    Item 1 Name Sample: This is the item one description, adding some lorem ipsum text to show how it would flow across multiple lines here Lorem ipsum dolor sit amet, defunctam.Lorem ipsum dolor sit amet, ingens ad te ad nomine Hesterna. Pentapoli naves non ait Cumque ego dum. Scelus patrem in rei.
    Item 2 Name Sample: This is the item two description, adding  some lorem ipsum text to show how it would flow across multiple lines  here Lorem ipsum dolor sit amet, defunctam.Lorem ipsum dolor sit amet,  ingens ad te ad nomine Hesterna. Pentapoli naves non ait Cumque ego dum.  Scelus patrem in rei exultant deo apprehendit in fuerat construeret in  rei sensibilium acciperem qui enim est se vero diam ille. Agimus nolo me  testatur sed. Descendi eam ad.
    Item 3 Name Sample: This is the item three description, adding  some lorem ipsum text to show how it would flow across multiple lines  here Lorem ipsum dolor sit amet, defunctam.Lorem ipsum dolor sit amet,  ingens ad te ad nomine Hesterna. Pentapoli naves non ait Cumque ego dum.  Scelus patrem in rei.
    I have a subform for each item that contains two fields [itemName] [itemDescription], is there any way to do this without combining them into one textfield with rich text on?
    Thanks,

    Hi Phill,
    You could use floating fields, where the inputs are hidden and bound to your incoming XML. In the visible {} fields, you can set one of these to bold. The advantage would be that the two displayed floating fields will flow depending on the content.
    Have a look at the second example in this form: http://assure.ly/iuYifq
    Hope that helps,
    Niall

  • APEX_ITEM.TEXT and solution for enabling and dispabling a button

    Hi All,
    Please let me know how can we have a format mask for an Item created using apex_item.text.
    I would like to add a Number format mask with three decimals in this report column
    APEX_ITEM.TEXT (2, INV_VALUE, 15, 20, 'readonly=readonly style=""')
    Also do let me know the following points based on the followup to this link:
    Use of Checkbox in Report for calculation and determine checked records
    1. How can I enable or disable a button based on value of a Page Item being > 0, this also should be done when a check box is checked or unchecked.
    2. One more clarification about adding the total depending upon check box checked or unchecked.
    On checking and un-checking the total gets added and subtracted as required, but I have noticed that the the session values of the Item for Total is not as the one displayed. Why is it so. Please guide.
    Thanks & regards
    Arif Khadas

    Hi Vee,
    Thanks for the reply.
    document.getElementById(...)' is null or not an objectCheck if the button is rendered with id="PAY_DUES"+ or not. You can view the HTML source code of the button and see if it has such an id or not. The source code is as follows:
    <a href="javascript:popUp2('f?p=1002:23:3713834878987986::NO::P23_INVOICES,P23_RCP_AMOUNT_PAID:,0', 320, 450)" class="t20Button">Pay Dues</a>
    Else add an id attribute to the button in button attributes(ensure that you have the BUTTON_ATTRIBUTES substitution string used in the button template)Template of button is as follows and the Substitution String #BUTTON_ATTRIBUTES# is not Referenced.
    <a href="#LINK#" class="t20Button">#LABEL#</a>
    but I have noticed that the the session values of the Item for Total is not as the one displayedThe session value of the item is usually set when you submit the page or use an ajax process/ Dynamic Action to set it. If you this is required , set the item's session state calling a dummy/null ondemand process or a dummy PLSQL dynamic Action using the item name in the "List of items to Submit" field.This issue is resolved for me in other thread.
    Thanks & Regards
    Arif Khadas

  • Sum / Format on APEX_ITEM.TEXT columns

    Hi! I have two questions :
    In apex 3.2, on an updateable report, I am using APEX_ITEM.TEXT for a column.
    1) The data contained in this cell are hours (so numeric and the sum should work). I am not able to get a sum on this column. I am checking the "sum" field in the report attributes. All in can see is the last line with "0" in it.
    Anybody has an idea on how to have the sum on this column?
    2) How can I have a format on the APEX_ITEM.TEXT column ? I tried to put 90D0 in the number/date format but it does nothing.
    Thanks!
    Amelie
    Edited by: user13485643 on Feb 8, 2011 12:30 PM

    Sorry, it was long before I answer.
    First of all, thank you so much for your idea! I am now able to get the sum dynamically! Here's how :
    I created this javascript function. The variable myName is the name of the inputs and myHeader is the value you get in the td tag <td class="t20data" headers="HrsDim">
    function updateSum(myName, myHeader)
         myArray = document.getElementsByName(myName);
         mySum = 0;
         for (var i=0; i < myArray.length; i++)
              val = myArray.value
              if (val == Number(val)){
                   mySum = mySum + Number(val);
         $('td[headers=' + myHeader + ']').last().text(mySum).addClass("sum");
    In my apex item's attribute I added this :onchange="updateSum(this.name, 'HrsDim')"
    Works like a charm!!
    Thanks again!!!
    Edited by: Amelie on Feb 17, 2011 8:06 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Refresh APEX_ITEM.TEXT Value when Interactive Report Page Changes

    I use an APEX_ITEM.TEXT column in an IR where the user can enter some number date.
    to make this data persistent while paginating the ir, i use some DA . Via ajaxthis DA call an onDemandProcess to save the entered data in a collection.
    works great; the input is stored in the collection.
    To show the already entered data, the ir sql statement joins the collection.
    select  APEX_ITEM.hidden(2,artikelnr)||
            APEX_ITEM.TEXT(1
              ,COL_artikel.preis
              ,3
              ,3
              ,'autocomplete="off" onfocus="javascript:f_set_last_val(this);" onchange="javascript:f_validate_integer(this);"'
              ,'INPUTBESTELLEN'
             ) Inputbestellen,
    article.*
    from article
    left outer join COL_artikel on COL_artikel.nummer = artikelnr where col_artikel is a view for better access on the collection
    Now the issue:
    On the first Page i add some data, then i go head to page 2 and 3 of the ir. The collection is filled withe the entered data.
    But when i navigate back to page 1 the entered data is not shown in the input field unless i relload the whole page . I guess because the query is not re-executed when paginating foreward/backward.
    ist there any way to overcome this tiny small issue?
    regards
    peter

    It looks like you are trying to combine apex_item function with a standard tabular form and as far as I know this won't work. You will need to create a manual tabular form in that case. See this and other examples as a refference:
    http://htmldb.oracle.com/pls/otn/f?p=31517:170
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    ------------------------------------------------------------------------------

  • Error (ORA-01403) saveing data form a report with apex_item items

    Hi all,
    I've a problem saveing data that's inserted into a report which I created using apex_item items. Reproducing the exact issue on apex.oracle.com will take me a lot of time, and I don't know if I really can reproduce this matter... So I hope I can explain my problem clearly enough, here...
    The global story of the application is that its an application used for measureing objects. For these objects there are templates, with default properties. When measureing an object, the user must fill in those properties for the object. The report is build dynamicly, becouse each object has different properties and each property could be of an other kind (number, text, list, counter [=number field with add and substract buttons], and date). Depending on the type of the property, the report has to show an other item to fill.
    The query for constructing this report is like this:
    select defprop.proptyp_id,
    apex_item.hidden(41,defprop.id) defprop_id,
    defprop.nam,
    decode(proptyp.id,
                    1, apex_item.text(p_idx=>42,p_value=>''||
                        decode(defprop.srt, 'CONSTANT', (select WRD
                                                                            from    measurement_prop
                                                                            where    defprop_ID = defprop.id
                                                                            AND        measurement_id IN
                                                                                (SELECT ID
                                                                                FROM measurement
                                                                                WHERE OBJ_ID = obj.id
                                                                                AND DAT IN
                                                                                    (SELECT latest_date
                                                                                    from object_instance
                                                                                    WHERE ID = obj.id)))
                     ||'' ,p_attributes=>'class=case5_num'),
                    2, apex_item.text(p_idx=>42,p_value=>''||
                        decode(defprop.srt, 'CONSTANT', (select WRD
                                                                            from    measurement_prop
                                                                            where    defprop_ID = defprop.id
                                                                            AND        measurement_id IN
                                                                                (SELECT ID
                                                                                FROM measurement
                                                                                WHERE OBJ_ID = obj.id
                                                                                AND DAT IN
                                                                                    (SELECT latest_date
                                                                                    from object_instance
                                                                                    WHERE ID = obj.id)))
                     ||''),
                    3, apex_item.select_list_from_query(p_idx=>42,p_value=>''||
                        decode(defprop.srt, 'CONSTANT', (select WRD
                                                                            from    measurement_prop
                                                                            where    defprop_ID = defprop.id
                                                                            AND        measurement_id IN
                                                                                (SELECT ID
                                                                                FROM measurement
                                                                                WHERE OBJ_ID = obj.id
                                                                                AND DAT IN
                                                                                    (SELECT latest_date
                                                                                    from object_instance
                                                                                    WHERE ID = obj.id)))
                     ||'', p_query=> 'select wrd, id from property_typewrd where proptyp_id = ' || proptyp.id ||' order by vlgnum', p_show_null=> 'NO'),
                    4, apex_item.text(p_idx=>42,p_value=>''||
                        decode(defprop.srt, 'CONSTANT', (select WRD
                                                                            from    measurement_prop
                                                                            where    defprop_ID = defprop.id
                                                                            AND        measurement_id IN
                                                                                (SELECT ID
                                                                                FROM measurement
                                                                                WHERE OBJ_ID = obj.id
                                                                                AND DAT IN
                                                                                    (SELECT latest_date
                                                                                    from object_instance
                                                                                    WHERE ID = obj.id)))
                     ||'',p_attributes=>'class=case5_num')
                    || '<a name="add_f02" href="#"><img alt="add" src="#WORKSPACE_IMAGES#plusBig.gif"/></a>    '
                    || '<a name="sub_f02" href="#"><img alt="sub" src="#WORKSPACE_IMAGES#minusBig.gif"/></a>',
                    5, apex_item.date_popup(p_idx=>42, p_value=>''||
                        decode(defprop.srt, 'CONSTANT', (select WRD
                                                                            from    measurement_prop
                                                                            where    defprop_ID = defprop.id
                                                                            AND        measurement_id IN
                                                                                (SELECT ID
                                                                                FROM measurement
                                                                                WHERE OBJ_ID = obj.id
                                                                                AND DAT IN
                                                                                    (SELECT latest_date
                                                                                    from object_instance
                                                                                    WHERE ID = obj.id)))
                     ||''),
                    oms
                ) waarde
    from default_property defprop,
    object_instance obj,
    property_type proptyp
    where defprop.stdobjver_id = obj.stdobjver_id
    and defprop.proptyp_id = proptyp.id
    and obj.id = :P2200_ID_INVThis report works fine. Depending on the type of the property it shows a numberic field, text field, selectlist (with right values), counter field or date field.
    If the default property is set to a 'CONSTANT' value, the last known value is filled in.
    With a javascript I check the numberic field value and achieve the counterfield to add or substract values when 'plus' or 'minus' is clicked.
    This javascript is placed in the field 'Execute when Page Loads' in the page properties in APEX. Here is the code:
    /*Execute when page loads*/
    /*Allow only numbers */
    number_elem = $('input[name=f42].case5_num');
    number_elem.keypress(function(event) {
      if (event.which && (event.which < 46 || event.which > 57 || event.which == 47) && event.keyCode != 8) {
          event.preventDefault();
      if (event.which == 46 && $(this).val().indexOf('.') != -1) {
          event.preventDefault();
    //for mouse events, remove any non numeric characters
    number_elem.bind('mouseup mousedown mouseleave', function(event) {
       this.value = this.value.replace(/[^0-9]/g, '');
    /* Subtract Button */
    $('a[name="sub_f42"]').click( function() {
      number_elem = $(this).siblings('input[name=f42].case5_num');
      currVal = number_elem.val();
    if ( isNaN( currVal) ){
       elemVal = 0;
    else {
       elemVal = Number(currVal);
    if (elemVal > 0)
         number_elem.val(elemVal-1);
    else
    { elemVal = 0; }
    /* Add Button */
    $('a[name="add_f02"]').click( function() {
      number_elem = $(this).siblings('input[name=f42].case5_num');
      currVal = number_elem.val();
    if ( isNaN( currVal) ){
       elemVal = 0;
    else {
       elemVal = Number(currVal);
    number_elem.val(elemVal+1);
    });Those two codes makes my report works fine. So far I'm happy. But now I want the data, which the user fills in the items, to be saved.
    So I created a process that should do this for me (it wil run after the user hits a button), here is the code:
    declare
         v_objmet_id number := 0;     
    begin
         select measurment_seq.nextval
         into v_objmet_id
         from dual;
         insert into measurment
         ( id
         , obj_id
         , dat
         values
         ( v_objmet_id
         , :P2200_ID_INV
         , :P2200_METDAT_INV
         /*Loop trough the values (g_f42 holds the value of the property)*/     
         for i in 1 .. apex_application.g_f42.count loop
              /*g_f41 holds the key to the default property*/
              if apex_application.g_f41(i) is not null and
                   apex_application.g_f41(i) > 0 then
                   insert into measurment_prop
                   ( measrument_id
                   , defprop_id
                   , wrd)
                   values
                   ( v_objmet_id
                   , apex_application.g_f41(i)
                   , apex_application.g_f42(i)
              end if;
         end loop;
    end;After running this process, the application branches back to the page, clearing the cache and set some items I use for filtering an other report with their own values.
    Both the process and the branche have a 'when button pressed' condition, where the same button is filled in. The branche fires on submit: after processing.
    When I hit the button to save the data, I get an error: ORA-01403: no data found
    In the debug info I can find there is encountered an unhandeled exception in the process, but I don't know what's going wrong...
    I thought it could be something with the date field, I want to save, so I put it in a to_date() with the right format, but I still got the error...
    I've also checked if the query which fetches the nextval of the sequence is correct, and it is, no typeing error in the sequence name, or something.
    I'm using APEX 4.0.2
    Edited by: Mir on 28-jun-2011 10:25
    Changed some code of the javascript, it directed to the wrong item ID, now its correct

    My problem is solved. The error occured when application item g_f41 was accessed, so my application couldn't find the data, the user putted in there. I now pasted this part of the sql, to the other apex_item field, so it became one field and now it works correctly:
    select [...]
    apex_item.hidden(41,defprop.id) ||
    decode(proptyp.id,
                    1, apex_item.text(p_idx=>42,p_value=>''||
                        decode(defprop.srt, 'CONSTANT', (select WRD
                                                                            from    measurement_prop
                                                                            where    defprop_ID = defprop.id
                                                                            AND        measurement_id IN
                                                                                (SELECT ID
                                                                                FROM measurement
                                                                                WHERE OBJ_ID = obj.id
                                                                                AND DAT IN
                                                                                    (SELECT latest_date
                                                                                    from object_instance
                                                                                    WHERE ID = obj.id)))
    [... etc ...]

  • Ajax Autocomplete Tabular does not work using apex_item.text in SQL Query.

    Hello,
    Is it possible to use the search function which is used in, Dennis Kubicek example, ENAME topic Ajax Autocomplete Tabular
    in a sql query using apex_items?
    Query line :
    , apex_item.text(17,xp.part_nr,null,null,'onfocus="f_register(this);" autocomplete="off"') PART
    At first I followed the example by adding 'onfocus="f_register(this);" autocomplete="off" in the element attributes in the report field.
    This didn't work... so tried to add the it in the attirbutes parameter of the apex_item.
    But this still doesn't work. No errors are given, it does not respond.
    Could somebody please help me?
    Thx!
    Astrid

    Well, I'm trying to take this one step further, but I seem to be having some difficulty.
    I'm trying to make a Filter screen to create a dynamic where clause filter screen.
    This is a page I made with Popup LOVS, just to show you my goal (now trying to use autofilters)
    http://apex.oracle.com/pls/otn/f?p=29989:5
    I have a table on my system that tells you where the field is, and I'm using that to get the table (didn't want to change the javascript, so I pass in a static value).
    This is the javascript code I used
    <pre>
    <script language="JavaScript" type="text/javascript">
    function f_register(p_this,p_name)
    var p_registered = $x('P5_ITEM_ID').value;
         var p_this_name = $x(p_this).id;
    //alert(p_this_name);
    if (p_registered != p_this_name)
    register(p_this_name, "COSTING_M", p_name, "blue", "red");
    $x('P5_ITEM_ID').value = p_this_name;
    </script>
    </pre>
    This is my query
    <pre>
    select column_name || apex_item.hidden(1,column_name) Col_name,
    apex_item.SELECT_LIST_FROM_lov(2,'=','OPERATOR') OPERATOR,
    apex_item.text (3,
    NULL,
    20,
    200,
    'onfocus="f_register(this,''' || column_name || ''');" autocomplete="off"',
    'f3_' || '#ROWNUM#',
    NULL
    ) value,column_id
    from user_tab_cols
    where table_name = 'COSTING_M'
    ORDER BY ROWNUM
    </pre>
    and here is my on-demand process
    <pre>
    declare
    TYPE CurTyp IS REF CURSOR;
    v_row varchar2(4000);
    rec CurTyp;
    V_TABLENAME NKW.UTFIELD_M.TABLE_NAME%TYPE;
    begin
    BEGIN
    SELECT TABLENAME INTO V_TABLENAME
    FROM NKW.UTFIELD_M
    WHERE FIELD_NAME = :TF_SL_COLUMN;
    EXCEPTION WHEN NO_DATA_FOUND THEN RETURN; END;
    :TF_SL_SEARCH := replace(:TF_SL_SEARCH, '&amp;','&');
    :TF_SL_SEARCH := replace(:TF_SL_SEARCH, '&lt;','<');
    :TF_SL_SEARCH := replace(:TF_SL_SEARCH, '&gt;','>');
    :TF_SL_SEARCH := replace(:TF_SL_SEARCH, '&quot;','"');
    owa_util.mime_header('text/xml', FALSE);
    htp.p('Cache-Control: no-cache');
    htp.p('Pragma: no-cache');
    owa_util.http_header_close;
    htp.prn('<rowset>');
    open rec for
    'select distinct ' || :TF_SL_COLUMN || ' ' ||
    'from NKW.' || V_TABLE_NAME || ' ' ||
    'where '||:TF_SL_COLUMN||' like :1||''%'' ' ||
    'and rownum < 100 ' ||
    'order by '||:TF_SL_COLUMN
    using :TF_SL_SEARCH;
    loop
    fetch rec into v_row;
    exit when rec%NOTFOUND;
    htp.prn('<row>' || htf.escape_sc(v_row) || '</row>');
    end loop;
    htp.prn('</rowset>');
    end;
    </PRE>
    I made some slight mods to make the table dynamic from my source table (this is to grab master files when they exist and not to when they don't).
    I get my select list, but it's blank on all fields, any suggestions?
    thanks,
    Scott

  • Using the AddRow() BuiltIn with  APEX_ITEM

    Hello to all
    I'm using APEX 4.0 and tried to use the addRow() Builtin.
    I have created a report based on a function returning a query with apex_item.display_and_save,select_list_from_query,popup_from_lov,text,date_popup and hidden.
    The report layout is standard-report and the REGION_STATIC_ID is named detail.
    Then I created a ADD_ROW Button with the action redirect to URL and the target javascript:addRow('detail');
    When I Click the button firebug displays the error message: gTabFormReportID is not defined.
    So I tried to create my own ADD ROW Button. The first Row of the report is cloned. I can set default values and a new id for the select list,popup_from_lov,date_popup and for the
    text item, but I can not change the values of the display_and_save items.
    When I choose another option for the select list, it works, when I choose another option for the popup_from_lov or date_popup then
    the first row changes not the added row.
    So what else can I do. What can I do with the addRow() Builtin to define the gTabFormReportID (preferred),
    or for my own ADD ROW Button how to change the default value and id
    of display_and_save items and to change the right row after popup_from_lov or date_popup?
    In this forum I saw a lot of examples for text items or select lists, but I didn't found any examples for display_and_safe or popup items.
    Thanks
    meyero

    Hello Apex-Gurus,
    Because I didn't get any answer, I tried to find out, how to create my own addRow-function and I need some explanation.
    I found out, how to reset the value of the display_and_safe items. You must search for an input item with type=hidden
    and undefined id in the cloned row. If the next sibling is a span - tag with the expected id of the cloned input item, then you can change the
    value with span_object.innerHTML = "".( I hope this will never change)
    Next I tried to change the cloned popup_from_lov.
    First I search an input item with the id fnn_0000 in the cloned_row, change the id to fnn_0002. The new row is the third row. I tried to change
    the value and the id of the input item, but only the id changes.
    Then I search for the Javascript function genList0_f21_$_row() and replace the name with genList0_fnn_2, the parameter
    &p_element_index=" + escape ('0') to &p_element_index=" + escape ('2') and p_elem_id=" + escape('fnn_0002').
    At last I change the call of the function to "javascript:genList0_fnn_2()".
    When I try to call the function, firebug shows an error function genList0_fnn_2 id not defined, but I can see it in the source code. Are there any rights missing?
    So I build a tabular report and use the addRow() builtin and compare the results:
    First thing to mention is, that the ids start with fnn_0001 in the tabular report and not with fnn_0000.
    The JS-functions of the first two rows named in the tabular report are genList0_fnn_1 and genList0_fnn_2.
    The JS-functions of the first two rows named in the apex_item report are genList0_f21_$_row and genList0_fnn_1
    After calling the bulitin addRow function in the tabular report ,a new input item with the id fnn_0003 and a link javascript:genList0_fnn_3(),
    but no new JS-funtion are created, but it works. Where is the function?
    After calling my own add_row function in the apex_item report ,a new input item with the id fnn_0002 and a link javascript:genList0_fnn_2() and
    the new JS-funtion named genList0_fnn_2 (see above) are created, but the function is not known.
    What does the apex engine do, where can I search errors or how can I get this working????
    Please help
    meyero

Maybe you are looking for

  • How do you get your iPhone to stop keeping records your movements?

    According to a recent article in Gizmodo (http://tinyurl.com/3dcy2jw) records of iPhone and iPad users' movements have been stored on their phone and computer since June 2010, and could be easily accessed if your device were stolen. From the article:

  • Extraction of all available hierarchies from KDH3 in R/3 system

    Hi, As part of the cost center reporting, user wants to utilize the account group hierarchy which is available in R/3 using KDH3 transaction code. It would be appreciated if you could provide some helpful information of how to pull the account group

  • Help an amateur?!

    i need to write a program to print a calender, the difficult bit for me is writing a code to find leap years. how do i program my calender to know what year is a leap year? starting from year 0.

  • Change TM drive ---deleteing TM files

    I've got TM up and running smoothly, with several backups on my external drive. 1) Can I now copy my TM data to another (larger) drive (via a simple drag and drop in Finder), then change my destination drive in TM and have it continue to update that

  • Restricting UserDefined Fields for certain users

    I want to restrict some of my users from viewing the contents of certain UDFs. Is there a way of doing this?