Several elements of manipulation based on values LOV

Gentlemen.

need your suggestions.

Location:

a. LOV with 2 values.

2. If the value of lov = A and then disable item1

to enable another item1

3. If the value of lov = B and then disable item2

enable other value item2

the best I could come is to create 2 dynamic actions (one per each value). But it is a little "ugly" and all but scalable - what happens if I have 10 points in the future?

what I want:

It would be nice to have a single DA who would deal with all the values as LOV a. so I have one place to make the change.

Hi AZZ.

It seems that you will have to manage your logic with JavaScript DA type and use JS API functions. apex.item getValue() (pNd), then some if then else block (or maybe even better the Instruction Switch JavaScript) and apex.item (NDP). enable() and. disable() apex.item (NDP).

https://docs.Oracle.com/CD/E37097_01/doc.42/e35127/javascript_api.htm#AEAPI29463

Kind regards

Pavel

Tags: Database

Similar Questions

  • Hide columns in Table B, based on values LOV in another row of the table:

    Hello

    Jdev 12.2.1.0

    I have two tables A and B and I hide columns b based on the value of row of table A LOV. For example, I have a line in A table that has a column with the x, y, z values lov. Now, if I select the row in the table has and change the LOV to x, I had to hide some of the columns in the table (B) is there a way to get this feature? Any help would be appreciated.

    Thank you

    Assume:

    1 table a call "DepartmentId" column this column has LOV.

    B 2-table a column "ColumnInB" this column will be visible depending on the value of "DepartmentId".

    Try to do the following:

    1 - from data controls, drag "DepartmentId" attribute and drop it on the page as inputText then together make this inputText to false (you can remove it, but don't forget the corresponding binding in pageDef. not deleted).

    2. copy the value of the inputText which will be as "#{bindings." DepartmentId.inputValue}"and go to the"ColumnInB"column and visible property beyond the copied value.

    3 - the ColumnInB visible will be the condition as:

    4-set DepartmentId autoSubmit = 'true '.

    5-set table partialTriggers table B has id and id of DepartmentId LOV

  • Checkbox validation based on the selection of the values LOV

    I'm trying to validate a checkbox custom on the opportunity page, based on the selection of the values LOV.

    For example only when the user selects 'rating = A', the box should be able to select and save.

    If the user selects other that 'A' in the field assessment, the box should not save.

    or

    Is it possible to do, the READ ONLY checkbox, enable only when the side 'A' is selected.

    Any thoughts / help on this.

    Thank you, Kumar

    Edited by: user10833334 may 4, 2010 06:43

    There is no function to make a read-only field based on the contents of another field, it is not an option. I will list my thoughts on how you might handle this below.

    -Option 1: I recommend that you use validation to manage it. I don't know exactly to your needs, but you could write a field validation that checks to see if the flag is checked and rating <>has and sends an error message to the user, if it is not. The user would not be able to save the file until it Unchecks the box or sets the side = A.
    Advantages: User gets a message explaining the problem with the data and is forced to fix it before you save it.
    Cons: Requires interaction from the user to save and if they do not pay attention, the data may be lost if they cancelled without saving the changes.

    -Option 2: Another option would be to use the workflow to validate the registration. In this scenario, you can create a workflow that determines whether the field is out of adjustment, and if it is not correctly set, the workflow would update the box accordingly. In this scenario, you would use the 'Actions if Condition is False' also to inform the user that the flag cannot be controlled unless the side =. Then, you must set the Action "Update the values" update the uncontrolled field.
    Pros: Manages the work without user interaction.
    Cons: The con in this case, is that there is no workflow 'Before NEW record saved' trigger, so it is likely that the user sets the value incorrectly when creating the folder and it would stay like that until they update the record again.

    Some people might argue that there is another option that uses the functionality of dynamic page layout to make the field read-only, but this isn't a good option. You would need to convert using the Type of the opportunity in a way that would make use of the possibilities of lourdes for your users and I mention it only to you recommend to avoid his review completely.

    Good luck and let me know if you have any questions.
    Thom

  • Impossible to reset values LOV

    Hello

    I have a jsff page. I have LOV dependent as below

    JDEV version: 11.1.1.5.0

    LOV_A
    LOV_B
    LOV_C
    LOV_D
    LOV_E

    LOV_B depends on LOV_A
    LOV_C, LOV_D depend on LOV_B
    LOV_E depends on LOV_D

    LOV are working properly and to submit, the main Main_VO which holds these LOV is < B > application < /B > VO not based on entities.

    < b > < /b > problem: impossible to reset values LOV selected

    < b > approaches followed up here < /b >:
    1 ResetButton

    2 CommandButton control with < af:resetActionListener / > and immediate = "true" >

    3. at the bean, I tried to update the Main_VO with the code below
    currentRow.refresh (currentRow.REFRESH_UNDO_CHANGES); Here the line current is slected line in the user interface
    Fortunately this resets the values of all the drop downs, unfortunately LOV contains previously triggered lists and even addiction is lost

    4. I changed the LOV_A value attribute like below as suggested by Frank in a thread

    < af:selectOneChoice < b > value = "#{backingBeanScope.AddEventOnOrderReleases.BindVariable}"< /b > "
    label = "#{bindings." BsResponsiblePartyGid1.label}.
    required = "#{bindings." BsResponsiblePartyGid1.hints.mandatory}.
    shortDesc = "#{bindings." BsResponsiblePartyGid1.hints.tooltip}.
    ID = "soc2" autoSubmit = "true" rendered = 'true '.
    Binding = "#{AddEventOnOrderReleases.BindVariable} '"
    valueChangeListener = "#{AddEventOnOrderReleases.selectBSResponsiblePartyGId}" >
    < f: selectItems value = "#{bindings." BsResponsiblePartyGid1.items}.
    ID = "si2" / >
    < / af:selectOneChoice >

    This change, I see a conversion error cannot convert < b > Integer < /b > < b > RichSelectOneChoice < /b >

    In this regard, any help is appreciated.

    Thank you
    Agnes.

    To reset a lov you must rest value the lov stores selection too.
    Check out my blog http://wp.me/pcBZk-sA

    Timo

  • How can I fill the records using the value LOV

    Create a form based on the use of the following output Table EMP

    Create a database block IE control-> Dept No. block


    Create a database block - EMP
    Create a LOV to the Dept not according to the dept table.
    For the current No. Dept. Complete records of the employees

    How can I fill the records using the value LOV?


    Thank you

    Hello

    Create trigger KEY-LISTVAL for control_block.dept_no with code similar to the following:

    IF SHOW_LOV ('LOV_NAME') THEN
            SET_BLOCK_PROPERTY ('EMP_BLOCK', DEFAULT_WHERE, 'DEPT_NO = ' || :CONTROL_BLOCK.DEPT_NO);
         GO_BLOCK ('EMP_BLOCK');
         EXECUTE_QUERY;
    END IF;
    

    Hope this helps

    Best regards

    Arif Khadas

  • How can I multiply all values of an array of 4 elements, with all its opposite values, resulting in an array with all 16 products?

    I'm quite new to LabVIEW (v.8.0) and I'm trying to understand the best way to have a table of 4 elements multiplied by its inverse values, resulting in an array of 16 elements

    Values of table 1 = 1, 2, 3, 4

    Values of table 1 reverse = 0.5, 0.33, 0.25, 1

    Resulting table = (0.33 0.25, 0.5, 1, 2, 1, 0.66, 0.5, 0.75, 1, 1.5, 3, 1.32, 4, 2, 1)

    Any advice would be appreciated. Thank you!

    You can try something like the following (the last operation is "reshaping table")

  • Default values LOV

    Hi all

    I am facing a problem while lacking the LOV.

    Requirement:

    He had to default values LOV PR

    Details:

    I LOV 2. Second lov will be activated after aftering the value and the tabs on the first LOV.  (If we enter the value in first LOV and tabs resources, the second torch LOV will be enabled.) -are lov.

    Question:

    I put the value and the id of the first lov in PR, but the second the LOV is not activated.

    I used

    row.setTaxId (123);

    row.setTaxNumber (123456);

    These values are enabled. but dependent on LOV is not activated...

    Please help me...

    Thank you

    LSP

    So, now you can restore or enable.

    Bean.setrendered (true); -for rendering on a page.

    Bean.setdisabled (false) - to enable a field. -You can use it.

  • Dynamic report query table based on selected LOV

    Hello

    Need some suggestions and Tips how to query dynamically table via lov to report.

    Scenario:

    Table, TABLE_LIST, a tablename (table in DB) and filter (for where clause) column. The TABLENAME_LOVE is derived from the table TABLE_LIST.
    D SELECT TABLENAME TABLENAME TABLE_LIST R


    On Page 2, a select list item, page P2_TABLENAME use TABLENAME_LOV
    All data tables in the table_list has an identical structure (columns, triggers, primary key and so on).

    I want to have the query area of the report of the table based on selected LOV.

    Example,

    TableName Filter
    WBR
    CD2 ACTIVE = 'Y '.

    When select TB1, regin report ask TB1 on the base.
    When select CD2, will interview the report based on CD2 regin WHERE ACTIVE = 'Y '.


    Question:
    How can I query function & P2_TABLENAME. WHERE & P2_FILTER.
    As
    Select col1, col2 from P2_TABLENAME WHERE & P2FILTER

    Appreciate any suggestions and tips.

    Tigerwapa

    Hello
    You should always put your version of the Apex, version of DB and such other information as suggested in the FAQ.
    And now wherever you are referring to report, you need to answer if it's IR or classic.

    Regarding your query, have you explored the kind of statement "SQL Query (body of function from PL/SQL returning SQL query)"?
    This could be a good target for what you're trying to reach.

    Kind regards

  • problem with list of value (LOV) in the BI Publisher.

    I've created a report in the BI publisher with two parameters (level, accnum) and two list of value (LOV) for the menu to select from a drop-down list.
    While crateing the settings I selected options: * 1) can select all and any value passed *.
    but in the view when I select the option "ALL" in the list, its shows the following error message:
    ORA-00933: SQL not correctly completed command.

    But if I select a particular level and accnum is fine worikg.

    I used the following query in the dataset;

    Select ACCOUNT. ACCOUNT_NUM as ACCOUNT_NUM,
    ACCOUNT. LAST_BILL_DTM as LAST_BILL_DTM,
    ACCOUNT. Account_name as ACCOUNT_NAME,
    ACCOUNTATTRIBUTES. DISTRICT_ID as DISTRICT_ID,
    ACCOUNTATTRIBUTES. TIER as the LEVEL of
    of GEN_OWNER. ACCOUNTATTRIBUTES ACCOUNTATTRIBUTES,
    GEN_OWNER. ACCOUNT ACCOUNT
    where to REPRESENT them. ACCOUNT_NUM = ACCOUNTATTRIBUTES. ACCOUNT_NUM
    and ACCOUNTATTRIBUTES. LEVEL =: level
    and ACCOUNTATTRIBUTES. ACCOUNT_NUM =: accnum
    and ACCOUNTATTRIBUTES.ACCOUNT_NUM in (:accnum)
    

    use in the clause

  • Element of change based on the value in LOV

    I'm trying to disable the item (text box), based on the value of the LOV. And it doesn't seem to work.

    Is it possible to see what is happening in the level of the events? The LOV is perhaps not "changing" ing?

    Dynamically change the item values

    Patrick Wolf-Oracle responded to the question - get the firebug.

    Looking at the console I discovered that the returned of LOV value includes spaces. Resolved issues.

  • You will need to change based on values in another article LOV...

    Hi all

    I got a mudbrick THAT LOV based on a value in another column. Let me explain... Assume that A value in the column is A1 then column B should show A11, A12, A13 and if column A is the value C cloumn B should show C11, C12... etc. The LOV will be static with some pre defined values. So all the LOVs will be defined in the forms. We just need to show based on the value in column A.

    Please suggest.

    Thank you.

    Published by: Amit1cs on April 18, 2013 19:40

    Amit1cs wrote:
    Hi all

    I got a mudbrick THAT LOV based on a value in another column. Let me explain... Assume that A value in the column is A1 then column B should show A11, A12, A13 and if column A is the value C cloumn B should show C11, C12... etc. The LOV will be static with some pre defined values. So all the LOVs will be defined in the forms. We just need to show based on the value in column A.

    Please suggest.

    Hello Amit,
    Up to now, I understand, you can create several record group for a single LOV. before you display the lov just to change or assign the appropriate record group. You can use pre-text-element column B trigger and set the record group to your LOV.

    Hope this helps

    Hamid

  • How to dynamically change values lov to an article based on the button

    Hello

    How to dynamically change the value list of an article based on the button create and apply the changes

    I have the column type of transaction that lov with values as inward, BACK inward outward, outward in the form based on the table...

    in design mode

    I need list to the OUTSIDE inward, in the type of transaction oly column...

    in update mode

    I need the list of BACK inward, BACK outwards in the type of transaction oly column...

    Kind regards

    Pavan

    Maybe something like that for a dynamic LOV

    select label d, label r from
      select 'inward' label  , 'create' chk from dual union all
      select 'outward'       , 'create'     from dual union all
      select 'inward return' , 'update'     from dual union all
      select 'outward return', 'update'     from dual
    )
    where (:P1_ID is null     and chk = 'create')
    or    (:P1_ID is not null and chk = 'update')
    
  • How can I get the value of the element checked a box to tick LOV?

    Hi all

    I need to insert rows into a table when a checkbox element is checked.
    The checkbox element is a LOV in a form.
    -----------------------
    Select the DESCRIPCIÓN display_value, ID_DOCUMENTO return_value
    of DOCUMENT
    order by 1
    ------------------------------

    Source
    ------------------------------
    DECLARE
    CURSOR C_REG_DOC IS SELECT ID_DOCUMENTO FROM REGISTRO_DOCUMENTO WHERE ID_REGISTRO =: P6_ID_REGISTRO;
    v_id_documento documento.id_documento%TYPE;
    v_results VARCHAR2 (50);
    Boolean v_first_loop: = true;
    BEGIN
    for this loop C_REG_DOC
    If v_first_loop then
    v_results: = it.ID_DOCUMENTO;
    v_first_loop: = false;
    on the other
    v_results: = v_results |': ' | it.ID_DOCUMENTO;
    end if;
    end loop;
    Return v_results;
    END;
    --------------------------

    I need to create a process to insert rows in a relational table, but I do not know how...
    ------------------
    FOR *? *
    LOOP
    INSERT INTO registro_documento (id_reg_documento, id_registro, id_documento)
    VALUES(null,:P4_ID_REGISTRO,???);
    END LOOP;
    ---------------

    How can I get the value of the active element (id_documento) to insert it?

    Thank you!

    Alex

    Hello:

    You can use the apex_util.string_to_table function to retrieve the values of the LOV as shown in the example

    declare
    arr wwv_flow_global.vc_arr2;
    begin
    arr:= apex_util.string_to_table(:P_CHECKBOX_LOV_ITEM)
    for x in arr.first..arr.last loop
    // insert statement
    iNSERT INTO registro_documento( arr(i) ,.........id_reg_documento,id_registro,id_documento)
    end loop;
    end;
    

    CITY

  • Inifile several elements with the same name

    Hello

    I have a file of similar to an ini file setting. I can read with the toolslib inifile.

    A [SPLINE] section has a lot of variable, number, lines all begin with DATA =. The line of these data is read as a string. The content is 3 values as input for a spline interpolation.

    Inifile labwindows Analyzer can read that and he can write it. The number of elements in the section [SPLINE] equals the number of rows of DATA. When he writes, he recreates [SPLINE] section with several items that all as DATA begin =.

    Now I want to read later, each of these DATA items, retrieve the values of three and put them in some tables.

    The ini_get('sendmail_from') functions have as input a sectionname and an itemname. So when I use Ini_GetPointerToString, I always get the first occurrence of this itemname or always the first line.

    How can I get the second and third... String?

    Kind regards, Jos

    I'm using Labwindows CVI 8.0 for Windows

    I use the inifile toolslib\toolbox Analyzer

    Ini_WriteToFile data looks like:

    [ENGINE]
    MOTORNUMBER = 4
    REQUEST = 0 - 25.0 28.0 0.000 1.0 0.0 0.0
    WAVELENGTH = 41 45,000 0.000 0.000 1.0 0.01 1.0
    BANDWIDTH = 42 - 20, 000-25,000 - 24.960 1.0 1.0 0.01
    NAMES = 43 - 6.0 95.0 0.000 1.0 2.0 0.3

    [SPLINE]
    DATA = 240,3, 0.006,-42,0; Zemax * /.
    DATA = 253,7, 5.034,-42.85; High performance Hg100 spectraal lamp * /.
    DATA = 280.4, 12.396,-44.7. High performance Hg100 spectraal lamp * /.
    DATA = 296,8, 15.761,-45.1. High performance Hg100 spectraal lamp * /.
    DATA = 334.2, 21.389,-47.2; High performance Hg100 spectraal lamp * /.
    DATA = 404.7, 27.680,-50.4; High performance Hg100 spectraal lamp * /.

    Hello

    Thanks to you two.

    Because the ini library has been able to export the complete set of data, including multiple DATA key, I had little hope that there is an easy way to use this library. Your comments, it is not useful to look for a work around.

    In the meantime, I found an another iniparser (http://ndevilla.free.fr/iniparser/). It doesn't "support" no double keys, but I can probably it adapt for my application. If not, I'll take a few excerpts from the library labwindows and this second example and have to build my own.

    Kind regards, Jos

  • Master the detailed report, complete the columns based on selection LOV

    Hello

    When creating a master form / retail, I chose "Edit in detail in tables on the same page."  The form has a "report of the region" to select the list of employees.

    The EMPNO column is filled with "Popup LOV (named LOV)".  It works very well.

    My requirement is, after selecting an employee, I want other retail JOBS & SAL table fields to be populated with the information of the employee for selected EMP table and must be posted immediately.  Is this possible to do?  If not, what other solution available to achieve the same functionality?

    I tried this in Oracle.

    workspace: test_ws_anand

    user: anandgp

    password: cable123

    Watch ""list of skills "on the main menu. "

    Thank you

    -Anand

    Hi Anand,

    On the change of employee (employee selection) call Ajax via javascript and set the returned salary and job field.

    Here you have two values to return: wages and employment, you can generate json and parse the json in javascript and set the values for the specific field...

    Please see the sample code below

    Step 1: Create the Ajax application process

    Please check Procces Ajax, see line 7 How to assign a value to the variable sent by ajax call

    Declare
        L_JSON_STR varchar2(4000) := null;
        P_SAL number ;
        P_JOB varchar2(50);
        lc_emp_no VARCHAR2(20);
        Begin
        lc_emp_no := WWV_FLOW.G_X01;
        -- code to fetch the salary and commission into p_sal and p_job variable based on selected employee;
          SELECT sal
              , job
            INTO p_sal
              , p_job
            FROM emp
          WHERE empno = lc_emp_no; 
    
        -- build a JSON string to return
          L_JSON_STR := '{
                          "SAL": "'||P_SAL||'",
                          "JOB": "'||P_JOB||'"
                        }'; 
    
          SYS.HTP.P(L_JSON_STR);
        End;
    

    Step 2: Create the javascript function

    First, you must extract the rowid for which you want to define the work and wages, see line 6, 7, and 8

    
    
    Step 3 : from selection of employee call the function
    onchange="javascript:f_fetch_emp_dtls(this);"
    

    Hope this helps you,

    Kind regards

    Jitendra

