How to disable a wrt value LOV in an another LOV?

I have a javascript function which works fine if P2_BANK_ASSIGNED is a text element. But if I change it to a LOV is does not work. How can I disable a LOV on the value of another LOV?

<!--===================================================================-->
<!-FUNCTION DISABLE LOV COMMITTED LOV <>- 0 test BANK >
<!--===================================================================-->

< script type = "text/javascript" >
function disBankAssigned() {}
var lReturn = $x('P2_TRIAL').value;
If (lReturn == 0) {}
$x('P2_BANK_ASSIGNED').readOnly = false;
}
else {}
$x('P2_BANK_ASSIGNED').readOnly = true;
}
}
< /script >

OnChange = "disBankAssigned (); »

concerning
Paul P

Try $x('P2_BANK_ASSIGNED').disabled = true;     (or false)

Tags: Database

Similar Questions

  • How to choose the item value list based on another value of list item

    Hello friends,
    I have two list items named xxx and yyy... OK, my problem is I want to choose a value of yyy list item based on the value of article xxx...

    Example: I select 'Computer' in xxx... Based on this I want to choose the item values in yyy as a monitor, keyboard, mouse, etc... This must be done at run time. How can I do this... Give me a few examples of code [pls tell me trigger appropriate to place this encodings]
    Thanks in advance,
    Battistelli

    Very simple to use the LOV and query of the lov which is attached to the YYY field, use the query as below...

    SELECT columns
    FROM table
    WHERE column_name = :XXX_FIELD
    

    Use the ENTER OF LIST Yes property for the YYY field.

    -Clément

  • How to disable apple git and replace it with another?

    Hello forum,.

    I'm new to OSX, and I need to use git. and also, due to security risks, I have to avoid to save my password for the account of git on local computer

    Of course under windows and linux, there is no problem. but under OSX, I could never imagine that it may be more difficult that way.

    the git command that provided the default is 'apple-modified version of git.

    and it STORES GIT BY DEFAULT KEYCHAIN PASSWORD WITHOUT ANY REQUEST of PERMISSION OR INTERACTION.

    I do not understand why apple did, but anyway, there at - there no guide for DISABLE the PRESENT?

    Thank you.

    Hello yujin.kwon,

    Which is not really a security risk. The keychain is encrypted. I never did, so I can't offer specific advice. All that I can do is point you to this StackOverflow question: http://stackoverflow.com/questions/16052602/disable-git-credential-osxkeychain

  • How to disable a button when you click on another and vice versa in busy border?

    Hi guys!

    I have a question about the buttons!

    I'm not an expert in coding, but I managed to create buttons with actions, but the question is how do I deactivate (deselect) a button by clicking on another and how to activate it when clicking on it?

    I would really appreciate your help!

    Thank you!

    composition of loan:

    button_1 = 0;

    button_2 = 0;

    in the click event of button 1

    If (button_1 == 0)
    {
    button_1 = 1;
    sym.getSymbol("button_1").play (0);  play anything, this button is

    If (button_2 == 1)
    {
    sym.getSymbol("button_2").playReverse ();   Reset everything that made the other button
    button_2 = 0;
    }
    }

    in the click event of button 2

    If (button_2 == 0)
    {
    button_2 = 1;
    sym.getSymbol("button_2").play (0);  play anything, this button is

    If (button_1 == 1)
    {
    sym.getSymbol("button_1").playReverse ();   Reset everything that made the other button
    button_1 = 0;
    }
    }

  • How to disable the menu using JS?

    Hello.

    I have add menu with the help of JS.

    I want to disable an added menu item.

    But the active menu option is read only.

    App.menus.Item("$ID/main"). Submenus.Item ("MyTestMenu").menuItems.item ("My Menu Item 2"). enabled = false;

    How to disable the menu value?

    Thank you.

    Hi K159,.

    It's only the ScriptMenuAction.enabled property is rewritable. This prevents the script layer interfere with regular InDesign menu items.

    So, in light of your custom object of MenuItem (myMenuItem), his associatedMenuAction should refer to a ScriptMenuAction which can be turned off:

    myMenuItem.associatedMenuAction.enabled = false;

    This translates by disabling the menu option as well.

    @+

    Marc

  • How to disable the stolen computer program?

    Our InDesign program has been enabled on a computer that was stolen.  How to disable so it can be activated on another computer, we have?

    If it is a subscription, change your Adobe ID immediately. Now activate it on two computers. That deprives the other computer to this one.

    If it is a purchase, it is not so simple, maybe, they have stolen your right to use the software. Contact Adobe to see if they are ready to release him. Since they cannot block the stolen copy, they give you that here, indeed. It would be one of your insurers.

  • 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

  • How to disable Lov when the value of the attribute is NULL at the level line

    Hi all

    JDev 11.1.1.5.0

    I have a view as a table ADF jsff page object. Value of the attribute in a row may have null values.
    And I want that Lov must be disabled when the value of the attribute in the row is null or not.
    So please suggest me how can I implement this.

    Kind regards
    Marie-Claude

    Set to the disabled for LOV attribute property

    disabled="#{bindings.YourAttribute.inputValue eq null}
    {code}                                                                                                                                                                                                                                        
    
  • Reg: How to restrict the values LOV

    Hi all

    I use JDev11.1.2.3.0

    My requirement is I < af:inputComboboxListOfValues id = "iclov1" > in which I have 100 values.here I have to show only 10 values on LOV users.if user longer wish to certain values it can use search that.so how can I restrict only values and how to show than 10 numeric values on that.can someone help me please.

    Thank you

    G.Shilpa

    Shilpa, you can change the indications of the UI lov to drop-down list here you can get query limit 10 set so you can get the 10 records in the lov... u can follow this link, you can get an idea

    .. https://blogs.Oracle.com/ADFProgrammers/entry/restrict_the_number_of_items

  • 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 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 to change the default value of a parameter and LOV attached to a parameter

    Hi all

    I'm new to the discoverer reports and I need the following tasks:
    1. the need to change the SQL of a discoverer report
    2. need to change the default value of the parameter (from constant for the current month). In the discoverer more responsibility when I open the report and go to tools > > setting > > edit
    I can see the value of the default constant is given. On the right side there is a drop down that says "Value". I suppose that if I put a SQL as default, I need to change the drop-down list for sql or something and then put the code SQL. Problem is the menu drop-down is froezen and I can't change it.
    Even if I try to create a new report parameter.
    3 need to change the LOV associated with the element on which is based the setting.


    I have the discoverer more responsibility to myself and did not have the discoverer administrator (as forms 6i developer desktop tool) tool. My questions are:
    1. can I modify the SQL query using discoverer and responsibility or do I discoverer Administrator tool?
    2. any help on how to get the default value of an SQL query? Currently, it is a constant value.
    3. is there a way to understand is that the LOV is made of the constant values fixed (as a set of values independednt) or they are read in a SQL (value valid table sets)?

    Solutions pointers will be greatly appreciated!
    Thanks in advance.

    Thank you and best regards,
    Shashank

    It is not possible to use a default calculation for a paraeter

  • 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

  • How to disable a page based on the value of another element on the Page element?

    Hello

    How can I turn a page element using javascript based on the value of another element on the page?

    Eg: P1_TEXT want to be disabled if the value in P1_LCOK = "LOCK".

    How can I do this using javascript. I want this implemt on loading the page.

    Kind regards
    Benz

    Put this function in the page header:

    
    

    and call it in the footer:

    f_disable_item;
    

    Denes Kubicek
    ------------------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    ------------------------------------------------------------------------------

  • How to disable the LOV Popup button in a list manager

    I would like to disable or hide the LOV of Popup button in a list manager. The small button LOV Popup that appears before the buttons Add and Remove. Our users want to paste the text into the search and box only use the Add and Remove buttons.

    I use APEX 4.0.2.00.07 and theme 10 - sand.

    Thanks in advance for any help.
    DP

    Try this one:

    
    

    Or send me the HTML source of the page to mgoricki8 (at) gmail. com

    BR,
    Marko

Maybe you are looking for

  • Encrypted backup, no password

    Hi everyone, hoping you can help me... iPhone 6s was damaged and fell into the water.  Screen completely black, but still able to answer calls by hitting swiping and using earphones.  If anything. We have arranged for a replacement by Telstra Stay Co

  • How can I get rid of hyperlinks

    words like 'schools' "auction" etc. are related to an announcement. How can I stop this?

  • Pavillion DV4: Does not increase the level of battery

    Laptop is connected however increases the level of the battery, even when the laptop is turned off. I already tried a new battery and a different charger, I already tried to uninstall and update the drivers of battery, bios update, update Windows 7 a

  • MP3 player

    I have a disc flash usb mp3 player if I buy an itunes card can I load music on it?

  • Photo balloon with mouse over.

    Hello I'm sure this has been answered before, but after a long search, I have exactly what I'm looking for, so that's. I want to have an image pop up when a user "hovers mouse over" a command or the indicator on a façade for a time. I am a beginner @