How to enable and disable a button depending on the value of a field

Hello experts,

I enable and disable a button depending on the value of a field.

I did the following:

in a trigger of on_new_form_instrance I put the following
begin
     
go_block('OE_HEADER');
execute_query;
IF :oe_header.status = 'BOOKED' THEN        
      SET_ITEM_PROPERTY('CONTROL.ACTION',ENABLED,PROPERTY_FALSE);
else
     SET_ITEM_PROPERTY('CONTROL.ACTION',ENABLED,PROPERTY_TRUE);
end if;


end;
the problem is that it works but does not change when my header_status value is changed.

You have to put the same code in when-validate-item trigger of: oe_header.status...

and I think that this code should be trigger after query

IF: oe_header.status = 'RESERVED' THEN
SET_ITEM_PROPERTY('CONTROL.) ACTION', ENABLED, PROPERTY_FALSE);
on the other
SET_ITEM_PROPERTY('CONTROL.) ACTION', ENABLED, PROPERTY_TRUE);
end if;

Tags: Oracle Development

Similar Questions

  • How to enable and disable, copy or rename the rules via the groovy script?

    A client, we received this question:

    How to enable and disable, copy or rename the rules via the groovy script?

    Foglight 5.7.5

    Hello

    There is this example of support KB

    support.Software.Dell.com/.../99059

    and there is also documentation of Service layer of the administration on the RuleService console.

    Best regards

    Golan

  • How to enable and disable a simultaneous program to a Pl/sql Package

    How to enable and disable a simultaneous program to a Pl/sql Package

    I just want to know why this not prvent not the program to run, it updates the backend for open State helped N, but not in Frontend.

    If you can advise on the same.

    Did you use the API to change the ENABLED_FLAG of 'Y' "N"? If so, you commit the changes? What happens if you ask this program contributing to the application (simultaneous > program > set), can you confirm that it is disabled then if this has been done since the backend? The program remains active after the deactivation of the application it?

    Thank you
    Hussein

  • Toggle button depends on the value of the selected row

    Hello.

    My problem is:

    I have a Table "singleSelect" and a button Delete.

    I´d want to toggle the button depends on the value of the selected row.

    I mean:

    C1: DepartmentId
    C2: Yes/No

    For each line: If c2 = "" then disable the rest button activates the button.

    I hope you can help me.

    I'm from Venezuela my English is not very good. :)

    Disabled = "#{row." C2 eq 'No'} '.

  • How to enable and disable the buttons on the table

    Hello

    My requirement is that I need to activate or disable the button on the table, if there is no result then I need to turn off the button other wise, I need to activate the button.

    I drag the primary key field on the page as an entry filed the false set visiable page abandoned and set the partial trigger as table and disable button is

    Disable = ' #{bindings. " AuthorizationNumber.inputValue not 'null'}', but the button is still crippling it allows not when I have data.

    where I am doing wrong?

    Note: this view is read-only view, I can't use undo disable features here.

    Published by: user5802014 on May 22, 2010 12:36

    Try the following:

    * Disable = ' #{bindings. " AuthorizationNumber.inputValue == null} "*"

    This will disable the button when the AuthorizationNumber is null.

    You can also use the current row of the iterator:

    * Disable = ' #{bindings. " YourIterator.currentRow == null}. "

    Nick

  • HP EliteBook 840 G2: How to enable and disable NFC on HP EliteBook 840 G2

    Hello

    1. Please help me how to activate and deactivate the NFC on HP EliteBook 840 G2?

    2. what I have have Bluetooth activated on 930 Lumia and be paired with HP EliteBook 840 G2 if

    I want to send the image of Nokia Lumia 930 file (Windows Phone 8.1) for HP EliteBook 840 G2 with

    Windows 7 Enterprise 64-bit?

    3. is it possible to transfer images between Windows 7 64 bit on HP EliteBook 840 G2 and 8.1 of Windows Phone?

    Thanks a lot for any advice.

    R,

    Marek

    Press the power button and press the ESC key to call the start menu.

    Now, press the F10 key to access the BIOS.

    Click on the tab advanced, as shown in the image below.

    Under the heading device settings, click integrated device options.

    NFC is activated when there is a check mark in the field of NFC and disabled when the tick is removed and the change is saved.

  • How to enable and disable the part of the "control panel".

    I want to know if part of the control panel can be turned on and off by an external action, to use the mouse or a Boolean variable. Someone has an idea that help color? Thank you

    Ricardo

    You can disable cookies by using the node property and ownership "Disabled". You can create a tab control and disable the entire tab control that will disable all inside of it.

    To do this programmatically, set up your code with a structure of the event and create an event when the user changes the value of a button or click the mouse.

    See the example I did:

  • Editing a text depending on the value of another field to text field

    Hi guys,.

    I am facing problem with the update of a field of dependent text in another text field.

    I have 2 text fields. Both are date format. In the 1st text field enter a date, and in the following text field I need the value in the form date_in_previous_text + 30 days.

    I used a query at the time to validate the point but it does not work. It is as follows.

    If: txt_field1 is not null then

    : txt_field2: =: txt_field1 + 30;

    end if;

    Please help me with the same.

    Hello

    u has not clarify what the problem, u just said the scenario but without any anomaly. Try to use the KEY-NEXT-ITEM trigger on the second level of the item.

    Or POST-TEXT-ELEMENT trigger of the 2nd element.

    Amatu Allah.

  • How to enable and disable a field dependent on another field in the Apex.

    Hello

    I'm new to Apex. IM using Apex Version 4.2.

    I have a tab named CREDITS he has 10 fields. Among them is PROJECT NUMBER, AUTHORIZAION DATE (CALENDAR TYPE POPUP), and FUNDS FLAG CHECK.

    NUMBER of THE PROJECT , the fields are filled, including the FUNDS VERIFIER FLAG is based on the scenario.

    But the AUTHORIZAION DATE is a REQUIRED field must be filled in by the user

    The requirement is to make DATE AUTHORIZAION as MANDATORY when the FUND CHECK FLAG is * "VIRGIN" * or * 'Y' * ' "

    If the FUND CHECK FLAG is * "N" * then the DATE AUTHORIZAION to bring in OPTION.

    Any help will be greatly appreciated...


    Thank you
    Vishal

    You will not be able to get the answers here, post your question in the appropriate section after mark this thread as answered

    "Oracle Discussion forums" Oracle Database "Application Express

  • How to enable and disable the task by sign?

    Hi guys,.

    I finished the service IID_ISTARTUPSHUTDOWN to call the task start durning...

    My quest is, I need to start the task, when the Panel is turned on.

    Please advice how to solve the above problem.

    Reference sdksamples/tableattributes.

  • How to enable and disable items in a control of Enum

    I have two enum control a value change event in a single enum I want to hide or diasable control elements in the other control enum.

    Thanks I got it.

  • How to follow and find which button clicked in the CC script to animate.

    Dear friends,

    IAM converting an e-learning lessons in CC to animate. I have the following code for an activity as each button click and see corresponding popups.

    import flash.events.MouseEvent;

    for (var i: Number = 1; i < = 5; i ++)

    {

    This ["btn" + i] .addEventListener (MouseEvent.CLICK, btn_clicked);

    }

    function btn_clicked(event:MouseEvent)

    {

    trace (Event.Target.Name.substr (3));

    }

    Kindly help me to convert this code to java script in CC animate.

    Thanks in advance,

    Syed Abdul Rahim

    Hi friends,

    Thks for your help. I did the work, with the following code:

    This.Stop ();
    var sel_but = "";
    _this = this;
    to (increase 1 = 1; increase 1<= 7;="" inc1++)="">
    This ["btn_" + increase 1] .name = "button" + increase 1.
    This ["btn_" + increase 1] .addEventListener ("click", fl_MouseClickHandler);
    }

    function fl_MouseClickHandler (event) {}
    sel_but = event.target.name.substr (6).
    _this.Popup.gotoAndPlay ('pg' + sel_but);
    }

    May be useful to some body...

    Thank you and best regards,

    Syed Abdul Rahim

  • Enable and disable the buttons depends on the connection of the user?

    How to enable and disable the buttons depends on the connection of the user?

    In fact I have a few buttons as remove, add, save, exit, it etc., zero page...

    depends on the user , I have to turn on and off specific keys.


    Thanks and respect,
    SKUD.

    Hi Skud,

    In fact Jeff's response are correct and handles the problem. I want to mention another way,

    Change the desired button > navigate to Conditions > Pick (exists SQL query returns at least one row) > Expression 1, enter code similar to the following:

    Select TOP (: app_user) where double UPPER(:app_user) in ('FATEH","MARY")

    Best wishes
    Fateh

  • [ADF, JDev12.1.3] How to get programmatically the value of a field of VO of detail while accessing the master istance VO?

    Hallo,

    I have a master VO based on entities and a retail entity based VO to which JDev automatically created a link display (1 to 1 relationship).

    In the request Module I programmatically access MasterVO and I would like to get the value of a field of DetailVO...

    ViewObject vo = getMaster1();
    RowSetIterator iterator = vo.createRowSetIterator(null);
    iterator.reset();
    if (iterator.hasNext()) {
      MasterVORowImpl row = (MasterVORowImpl) iterator.next();
      System.out.println(row.getField1);
      System.out.println(row.getField2);
      // ...
      System.out.println( <DetailVO.Field1> ); // How to...?
      // ...
      }
    iterator.closeRowSetIterator();
    

    How can I achieve this?

    Thank you

    Federico

    In MasterVORowImpl should be getter for the detail rows (if you selected "Include the accessors" option when you generated class MasterVORowImpl).

    Dario

  • How do I delete an article based on the value of another field


    I have a pdf form that I added to the text fields. My challenge is that of the financial section of the form, if the value of a specific field is empty or null, I blank block of signature financial review.  I've been trying to find a way to cover the area of signature with a white box or have a text box with signature block text appear or disappear depending on whether the value is zero or empty.

    If seen many answers on how to make the field itself disappear based on value, but I did find something that causes another field or shape appear or disappear depending on the value of another field.

    Please try the following script,

    var signid = true;

    If (this.getField("finan").value! = 0) signid = true;

    of another signid = false;

    If (SignID) this.getField("signaturefield").display = display.visible;

    else this.getField("signaturefield").display = display.hidden;

    Please let me know if it solves the problem.

Maybe you are looking for