Maybe you are looking for

  • Could not find a way to Exchange my old pre 29 recovery key.

    I have a recovery key. There is no option to add one device other than a new one with nothing on it.This update seems to have removed features and my years of bookmarks value apparently thrown out the window with the 'new' sync system. It's quite fru

  • Hi guys I uninstalled games which are pre installed in lenovo a6000

    Hi guys,. Please help me with these, is there anything that I can return my pre installed apps back. I uninstalled some games to lenovo a6000 and I have not rooted my phone and I have no backup for those. In this case can we recover those. If so can

  • iMac with bootcamp only starts 10 W

    I used Bootcamp to install W 10 on my iMac (El Capitan, 2012) It worked correctly, although I didn't see the icon in the bar of sys Windows Bootcamp. Until recently, I could change the OS by pressing the 'Option' key at the start of the IMac. But kno

  • problem with wireless pavilion 14-V041TX

    Hello I just buy Pavilion 14-V041TX and using windows 7 ultimate 64-bit.but I have problem with detecting all wify.I already install all drivers from the HP site for windows 7 64 bit and always show "no connection are available. In the Device Manager

  • KB2804577 continues to move

    This update is installed four times this AM. After installing, a few minutes later, he wants to install it again (automatic updates). In Add/Remove Programs, it shows installed. I deleted and leave updates automatic to install again but same problem.