Disable/enable popup LOV image anchor in tabular form

Hello all,
I am trying to find the solution how to enable/disable popup LOV's image anchor. When I disable the popup item, then only the text field is disabled but the image is still active and opens the LOV window. I have tried to implement some solutions but without success.
I have created DA (fired after refresh of needed region) with code below which disables the needed field.
$('td[headers="DEPTNO"] input').each(function(i)
            $('td[headers="DEPTNO"] input:text').disabled="disabled";
$($('td[headers="DEPTNO"] input:text')[i]).addClass('apex_disabled');
Could anyone help me with a code which will also disable the image?
Thanks in advance!
My testing appl:
www.apex.oracle.com
*WS:* kurintest
*username:* [email protected]
*passwd:* kurintest
*appl. name:* disable_popup_icon
-Jiri                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Hello Jiri,
Please see your page:
I have changed the dynamic action:
$('td[headers="DEPTNO"] input').each(function(i)
            $('td[headers="DEPTNO"] input:text').disabled="disabled";
$($('td[headers="DEPTNO"] input:text')[i]).addClass('apex_disabled');
     $($('td[headers="DEPTNO"] a')[i]).click(function(e) { e.preventDefault(); });
$($('td[headers="DEPTNO"] img')[i]).addClass('apex_disabled');
Hope it helps!
Regards,
Kiran                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • Disabling Popup LOV (named LOV) cell in my tabular form

    Hello.
    I have a tabular form.
    I have a column where I insert values based on the named list of values. I make the field of "Popup LOV (named LOV)" type. However, ApEx allows the values to be either picked from the popup list or entered manually into the field's text field. I want to prevent the user from being able to manuall enter the values into the field and force the use of the popup LOV.
    I know that selecting Popup LOVs for regular items in a region make the text field "disabled" disallowing direct entering of values. However, for tabular forms' fields, this does not seem to be the case.
    Is there a style I can add to the attribute to make this happen?
    thanks
    Boris

    Hi Boris,
    I'm glad that you are learning things through this forum!
    You can't validate tabular form items using the normal Item Level validation - as this is for page item names only (that is, P1_EMPNO for example).
    You can do validation using PL/SQL in a Page Level Validation. There are a number of examples on how to do this on this forum. Here's one by Denes: [http://htmldb.oracle.com/pls/otn/f?p=31517:41]
    When you submit a tabular form page, Apex creates collections for each "fnn" set of items. "f01" items are stored in APEX_APPLICATION.G_F01, "f02" items are stored in APEX_APPLICATION.G_F02 and so on. To validate any item, you loop through one collection and check its value or the values in the same position on the other collections.
    In Denes's example, he is looping through the "f02" items (that is APEX_APPLICATION.G_F02 from 1 to APEX_APPLICATION.G_F02.COUNT) and checks the values in the "f07" (APEX_APPLICATION.G_F07) and "f08" (APEX_APPLICATION.G_F08) items. The items are stored in their collections in the same order as they appear on the page, the first item in G_F01 is on the same row as the first item in G_F07 and so on. The validation(s) to perform will depend on your requirements.
    In the example, Denes is using a "Function Returning Error Text" validation. In these, you either return a string containing the error or NULL (meaning no error has been found).
    Andy

  • Enable/Disable item Based Value from Select in Tabular Form

    Hi Guys
    I want to Disable text field in Tabular form, Based on the Select List Item Value.
    Let's Say
    I'm having one select lista and text box in each record in tabular form.
    Select List having 2 items ... Add Text(return value 1) and No Text(return value 2)
    if value =1 then i want to enable text box , so user can enter value.
    if value=2 then text box won't allow to add text or will become disalbe.
    Please Help
    Thanks

    Hi,
    You can do this by using a small java script
    <script language="JavaScript" type="text/javascript">
    <!--
    function FldEnableDisable(pThis)
    if (pThis == 50)
      $x('P2_TEXT').disabled=true;}
    else
    { $x('P2_TEXT').disabled=false; }
    //-->
    </script>Here P2_Text is the text box whose value I am enabling or disabling based on the selected value from a List box. On The list box I have onChange="javascript:FldEnableDisable(this.value)" ( You can specify this under HTML Form Element Attributes)
    Thanks,
    Manish Jha

  • Disable and enable on Apex 4.2.1 tabular form

    Hi,
    I have a requirement on Apex 4.2.1 tabular form where It gets rows dynamically based on the master record.
    when page loads for the first time all the rows on the tabular form should disable and based on check all rows it should enable all the rows
    or if I check particular row it should enable that row. is this possible with dynamic action. or else how can i achieve this ??
    Thanks

    user10755387 wrote:
    Hi,
    I have a requirement on Apex 4.2.1 tabular form where It gets rows dynamically based on the master record.
    when page loads for the first time all the rows on the tabular form should disable and based on check all rows it should enable all the rows
    or if I check particular row it should enable that row. is this possible with dynamic action. or else how can i achieve this ??
    You cannot disable them instead make them read-only, but the problem comes if you have any form controls like select lists because they are already read-only
    Create a dynamic action as follows:
    Event: Page Load
    True Action: Execute JavaScript Code
    Code:
    //replace the REGION_STATIC_ID with your tabular form's region static id
    $('#TF').find('.uReport.uReportStandard').find('tbody').find('td[headers!="CHECK$01"] > :input').attr("readonly", true).css("background-color", "#F2F2F2");
    $('td[headers="CHECK$01"] > input').click(function () {
         if ($(this).is(':checked')) {
              $(this).parent('td').parent('tr').find('td[headers!="CHECK$01"] > :input').attr("readonly", false).css("background-color", "");
         else {
              $(this).parent('td').parent('tr').find('td[headers!="CHECK$01"] > :input').attr("readonly", true).css("background-color", "#F2F2F2");
    });

  • How to refresh page after selecting value from LOV item , in a tabular form

    Hi ,
    I have a tabular form, which contains 2 items(columns), of type "Select List - named LoV".
    Now, couple of issues here.
    1.
    2nd item(column) in tabular form, that LoV should get populated based user's selection value in first item LoV. So how do i refer to the value, that user selected in first item's LoV? I will have to use this reference in LoV query of my 2nd item ( on this tabular form)
    2.
    How can we refresh the page, when user selectes value in first item ( from LoV). As this is a tabular form, here item type is Select List, we dont have an option to pick item type as Select List with Submit. So problem is that when user selects value for item 1, refresh does not happen and item 2 LoV does not get populated as per user's selection in item 1.
    Please help here. Would be really appreciated.
    Thanks and Regards,
    Rave.

    Thanks Ben and Dan for your responses.
    Ben, your solution helped me with refresh of page, as page got submitted.
    This answers to my 2nd question. However, I still need to know first question, which basically is, how do i refer to the value, that user selected in first item LoV.
    Issue is, I selected the value in first item LoV, it got submitted and page fot refreshed. But after page refresh, first item LoV loses its value that I had selected last time. It does not retain the selected value after refresh.
    I have an unconditional process, that on every submit(refresh) of page, I set my items with their corresponding values. But problem is what do i mention there to refer to this item.
    I looked in view source of my page, this item is referred as f03.
    So i used "apex_application.g_f03", to set this item to its value, in my uncoditional submit process. But it did not work. I tried to refer this item as "f03" in this unconditional submit process. But still it did not help, the selected item loses its value after page refresh(submit).
    Any help here would be really appreciated. Please suggest how do we refer to this item's selected value.
    Thanks and Regards,
    Ravi.

  • Apex_item.radiogroup using an LOV in a manual tabular form

    I'm on APEX 4.0.0.00.46 and I'm sure there must be an obvious solution that I'm missing here, but I'm having a problem setting up an apex_item.radiogroup on a manual tabular form. This is the basic query that I'm using:
    select apex_item.radiogroup(37,my_field) as my_field
    from my_table
    When I use the above query as my Region Source, it compiles fine. However, it seems as though the query won't pull in the value that currently exists in the table unless I set the Column Attribute called 'Display As' for the field to 'Standard Report Column'. When I do this, it seems to remove the capability to incorporate a LOV into the radio group. I'm attempting to incorporate a query like this into the radiogroup:
    select 'YES' d, 'Y' r
    from dual
    UNION ALL
    select 'NO' d, 'N' r
    from dual
    So, to recap, I can set up a Radio Group (query based LOV), but if I do, the query of the table will not pull in the current value from the table. If I change the 'Display As' Column Attribute to 'Standard Report Column', I can no longer incorporate the LOV. Please help if you have any ideas.

    I am not 100% sure what you are trying to do but I think I am close. Try using
    SELECT apex_item.radio_group_from_query
              (37,
               my_field,
               'SELECT ''YES'' d, ''Y'' r FROM dual
                UNION ALL
                SELECT  ''NO'' d, ''N'' r FROM dual'
              ) AS my_field
      FROM my_tableDenes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    http://apex.oracle.com/pls/otn/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Oracle apex popup using java script in tabular form select list(Am new to apex help me out... )

    Hi ...
      i have a tabular form
      have two columns in that form, kept as a select list by selecting that 1st select list data the related datas has to be popup after selecting that it has to be displayed in the  2nd column by using
    java script
    eg:
    1st column empno-----by selecting the empno the related empname has to be popup
                     dept no....by selecting the deptno the related deptname has to be popup 
    thanks in advance,
    kishore

    This is a very common question, see
    https://forums.oracle.com/thread/2359498

  • Second LOV based on First LOV in Oracle APEX tabular Form

    Hi,
    I had created a tabular form in which I am having two LOV's. This form is based on a query.
    I had created a javascript function which internally calls AJAX and populates the second LOV based on the value selected in first LOV when onchange.
    But the issue is, when the user recalls this APEX page to view the details or edit the details, the second LOV shows all the values instead of showing only the values related to first LOV.
    In the second LOV query I am trying to write the below query.
    select function_name fn
    ,function_code_id fci
    from catering_function_codes
    where function_type_id = NVL(#FUNCTION_TYPE_ID#,function_type_id)
    order by to_number(function_code_id)
    in which #FUNCTION_TYPE_ID# is the value of first LOV. But I am getting the below error.
    report error:
    ORA-20001: Error fetching column value: ORA-06550: line 1, column 187:
    PL/SQL: ORA-00911: invalid character
    ORA-06550: line 1, column 7:
    PL/SQL: SQL Statement ignored
    How can you refer to the Second LOV the value of First LOV in a report based tabular form?
    Kindly let me know if you do not understand the issue.
    Please help me in this issue.
    Thank you
    Regards
    Dev

    Hi Roel,
    Thank you for the quick reply.
    I used the query as given by you. This time it is not giving any error but showing all the values in the second LOV irrespective of what ever value is present in the first LOV
    This is an apex tabular form which is generated by apex based on a query. The controls will be dynamically generated by APEX for each row. How can we hard code the control name to :P99_FUNCTION_TYPE_ID?
    Please help me in this issue. Thank you
    Regards
    Dev

  • Popup LOV and read only

    Hi there,
    I want to use a Popup LOV instead of a select list. The thing is with Popup, the user can manually fill the text field value. Is it possible to use a Popup and have a read only textfield, to make sure the user's entry will be valid ?

    I try to fill disabled="disabled" into popup LOV of Tabular form element but don't work, the      
    behavior of text field is the same with or without this setting.
    My version of oracle apex is 3.1.1.00.09 installed on an Oracle 9.2.0.6 database.
    Someone have any ideas to resolve this problem?
    Thank you in advance.
    Gabriele

  • POPUP LOV'S BASED ON SQL QUERY

    Help! I am a beginner with APEX and SQL in general, and I need help with an issue I am experiencing. I've created a POPUP LOV with the following SQL statement:
    SELECT CLOCK_NUMBER || ' ' ||LAST_NAME||', '||FIRST_NAME D, EMP_ID R
    FROM MASTER
    The return value should populate the table, but instead it is returning to the report in APEX. If I choose a SELECT LIST based on a named LOV, it works. But unfortunately I cannot use a SELECT LIST, but I must use a POPUP based on a named LOV. Has anyone had these issues with POPUP LOV's? This is driving me crazy, and I'm sure I'm doing something stupid!
    Thanks!

    I've researched this quite a bit and it seems that this is a huge problem with APEX 3.1. Basically, I've created a tabular form. I have a column based on a LOV. In a tabular form, you DO NOT have the option of creating a PopUP..KEY..LOV, which would work for me, since it writes the return value back to the table. The normal PopUP LOV that you have the option of implementing on a tabular form does not behave like a PopUP..KEY..LOV, but it brings the return value back to the report (which in my case would be an employee_id, which doesn't work), and writes the display value back to the table.
    To add insult to injury, a regular SELECT LIST (based on named LOV) would work, however my LOV violates the buffer (which is 32k) and I get this error:
    report error:
    ORA-20001: Error fetching column value: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    I've researched this error and there are about 10 to the 100 posts regarding it, especially when dealing with LOV's and select lists that violate the 32k limit.
    Any new fresh advice?
    Thanks for your response as well. I appreciate your time and any help you may offer.

  • Tabular Form with Popup List Error

    hi,
    am using javascript to display Department Name when Deptno is changed in the Popup List
    am getting message from Popup Item (DEPTNO) (Htlm Form Element Attributes -> onchange="getDname(this); ")
    but am not getting message from popup Item in the Tabular Form ,
    am calling same javascript funtion in both the Popup Item(Column Attributes/Element Attributes->onchange="getDname(this); ")
    but am getting message from LOV item in the tabular form, am calling same function (Column Attributes/Element Attributes->onchange="getDname(this); ")
    u can check from the following URL:-
    http://apex.oracle.com/pls/apex/f?p=17935:12
    Username/Password : test/test
    Is there an setting i need to change in Popup Item in Tabular Form?

    Still nobody knows what the bug in Tabular Form
    CAN ANY ONE HELP ME ?

  • Problem regarding insert and Display BLOB Image in Tabular form

    I am trying to display and insert image in manual tabular form In Oracle APEX. but the image i uploaded was not inserted in wwv_flow_files table and in update button process i got "no data Found" Error...pls someone help me.... some part of code is bellow... SQL CODE IN REPORT REGION OF TABULAR FORM :- {
    SELECT '#ROWNUM#' "SNO",
    +' <img height="30" width="50" src="#WORKSPACE_IMAGES#'||F.FILE_NAME||'" alt="'||S.stud_fname||'" title="'||S.stud_fname||'" border="1"/>'AS "IMAGES", --- for display image from my table which is loaded through wwv_flow_files+
    APEX_ITEM.CHECKBOX(01,s.stud_id) "DELETE",https:
    s.stud_id|| apex_item.hidden(02,s.stud_id) "STUD ID",
    +.......+
    +.......+
    union all -- for inserting row
    SELECT '#ROWNUM#' "SNO",
    +'<input type="file" name="F17" size="5">'AS "IMAGES", -- for display image+
    APEX_ITEM.CHECKBOX(01,NULL) "DELETE",
    null|| apex_item.hidden(02,null) "STUD ID", }
    When i click on UPDATE BUTTON then following PROCESS CODE IS run :
    FOR i IN 1..APEX_APPLICATION.G_F02.COUNT LOOP
    IF APEX_APPLICATION.G_F02(i)IS NOT NULL THEN
    UPDATE STUDENT SET stud_fname=APEX_APPLICATION.G_F04(i),
    stud_addr =APEX_APPLICATION.G_F05(i), ......
    ELSE
    insert into FILE_ATMNT(ATMNT_KEY, ATMNT_NAME, FILE_NAME, MIME_TYPE, ATMNT_SIZE, CNTNT_TYPE, ATMNT_CNTNT, AUDIT_CRT_DATE ) SELECT id, name, filename, mime_type, doc_size,content_type, blob_content, SYSDATE FROM wwv_flow_files WHERE name = APEX_APPLICATION.G_F17(i);
    SELECT id into upload_ref from wwv_flow_files where name =APEX_APPLICATION.G_F17(i);
    ........ ( code for student insert Record )
    FILE_ATMNT is my attachment table in my workspace which updated through wwv_flow_files. My problem is that when i was click on update button image is not loaded into "wwv_flow_files" table so i didnt get image name bcz of $ name =APEX_APPLICATION.G_F17(i);$ this. so its show me no data found error.... Pls help me

    Mahesh wrote:
    Hi...i am mahesh...Welcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already).
    You'll get a faster, more effective response to your questions by including as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB version and edition
    <li>Web server architecture (EPG, OHS or APEX listener)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s)
    The best way to get help is to reproduce and share the problem on apex.oracle.com.
    All code should be posted wrapped in tags<tt>\...\</tt> tags to preserve formatting and prevent it being interpreted by the forum software.
    I am trying to display and insert image in manual tabular form In Oracle APEX. but the image i uploaded was not inserted in wwv_flow_files table and in update button process i got "no data Found" Error...pls someone help me.... some part of code is bellow... CODE IN  REPORT REGION OF TABULAR FORM :-
    SELECT '#ROWNUM#' "SNO",
    '<img height="30" width="50" src="#WORKSPACE_IMAGES#'||F.FILE_NAME||'" alt="'||S.stud_fname||'" title="'||S.stud_fname||'" border="1"/>'AS "IMAGES", --- for display image from my table which is loaded through wwv_flow_files
    APEX_ITEM.CHECKBOX(01,s.stud_id) "DELETE",https://forums.oracle.com/forums/post!default.jspa?forumID=137#
    s.stud_id|| apex_item.hidden(02,s.stud_id) "STUD ID",
    ....... (some code).
    union all -- for inserting row
    SELECT '#ROWNUM#' "SNO",
    '<input type="file" name="F17" size="5">'AS "IMAGES", -- for display image
    APEX_ITEM.CHECKBOX(01,NULL) "DELETE",
    null|| apex_item.hidden(02,null) "STUD ID",
    ....... (some code )
    When i click on UPDATE BUTTON  then following PROCESS CODE IS run :
    FOR i IN 1..APEX_APPLICATION.G_F02.COUNT LOOP
    IF APEX_APPLICATION.G_F02(i)IS NOT NULL THEN
    UPDATE STUDENT SET stud_fname=APEX_APPLICATION.G_F04(i),
    stud_addr =APEX_APPLICATION.G_F05(i), ..... ( some field of table)..
    ELSE
    insert into FILE_ATMNT(ATMNT_KEY, ATMNT_NAME, FILE_NAME, MIME_TYPE, ATMNT_SIZE, CNTNT_TYPE, ATMNT_CNTNT, AUDIT_CRT_DATE ) SELECT id, name, filename, mime_type, doc_size,content_type, blob_content, SYSDATE FROM wwv_flow_files WHERE name = APEX_APPLICATION.G_F17(i);
    SELECT id into upload_ref from wwv_flow_files where name =APEX_APPLICATION.G_F17(i);
    ........ ( code for insert command )
    FILE_ATMNT is my attachment table in my workspace which updated through wwv_flow_files. My problem is that when i was click on update button image is not loaded into "wwv_flow_files" table so i didnt get image name bcz of $ name =APEX_APPLICATION.G_F17(i);$  this.  so its show me no data found error.... Pls help me
    Before considering anything else, why bother with all this extra complexity? Why not use the standard form and report pattern?

  • SELECT LIST versus POPUP LOV

    I have a form that currently has several fields defined as SELECT LIST, which works great when the list of items to be selected is small. However, one of the fields is a list of employees, which will be > 300, and I was thinking of using the POPUP LOV option. Mainly because of the Search capability - would like to just list those employees that are entered into the Search to show up in the list.
    I have tried the POPUP LOV within a CREATE record form (using Auto Row Processing and Database Columns), and it pops up showing a list of employees (using the same SELECT statement as used when it was a SELECT LIST). So far, so good. When I select an employee, the employees name shows up in the field in grey text. So far, so good. However, I do not get anything helpful when I enter anything into the Search box. I just get a "The page cannot be displayed" in the window. Basically I am unable to search. Bummer.
    However, when I look at the record that I just created, I do not see the employees name in the field anymore, I just see the employee's ID. I also get the following error message:
    "Error: ORA-00904: "SESTAFFID": invalid identifier performing List of Values query: "select Employee, SEStaffID from ( SELECT ec.ename || ' - ' || s.site_name "Employee", wss.wss_id "SEStaffID" FROM wiser_se_staff wss, vw_emp_contact@WISER_SA ec, vw_site@WISER_SA s WHERE wss.staff_emp_id = ec.empid AND wss.staff_sch_location = s.site_id AND ((:P205_REF_RECD_BY_ID IS NOT NULL AND :P205_REF_RECD_BY_ID = wss.wss_id) OR :P205_REF_RECD_BY_ID IS NULL) ORDER BY ec.ename, s.site_name) wwvlovinlineviewname where SEStaffID = :WWV_LOV_RETURN_KEY_UTIL_1111". "
    Dang, I hate it when that happens. I have not been able to find any references to this error that would shed light on how to handle this error.
    I followed the recommendation in the HTML DB User's Guide for Popup LOVs (Table 6-7 Available Item Types), to no avail.
    The SELECT statement that is being used is:
    SELECT ec.ename || ' - ' || s.site_name "Employee",
    wss.wss_id "SEStaffID"
    FROM wiser_se_staff wss,
    vw_emp_contact@WISER_SA ec,
    vw_site@WISER_SA s
    WHERE wss.staff_emp_id = ec.empid
    AND wss.staff_sch_location = s.site_id
    AND ((:P205_REF_RECD_BY_ID IS NOT NULL
    AND :P205_REF_RECD_BY_ID = wss.wss_id)
    OR :P205_REF_RECD_BY_ID IS NULL)
    ORDER BY ec.ename, s.site_name
    I guess my questions are:
    1) Why is APEX choking on the SELECT statement for the UPDATE and not the CREATE?
    2) Why doesn't the SEARCH feature work, or probably more correct, what am I missing?
    TIA

    Scott,
    Thank you for looking at this.
    You are correct in your assumption - I was using the 'Popup Key LOV (Displays description, returns key value)' Display As option.
    I have been able to isolate where the problem is. I reduced the 'List of values definition' to:
    SELECT ec.ename || ' - ' || s.site_name "Employee",
    wss.wss_id "SEStaffID"
    FROM wiser_se_staff wss,
    vw_emp_contact@WISER_SA ec,
    vw_site@WISER_SA s
    WHERE wss.staff_emp_id = ec.empid
    AND wss.staff_sch_location = s.site_id
    ORDER BY ec.ename, s.site_name
    I then received the same error. So, I just changed the alias from "SEStaffID" to "SESID" and it then gave me the following error:
    Error: ORA-00904: "EMPLOYEE": invalid identifier performing List of Values query: "select Employee, SESID from ( SELECT ec.ename || ' - ' || s.site_name "Employee", wss.wss_id "SESID" FROM wiser_se_staff wss, vw_emp_contact@WISER_SA ec, vw_site@WISER_SA s WHERE wss.staff_emp_id = ec.empid AND wss.staff_sch_location = s.site_id ORDER BY ec.ename, s.site_name ) wwvlovinlineviewname where SESID = :WWV_LOV_RETURN_KEY_UTIL_1111".
    So, I then eliminated the concatenation that was part of the first field so that it was then 'SELECT ec.ename "Employee",' and left the rest of the SQL statement alone. I received the same error message. I then eliminated the "Employee", resulting in 'SELECT ec.ename,' and reran it - the LOV then worked properly, showing a list of employees, and I was able to search the list as expected.
    There is something about using the alias on the fields that it just does NOT like.
    I just did another test, and it appears it is just when the alias is on the first field that it chokes. I removed the alias from the first field, and left the alias on the second field, and the LOV worked just fine.
    TIA,
    Tom

  • Cascading LOV in a Tabular form

    Hi Guys,
    I have read numerous articles on the generation of cascading LOV's in a tabular form but havent been able to get it working
    I have created an example in my apex workspace at:
    http://apex.oracle.com/pls/apex/f?p=4000:1500
    workspace XXAPPS
    Username guest
    Password demo
    app no 17551
    Page 2
    In my test scenario, I have an emp table, dept table and an office table.
    Within my tabular form(based on the emp table), I have a deptno column and an office column.
    Depending on what the user selects in the deptno column, I would like the corresponding list of offices associated to that dept LOV to be returned in the offices LOV.
    The table structure is
    EMP
    EMPNO
    ENAME
    JOB
    MGR
    HIREDATE
    SAL
    COMM
    DEPTNO
    OFFICE_ID
    DEPT
    DEPTNO
    DNAME
    LOC
    OFFICE
    OFFICE_ID
    OFFICE_NAME
    DEPTNO
    When the user selects a deptno in the LOV I would like that to control the values that are returned in the office LOV.
    I have used Jari's blog post:
    http://dbswh.webhop.net/dbswh/f?p=BLOG:READ:0::::ARTICLE:2003800346210117
    but as you can see it isn't quite working in that the office LOV is not returning anything.
    I am pretty new new to JavaScript and jQuery so am no doubt doing something wrong as some of the steps are causing errors and are confusing me a bit e.g. step2 is causing the page to return blank (I have commented the code out in the example)
    Any help would be greatly appreciated.
    Thanks
    Edited by: Cashy on 07-Mar-2012 04:05

    Hi fac,
    That is the full code as per the Jari's link on http://dbswh.webhop.net/dbswh/f?p=BLOG:READ:0::::ARTICLE:2003800346210117 (last but one section of instructions).
    I have got the id of the elements (f07 and f06) by using IE Developer toolbar and have passed those into the dynamic action.
    The child element is now just showing loading...
    It seems to me that the on demand process is not being called because I changed the code to:
    DECLARE
    l_sql VARCHAR2(32700);
    BEGIN
    IF APEX_APPLICATION.G_x01 IS NOT NULL OR APEX_APPLICATION.G_x01 IS NULL
    THEN raise_application_error(-20001,'code gets here');
    l_sql := 'SELECT competency_id AS RET
    ,competency_description AS DIS
    FROM XXMEL_FOCUS_COMPETENTCIES
    WHERE competency_category_id = ' || APEX_APPLICATION.G_x01 || '
    ORDER BY competency_description
    APEX_UTIL.JSON_FROM_SQL(l_sql);
    ELSE
    HTP.prn('{"row":[]}');
    END IF;
    just to see if the code is getting to the process but the error message that I put in the PL/SQL is not firing.
    Chris

  • Javascript error on List Manager (Popup LOV)

    Hi all,
    I have a problem with checkboxes and list managers (based on popup LOV).
    I have a form containing several checkboxes and list managers; in a region of the form (the one before the last one) I have 10 checkboxes but just the first one work, the other ones give me this error when I tried to insert a record:
    ORA-20001: Errore in DML: p_rowid=21, p_alt_rowid=ID, p_rowid2=, p_alt_rowid2=. ORA-20001: Valore numerico :1 non valido per la colonna EDUCATION (it's italian, the translation for the last part is "numerical value :1 not valid for the EDUCATION column).
    Furthermoe, I have problems with list managers too: when I open the popup for some of them and choose the value from the popup window, I get a Javascript error: "Obejct doesn't support this property or method"; some (just some) of the list managers works.
    The strange thing is that if I delete a list manager or a checkbox, another list manager or checkbox starts to work, as if it was a rule about the max total number of list manager/checkboxes.
    I want to highlight that the total number of items in the form is less than 100.
    Thanks a lot in advance for your help.
    Cheers,
    Matteo

    Hi,
    The issue is because Apex actually generates TWO items for each List Manager items and both of these count towards the maximum of 100 items per page. As an example - this is ONE list manager item from my test page:
    &lt;fieldset id="P222_LM1" class="listmanager"&gt;
    &lt;table cellspacing="0" cellpadding="0" border="0" summary=""&gt;
    &lt;tbody&gt;
    &lt;tr&gt;
    &lt;td&gt;
    &lt;noscript&gt;
    JavaScript not supported
    &lt;/noscript&gt;
    &lt;script type="text/javascript"&gt;
    &lt;!--
    function filter_escape(in_value) {
                out_value = escape( in_value );
                return out_value;
            function genList0_p_v99_()
               w = open("wwv_flow_utilities.gen_popup_list" +
                           "?p_filter="  +
                           "&p_name=" + escape('p_v99') +
                           "&p_element_index=" + escape('') +
                           "&p_form_index=" + escape('0') +
                           "&p_max_elements=" + escape('') +
                           "&p_escape_html=" + escape('') +
                           "&p_ok_to_query=" + escape('YES') +
                           "&p_flow_id=" + escape('33642') +
                           "&p_page_id=" + escape('222') +
                           "&p_session_id=" + escape('2926501920944144') +
                           "&p_eval_value=" + escape('') +
                           "&p_translation=" + escape('NO') +
                           "&p_item_id=" + escape('6753181500127769527') +
                           "&p_lov=" + filter_escape('6753181500127769527') +
                           "&p_lov_checksum=5D6157CA388C164818106815D15EFFC6",
                           "winLovList",
                           "Scrollbars=1,resizable=1,width=400,height=450");
               if (w.opener == null)
                 w.opener = self;
               w.focus();
    //--&gt;
    &lt;/script&gt;
    &lt;fieldset id="P222_LM1_ADD_fieldset" class="lov"&gt;
    &lt;table cellspacing="0" cellpadding="0" border="0" id="P222_LM1_ADD_holder" class="lov" summary=""&gt;
    &lt;tbody&gt;
    &lt;tr&gt;
    &lt;td class="lov"&gt;
    &lt;input type="text" id="P222_LM1_ADD" value="" maxlength="2000" size="27" name="p_v99"/&gt;
    &lt;/td&gt;
    &lt;td&gt;
    &lt;a href="javascript:genList0_p_v99_()"&gt;
    &lt;img width="13" height="13" alt="Popup Lov" src="/i/list_gray.gif"/&gt;
    &lt;/a&gt;
    &lt;/td&gt;
    &lt;/tr&gt;
    &lt;/tbody&gt;
    &lt;/table&gt;
    &lt;/fieldset&gt;
    &lt;/td&gt;
    &lt;td&gt;
    &lt;input type="button" onclick="appendToList(document.forms[0].p_v99.value.toUpperCase(), document.forms[0].p_v02);document.forms[0].p_v99.value=''" value="Add" name=""/&gt;
    &lt;input type="button" onclick="deleteListElement(document.forms[0].p_v02)" value="Remove" name=""/&gt;
    &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
    &lt;td colspan="2"&gt;
    &lt;select id="P222_LM1_LISTMGRDATA" width="225" multiple="multiple" size="10" prompt="" name="p_v02"&gt;
    &lt;option&gt;8021
    &lt;/option&gt;
    &lt;option&gt;8001
    &lt;/option&gt;
    &lt;/select&gt;
    &lt;script type="text/javascript"&gt;
    &lt;!--
    gUtil.select.clean(document.forms[0].p_v02);
    //--&gt;
    &lt;/script&gt;
    &lt;/td&gt;
    &lt;/tr&gt;
    &lt;/tbody&gt;
    &lt;/table&gt;
    &lt;/fieldset&gt;Note that the popup item is p_v99 and the list item is p_v02.
    Question to the Apex developers:
    Given that the popup item does not really need to be submitted with the page, could this not use a different naming convention?
    Andy

Maybe you are looking for