Enable and disable the item based on the Condition

Hi Experts,

I work in the form of 10g, I conditionally.

I have the block master detail.

Master block contains sub elements.

CUSTOMER

Address (read only) - no database element

PRODUCT GROUP (read only) - no database article

Note: The CUSTOMER is LOV, when I select the customers, I'm failing address and product group.

Block detail contains sub elements.

DATE OF START OF BLOCK

DATE OF END OF BLOCK

REASON

Note: when I opened form all fields of retail blocks are enabled

Requirement:

1. when I created new record, at the time where I select the customer name, Bill and product group will be by default, in the block of detail - I want to activate and deactivate the block start date based on the value of the product group.

2 if I erase block master, I need to activate the block_start_date like back when the new form is opened

3. when I search the data also, block start date must be enabled and disabled based on the value of the product group.

Could someone help me the best approach to achieve so that she will have no side effects.

Thank you

801619 wrote:

Hello

Thank you for your response... I have tried code trigger after change of category of products below.

If: blockname.product_group = "Aviation" then

set_item_property ('block.block_start_date', enabled, property_false);

On the other

set_item_property ('block.block_start_date', enabled, property_true);

end if;

1. it is disable the Group field when I put the cursor inside if the product category is "Aviation", but I want it to be automatic at a time where it will default to the value of product category.

2. If the master clear record, is not allowing return product group

3 suppose that if enter new record category of products "Aviation", once I put the cursor inside, it's debilitating, let's say if I erase the main recording without saving the changes, it not again allows the Group of products, it is now status (disable) previous.

4. in query mode, it is not disabling or enabling from a group of products.

Help, please.

Thank you

Ok.

1. put your code on this trigger after changing point that fills the default value in the product category.

2. remove the trigger after change of product group.

3 put the same code to trigger once - new - Record - Instance of the main block.

Hope this helps

Hamid

Tags: Oracle Development

Similar Questions

  • 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

  • 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:

  • How to enable or disable a paragraph based on a condition in the BIPS

    Hello reading,
    <? country? >
    How to display a line based on a condition in the DARK...
    I have a tag as a country that has the value zero or in India, I shouldn't show paragraph
    para should be included
    and also, I don't want the line below to access his location

    How can I do this...
    pls help

    I sent you the code to achieve this. Take a peek inside.

    Thank you
    BIPuser

  • 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

  • Enable and disable the NIC with the Standard users

    Hi guys.

    We set up a phone book ad within our Organization. Additional client systems (Windows 7 and Windows 8) to the field. Domain users are accessing the system with the permission of standard users. I don't want to give administrator permissions. But the user should be able to disable and enable the network adapter without giving administrator permissions. Please suggest.

    Thanks in advance for the help.

    It is not possible.  Only an administrator is allowed to modify the configuration of systemic, such as activation or deactivation of the hardware components of the system.

  • Trying to enable and disable the scheduled tasks back but becomes "the name of the specified task * does not exist in the system.

    I am trying to create a .bat file that stops a set of scheduled tasks and start another game, but when it works it is said that there is no such thing as the name of the task

    SCHTASKS/Change/disable /TN ImageCopyTest
    ERROR: The name of the specified job 'ImageCopyTest' does not exist in the system.

    Running schtasks/query does not list the tasks that I have implemented in Task Scheduler

    For operational reasons, the tasks are set on "Run If the user is logged in or not ' and I read somewhere that this automatically makes the hidden task

    Can someone shed light on how I can get around what I need this operation for our recovery after disaster

    It's on Windows Server 2008 R2 Enterprise

    Hello

    Apologize for the delay in response. Because the question you posted is related to Windows Server and more complex than that which are usually dealt with here, this issue will be safer in our MSDN forums that cater to the more THIS professional audience.

    Thank you.

  • Enable and disable the function in quiz - where is it?

    Hello

    I would like to service activate after a user submits an answer to a question. This function is listed in the help guide, but does not appear in the drop-down Action menu. It is somewhere else or was left?

    Any help appreciated.

    My apologies. I found it in the preferences of Quiz rather than the question Options.

    Thank you for responding and give me the prompt.

  • 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 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;

  • How can I get Snipping tools im using Vista and this control panel and then enable or disable the thing pc isn't here. Help?

    How can I get Snipping tools im using Vista and this control panel and then enable or disable the thing pc isn't here. Help?

    Hello

    You don't say which edition of Vista you are using.

    Vista Home Basic Edition does not have the "snipping tool".

    If you have a different edition of Vista, read the information on how to find it:

    http://www.PCWorld.com/article/137099/activate_vistas_snipping_tool.html

    If you have one version of Vista, other than the Home Basic edition, you already have the Snipping Tool screenshot utility: click on Start, all programs, accessories, Snipping Tool. If you do not see here, it cannot be activated. Go to the Control Panel and open programs and features (you may need to click programs first). In the left pane, click Windows turn features on or off. If necessary, click continue when you are prompted by user account control. Scroll down the list of features, check the box next to Tablet PC optional components, and click OK. Marketing of these features gives you not only the Snipping Tool, but also input panel Tablet PC, Windows Journal and other features related to the stylus.

    "Install or activate the cutting tool in Windows Vista"

    http://www.mydigitallife.info/install-or-enable-Snipping-Tool-in-Windows-Vista/

    See you soon.

  • 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 find the Bookmarks panel is enable or disable the use of Applescript?

    Hi all

    In Indesign, how to find the Bookmarks panel is enable or disable the use of applescript?

    Please any idea on this subject!

    Thank you

    John.

    Hi John,.

    Version CC 2015 (and I guess in earlier versions) you would use:

    Tell application "Adobe InDesign CC 2015"

    the visible isVisible value of "Bookmarks" Panel

    tell the end

    isVisible

  • Enable or disable the write lock filter remote with a script

    Hello

    Is it possible to enable or disable the filter of writing EWF remotely with a script?

    Sending a command in a batch or the vbs.

    Thank you.

    In addition to HPDM, you can use the ewfmgr command in a script.  For example, ewfmgr c:-disable or ewfmgr c:-activate.  You will need describe reboots as well.

  • I would like to turn off and disable the automatic opening of downloaded files? How do I do that?

    I would like to turn off and disable the automatic opening of downloaded files? How do I do that?

    Hello

    Ask you to kindly visit the link shared below and select the specific product community.

    https://forums.Adobe.com/welcome

    The experts would be able to help you with the application of the product.

Maybe you are looking for