How to disable an LOV wrt value in another LOV?

I have a javascript function that works fine if P2_BANK_ASSIGNED is a text item. But if I change it to an LOV is doesn't work. How do I disable an LOV on value of another LOV?
<!--===================================================================-->
<!--FUNCTION TO DISABLE LOV BANK ASSIGNED IF LOV TRIAL IS <> 0 -->
<!--===================================================================-->
<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();"
regards
Paul P

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

Similar Messages

  • How to retrieve a page item value in another page?

    Hi,
    how to retrieve a page item value in another page?
    say P55_COURSES_TO_EVALUATE is my page item name and it is a select list.Based on the value selected,in the next page i shd show details related to the selected value and for this i need P55_COURSES_TO_EVALUATE value in the next page.How Do I get it?When I try to retrieve the values it simply returns nothing.
    Any pointers would be really helpful.
    Thanks in advance.

    Hi,
    Could you please tell how you try use it ?
    If you set value to item P55_COURSES_TO_EVALUATE and submit page, value is saved to session state.
    Then you can use that item in any page like
    :P55_COURSES_TO_EVALUATEYou can not access page value in javascript/jQuery from other pages like
    $v('P55_COURSES_TO_EVALUATE')
    document.getElementbyID('P55_COURSES_TO_EVALUATE')
    $(#P55_COURSES_TO_EVALUATE)Because item is not in other pages. In javascript from other pages you can use
    var a = '&P55_COURSES_TO_EVALUATE.';Regards,
    Jari

  • How to copy one column BLOB value into another column of another database.

    How to copy one column BLOB value into another column of another database.
    BLOB value contains word document.
    I thought of copy the BLOB value into a text file and then update the new column value by the same text in textfile. Will this work?
    Is there any other better way to do this?

    You're welcome
    BLOB fields contains binary data. I don't think you can do this
    Also if I view the BLOB as text. Can I copy it and insert into the new database.
    I think your options are as I said. Datapump or CTAS
    Best Regards

  • Settin' default value of a lov depending on the value of another lov

    hi all,
    here is my problem:
    I got two combobox item in my form;
    the first one is customer_id,
    the second one is seller_id,
    what i wanna do is:
    when selecting one customer_id, i want to set the value of the seller_id to the one associated with this customer, and give the enduser to change this value;
    i'm tryin' to do so with bind variables but it doesn't work!
    any help.;
    thanks in advance

    Hi,
    ok got your requirement clear ,see what all you have to
    First of I make clear that by frame what I ment was that when you are in the design phase of the
    and you are in the section of "formating " ,there you have 2 frames which are basically not visible as frames,
    so just forget about that.
    I have implemented the same thing in the emp table intead of your
    your customer_id and the supplier_id.
    I'm assuming that you will be having just one record in the second LOV corresponding to the
    first LOV.
    What I've done is that I have made an entry in the scott.emp table with deptno 40 so that
    for deptno 40 I have just 1 entry ,to simulate your case.
    Note:
    Customer_id type is combobox the lov is LOV_CUSTUMER (this will be equivalent to my DEPT_NO LOV)
    seller_id type is combobox too, the lov is LOV_SELLER (this will be equivalent to my EMPNO_NO LOV)
    1)My driving LOV is in deptno field.
    2)I have the driven LOV in empno field.
    3)Now when I select Operation dept (dept no 40),I get the selected value in the LOV (empno)
    and also rest of the empnos.
    This is how you can achieve the functionality as said by you.
    1)In your second LOV write some thing similar.
    select ENAME, EMPNO from SCOTT.EMP where deptno = :deptno
    union
    select ENAME, EMPNO from SCOTT.EMP where deptno != :deptno
    this is to ensure that you get all the values and at the same time
    are able to use the binding of the second LOV.
    2)In the before display section write something similar.
    declare
    l_empNo varchar2(3000);
    l_deptNo number(4);
    begin
    -- This deptno shows what you selected from the first LOV.
    l_deptNo := p_session.get_value_as_NUMBER(
    p_block_name => 'DEFAULT',
    p_attribute_name => 'A_DEPTNO',
    p_index => 1);
    --just check  wheather it returned something,at the time of loading it will not return anything,so simply
    --return in that case without doing anything.
    if(l_deptNo is null) then
    return;
    else
    --This query basically fetches the value for your second LOV.
    select empno into l_empNo from scott.emp where deptno = l_deptNo;
    --set the value for the second LOV in the session.
    p_session.set_value(
    p_block_name => 'DEFAULT',
    p_attribute_name => 'A_EMPNO',
    p_value => to_number(l_empNo));
    end if;
    end;
    please try to understand the relationship in my scenario and your scenario.
    Hope this helps.
    rahul

  • Change LOV of column in view, based on values of another LOV of column in the same view

    Hi,
    I am using Jdeveloper 11.1.1.5.
    I have a scenario in which I have two columns in the view. column names are:
    1- Column A
    2- Column B
                        both the columns have LOV's
    LOV in column A contains values as: 1, 2. Now, when I select the value 1 in column A, In the column B, an LOV named ABC should be shown. and when I select value 2 from LOV in column A,  LOV named XYZ should be shown in column B.
    how can I do that?
    thanks in advance (^.^).

    Use onchange attribute of the first drop-down. On change, submit the form. On server side, fetch the values for second drop-down based on the value selected for the first drop-down.

  • Change Value in one LOV depending on value in another LOV

    hi forum.
    i have two Lov's. The first has continents and second has countries. my design is when user select continent, related countries should show up. now i can do that when i submit on the change of continent LOV very easily but, i dont want to refresh or reload the page as some other functions are disturbed by this, i want the countries values to change with out page being reloaded. please let me know how can i do it. i m a dumb ass so answers like "use dynamic action" or "user java script" are no different than ancient Greek to me. so plz reply elaborately as a matter of compassion.
    thanks in advance.

    Hi
    Can u pls try like this,
    Two Lov's Namely P1_Continent and P1_Country
    In the second Lov P1_country Please refer Cascading LOV Parent Item(s)="P1_continent" and make Optimal refresh as yes.
    and are using the select statement for second lov like this
    Select country from table_name where continent=:P1_country.
    Can pls make change in the List lov ie P1_continent Null Display Value=- select Continent-.
    Hopes this might you.
    Thanks & Regards
    Srikkanth.M

  • How to assign One Dimension Property value to another Dimension ID

    Business senario:
    There are two dimensions Entity and Plant. Plant also has a property Entity.
    In my Input Form, I need to derive Entity Property based on PLANT selection and should map it to ENTITY Dimension.
    I have selected PLANT Dimension and ENTITY Dimension in Page Axis. I have updated EPMOLAPMember() formula with EPMMemberProperty() for deriving Entity values. When I tried to save data an error message appears saying TOT_Code is not a base level member. So I checked Edit Report window and found that ENTITY Dimension is automatically moved to default left panel from Row Axis and Entity Dimension Context Menu is mapped to TOT_Code which is the top node of the total hierarchy.
    I tried EPMMemberOverride() function to overwrite ENTITY Dimension values with Entity Property of PLANT Dimension but unable to overwrite it.
    In Simple Words:
    ENTITY Dimension = PLANT Dimension (Entity Property)
    Is there any way to map/assign property value to another dimension??? Please help me.
    Thanks in advance.

    Hi,
    see please this thread for a possible solution http://scn.sap.com/thread/3230754
    Regards
         Roberto

  • How to disable or change the value of h:commandlink jsf component

    Hi,
    I am a student. I am using h:commandlink. I need to change the value of the component once it is clicked by the user. How do i do that?
    If i cannot change the displayed value of the commandlink. I am thinking of atleast disabling the link once the user clicked., to avoid the link being clicked more than once by the user.
    <h:commandlink id = "follow" action = "usermanager.followdoctor" value = "Follow"/>
    Usermanager is my managed bean class for this jsp page. The value "Follow" is the one that i want to be changed to "following" once it is clicked. Please help me. Thanks for your time in advance.

    Hello qimbal2,
    Thanks for getting back to me. you are right , i should disable the link as soon as it is clicked. I went ahead and implemented this logic by using a property in my bean class and binding that property to the value of my link. I wrote the logic in my action method in such a way that when i click on follow for the first time, the value of the link would change to 'Following' and the link would be disabled. It works for me now.
    Thanks,
    Suha

  • Validate from list, do not open lov if value already in lov

    Hi,
    I have an item and want to validate value from Lov because do not need a code in w-v-i trigger. i set property validate from list for the item to yes but when executing the lov opened even if i entered a value which already exists in lov. i thought that validate from list to yes triggers the list only if value do not exist in the list. i do not want list to open if value already exists in the list. Can someone help me with this? Thanks for your ideas.
    Edited by: Tabit7 on 2011-04-08 23:24
    Edited by: Tabit7 on 2011-04-08 23:24

    It only opens the Lov when the value not not unique, e.g. you have two equal entries in the lov. Also be aware that the validation is done against the first visible item in the lov.

  • How to show Min and Max values when another value "changes to a new value"

    Hi
    If I have this data (generated with this query: SELECT 1 A, 1 B UNION ALL SELECT 2, 1 UNION ALL SELECT 3, 2 UNION ALL SELECT 4, 2 UNION ALL SELECT 5, 1)
    A B
    1 1
    2 1
    3 2
    4 2
    5 1
    How can I generate this data (created with this query SELECT 1 Amin, 2 Amax, 1 B UNION ALL SELECT 3, 4, 2 UNION ALL SELECT 5, 5, 1)
    Amin Amax B
    1 2 1
    3 4 2
    5 5 1
    Thanks.

    Please post DDL, so that people do not have to guess what the keys, constraints, Declarative Referential Integrity, data types, etc. in your schema are. Learn how to follow ISO-11179 data element naming conventions and formatting rules. Temporal data should
    use ISO-8601 formats. Code should be in Standard SQL as much as possible and not local dialect. 
    This is minimal polite behavior on SQL forums. You also do not know the ANSI/ISO syntax for insertion and you did the old Sybase insertion kludge wrong, that we need keys, etc.
    CREATE TABLE Foobar
    (foo_seq INTEGER NOT NULL PRIMARY KEY,
     glop_score INTEGER NOT NULL);
    INSERT INTO Foobar
    VALUE
    (1,1),
    (2,1),
    (3,2),
    (4,2),
    (5,1);
    >> How can I generate this data (created with this query SELECT 1 Amin, 2 Amax, 1 B UNION ALL SELECT 3, 4, 2 UNION ALL SELECT 5, 5, 1) <<
    This makes no sense; you have the wrong syntax and mixed data types. My guess is: 
    SELECT MIN(foo_seg), MAX(foo_seq), MAX(glop_score)
      FROM Foobar
     GROUP BY glop_score
    HAVING MIN(glop_score) = MAX(glop_score); 
    Amin Amax B
    1 2 1
    3 4 2
    5 5 1
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • How can I pass a filter value to another report?

    I'm using a filter within a formula of a field. For example: (FILTER("Facts - Actuals Ledger"."Actual" USING ("Time"."Fiscal Quarter" = '2012 Q 2'))-FILTER("Facts - Actuals Ledger"."Actual" USING ("Time"."Fiscal Quarter" = '2012 Q 1')))*-1
    What the above is doing is calculating the variance between Q1 and Q2. My issue is when I drill on this value to a more detailed report, it's combining the Q1 and Q2 values, instead of showing the difference. I'm trying to avoid having to hard code the drill report and was wondering if there's any way to pass the calculated FILTER to the other report?
    Thanks.

    Hi,
    I presume that you want to show the the difference between a prompted quarter and its previous quarter?
    If so, I would use the Ago Time Series Function to create a new logical measure for prior quarter e.g.
    ago("Facts - Actuals Ledger"."Actual", "Time"."Quarter", 1)
    Note that the function should contain the time dimension level for quarter. The 1 at the end is the offset e.g. 1 quarter ago. This measure will now return the prior quarter value for whatever quarter is prompted.
    Create a prompt for your report for Fiiscal Quarter, and set a filter in the report for the same column with an operator of Is Prompted.
    Add the base measure ("Facts - Actuals Ledger"."Actual") and your new Ago measure to the report. When you prompt the report with a quarter, these two columns will show the Actual amount for the promted quarter and the previous quarter respectively. Now all you need to do is subtract one from the other.
    Now, when you drill to another report, the filter value of the prompted quarter will be passed across. Apply the same logic to define measures in the drill report, receiving the prompted quarter only.
    Note that you can also use Time Series Functions in the column formula when creating the analysis.
    Please mark if helpful / correct,
    Andy
    www.project.eu.com

  • How get the all the table values to another table based on Action

    Hi All,
    I am new to webdyn pro.
    I have two tables Table1 and Table2 with context nodes Tab and Tab1.
    Table1 I have a button Save If I submit Save the data from first table to second table .
    I was written the code
    IPrivateTableScrollBar.ITabElement element;
         for(int i=0;i<10;i++)
              element=wdContext.createTabElement();
              element.setName("test"+i);
              element.setSal("100"+i);
              wdContext.nodeTab().addElement(element);
    added some data to first table.
    how can I get the all 10 rows from first table to second table  if I write wdContext.node<Element>.getName() and getSal() I can get only selected one row .how can I get the all rows in a sigle click to second table.
    please help.

    Hi mohammed,
    Use the following lines of code to iterate through the elements :
    Iprivate<your view>.I<your node1 name>Element elmt1 = null;
    Iprivate<your view>.I<your node2 name>Element elmt2 = null;
    for(int i=0;i<wdContext.node<your node1 name>().size();i++)
    elmt2 = wdContext.node<your node2 name>().create<your node2 name>Element();
    elmt1 = wdContext.node<your node1 name>().get<your node1 name>ElementAt(i);
    elmt2.set<attribute name>(elmt1.get<attribute name>);
    wdContext.node<your node2 name>().addElement(elmt2);
    Hope this helps,
    Best Regards,
    Nibu.

  • How to get the one attribute value in another attribute getter method

    Hi,
    I have a requirement to get one attribute's value in the another attribute getter or setter method.
    Help needed ASAP.
    Thanks,
    sreenivas.

    Check if both the attributes are under the same context node.
    If so directly call the getter method of the other attribute here like this:
    lv_customer_type = me->get_customer_type( attribute_path = 'STRUCT.CUSTOMER_TYPE' ).
    If it is under a different context node,check if it is available from some relation, if so
        lr_agr_rel = current->get_related_entity( iv_relation_name = 'TpmAgrre'l ).
         CALL METHOD lr_agr_rel->if_bol_bo_property_access~get_property_as_value
            EXPORTING
              iv_attr_name = 'EXTERNAL_ID'
            IMPORTING
              ev_result    = lv_cust_plan_id.
    Regards,
    Masood Imrani S.

  • How to update this table with values from another table ?

    Hi
    I have a table "regies". I want to replace the values of the column "regies.agent" by the value of the column "regies_personnes.id"
    As you see the tables have a common values column. ie regies.agent = regies_personnes.nom
    Table "regies" :
    Insert into "regies" (AGENT) values ('Humberdot Alain');
    Insert into "regies" (AGENT) values ('Danard Patrick');
    Table "regies_personnes" :
    Insert into REGIES_PERSONNES (NOM,ID) values ('Humberdot Alain',1);
    Insert into REGIES_PERSONNES (NOM,ID) values ('Danard Patrick',2);
    Before we have this
    sql>select agent from regies ;
    Humberdot Alain
    Danard Patrick
    After the update, the result should be
    sql>select agent from regies ;
    1
    2
    Thank you for your kind answer.

    You will face error if you have duplicates
    ORA-01427 Single row subquery returns Multiple rows.Try this way
    create table regies(agent varchar2(30));
    create table regies_personnes( nom varchar2(30),id number);
    Insert into regies (AGENT) values ('Humberdot Alain');
    Insert into regies (AGENT) values ('Danard Patrick');
    Insert into REGIES_PERSONNES (NOM,ID) values ('Humberdot Alain',1);
    Insert into REGIES_PERSONNES (NOM,ID) values ('Danard Patrick',2);
    Insert into regies (AGENT) values ('Humberdot Alain');
    Insert into regies (AGENT) values ('Danard Patrick');
    Insert into REGIES_PERSONNES (NOM,ID) values ('Humberdot Alain',1);
    Insert into REGIES_PERSONNES (NOM,ID) values ('Danard Patrick',2);
    commit;
    update regies r set agent = (select id from regies_personnes p where r.agent = p.nom
    and rownum=1)
      where exists (select id from regies_personnes p where r.agent = p.nom
    commit

  • How can i change button's value with another button?

    You can see in file attach my problem.
    I'm trying change value of button with another button and two button can be off to. But buttons aren't it.
    Can you help me?
    Thanks.
    Attachments:
    Twobuttons.vi ‏27 KB

    Hola Carlos
    No tengo muy claro lo que quieres, pero te envio un ejemplo usando eventos, en que los 2 controles pueden estar a off a la vez pero no a on.
    Mira a ver si es lo que quieres. Usando eventos puedes hacer cualquiera logica.
    Espero que te sirva
    Saludos
    Alipio
    "Qod natura non dat, Salmantica non praestat"
    Attachments:
    Twobuttons.vi ‏31 KB

Maybe you are looking for