Ignore the value inserted manually in the field of the lov

Hi all

I have a field called exchange_rate, the user can choose the value of lov (input text with lov) or can manually insert it in the same field.

for example the lov contains values 0.20 - 0.30 - 0.40 and the user must insert the 0.35 value that does not exist in lov.

How to do this?

You can try to remove the f: validator tag.

or (if the previous suggestion does not help)

You can add the new attribute to your VO and set rather LOV him on the original attribute (when you add lov in this field, you must also update the original attribute)

Then use af:inputText for your attribute (so it will not be validated for lov) original and put new attribute as af:inputListOfValues next to him (for example, you can surround them with af:panelGroupLayout with layout = "horizontal").

Hide a part of your LOV entry by placing "display: none;" in "contentStyle" property then you will see only lov icon and combination (inputText, inputListOfValues) will look like to users as classic lov.

To refresh the inputText when the user chooses something else of lov, you need to define autosubmit = true on your component lov and add partial trigger in af:inputText that points to your lov.

Dario

Tags: Java

Similar Questions

  • Insert the value of the field from the lov

    Hi guys,.

    I use APEX 4.2.6 I have a data in tabular form, and call the lov period in detail field data,

    If I click on save, the data I put into the text form field will be inserted into the table, and the lov field data will be inserted too

    I want to ask you how the lov field data can be inserted too

    I'll show the image to understand

    Sorry for my language

    Screenshot_2.png

    with the help of firebug you can identify the ID of your TextField in table form

  • Group by to ignore the values null

    Hi all
    Oracle version 10 g 2
    Consider the scenario

    Table: point
    Columns: Itm_id, Itm_type, appl_y_n (VALUES VALID 'Y', ' n, NULL)

    I HAVE FOLLOWING ITEM TYPES.

    TYP1
    TYP2
    TYP3

    In this appl_y_n is applicable only to the item type typ1 and it can contain y, n, or null.
    Types of remaining elements of this field may contain any value, including null, but I want to ignore these values.
    ITM_ID     ITM_TYPE     APPL_Y_N
    1     TYP1     NULL
    2     TYP1     Y
    3     TYP1     N
    4     TYP2     NULL
    5     TYP2      NULL
    6     TYP3     NULL
    7     TYP3     NULL
    now I need a group of clause which must ignore values null to appl_y_n only for TYP1

    on top of the sample output must be
    ITM_TYPE     APPL_Y_N     CNT
    TYP1     YES     1
    TYP1     NO     1
    TYP2     NULL     2
    TYP3     NULL     2
    Query, that I use for this:

    Select ITEM_TYPE, COUNT (ITM_ID), decode (itm_type, 'TYP1', DECODE(APPL_Y_N,'Y','Yes','N','No')) APPL_Y_N
    of the order of the day
    Item_type group, decode (itm_type, 'TYP1', DECODE(APPL_Y_N,'Y','Yes','N','No'))

    But he's considering typ1 as null values.

    Please give me a solution that ignores null values

    Thanks in advance
    NM

    Hello

    Check the below. It will be useful.

    SQL >
    SQL > WITH t AS)
    2 SELECT 2 ITM_ID, 'TYP1' ITM_TYPE, 'Y' APPL_Y_N FROM dual UNION ALL
    3. SELECT 3 ITM_ID, 'TYP1' ITM_TYPE, "n" APPL_Y_N FROM dual UNION ALL
    4. SELECT 1 ITM_ID, 'TYP1' ITM_TYPE, APPL_Y_N NULL FROM dual UNION ALL
    5. SELECT 4 ITM_ID, "TYP2' ITM_TYPE, APPL_Y_N NULL FROM dual UNION ALL
    6. SELECT 5 ITM_ID, "TYP2' ITM_TYPE, APPL_Y_N NULL FROM dual UNION ALL
    7. SELECT 6 ITM_ID, "TYP3' ITM_TYPE, APPL_Y_N NULL FROM dual UNION ALL
    8. SELECT 7 ITM_ID, "TYP3' ITM_TYPE, APPL_Y_N double NULL)
    9 SELECT itm_type,
    10 DECODE (itm_type, 'TYP1', DECODE (appl_y_n, 'Y', 'Yes', "n","no")) appl_y_n,.
    11 COUNT (itm_id)
    12 FROM t
    13 WHERE NOT (itm_type = 'TYP1' AND APPL_Y_N IS NULL)
    14 group of itm_type,
    15 decode (itm_type, 'TYP1', DECODE (APPL_Y_N, 'Y', 'Yes', "n","no"))
    16 ORDER BY itm_type
    17.

    ITM_TYPE APPL_Y_N COUNT (ITM_ID)
    -------- -------- -------------
    TYP1 NO. 1
    TYP1 Yes 1
    TYP2 2
    TYP3 2

    SQL >

    Rgds
    Ameya

  • Ignore the ASO - zero data loads and missing values

    Hello

    There is an option that ignores the zero values & the missing values in the dialog box when loading data in cube ASO interactively via EAS.

    Y at - it an option to specify the same in the MAXL Import data command? I couldn't find a technical reference.

    I have 12 months in the columns in the data flow. At least 1/4 of my data is zeros. Ignoring zeros keeps the size of the cube small and faster.

    We are on 11.1.2.2.

    Appreciate your thoughts.

    Thank you

    Ethan.

    The thing is that it's hidden in the command Alter Database (Aggregate Storage) , when you create the data loading buffer.  If you are not sure what a buffer for loading data, see loading data using pads.

  • MessageLOVInput Field to display values from the LOV

    Hi all

    On my personal page, I have a MessageLOVInput Field and I need to restrict the user to enter the values of text free/junk in it and assign this user to select values only from the LOV (i.e. actual query LOV values) pop-up.

    I tried to find the same kind of questions, but I got this message https://community.oracle.com/thread/606973?start=0 & tstart = 0

    Please provide me the solution in detail

    Thank you

    Afzal

    Hi amal.

    Create a dummy element of value in the form type in your lov plan point create a new card for lov and give the point criteria as the id for your first card for lov and dummy element give posting as 'Yes' to the palette property. so every time that user enters certain undesirable values and try to save it will throw an error message like please enter a valid value

    Ex: LOVMAP1: lovregionitemid:give regionitemid lov

    ReturnItem:Give lov returnitemid

    criteriaitem:give lov criteriaitemid

    useforvalidation:Yes

    LOVMAP2: lovregionitemid:give regionitemid lov (SAME AS first lovmap)

    ReturnItem:Give dummy element point

    criteriaitem: NULL

    ReturnItem:default

    Thank you

    Deb

  • When we try to create a shape with a predefined size above 10 x 10 inches of ps cs6, we get the next value in A message between 0.00 10.00 inches and thumb is necessary.  Close value inserted.

    When we try to create a shape with a predefined size above 10 x 10 inches of ps cs6, we get the next value in A message between 0.00 10.00 inches and thumb is necessary.  Close value inserted.

    You could put in your dimensions in the boxes of fixed size .

    Then just click on you document and move the object slightly before releasing the mouse if you don't get this pop up dialog box to create a Rectangle rounded.

  • Not ignore the values of numbers

    Hello
    I have a column that contains a number stored as text, and I want to do some calculations on this column. So, if I use TO_NUMBER function, but the problem that some values are not really numbers like '4 a' I want to bypass or ignore the calculations on these values.
    Can I do this in SQL without PL/SQL?

    Saad,

    Use REGEXP_SUBSTR(col,'[0-9]+') to extract only the numeric part

  • How to set the value of a field from the LOV of another field.

    I'm trying to figure out how to set the value of a field (P_PROGRAM) to the value of another field of based lov (P_STATE).

    The P_PROGRAM field is a hidden field. The P_STATE field is a required field and is based on a list of values for the State Codes.

    When a user selects the State to P_STATE, the field of the P_PROGRAM should be set to this value, as well.

    I tried different ways to get there via a function call on the post for the calculation of the field P_STATE, defining the source P_PROGRAM to the value of the page item P_STATE put varialbles, creating a process before SENDING, and they all still come back as having a NULL value for P_PROGRAM, therefore impossible to create the file in the db as the PROGRAM is a mandatory field in the table.

    Can you please help? Thank you, Laura

    Laura,

    It is always helpful if you provide information about the Apex version you are using. The Apex 4 you can use Dynamic Actions to achieve this. In earlier versions is possible using processes to submit or javacsripts, as well.

    Heres how you do in 3.x with treatment to submit, to make it work in 4.0 as well.

    1 do the P_STATE ' select list submits the Page.
    2. Add a calculation on the point P_PROGRAM, or write to him assign a value based on a process. The treatment should be OnLoad after the header
    3. If the page does not have an unconditional branch that loops on itself, add a. NOTE: The direction must be the last branch (larger sequence number) and should have checked "Save Session State".

    This is what will happen
    a. when the State is selected Page will be submitted
    (b) it will take the unconditional branch to himself and save the value of P_STATE
    c. the calculation process / fills the value of the P_PROGRAM element when the page reloads

    Kind regards

  • ignore the insert errors in a merge statement?

    Hi all

    I wonder if it is possible, somehow, to ignore the failings of the insert statement in a merge statement of bulk? The error encountered is the violation of a primary key. What is happening is that the different transactions share the same plsql procedure. Therefore, it could happen that different transactions will try to insert two rows with the same primary key.

    MERGE INTO table
    Using the collection
    WE (table.id = collection.id)
    WHEN MATCHED THEN
    UPDATE...
    WHEN NOT MATCHED THEN
    INSERT...-> it may fail for duplicates here

    The only solution would be to use 'updated massive day + bulk insert (ignore errors)' instead of a merger in bulk?

    Any help is very appreciated,
    WF

    What about using [DML Error Logging | http://www.oracle-base.com/articles/10g/DmlErrorLogging_10gR2.php#merge]?

  • How to ignore the validation of the ADF LOV

    Hello

    I have worked in oracle forms and now try to learn the ADF.

    In oracle forms, if we apply LOV to a field, it offers the possibility that we validate this filed of LOV like it or not. If we set ENTER FROM LIST = No., user can select LOV value or it can enter the value manually (and this value can be or not be in LOV).

    Now in JDeveloper 11.1.1.5.0, I have attached a list of input to a values it was filed. Any value I put in the deposited ADF framework, trying to validate of LOV, and does not update the model compared to invalid values. How can we ignore that?

    Infact, I have an obligation if the value does not exist in LOV, I create this value in the object instance on which rests the LOV. In doing so, the value will now be a valid value.

    Published by: student of oracle on 25 May 2011 23:57

    Published by: student of oracle on May 26, 2011 12:02 AM

    Yes, I agree. However, this might give you an idea how to make the scenario using a manual coding

    http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/69-custom-lov-with-BTF-276178.PDF

    Frank

  • Firefox 4 ignoring the property table (< td > < table >)

    I'm working on the upgrade of the https://addons.mozilla.org/en-US/firefox/addon/156940/ for Firefox 4 compatibility extension.

    Essentially extensions improves the site by adding a few query fields that are locked in the format "table > < td > <. There is no problem up to FF 3.6.9. But at 4 FF, it ignores the < td > < table > properties.

    But it works with any questions on the latest versions of chrome and safari

    This is because the code is wrong.

    You're lucky it works in Firefox 3.6, but Firefox 4.0 is more strict.

    You try to add items TD to the innerHTML of an another TD element and it does not work.

    <td id="navSearchBar" class="navSearchBar">Search</td>

    You need to add < table > < / table > around code.

    This code should work:

    			if (lsa[0] == "jp")
    			{
    				searchTxt = "<table><td style=\"font-weight:bold; font-size:13px; padding-right:5px;\"><span style=\"float:left; width:28px;\">" + searchTxt + "</span></td>";
    			}
    			else
    			{
    				searchTxt = "<table><td style=\"font-weight:bold; font-size:13px; padding-right:5px;\">" + searchTxt + "</td>";
    			}
    			if (lsa[0] != "ca")
    			{
    				searchTxt += "<td style=\"padding-left:3px;\"><select id=\"p_76\" name=\"p_76\"><option value=''>Any<option value='1'>Prime<option value='1-'>Free</select></td>";
    			}
    			searchTxt += "<td style=\"padding-left:3px;\"><select id=\"pct-off\" name=\"pct-off\"><option value=''>0-100% <option value='10-'>10% <option value='20-'>20% <option value='30-'>30% <option value='40-'>40% <option value='50-'>50% <option value='60-'>60% <option value='70-'>70% <option value='80-'>80% <option value='90-'>90%</select></td></table>";
    			searchObj.innerHTML = searchTxt;
    

    (corrected the text that got deleted by a previous edition)

  • To ignore the date ranges that overlap

    Hi guys,.

    I have the tables below

    Periods

    START_DATEEND_DATEID
    30-SEP-0513 OCTOBER 051
    12 OCTOBER 0514 NOVEMBER 052
    15 NOVEMBER 0515 DECEMBER 053

    T1

    DAT_COLIDAMOUNT
    11 OCTOBER 05110
    12 OCTOBER 05110
    16 NOVEMBER 05110

    I need to ignore the remaining date range if it overlaps when comparing dat_col from T1 between the dates of beginning and end of periods table. Always need to consider the first periods

    output something like this

    IDID_1START_DATEEND_DATEDAT_COL
    1130-SEP-0513 OCTOBER 0511 OCTOBER 05
    1130-SEP-0513 OCTOBER 0512 OCTOBER 05
    1315 NOVEMBER 0515 DECEMBER 0516 NOVEMBER 05

    I use query

    Select a.id, b.id, b.start_date, b.end_Date, a.DAT_COL from T1 a, (select id, start_date, end_date periods) b

    where a.dat_col between b.start_Date and b.end_Date

    Group of a.id, b.id, b.start_date, b.end_Date, a.dat_col

    order of b.start_date;

    IDID_1START_DATEEND_DATEDAT_COL
    1130-SEP-0513 OCTOBER 0511 OCTOBER 05
    1130-SEP-0513 OCTOBER 0512 OCTOBER 05
    1212 OCTOBER 0514 NOVEMBER 0512 OCTOBER 05
    1315 NOVEMBER 0515 DECEMBER 0516 NOVEMBER 05

    Test case:

    CREATE TABLE 'PERIODS '.

    ("START_DATE" DATE,

    "END_DATE" DATE,

    'ID '.

    ) ;

    Insert into periods (start_date, end_date, ID) values (to_date('30-SEP-05','DD-MON-RR'),to_date('13-OCT-05','DD-MON-RR'),1);

    Insert into periods (start_date, end_date, ID) values (to_date('12-OCT-05','DD-MON-RR'),to_date('14-NOV-05','DD-MON-RR'),2);

    Insert into periods (start_date, end_date, ID) values (to_date('15-NOV-05','DD-MON-RR'),to_date('15-DEC-05','DD-MON-RR'),3);

    Insert into T1 (DAT_COL, ID) values (to_date('11-OCT-05','DD-MON-RR'), 1);

    Insert into T1 (DAT_COL, ID) values (to_date('12-OCT-05','DD-MON-RR'), 1);

    Insert into T1 (DAT_COL, ID) values (to_date('16-NOV-05','DD-MON-RR'), 1);

    CREATE TABLE 'T1 '.

    (DATE OF THE 'DAT_COL',

    'ID '.

    );

    Hello

    If you really want to use something close to what you posted, then you can do it like this:

    WITH got_r_num AS

    (

    SELECT a.id

    b.id AS id_1

    b.start_date

    b.end_date

    a.dat_col

    , ROW_NUMBER () OVER (PARTITION BY a.id, a.dat_col)

    ORDER BY b.start_date, b.end_date

    ) AS r_num

    FROM one t1

    ,         (

    SELECT id, start_date, end_date

    Periods

    ) b

    WHERE a.dat_col BETWEEN b.start_date

    AND b.end_date

    GROUP BY a.id, b.end_date, a.dat_col, b.start_date and b.id

    )

    SELECT id, id_1, start_date, end_date, dat_col

    OF got_r_num

    WHERE r_num = 1

    ORDER BY start_date

    ;

    Note that the WITH clause, that's essentially what you posted in your first post (with the added r_num column) and the main request is essentially the same as in response #1.

    But why would you do something like that?  View online or GROUP BY allows all.  If you remove them, you get the #1 response solution.

  • Ignore the validation of attribute in adf levels

    Hello, I use JDeveloper 12.1.3.

    I have a simple question.

    How to ignore the validation of the attribute levels in the adf, when I pass between tabs?

    I can't use immediate = true, because then I wouldn't be able to commit the changes.

    Thank you all.

    Concerning

    You can try to make the the showRequired = true required = false and carry them out manually, validation in your beans for each of the fields that you want to be mandatory.

    I had a problem similar to yours. I think (and I said) that it is not a good practice for autoSubmit = "true" in many areas. You even not the disadvantage that if you try to change the fields too fast that they be emptied... As well, the view is suspended for a second while submitting. This should be a no-no for forms with several fields.

  • How to disable the LOV values based on the State of some?

    Hello

    I have a requirement like this.

    (1) LOV Field (1), when I get a value here then based on the query I get two new values and assign to another two LOV Fields (2,3) and then disable them. However, when I enter the value in the field LOV (1) based on one of the conditions I won't have no default value then LOV fields must be enabled so that the user can select the values of LOV.

    (2) now an another LOV domain (4) when I go here again, then again two fields a LOV (5), and the free text field must be filled in.

    To do this, I wrote the logic in the following way:

    (1) get the LOV box-1 value and deriving the new values and set the session Variable to 1 and then refresh the Page. Now in PR get the Variable from Session 1 and assigning new values to LOV fields 2 and 3 and then using the property Setdisabled I deactivation.

    (2) getting the value of LOV field-4 and then drifting two new values and set the session Variable-2 and refresh the Page. Now in PR get Session-2, and then set the new values for the LOV-5 field and free text. But once the Page Refreshed and assigning values, values that we have given in the Point 1 in the LOV-2 fields, 3 turn white and field's get activated.

    Can you please let me how to achieve this? and also why the values are empty when I implement Point-2.

    Thank you
    Clarriiza

    Clarriiza,

    This VO have no matter what right SQL query, so even if you run the VO by using vo.executeQuery (), you will not get all the lines in the VO.

    So in the PR you need createRow and insert VO (otherwise your page no mistake) the below blog can be considered as an example.

    Reference: Oracle tips of Johny: OAF: how to create a PVO and use for Spel link in Oracle Application Framework

    On top of which is explained in the blog above, you set the values for the attributes of the useful, likely to set the value for the other LOV.

    I hope this helps.

    See you soon

    AJ

  • Ignore the parenthesis on a case where they wrap a string

    Hello

    This is my first question, I hope I'm doing this right, then I write one. CSV file in a table, and then create a view of this table, taking only some fields in order to write them in another CSV file.

    Here's my problem with a field of view:

    target.JPG

    I want to get rid of the parenthesis, I could not find any definitive method on the net, so I tried to cut the first and the last "()" in the chain using case:

    target.JPG

    I got the following error:

    target2.JPG

    I tried the same logic using case this time test the string length (because 9 would be the longer):

    SELECT THE CHECK BOX

    Length WHEN (a.base_amt) = 9 THEN (select distinct substr (a.base_amt, 2, length (a.base_amt)-1) of CRD_AMT one)

    ON THE OTHER

    (select distinct a.base_amt in crd_amt one)

    END

    OF CRD_AMT one

    I received the same error.

    Now, I know that this is not the best way for all to achieve what I need, I have, I'm sure that there is possibility to ignore the parenthesis, but I couldn't find something that works...

    I hope that you, the experts may have a solution.

    Thank you!!

    Hello

    1623052 wrote:

    Hello

    This is my first question, I hope I'm doing this right, then I write one. CSV file in a table, and then create a view of this table, taking only some fields in order to write them in another CSV file.

    Here's my problem with a field of view:

    Welcome to the forum!

    It's much better to post CREATE TABLE and INSERT statements, so that other people can recreate the problem and test their ideas.

    Check out the Forum FAQ: Re: 2. How can I ask a question on the forums?

    to get tips on how to get the most out of this forum.

    I want to get rid of this bracket,

    The TRANSLATE function provides a simple way to remove all the brackets (or characters you want):

    SELECT TRANSLATE (base_amount

    , 'x()'

    , 'x'

    ) AS new_base_amount

    OF crd_amt;

    The 3rd argument to TRANSLATE is one of the characters that you don't want to delete.  It doesn't matter whether or not it actually occurs in one of the strings.

    The 2nd argument on TRANSLATE begins with the same character and continues with all the characters that you want to delete.

    I could not find any definitive method on the net, so I tried to cut the first and the last "()" in the chain using case:

    I got the following error:

    I tried the same logic using case this time test the string length (because 9 would be the longer):

    SELECT THE CHECK BOX

    Length WHEN (a.base_amt) = 9 THEN (select distinct substr (a.base_amt, 2, length (a.base_amt)-1) of CRD_AMT one)

    ON THE OTHER

    (select distinct a.base_amt in crd_amt one)

    END

    OF CRD_AMT one

    I received the same error.

    Now, I know that this is not the best way for all to achieve what I need, I have, I'm sure that there is possibility to ignore the parenthesis, but I couldn't find something that works...

    I hope that you, the experts may have a solution.

    Thank you!!

    The problem here is that you don't need so many subqueries; in fact, you do not need.  If you want to use the above approach, a good way to do it is:

    SELECT THE CHECK BOX

    WHEN base_amt LIKE "(%)". »

    THEN SUBSTR (base_amt

    2

    , LENGTH (base_amt) - 2

    )

    Of OTHER basd_amt

    END AS new_base_amt

    OF crd_amt;

    However, which removes only the parentheses at the beginning and end of the string, and only when they occur in pairs.  You said you wanted to remove all the brackets.

Maybe you are looking for

  • always restart will allow me to keep my documents?

    If I restart firefox, will be the data saved in the documents and downloads (such as college documents) be saved?

  • How can I delete my question?

    The question on support.mozilla.org can in just edited.

  • How can I get rid of the my search toolbar?

    I am running Windows XP and Firefox 18.0.2 I downloaded programs for connecting wireless to an android phone. Later, I noticed the "My Search" toolbar. I don't want that, didn't demand and can't see a way to get rid of him.

  • Have 2 printers, how to select other than default?

    Hello Our office has two printers, an officejet HP 8600 and a HP officejet 7500 E910. My colleague and I had originally the software driver for the 8600, and are both connected wireless to two printers. To print A3 size paper, we downloaded the drive

  • Noisy dvd ROM

    Very often, when I insert a CD or a DVD on DVD ROM, it produces great sound. Although the display is fine.