ADF 11 - stop the user to select some values of a LOV

Hello
Jdev ADF BC 11

I have a DB table countries hence, I've created a VO EO for the creation of country
and a second reading only VO to be used as a country LOV in other tables.

I have a second holiday table that uses the country LOV to choose the country for which
the holiday must be registered.

A country may be Active, blocked or cancelled

What I have to do is to stop the user to select a value from the LOV country
who is blocked or cancelled.

How is it possible...

Concerning
Paul

OK, this will be much better than just having it scattered randomly in the list.

What you want to do is to create another view (to the same instance of VO) accessor, this time in your entity object. For this class accessor, you include a named view criteria (change the accessor for that) which limit the selection that the entries 'selectable '. Then, set a validation rule 'List' to the entity object attribute target, select 'In', 'View attribute accessor', and your display accessor and the attribute. Given that the VO attribute uses the more general accessor, which will determine what appears in the LOV, but an attempt to choose something that is not in the narrow view accessor will send a validation error.

Tags: Java

Similar Questions

  • Stop the user to SELECT new registration of BLOCK of TABULAR DATA

    Hello

    I have a data tabular block has, that contains 10 records, by user mouse click can move any record of this data to another data block tabular Bblock.


    In this case, I want to restrict the user, do not move a folder already moved, bulk data table B.


    I tried several solutions but unable disable a moved file bulk data table A. The property AUTHORIZATION of INSERT or UPDATE ALLOWED the data block is not necessary (* as I don't have to change or insert values of the elements of text *) here. (I just disable the line moved block Atabular data. Is it possible, if so, then how? If no, any solution please.


    I hope that I've illustrated the problem.




    Kind regards

    I could do it this way:

    1)
    create an attribute Visual to make it visible, the lines that have been moved, for example VA_BLACK_ON_GRAY (black letters on a gray background)

    2)
    before moving the record so check Visual attribute is set.

    3)
    If the attribute is set, do nothing. otherwise, go the other.

    example of a trigger:

    BEGIN
        IF GET_ITEM_INSTANCE_PROPERTY('YOUR_BLOCK.YOUR_ITEM', CURRENT_RECORD, VISUAL_ATTRIBUTE) = 'VA_BLACK_ON_GREY' THEN
            MESSAGE('Record has already been moved!');
            RAISE FORM_TRIGGER_FAILURE;
        END IF;
        --
        -- 
        --
        SET_ITEM_INSTANCE_PROPERTY('YOUR_BLOCK.YOUR_ITEM', CURRENT_RECORD, VISUAL_ATTRIBUTE, 'VA_BLACK_ON_GREY');
    END;
    

    Alternatively, you can set a hidden item (not database bound) to store the information, if the folder is moved...

  • STOP the user until that corrections of the question of implementation in the form?

    Hello

    (As I am very very beginner to Java SCRIPT, no pls pls pls syntax error)

    I am allowing the user to enter a specific number of characters in the field (for example, COUNTRIES with a maximum of chacratars is 3, as the USA), so I put a posting on the VALIDATION MODEL, works very well, but, say, the user is entered in CANADA... my popup form Testament error message, some maximum is 3 characters only... then, the user presses the OK button on the pop-up window... and no has NOT resolved the problem (user suppose to do CANADA can), jumped and... continued to enter data into the rest of the fields... but I want to STOP the user THERE IT SELF!

    Unless and until the user formatting LAMBASTS (maximum number of characters here) question, shape/system must not allow the end-user to go further / to enter data in other areas/grey all the REST of the stuff... User must set to go ahead. Pls let me know how I can get it?

    Thank you

    Hello

    I'm not sure what exactly your needs.

    If you want to hide all other objects in a subform, and then test the user on the event entry exit. If user input does not exceed three characters, then you could show the subform.

    Does this sound like a solution?

    Niall

  • Wait for the user to select the OK button

    For my application, I can't use a simple MessagePopup where the user must select the OK button to continue.

    I created a new Panel with just a text message and an OK button to act as a MessagePopup.

    When I call InstallPopup and the box pops up that I have to wait until the user selects OK before continuing as the MessagePopup.

    How can I accomplish this?

    Thank you!

    John W.

    The popup has no effect on the mouse: it can happen that you have a function that manipulates the cursor before the popup is displayed? A SetWaitCursor (1); would be sufficient.

  • Asking the user to select a file path to record data to

    Hello

    To improve the 'user interface', and the usability of my VI, I would like to have the dialog box "select file path" appears automatically, rather than create a user by clicking on an icon on the front panel to display the path of the file dialog. The 'order' of operations would be as follows:

    VI implementing--> Dialogue request to the user the name of the file--> VI adds automatically it appropriate extension--> traditional dialog windows 'save file' opens to allow the user to select the appropriate folder to save the file in--> rest of VI runs.

    I have everything other works independently to obtain registration of the file dialog is displayed automatically. Currently, the only way I can do that is to have the user to select the folder to save ahead to launch through the façade, but would like to remove this step and as soon as they clicked 'OK' on the previous dialog (file name request) have the "Save file/select the folder" dialog appear.

    Thank you

    I think you are looking for the file Express VI dialogue. Be sure to post if this isn't what you're looking for.

  • Restrict the user to select a fixed number of values only to the SelectManyShuttle component

    Hello

    I'm working on JDeveloper 11.1.1.7.

    My requirement is to allow the user to select a fixed number of values using the SelectManyShuttle component only.

    Suppose if I have 10 available values in the left part of the element of the shuttle, I should allow the user to shuttle only three values on the right.

    In the image below, I already have 3 employees. Now the user should not be able to select employees more.

    < af:selectManyShuttle label = "Label 1" id = 'sms1.

    value = "#{pageFlowScope.shuttleBean.selectedEmpNames} '"

    leadingHeader = "all employees".

    trailingHeader = "selected employees.

    simple = "true" >

    < f: selectItems value = "#{pageFlowScope.shuttleBean.allEmpNames} '"

    ID = "si1" / >

    < / af:selectManyShuttle >

    Shuttle.png

    Can you please share your ideas to achieve this?

    Respect,

    Vinod

    There are different strategies how to implement this. The easiest will be to check the size of the selected list when the user cklicks the button finished. If the number is larger that the size limit display you an error message.

    Another way would be to use a valueChangeListener and the listener, check the size of the new value and add the tonthe size from the size of the already selected list. Then display an error message.

    Timo

  • If I get the user to select a location in a drop-down box

    If I get the user to select a location from a drop-down list (Atlanta, Orlando, 14 sites in total, etc.), then I want to write the address of this place in a text field which is the best way to do it I tried several if statements and did not get good results. any suggestions?

    Here is the code I use... It retrieves the value of Location_1, and then returns the address

    var Location = this.getField("Location_1").value

    If (Location = "Atlanta") {}

    Event.Value = "Barnes HC - Atlanta \n 2030 Powers Ferry Rd Atlanta, GA 30339-5016 \n \n 678-627-0077 \n";

    }

    If (Location = "Birmingham") {}

    Event.Value = "Barnes HC - \n \n 120 Oxmoor Blvd Homewood Birmingham, AL; \n \n 35209-0000 205-667-9193 \n ";

    }

    If (Location = "Crestview") {}

    Event.Value = "HC - 2207 Crestview\n Barnes S Ferdon Blvd\n Crestview, FL\n 32539-8458\n 850-683-0888\n O2 Lic # ';"

    }

    If (Location = "Dothan") {}

    Event.Value = "Barnes HC - Dothan\n 3236 West Main St, Suite 1 & Dothan, AL\n 36301-4130\n 334-671-1027\n 2\n";

    }

    If (Location = "Gainesville") {}

    Event.Value = "Barnes HC - Gainesville 1700 NW 80th Blvd. \n Gainesville, FL 32606-9177 \n \n 800-825-1733 \n O2 Lic #"; "

    }

    If (Location = "Jacksonville") {}

    Event.Value = "Barnes HC - 3728 Philips Highway, Suite Jacksonville\n 32\nJacksonville, FL\n 32207-6840\n 904-301-1050\n O2 Lic #";

    }

    If (Location = 'Panama City') {}

    Event.Value = "Barnes HC - 2425 City\n Panama Martin Luther King Jr\n Panama City, FL\n 32405\n 800-434-0822\n O2 Lic # ';"

    }

    If (location = "Tallahassee") {}

    Event.Value = "Barnes HC - Tallahassee\n 2524 Cathay Court\n Tallahassee, FL\n 32308-4248\n 800-464-8455\n O2 Lic #";

    }

    If (Location = 'Tampa') {}

    Event.Value = "Barnes HC - Tampa\n 5483 waters Ave, Suite 1200 N\n Tampa, FL\n 33634 813-888-7607\n 1205\n O2 Lic # ';"

    }

    If (Location = "Tifton") {}

    Event.Value = "GA\n HC - Tifton\n 2201 US Hwy 41 N unit K\n Tifton, Barnes 31794 - 2754\n 866-876-9114\n."

    }

    If (Location = "Valdosta") {}

    Event.Value = "Barnes HC - Valdosta\n 200 S Patterson St\nValdosta, GA\n 31601-5621\n 800-422-5059\n";

    }

    If (Location = 'Waycross') {}

    Event.Value = "Barnes HC - Waycross\n 2875 Knight Ave\n Waycross, GA\n 31501\n 866-284-9190 \n";

    }

    currently I have this under the field Calcualation of the text box, I want it written on. Is there a way to better / easier to do this?

    I need to write the field like this:

    Barnes, HC - name of the location

    Address 1

    Address 2

    City, State Zip

    Phone

    O2 Lic. #

    Sorry, it's so long. Thanks for any help.

    SOLVED used if (location is "Locationname") instead of a single "="

  • Advanced Action help - the user must select all before moving on to the next slide

    I need a tip action that will require the user to select a number of option buttons containing information until the next button appears. I don't know how to write it. I want the user to be able to select each button in any order that they choose. Can someone give me a step by step process? Your help is greatly appreciated!

    What version do you use? Why radio buttons? The behavior expected normal of radio buttons is that only one can be selected, you seem to ignore what is generally accepted. As having a next button appears only after several items have been selected, this has been explained many times in this forum and have many examples in my blog. They are free, maybe not considered worth nothing...

    You need a variable associated with each item. Click on an item to trigger a conditional action advanced or shared with two decisions. First decision is simulated standard action, rotate the variable from 0 to 1, then is a real condition that will make the next visible button if all variables have the value 1.

  • How to use JavaScript to limit the number of boxes to check the user can select a PDF form?

    How to use JavaScript to limit the number of boxes to check the user can select a PDF form?

    Here's the working solution

    Please rename all the boxes like chkBox0, chkBox1... .chkBox30 (must start with 0)

    Value of exports of each checkbox must be "Yes" (default value is Yes)

    Place this Code at the level of the Javascript Document

    -Code JavaScript document-

    var counter = 0;                Checked the meter

    -Count boxes checked again when the document is closed and reopened.

    for (var i = 0; i)<= 30;="">

    If (getField("chkBox"_+_i).value == 'Yes') {}

    Counter += 1;

    }

    }

    -The function of validation-

    function validateCheckBox(name,value) {}

    If (value == 'Yes' & meter)<>

    Counter += 1;

    } else if (value == 'Off') {}

    counter = 1;

    } else {}

    getField ("name") .value = "Off";

    App.Alert ("you can select only four checkboxes");

    }

    }

    -End of Document Javascript-

    Now put this line in the MouseUp event all checkboxes

    Box - Code MouseUp event.

    validateCheckBox (event.target.name, event.target.value);

    //----------------------------------------------------------------------------------

    Hope this will help

    Kind regards

    Post edited by: Mohammad Irfan

  • Stop the user hide column IR (version 3.1)

    Hello
    I have an interactive report, the first column which displays a checkbox using apex_item.checkbox

    In report attributes / allow users of... I deselected all options, but when the report is run there still a hyperlink on the column header, which allows the user to hide the column. I'm sure that I can find a thread here earlier who had a piece of javascript code that stopped the user to be able to do it, but I'm not.

    Someone at - it a solution for this (the version is 3.1)

    Thank you

    Mike

    See Re: interactive report, disable a section of interactive

  • Reader SDK: is it possible to see what text the user has selected?

    I use Adobe Reader SDK with c#, by looking at the characteristics of communication monitor.

    I can open a document in the reader and allow the user to the user the reader as select text tools, etc.

    Here's the problem: I want my application to know what text that the user has selected.  And I would like to know the name of the field that the user has selected, not only the text of the field.

    PIA of Microsoft Office went something like this:

    currentDocument.GetSelectedText ();

    Is it possible to do with IAC or javascript or plug in the Player SDK features?

    If this is not the case, can it be done with the Acrobat API?  I've looked through the two sets of documents and have not found what I needed.

    Thanks for any help!

    To write a plug-in for Adobe Reader, you will need to go through 2 separate steps.

    Step 1 - Download the SDK Adobe Acrobat (from here http://www.adobe.com/devnet/acrobat)

    and build your plugin against the Acrobat product, following the documentation to ensure that you use only the API that does not exist in the player program. The documentation tells you what version of the Adobe ACrobat program or Reader is required for the function and that the function can be called in Reader.

    Second step: apply for a certificate of reader allow your plug-in to be loaded by the player, the link is on the same web page as the link above. This step can be started until you have created your plugin, and I recommend that start you this process before you develop your plug-in like Adobe may refuse to give you the certificate in which case your development would be lost.

    Only once you have authorization form Adobe can you do your job of plug-in with the reader app.

    Once you have done these two steps there are a lot of people on this forum who can help you with specific problems you may encounter.

    If you are not sure of having the knowledge to build the plug-in, there are a lot of people that you can hire to create the solution for you.

    HTH

    Malcolm

  • Pop - up Messagebox when the user enters an incorrect value in the TextField

    I want to display a pop-up message box when the user enters an invalid value, or an empty value in the TextField.

    Popup wil Messagebox displays a notification message to the user to enter the correct value in the textfield.

    I want to use c + c++ / qt code cascades.

    Have you made progress on this issue?

  • How can I select several values for popup LOV

    Hello
    I need to select several values for popup lov. Is it possible to select several values from popup lov


    Concerning
    Veronica B

    Check your page now, added a javascript in shared components file > images and a css in the components share > cascading style sheets

    I used the plugin below
    http://www.erichynds.com/jQuery/jQuery-UI-MultiSelect-Widget/

  • How to insert a few lines of the user interface and some of the system during the click on the Add button

    Hi Experts ADF,

    I have an Add button and a table.

    My requirement is when the user clicks the Add button then the table below should show a new line. And some of the values I'm inserting into the method doDML with operation == DML_INSERT.

    I tried the steps below: -.

    (a) the primary key attribute is based on an expression groovy (with a sequence).

    (b) Add button is linked to the operation of CreateInsert.

    doDML c method) @Overridden in EOImpl, java. And some of the values I'm inserting into the method doDML with operation == DML_INSERT.

    (d) when I click Save I get error. So please let me know if any changes I need to do.

    Thank you

    Animesh

    Or if you want to insert data on the operation of createInsert then simply replace the create method in EOImpl

    Ashish

  • Check if the user has selected box element apex before the loading of the page

    4.2.1

    THM:2

    Hello world

    I have two classic reports with different conditions but even select the columns based on a sql that uses the apex_item.checkbox2 element that allows users to select the lines and run some process. I also have a radio unit that hides and shows these two reports. However, it is possible that the user select a few lines and without doing anything click on the radio button that will present the page and all the lines that earlier he had chosen will be lost. I want that we should be able to pop an alert if there are checkboxes checked and the user tried to hit the button of the radio looks like the APEX_APPLICATION. G_F01. Count is not available at the time the page is submitted. We thought to use a pl/sql to see if APEX_APPLICATION DA. G_F01. Count > 0 then trigger an alert to confirm.

    Any ideas on how to do this?

    Thank you

    ryansun wrote:

    Hi FAC586 - basically, there are two parts of the report, were grouped products consolidated (as master) and the other report has all the products of the child. So based on the option the user selects that he sees who discovers and processes information.

    I tried to create the DA, but he does not seem to fire and I'm sure it would be because I have something wrong.

    No, in this case, there was a typing error in my JS expression above (this is what happens when there is no example in the trial against...)

    Must be:$('td[headers="COL_ALIAS"] input:checked').length > 0

    I have page submit on the evolution of radio, given that other elements of the actual application, don't do with this feature which is filled on the loading of the page.

    It does not work. If the present radio on the presentation changes group cannot be controlled by the dynamic action to confirm that it has already been committed before the confirmation message is displayed. Presentation must be made by further action of real on the DA. By the way other values is possible by using dynamic actions or region to submit elements of Page properties.

    But here it is necessary, if the user has activated all the lines, then changes the selection of the radio, it should show an alert to confirm. In addition, what happens if we have a very select in the box by a header label already. Can I use the same label to identify the COL_ALIAS?

    Do not understand the question.

    Don't know what I'm doing wrong.

    As I noted above, an important part of your problem is that you asking what amounts to a series of questions XY rather than the big picture given by presenting the necessary resources. You have been really good on the creation of examples on apex.oracle.com, but they are all fragments of the righteous, which makes things difficult when you try their synthesis in something that works as a coherent whole. Various bits and pieces that have been revealed in recent weeks, it seems like this could be treated using dynamic measurements without having to send the page until the final choice has been made.

Maybe you are looking for