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

Tags: Oracle

Similar Questions

  • Textarea conditional display based on the value of the checkbox.

    Hi all

    I have a question regarding the conditional display of an article based on the value of the checkbox.

    I have a checkbox in a region, which is a STATIC LOV:; Y and the text box in the same region. Now I want to show this textarea only if the check box is selected. ??

    Please suggest how to achieve this.

    Thank you

    DC

    Hello

    I guess that you are 4.2 Apex as you haven't shared the same.

    • Create a dynamic Action on change of box which should present the value of the checkbox and update the TextArea element.
    • Then continue as conditional Textarea with checkbox value.

    BR,

    Patrick

  • Fields hide APEX 4.1 show based on the value of the checkbox/radio

    I'm trying successfully, hide and show fields based on the value of a selected checkbox.  I use a dynamic action, but it does not work.

    I followed the example in the is Oracle Apex 4 enable the following AJAX features? (IE without the written Javascript dev) - stack overflow

    I even tried an option button, but it did not work.  I can not uncheck the option button.  What I am doing wrong?  Thanks for any help you can provide.

    Hello

    For example, the point of view refer Packaged application > application sample database > page 11

    Kind regards.

    GO

  • Delete in the database based on the values of the multiple selection list

    Hello

    I have a selectlist in Apex and a function in the database to make a deletion based on the value selected in the selection list.
    FUNCTION delete_batch (v_batch VARCHAR2) RETURN VARCHAR2
    IS
    BEGIN
    IF v_batch like 'M%'
    THEN
       RETURN ('A monthrun cannot be deleted');
    ELSE
       DELETE FROM so_disco_pa
       WHERE  batch = v_batch
       ;
       DELETE FROM so_batch_pa
       WHERE  batch = v_batch
       ;
       COMMIT;
       RETURN ('Batch '||v_batch||' has been deleted');
    END IF;
    EXCEPTION
    WHEN OTHERS THEN
        RETURN ('Batch could not be deleted');
    END delete_batch;
    The package is called when the user clicks on the button Delete with the rest of the process:
    BEGIN
    DECLARE
    x   varchar2(100);
    BEGIN
    x := pa_control.delete_batch (:P3_BATCH);
    :F105_MESSAGE := x;
    END;
    END;
    Now, I want to change the selectlist for a multiple-selection list to make several batches can be deleted.

    How can I change my procedure and the procedure to remove lots based on the values selected?

    Thank you

    Diana

    dianap says:
    I got this far, but only the first batch selected in the list is being deleted. The other values of selected package are not removed.

    Help please.

    Move the RETURN statement out of your loop.

  • How to create table selectable line or not based on the value of the line

    Hello.

    JDeveloper 11.1.1.2

    Is it possible to make a selectable table row or not based on a value in the line.

    That is to say. lets say that the row contains a Boolean LOCKED = TRUE.
    This line should not be selectable.

    A line whose value LOCKED = FALSE should be selectable.

    / Erik

    Erik,

    No particular reason to disable a selection of lines for a particular line? If I'm an end user, I would be clicking on the same line of thought again and again my mouse does not ;) (call me dumb :)). How do you differentiate this line (using inlineStyle / styleClass) based on the value of line? In addition, you can disable the other buttons when a row with a particular value is selected (so that the user knows that the selected line is not treatable).

    Arun-

  • A drop-down list can do the calculation based on the value selected in a drop down list?

    Form Acrobat X Pro Adobe

    Can I have a drop down list create a calculation based on the value selected in the menu drop-down?

    We have a set lunch and want the user to choose to be "A lunch', 'Lunch B'"C Lunch"or"just the milk. "

    It is for each of the 5 days of the week. There are therefore 5 drop downs, which have all the same 4 above choice.

    If the user chooses among the 3 lunches and then put $2.00 in the total box at the end of the line. If 'Just the milk' may put 0.50 in the box.

    The total area at the end of the line must keep a record of all 5 days and give a total.

    So if someone chooses lunch A LUN, sea and Sun and just milk for Tuesday and Thursday and then the total for this week must be $7,00

    Is it possible by using code or something?

    I did it in Excel, but we need it is an Adobe pdf file.

    TIA

    OK the total box has a 10 all the time to make it look like $ 2.00 for

    everything.

    Before even that I chose something there are 10 in the box.

    I am a newbie to Adobe scripting Total used VB/A .NET etc ' 1980

    However.

    Can you do any debugging in code?

    Initialize the sum

    var sum = 0;

    Make a loop on the drop-down list boxes and add the cost of the invoice sum

    for (var i = 1; i)< 6;="" i="" +="1)">

    Sum += getField("Week1Day"_+_i).value == 'just milk? 0.50: 2,00;

    }

    Set this field to the amount

    Event.Value = sum;

  • How to render components based on the value selected in a list of values

    Hello
    I created a form of the ADF. I have a drop down that is a list of values. I want to toggle certain fields based on the values selected in the menu drop-down. Could you please let me know how to do it in the ADF?

    Kind regards
    Murielle

    Hello

    It should work. It is important to note that in case you use a component selectOneChoice for category then the value returned by #{bindings. Category.inputValue}
    is the index of the selected value in the list and not the value auto. To get the value, you must use ' #{bindings. " Category.attributeValue}"in the disabled state.

    If the problem is no display of code in your page to take a look.

    Gabriel.

  • Selective display of a report based on the value of a Variable of presentation

    Hello

    Is it possible to selectively display a report on a dashboard page based on the value of a variable presentation.

    I have 5 reports that are part of the same page that has a page with 5 options-level prompt.

    According to the option selected in the command prompt that the value is stored in a variable of the presentation, I need only 4 reports to view at any time (ie 1 report should NOT be directed).

    Example: -.

    When Option 1 is selected 1,2,3,4 reports must be posted
    When Option 2 is selected 2,3,4,5 reports must be posted


    Thanks in advance

    Hello

    Search this Guided Navigation forum. In this way, you can hide a section on your dashboard based on the results of a report that is "hidden".

    Good luck

    Daan Bakboord

  • dynamically display title based on the value selected in the column picker

    Hi all
    Would it be possible to display the title of the dynamic report based on the value selected in the column picker. Suppose I have two State of the column and region. When I choose the status in the column picker the title of the report will show 'Summary of the situation' when I'll choose the region then the title will change to "summary of the region. Please help me...

    Hello

    Check your mail before I send the entire process with screenshots.

    Concerning

    NGO

  • change the color of line based on the value of column 5 Apex in the classic report

    Version of the apex 5.0.0.00.31

    Standard universal theme

    Page theme default template

    Classic report

    Foldable report template

    Hello

    I know this question has been asked several times here, but I'm working on 5 Apex and need to know the correct way to do it in this version.

    I need to change the color of the text of the entire line (no background color) based on the value in one of the columns of the classic report. I have just two conditions, if the value of column = Yes, color should be red, otherwise it must be green.

    I am new to jscript and css, so appreciate if someone can tell me the solution with steps.

    I have already checked this link that changes the value of the column, need to do something similar to the whole line.

    https://tylermuth.WordPress.com/2007/12/01/conditional-column-formatting-in-apex/

    Hi coolmaddy007-Oracle,.

    Here's an example set up on the apex.oracle.com according to the specifications you gave: https://apex.oracle.com/pls/apex/f?p=35467:1

    Version of the apex 5.0.0.00.31

    Standard universal theme

    Page theme default template

    Classic report

    Foldable report template

    Here is how it is done:

    Create a dynamic action with the following specifications:

    Name: Give the appropriate name

    Event: After refresh

    Selection type: region

    Region: select your region classic report

    Condition: No strings attached

    Action: Run the JavaScript Code

    Fire on loading the Page: Yes

    Code:

    $('td[headers="JOB"]').each(function() {
      if ( $(this).text() === 'MANAGER' ) {
        $(this).closest('tr').find('td').css({"color":"red"});
      }
      if ( $(this).text() === 'SALESMAN' ) {
        $(this).closest('tr').find('td').css({"color":"green"});
      }
      if ( $(this).text() === 'CLERK' ) {
        $(this).closest('tr').find('td').css({"color":"blue"});
      }
    });
    

    NOTE: Download the selector appropriate for your knowledge $('td[headers="JOB"]') case using firebug/browser development tools.

    Items concerned: leave blank.

    PS: Changed the example to change the color of text instead of the background color.

    I hope this helps!

    Kind regards

    Kiran

  • How to navigate to the next page based on the value returned by the method call inside the action attribute of the command key.

    How to navigate to the next page based on the value returned by the method call inside the action attribute of the command key.

    I use JDeveloper 12.1.2.0.0

    < af:button id = "tt_b2".

    rendered = "#{attrs.nextRendered} '"

    partialSubmit = 'true '.

    action = "#{attrs.backingBean.nextAction} '"

    Text = "next".

    Disabled = "#{attrs.nextDisabled}" / >

    private static final String NEXT_NAVIGATION_ACTION = "controllerContext.currentViewPort.taskFlowContext.trainModel.getNext";

    public String nextAction() {}

    If (validate()) {}

    updateModel();

    Return NEXT_NAVIGATION_ACTION;

    }

    Returns a null value.

    }

    Use case is made for model train, which is being implemented based on this blog: http://javacollectibles.blogspot.co.UK/2014/10/ADF-train-template.html

    We define a generic action following in the model, but the action must be called under certain conditions, based on the question of whether all validation controls had been passed on no.

    You can do this in two ways:

    1 returnValue = (String) ADFUtils.invokeEL("#{controllerContext.currentViewPort.taskFlowContext.trainModel.getNext}");

    return returnValue;

    2.

    public String getNextTrainStop() {}

    String nextStopAction = null;

    ControllerContext controllerContext = ControllerContext.getInstance ();

    ViewPortContext currentViewPortCtx = controllerContext.getCurrentViewPort ();

    TaskFlowContext taskFlowCtx = currentViewPortCtx.getTaskFlowContext ();

    TaskFlowTrainModel taskFlowTrainModel = taskFlowCtx.getTaskFlowTrainModel ();

    TaskFlowTrainStopModel currentStop = taskFlowTrainModel.getCurrentStop ();

    Terminus of TaskFlowTrainStopModel = taskFlowTrainModel.getNextStop (currentStop);

    nextStopAction = nextStop.getOutcome ();

    _logger.fine ("train, next stop:"+ nextStopAction ");

    Return nextStopAction;

    }

  • Fill in fields on a form based on the value of a list? (Dreamweaver CS5)

    Yet once, it has been a while since I've done any work in Dreamweaver. I have two sets of records, rs1 and rs2. Fill a selection area with a dynamic field, rs1. Based on the value of the selection in the list box and use it as a primary key and a database .mdb I want to fill that second record, rs2 and respective fill some additional fields with its dynamic links.

    Assuming that everyone can understand what I so badly stated, with a having a few ideas or, better yet, a few examples?

    Thank you!

    I agree with Nancy that using Access is a bad choice, to answer your question, it seems you want to create a montage cascading down. Dreamweaver is not integrated to manage cascading dropdown lists. You code yourself.

    There are two approaches for cascading drop-down lists:

    • Use Ajax to present a second query to the database when the first drop-down list is selected.
    • Store the values of the dependent drop-down list in a table, and use JavaScript to fill in the options in the first drop-down list is selected.

    This page of examples of cascading dropdowns: example of DropDownList in waterfall | Kendo UI Dropdownlist demo. A Google search for the cascading drop down list will produce other results.

  • Define a transitional EO attribute based on the value of the attribute being questioned or persistent

    How to set the value of an attribute of EO questioned not persistent or not based on the value of another attribute of OS which is persistent and questioned the database?

    Thank you

    I finally made it through the PR and PFR controller (when a record is selected) methods.  It works, but I was looking for a hook in the what the VORow instances are created.  As thecreateInstanceFromResultSet method but at this time the transient attributes do not exist in the result set.

  • How to get the total number of occurrences based on the value of a column.

    Hi all

    It is the first time I'll ask the question here on your forum, but since then followed several threads. I guess it's now my turn to ask a question. Anyway here's the thing, I have a query that should return to count the number of rows based on the value of HOUSING. Something like this:

    -----
    WIPDATAVALUE          SLOT             N            M
    1-2                   TRALTEST43S1     1            3
    1-2                   TRALTEST43S1     2            3
    3                     TRALTEST43S1     3            3
    4-6                   TRALTEST43S2     1            4
    4-6                   TRALTEST43S2     2            4
    4-6                   TRALTEST43S2     3            4
    7                     TRALTEST43S2     4            4
    -----

    As you can see above, on the TRALTEST43S1 of the SLOT, there are three occurrences, so M (Total number of occurrences) must be three and this column N he's counting. It is the same with the TRALTEST43S2 of the SLOT. It's the query I have so far:
    SELECT DISTINCT
    WIPDATAVALUE, SLOT
    , LEVEL AS n
    , m 
    FROM
    (
      SELECT
        WIPDATAVALUE
        , SLOT
        , (dulo - una) + 1 AS m 
      FROM
      (
        SELECT 
          WIPDATAVALUE
          , SLOT
          , CASE WHEN INSTR(wipdatavalue, '-') = 0 THEN wipdatavalue ELSE SUBSTR(wipdatavalue, 1, INSTR(wipdatavalue, '-')-1) END AS una
          , CASE WHEN INSTR(wipdatavalue, '-') = 0 THEN wipdatavalue ELSE SUBSTR(wipdatavalue, INSTR(wipdatavalue, '-') + 1) END AS dulo
        FROM trprinting
        WHERE (containername = :lotID OR SLOT= :lotID) AND WIPDATAVALUE LIKE :wip
      )
    ) CONNECT BY LEVEL <= m
    ORDER BY wipdatavalue;
    And it leads to something like this:
    -----
    WIPDATAVALUE          SLOT             N            M
    1-2                   TRALTEST43S1     1            2
    1-2                   TRALTEST43S1     2            2
    3                     TRALTEST43S1     1            1
    4-6                   TRALTEST43S2     1            3
    4-6                   TRALTEST43S2     2            3
    4-6                   TRALTEST43S2     3            3
    7                     TRALTEST43S2     1            1
    -----

    I think that my current query based results M and N on WIPDATAVALUE and not HOUSING that's why I get the wrong result. I also tried to use WITH instruction and it works well, but unfortunately, our system cannot accept the subquery factoring.

    I know that you guys will be of help because you are all awesome. Thank you all

    Published by: 1001275 on April 19, 2013 20:07

    Published by: 1001275 on April 19, 2013 20:18

    Hello

    1001275 wrote:
    Hi sb92075,

    You are right that it is available with this version. But our system doesn't put queries that use subquery factoring.

    What system are you talking about? If you really have something that prevents you from using all the features of Oacle, you should seriously think about fixing it.

    Any other ideas on how we can do this without help WITH clause?

    Yes; If a WITH clause is referenced that once, it can be re-written as a point of view online:

    SELECT       wipdatavalue
    ,       slot
    ,       ROW_NUMBER () OVER ( PARTITION BY  slot
                                 ORDER BY          low_number
                        )                    AS m
    ,       COUNT (*)     OVER ( PARTITION BY  slot )     AS n
    FROM       (     -- Begin in-line view (got_numbers)
                SELECT     wipdatavalue
              ,     slot
              ,     TO_NUMBER ( SUBSTR ( wipdatavalue
                                        , 1
                                   , INSTR ( wipdatavalue || '-'
                                               , '-'
                                        ) - 1
                                   )
                            )          AS low_number
              ,     TO_NUMBER ( SUBSTR ( wipdatavalue
                                        , 1 + INSTR ( wipdatavalue
                                                       , '-'
                                                )
                                   )
                            )          AS high_number
              FROM     trprinting
           )     -- End  in-line view got_numbers
    CONNECT BY     LEVEL               <= high_number + 1 - low_number
         AND     low_number          = PRIOR low_number
         AND     PRIOR SYS_GUID ()      IS NOT NULL
    ORDER BY  low_number
    ,            m
    ;
    
  • 2 definitions of view based on the value of the table

    Hi all

    Is it possible to have 2 different definitions of each entry of 2 base tables display different, based on the value of the table?

    We have 2 tables with similar columns, one with historical and other data was only the latest / greatest according to yesterday (it is populated by ETL from mainframe). Changes made by the java application online is now going into the table containing historical data immediately, but edits made in mainframe comes to the table with the data current next day.

    There are 2 products, an is based on the last and largest of the historical table based on cre date and date of mod and other product relies on the table with the current data (not historical).

    Tried using joins for these two tables but the performance wasn't good and each product needs table data alone, and so I wanted to eliminate joins.

    We wanted to use the same name for the view from the metadata using the shared functionality based on the name of the view.

    Is there a way define a view under certain conditions?

    It is:

    If the value for a particular parameter is 0 then

    Select c1, c2, c3 of < historical table > other

    Select c1, c2, c3 of < no history table >

    Any ideas?

    You are looking for something like this?
    Re: how to pass parameters in a view

Maybe you are looking for

  • Adobe Reader

    Sometimes when I try to print a PDF with Adobe Reader, it will print the first two pages OK, then the rest will be ruined. This may be the cause for this? Any thoughts would be much appreciated.

  • HP Pavilion: AMD SMBus

    I think I have 64 bits.  Microsoft just gave me an Advanced Micro Devices, Inc. AMD SMBus as a download option for an old HP desktop computer for 6 months with card AMD Radeon Graphics AMD A-10 k of 7700. What serves as the SMBus AMD, why would I nee

  • Compiled code in the source file was separated... when referencing a tat of VI entered a trajectory control

    I have a feeling I know the answer. I have an executable that takes a VI from trajectory control and the executable reads certain properties.  It crashes with this error. Some experience on the issue: The executable waits on path control to change it

  • CD do not play on CD player

    Original title: Media Player I can't play any CD when you insert a CD in the drive.  It won't let me listen to my music. :-(   It worked fine yesterday. Not sure why it's not today.

  • help w / this error code __Runtime error__Program C: windows \system 32\spoolsv.exe

    Runtime errorProgram C: windows \system 32\spoolsv.exeHi, I am a newbie so please be easy on meI can't install my printer, lexmark could not help w / this error. any help is greatly appreciated. Thank you