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

Similar Messages

  • Why doesn't a Popup Key LOV (named LOV) in a tabular form not display values in the popup?

    I have a tabular form and I'm setting one of the fields to a Popup Key LOV (named LOV). The named LOV is a static LOV. When the popup is displayed there are no values displayed. The same thing happens if I use a Popup LOV (named LOV).
    I created a sample application http://apex.oracle.com/pls/apex/f?p=15762:1that shows what happens. When the job field popup is selected, no items are displayed. If I change the item to a Select List (named LOV) it works fine.
    Is this a bug?

    Hi
    I am also getting the same issue. Hope it could be a bug.
    Can anyone plz confirm this?
    Thanks
    Lakshmi

  • How to have cascading lov for a single column in tabular form

    Hi,
    How to have a cascading lov for a single column in tabular form
    ie i have one employee name column
    in tabular form if v pressed add row then one row ll be added
    In my scenario based on first row value
    the second row value to be displayed
    To achieve this what i have to do ..
    Regards,
    Pavan

    READ Cascading select list on tabular form  and
    Oracle APEX 4.0: Cascading LOVs/Select Lists | Inside Oracle APEX by Patrick Wolf BLOG
    helps you,
    Pars.

  • Bug Report: Static LOV's and PDF Printing with Tabular Forms

    I have a tabular form, which acts as an editable report. Some columns are 'Standard Report Column' and some are Select Lists, using Static LOV's with the contents of
    Yes;Y,No;NThe purpose of the page is to allow users to edit yes/no attributes of a row. Then, they can print the report.
    To make the current sort of the report reflect what is being printed to PDF, I've used a Report Layout associated with the report region, as oposed to a report query. A report query in this case would not reflect the sort of the report (all columns are sortable asc/desc).
    Anyway, I link my report with the layout created, and go to run it. I get this message.
    ORA-06550: line 1, column 50: PLS-00103: Encountered the symbol "," when expecting one of the following: := . ( @ % ; The symbol ":= was inserted before "," to continue.
         Error      ERR-1000 Unable to determine LOV from "declare function x return varchar2 is begin Yes;Y,No;N return null; end; begin wwv_flow_utilities.g_query := x; end;".
    OK      
    report error:
    ORA-20001: Error fetching column value: ORA-01403: no data foundI'm guessing the product is trying to take my static LOV and place it in a function to be able to generate which value is being displayed as text, from the select lists. However, it doesn't work.
    I've been able to get around it - by adding a YES_NO domain to my domain_codes table (a table which associates abreviations with full meanings), I can set by select lists to be query based select lists using the SQL select code_meaning, code from domain_codes where domain = 'YES_NO_CODE'. This still allows the user to dropdown Yes/No fields, and the PDF printing doesn't break.
    It is just me, or can't the PDF printing handle static LOV's in tabular forms/reports?

    Hi Patrick.
    I've tried STATIC:Yes;Y,No;Nwhile stating it is a Select List (static LOV). The values that are rendered on the page are
    [STATIC:Yes]
    [No        ]
    ----------I tried the same thing with STATIC2 instead of STATIC, and the same thing happened.
    It also broke if I tried STATIC or STATIC2 under Select List (query based LOV). This is within a report where there is no hyperlink to say 'Create/Edit static list' or 'Create Dynamic List', as there is under select list items.
    However, I am finding that for some reason, the values being sent to the PDF are not the values in the database (Y/N), but the showing values (Yes/No). This happens when I use the domain_code select query as the query based LOV.
    Furthermore, I cannot get any columns not rendering on the page to be generated in the PDF. I have a column that groups items depending on values, and I want this grouping to display in the PDF instead on the original value, ideally.
    Cheers,
    K.

  • 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");
    });

  • Error when using named LOV

    This is for Apex 4.0.2.
    I wonder if anybody else has come across this issue: after creating a named LOV in Shared Components and using the LOV on an item, I get this error:
    ORA-20001: Error fetching column value: ORA-20001: Query must begin with SELECT or WITHIt doesn't really matter which item type I choose:
    Display as text (based on LOV)
    Select list (named LOV)
    Popup LOV (named LOV)
    When using popup LOV there is some additional error information:
    Error in init lov: ORA-06561: given statement is not supported by package DBMS_SQL
    p_lov:wwv_flow_security.g_security_group_id:1278218559423697
    wwv_flow_security.g_curr_flow_security_group_id:1278218559423697
    Unable to initialize query.
    etc.However, if I copy-paste the LOV code in the LOV definition on item level (so, not as a named LOV) it works!
    The LOV is simply:
    select rv_meaning d
          ,rv_low_value r
    from   cg_ref_codes
    where  rv_domain = 'F_RC_STATUS'Any ideas?
    Ino
    Forgot to add: I have a lot of named LOV's without problems. It's just when using cg_ref_codes that this occurs (Oracle Designer users will recognize this table :-) )
    But even when using cg_ref_codes, it doesn't happen every time. Some LOV's based on cg_ref_codes do work.
    Edited by: InoL on May 10, 2011 10:33 AM

    I am one step further: I think the problem is that my named LOV was a "Copy and subscribe" from an LOV in my master application. I have deleted and recreated the LOV in the master several times, but that did not help.
    Now, I have created the named LOV in the application itself (not as a copy of the master LOV) and it works. It looks like the copy function in Apex Builder may be the problem.

  • 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.

  • Tabular form (select list Query based LOV)

    Hi all,
    I have this situation:
    a tabular form with two "select list (query based LOV)" fields.
    The first one must affect elements in the second one. And so the second query based LOV field should has a "where attr1 = first_list_selected_value" in the query.
    Is this possible ? Could you show me some advices ?
    thanks in advance.

    OK, thank you.
    But maybe I wasn't too clear.
    I need cascading LOV for each row of my tabular form.
    I have a EMP tabular form
    select
    "ROWID",
    "EMPNO",
    "ENAME",
    "JOB",
    "MGR",
    "HIREDATE",
    "SAL",
    "COMM",
    "DEPTNO"
    from "#OWNER#"."EMP" I need a Select List for DEPTNO for each record of table. After set a value, the second "Select List" for ENAME should be affected automatically.

  • Coloring  a popup field in a tabular form

    Hello all,
    i have searched for this subject many times, find a lot of answers to coloring at all, but none of them works for me.
    I have a tabular form,in the sql query i create a column COLOR (case clause) and try to color the back-/foreground of the column (Popup LOV:named LOV) and use this in 'tabular form element->element attributes':
    style="background-color:#COLOR#"
    or
    class="lov" style="background-color:#COLOR#"
    but it does not work.
    How could this be achieved ?
    Wolfgang

    Hi Wolfgang,
    You may have to use the HTMLDB_ITEM.TEXT functionality to do that.
    For example:
    HTMLDB_ITEM.TEXT(11, MGR, 10, 10, 'STYLE="COLOR:RED; BACKGROUND-COLOR:YELLOW"') "Manager"
    will create a column on the form with all items in red text on a yellow background. Your CASE statement would then need to determine the entire entry:
    CASE WHEN X = 1 THEN
    HTMLDB_ITEM.TEXT(11, MGR, 10, 10, 'STYLE="COLOR:RED; BACKGROUND-COLOR:YELLOW"')
    ELSE
    HTMLDB_ITEM.TEXT(11, MGR, 10, 10, 'STYLE="COLOR:BLUE; BACKGROUND-COLOR:WHITE"')
    END "Manager"
    Have a look at the following for details about using HTMLDB_ITEM functions:
    http://download.oracle.com/docs/cd/B28359_01/appdev.111/b32258/api.htm#BGBHDGAI
    Andy

  • Custom popup from tabular form

    Hi,
    I would like to create a custom popup in a tabular form.
    The standard popup doesn't realy satisfy my needs.
    I followed the "How to" to create a custom popup, so that method is known. And this is working for a part.
    I managed to alter the tabular form so that it calls the Javascript to get the popup window by entering :
    <INPUT TYPE="TEXT" VALUE="#PROJ_ID#"> Click for LOV
    in the HTML Expression of the column format section.
    So the popup window is opened correctly, but the problem is how to return the selected value to the text item in the tabular form.
    Returning a value to a normal text item is no problem, but it is to return it to a cell in an tabular form.
    I tried to enter the following in the Passback Javascript:
    opener.document.getElementById("F04").value = passVal2;
    But this doesn't work correct and also is not flexible since F04 is the cell for only that row.
    So the question is: How can I write my Javascripts Passback function so that it returns the passVal2 value to the right cell of the tabular form?
    Any ideas?
    Regards Guido

    Nobody has ever done such thing?
    Isn't there a way to address a specific cell in a tabular form?
    Maybe then I have to look for another solution:
    What I would like is, when selecting something from the popup (in the tabular form) a second column (The description column)has to be filled in with a value looked up from the selected popup value. This is just a default value,this "Description" field must be a text field so that users can change the description before "saving" the record to the table.
    So anybody has an idea how this can be implemented?
    Thanks for your help in advance!
    Guido

  • Not null and enable or disable  column in tabular form

    Hi,
    Using apex version 4.1 and working on tabular form.
    ACT_COA_SEGMENT_MAS is Master table
    and
    ACT_SEGMENT_VALUES_MAS is detail table
    I have entered 8 rows in master table and PARENT_SEGMENT_ID is column in master table which is null able. If i specified PARENT_SEGMENT_ID with value in master table then in detail table there is column PARENT_ID that should not be null and enable.
    How i can enable or disable column when in master table PARENT_SEGMENT_ID column is null then in detail table PARENT_ID column should disable and vice versa.
    I have created tabular form on Detail table. before insert into the tabular form Check in master table in first entry if PARENT_SEGMENT_ID is not null in first row of master table then in tabular form PARENT_ID should enable and not null able in corresponding to this first row id's lines in tabular form.
    Same should check for second row in master table if PARENT_SEGMENT_ID is not null then entered rows with PARENT_ID into tabular form corresponding to 2nd id in master table should not nullable and column should enable in tabular form.
    Thanks & Regards
    Vedant
    Edited by: Vedant on Jan 9, 2013 9:12 PM

    Vedant,
    You need to create you own manual tabular form and not use the wizard.
    Using APEX_ITEM api you should be build you own form and you will be able to control how you wan to display the rows. (See Link [Apex Item Help|http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35127/apex_item.htm#CACEEEJE] )
    select case when PRIMARY_TABLE_COLUMN is null then APEX_ITEM.DISPLAY_AND_SAVE(3 , DETAIL_COLUMN ) else APEX_ITEM.TEXT(2,detail_column) end "ALIAS" from detail table
    Hope that help.
    Vivek

  • 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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Theme 23 does not display popup LOV in tabular form

    I created new application using new Theme 23. In tabular form the popup LOV button does not show. While using this theme the column LOV button is soooooo small it is not visible. If I move the cursor on the side of the field eventually I cursor handle will change and I can click and popup LOV will show. When I switch to an older theme (e.g. 21) the LOV button shows just fine.
    Does anyone can offer a solution? Can I expect more this type of problems in the new theme 23?

    I examined exported application file. Indeed the problem is p_column_id parameter. It should be decimal number for translated application. Characters %2C in p_column_id value stands for comma. It should be dot instead. Parameter value should be p_column_id=30289208519476123679.915121.

  • Error in using named LOV

    Hi !
    I'm using a named LOV in a tabular form and it works fine.
    Trying to use it in a "normal" form gives the error:
    Error in initializing List of Values: ORA-06561: given statement is not supported by package DBMS_SQL Unable to initialize query. Why ? What's wrong ?
    Heinz

    Hi Scott !
    I've simplified the staement in the "List of Value" of the "Shared Components" to:
    select coalesce( initcap(full_name),
                     initcap(name),
                     initcap(coalesce(last_name,'unknown',last_name||' '||first_name))
                   ) ||'  ('||status||')'   as username_d,
           coalesce( initcap(full_name),
                     initcap(name),
                     initcap(coalesce(last_name,'unknown',last_name||' '||first_name))
                   )  as username_r
    from  dart.ca_user
    order by decode(upper(status),'ACTIVE',1,2),1showing the same error.
    When I use the LOV from the shared components I will get the error.
    If I write exactly the same select statement as LOV Query there is no such error.
    Heinz

  • PopUp LOVs in tabular forms

    Hi,
    I've discovered a problem using Popup LOVs in tabular forms, whereby on selecting a value from the LOV the key value is displayed on the form instead of the display value.
    Having searched this forum it would appear I'm not the only one who has encountered this problem, but I've had no luck in finding an explanation for this behaviour or a solution / workaround.
    Can anyone help?
    Thanks
    Andrew.

    A Popup LOV is just a normal Input field with the option to popup another window, select a value and return that value to the field. On the popup window, the "display" value is shown to the user to make it easier to select the right value, but the "return" value is returned to the field as this is the value that needs to be stored on the database.
    As a normal input field, it can only hold and, therefore, display one value.
    Select Lists, on the other hand, store the "return" value but show the "display" value because that is how Select Lists are designed to operate.
    You can show the "display" value in a second field for data that is already on the database by using the "Display as Text (based on LOV, does not save state)", based on the same database column as for the Popup LOV field and using the same LOV table.
    However, the only way to get a "display" value for a new/edited record would be to either submit the page or design your own popup which can pass values back into two fields. Either way, you need two fields.
    Unless someone else has found a way around this?????
    Regards
    Andy

Maybe you are looking for

  • How many lines can you have on a nation wide talk and text plan?

    How many lines can you have on a nation wide talk and text plan?

  • Permissions Issues - Downloading updated firefox software

    I receive the following error message when I try to drag an updated version of mozilla firefox to my applications folder.  "The operation can't be completed because you don't have permission to access some of the items." I am constantly receiving thi

  • Changing date for a JVM

    hello I have a problem related to the system date (the date from JVM) How can I change dynamically the date of a JVM? my problem: I have to create a test case for a trigger I want to create an object, and I need to change the date to see the result I

  • Business role and user defenitions

    Hello, What is the difference between a business role definition and the user definition?

  • SetVisible(true) but doesn't show up

    What I'm trying to do is get the writeAll panel to show up when they click the Write button in the menu. I have it so it's set to invisible after it's created so it only shows up when they click the write button, only it doesn't show up. I've put bre