text field and a LOV

I have a textfield and a LOV. I want to make sure that a value is entered in the textfield before someone
try to open the LOV. I tried in different ways to throw an exception if anyone tries to open the LOV if the TextField is empty but I failed.
Can someone guide me the best way to approach this.

Thanks in advance.

PK

Hello

1.) first capture the LOV event in the processformrequest method

2.) and then to capture the id of the object textfield

then try with this code

If (pageContext.isLovEvent ())
{

String lovInputSourceId = pageContext.getLovInputSourceId ();

If ('ID of LOVfield".equals (lovInputSourceId))
{
OAMessageTextInputBean msbean = (OAMessageTextInputBean) webBean.findIndexedChildRecursive ("text field id");
If (msbean.getValue (pageContext) is nothing)
{
throw new OAException ("Please enter a value in the text field", OAException.ERROR);
}
}
}

more the other option is to use the PPR

1.) initially hide your LOV

2.) fire an event of ppr on the text field, enter this event and on this event, check if the value is not null, and then set your rendered true LOV

thanx
Pratap

Tags: Oracle Applications

Similar Questions

  • Align the text field and a button.

    Hi all

    I use Oracle APEX 5.0.1.

    I tried to create a search page that contain a text field and a button.

    But I can't align the text field and button, so they can have the same top position.

    Could someone please help me solve this problem?

    APEX-ARE-Search.jpg

    Thank you and best regards,

    Troy.

    Hello.

    Have you tried to add a css attribute to the button? like: style = "top: 4px;

    Concerning

  • I create a text field and I can't get the text to start typing in the upper left corner

    I created a pdf file for and added to the text boxes. The text want to start in the middle left of the text field and I can't seem to start in the upper left corner. Any suggestions?

    Set as Multiline field, under Properties - Options.

  • How can I prevent the text fields and drop downs changed after the form has been signed using a digital certificate? Thank you.

    Hi all

    How can I prevent the text fields and drop downs changed after the form has been signed using a digital certificate? Thank you.

    There is also a checkbox on the dialog box 'Sign' to lock document after signing.

  • I have two text fields, where the user will sign a text field and the other text field should be mandatory

    I have 2 text fields, and how can I do a condition when the text 1 field is entered, then they must enter data into the text field 2.  I know it seemed simple, but I'm just a beginner in this... Thanks in advance!

    Hello

    I'm sorry, I forgot this matter.

    Please try this code...

    If (this.isNull)

    {

    TextField2.validate.nullTest = 'error ';

    }

    on the other

    {

    TextField2.validate.nullTest = "disabled";

    }

    Hope than that,

    S, candy.

  • Try to retrieve the contents of a text field and use it in a conditional statement

    Hello world

    I have a form with a text field and a button. The text field is called "orderNo" and the button is called "genOrder".

    Initially, the text field is empty, and clicking on the button fills the text with an appropriate order number field.

    I have need to check the text field for the data (content) before you write the order number, in this way, if an order number is already present in the text field, it will be over written.

    My intention is to use an if / else structure to perform the tests, but I do not know how to retrieve the content of the text field (if the content is present!).

    If anyone can suggest how I can go about extracting the contents of a text field and then use it in an if / else statement it will be greatly appreciated.

    Kind regards

    DAVO

    currentOrderNo = this.getField("orderNo").value;

    If ("currentOrderNo == null | currentOrderNo ==" ") {}

    the field is empty, fill it with a new value

    } else {}

    the field is not empty, something else

    }

  • Text fields and number 0 problem

    Hello.

    I have very strange problem and I hope someone could help me.

    I have the button group to 7 Coachman, named "group". Each box has its own value for export. (- 3, - 2, - 1, 0, 1, 2, 3). Then I have a text field, named "polje" where the selected value is displayed. If the user check the box with the value of exports 3... text field display number 3 and so on. I get this with this script:

    getField("polje").value = this.getField("group").value;

    So far, everything works perfectly. Now... problem. I have an another textfield, named "procent. Its mission is to show the additional text of specific value.

    If the "polje" field indicating the value 1, 'this' textfield should display "30%", if the value is 2 then "60%"...and so forth.» Everything works fine... only with 0... .then textfield stay empty but it should display '0% '. I don't know why.

    The script I use:

    var p = this.getField("polje").value;

    Si (p == « ») {}

    Event.Value = "";

    }

    Else if (p == 0) {}

    Event.Value = "(0%)" » ;

    }

    Else if (p == 1) {}

    Event.Value = "(30-40 %)" » ;

    }

    Else if (p == 2) {}

    Event.Value = "(60-70 %)" » ;

    }

    Else if (p == 3) {}

    Event.Value = "(90-100 %)" » ;

    }

    Else if (p ==-1) {}

    Event.Value = "(-30-40 %)" » ;

    }

    Else if (p ==-2) {}

    Event.Value = "(-60-70 %)" » ;

    }

    Else if (p ==-3) {}

    Event.Value = "(-90-100 %)" » ;

    }

    Where I did something wrong?

    You should get the field values as strings and compares them to the strings, something like:

    var p = this.getField("polje").valueAsString;

    if (p === "") {

    Event.Value = "";

    }

    ElseIf (p = '0') {}

    Event.Value = "(0%)" » ;

    }

    ElseIf (p = '1') {}

    Event.Value = "(30-40 %)" » ;

    }

    ElseIf (p = '2') {}

    Event.Value = "(60-70 %)" » ;

    }

    ElseIf (p = '3') {}

    Event.Value = "(90-100 %)" » ;

    }

    ElseIf (p = '-1') {}

    Event.Value = "(-30-40 %)" » ;

    }

    ElseIf (p = "-2") {}

    Event.Value = "(-60-70 %)" » ;

    }

    ElseIf (p = '-3') {}

    Event.Value = "(-90-100 %)" » ;

    }

  • Connection of a drop-down text field and box

    Untitled.jpg

    I am new to livecycle and have only used it for 2 days. I be so grateful for all the amazing expert help I found here. I think that my first form is almost over. I'm having a problem with one last question. I created a database with two fields. field 1 is name and displays a name I.E. John Doe, zone 2 is ID and contains a single string as 12345678. I created a drop down list for name and it works fine, I see all the names in the database. I then created a text field I want to show ID in.

    Example when

    Name                            ID

    John Doe 12345678

    And if another use is selected

    Name                            ID

    DOE 12345987

    How can I connect these two fields to display the correct data?

    Hello

    When you have linked the drop-down list for the data connection you set the value of the element and the text of the item properties in this dialog box

    If you have set the value of the element to ClientID, which would get the customer name and customer id in the drop-down control on the form, then this.boundItem (xfa.event.change) when xfa.event.change contains a text value of the element will return the value of the element (or the id of the customer in your case)

    Concerning

    Bruce

    .

  • I work in forms in Adobe Acrobat Pro - My Add a text field and add the jump buttons checkbox in the page and do not place I wish it. How should I do?

    I'm working on a scanned page that I insert form fields. I used this exact page before with no problems, but now when I go to add a text field in the box, it jumps all over the page and not have a place where I want to. How can I solve this problem. I tried to open a blank version of the page and they all do the same thing.

    Go to view show/hide - leaders & Guides and uncheck the snap to grid

    option.

    Wednesday, June 11, 2014, at 8:42, surfer hawaii [email protected]>

  • Search for text in a text field and make the required field

    I have a text field if the user has entered a value, then the box that follows must be mandatory. I have this script that works (sort of), but I do not know what event to use to get the results I want. I want the message and the box mandatory if something is entered in the field.

    Here's the script:

    If ((this.rawValue! = "null") |) (this.rawValue! = ""))
    {
    CheckBox3.mandatory = 'error ';
    App.Alert ("Please indicate that you have reviewed the similar profile and agree with him");

    }

    else if ((this.rawValue == "null") |) (this.rawValue == ""))
    {
    CheckBox3.mandatory = "disabled";
    }

    Thank you

    MDawn

    You can put your script to output the text field event.

  • editable text field and button is not editable when added to the Manager of the Horizontal

    I find layout, when I added the button and EditField horizontally, Manager, I'm not able to write something in the EditField and not able to click on the button

    public class MyStorySearch extends MainScreen
    {
    
        private VerticalFieldManager mainManager;
        private VerticalFieldManager subManager;
        private Bitmap _backgroundBitmap = Bitmap.getBitmapResource("a.png");
        private int deviceWidth = Display.getWidth();
        private int deviceHeight = Display.getHeight();
        LabelField lbl;
        ButtonField gobtn= new ButtonField("Go");
        HorizontalFieldManager hfm = new HorizontalFieldManager(Manager.FOCUSABLE|Manager.EDITABLE);
        private Field editfild;
        Bitmap bitmapImage = Bitmap.getBitmapResource("storysearch.png");
        BitmapField fieldDemo;
    
        public MyStorySearch()
        {
            super(NO_VERTICAL_SCROLL);
            //this manager is used for the static background image
            mainManager = new VerticalFieldManager(
                              Manager.NO_VERTICAL_SCROLL |
                              Manager.NO_VERTICAL_SCROLLBAR )
            {
                public void paint(Graphics graphics)
                {
                    graphics.clear();
                    graphics.drawBitmap(0, 0, deviceWidth,
                             deviceHeight, _backgroundBitmap, 0, 0);
                    super.paint(graphics);
                }
            };
    
            //this manger is used for adding the componentes
            subManager = new VerticalFieldManager(
                             Manager.VERTICAL_SCROLL |
                             Manager.VERTICAL_SCROLLBAR )
            {
                protected void sublayout(int maxWidth, int maxHeight)
                {
                    int displayWidth = deviceWidth;
                    int displayHeight = deviceHeight;
    
                    super.sublayout( displayWidth, displayHeight);
                    setExtent( displayWidth, displayHeight);
                }
            };
    
            //add your component to this subManager
            lbl = new LabelField("SUNRAYS SEARCH", LabelField.USE_ALL_WIDTH | DrawStyle.HCENTER);
            Font myFont = Font.getDefault().derive(Font.PLAIN, 10, Ui.UNITS_pt);
            lbl.setFont(myFont);
            subManager.add(lbl);
            subManager.add(new SeparatorField());
    
            editfild = new EditField(){
                protected void layout(int width, int height) {
                    setExtent(width*85/100, 30);
    
                };
            };
            editfild.setBorder( BorderFactory.createSimpleBorder( new XYEdges(2, 2, 2, 2),
                    new XYEdges(Color.BLACK, Color.BLACK, Color.BLACK, Color.BLACK), Border.STYLE_SOLID));
            editfild.setBackground(BackgroundFactory.createSolidBackground(Color.WHITE));
    
            hfm.add(editfild);
            hfm.add(gobtn);
    
            subManager.add(hfm);
    
            //add subManager over the mainManager
            mainManager.add(subManager);
    
            //finally add the mainManager over the screen
            this.add(mainManager);
        }
    }
    

    The following code shows an EditField and a button, and I can type in the EditField and click the button.  It is not perfect, but at least it works.

    I don't know what the problem is with your code.  I suggest review you my code, review your code and investigate things that are different.

    Two areas I would focus on your layout and the sublayout.  As stated in a previous post, if you must code a setExtent in a layout, then you should really think about creating your own Manager - I gave you links to do this several times.  And if you plan to use a standard field and to make it work properly, you must use the sublayout.  Here is a link to help you create custom fields:

    http://supportforums.BlackBerry.com/T5/Java-development/create-custom-fields/Ta-p/444962

    Edit:

    Thanks for the update of these discussions.

    And I'm sorry.   I forgot to paste the code...  Here, it is now...

            EditField editfild = new EditField(){
                protected void layout(int width, int height) {
                    super.layout(width*85/100, height);
                };
            };
            editfild.setBorder( BorderFactory.createSimpleBorder( new XYEdges(2, 2, 2, 2),
                    new XYEdges(Color.BLACK, Color.BLACK, Color.BLACK, Color.BLACK), Border.STYLE_SOLID));
            editfild.setBackground(BackgroundFactory.createSolidBackground(Color.WHITE));
            ButtonField gobtn= new ButtonField("Go") {
                protected boolean navigationClick(int status, int time){
                    Status.show("button clicked");
                    return true;
                }
            };
            HorizontalFieldManager hfm = new HorizontalFieldManager();
            hfm.add(editfild);
            hfm.add(gobtn);
            this.add(hfm);
    
  • Autopopulate text field based on LOV in OFA

    Hello

    I have two fields as project no and the name of the project. Project, no field is LOV so much based on the selected value of LOV the project name field shd automatically filled with the name of the project. Please help me make this scenario.

    Thank you

    Haja has

    Add an extra lovMap to the LOV and card ProjectName.

    You must have the name of the project in the LOV region as well.

    Let us know if you have any questions.

    The link below helps you to understand the LOV events.

    Advice from the Oracle Johny: OAF: how event Capture LOV in Oracle Application Framework

    See you soon

    AJ

  • Simple form: just 1 text field and the radio button 2...

    I have a question about the Muse Widgets when it forms.  I have a very simple interface, I want to try to apply an additional tax of an amount of entry; I want to give the user the ability to select Add fresh or not.

    The only widget I found on current Muse was a Simple Contact form emails. I've stripped down to 1 input text, group 1 radio. I exported html code, added in the onclick event in the HTML for the radio buttons perform the calculation of the additional tax.  On the action of the form = "xxx", muse creates a few php files for validation and finally sending the form as an email, I have a test in the form e-mail address.  I can stub out that php and put in my own actions to waive the sending of the email.  I have 2 questions: ONE QUESTION) on the level of code there is a control of the syntax form fields (corresponds to the entered text input, is a selected radio button, etc.). SimpleContact form comes with 3 < p > < / p > due to the action of the form = "xxx" statement. The 3 lines correspond to the errors, which is a generic "server has encountered a problem." (something like that).  Does anyone know what code is to identify the error and how it is returned to the call statement? MuseUtils.js?  It is not in the action = "xxx" php referenced file.  It maybe too much, I'm interlacing syntax, semantic validation on a form after the muse html export.  Second QUESTION) is before all this... it all simple forms of 3rd party, I can use (Group 1 radio 1 text, drop-down list), which I can integrate Muse?  Looked at Muse-themes.  Don't have a complete package of e-commerce, yet.  (This is for a non-profit and trying to reduce recurrent costs).  Sorry, this is so wordy, appreciated by any direction.

    Answering the second question, you can check out these alternatives:

    http://musewidgets.com/search?q=form

    Thank you

    Sanjit

  • data duplicated in text fields - and or digital

    How to avoid enter the same variable data in a PDF form. I don't want that the user must write the text several times in copies of page a formfields form PDF to Page 2 with the same fields of text and digital.

    Gr8 all the best.

    Regards-

    Chalukya.

  • Text fields and fields digital ubiquitous automatically updated

    Hi all

    I was learning and beginning to design forms in LC designer since last week. As a result of an assignment, I have to design a 2-page form which is mainly about 3 different products outside of the desription and instruction... ; Let's say A, B and C. What I don't understand are:

    • Suppose I have a drop down list, I choose, and then the text in the desription, instruction, the price will be adjusted accordingly. The same for B and c. (put it in other words, how to one/link between the field of text and drop-down list or any other list / field?)

    I found an interesting-but-confusing article to the http://acrobatusers.com/tutorials/2007/js_list_combo_livecycle

    • And if there is a numeric field, I hope that when I type a number in there, it can be used for the calculation and the result can be seen in the text of the Bill.

    He comes to know that it requires a large amount of JavaScript code, but I have no basic understanding of JavaScript. I'm starting to learn now but do not know exactly where to start (some ebooks tutorial I've found are really thick and heavy). Seem like it is not possible to learn it in a few days and this is a big one for me assignment since then.  It would be great if anyone can guide me how to give meaning to these problems.

    For the same form, you can define the fields you want to have the same data in the same name, and then set its property binding at the global level.

    You can export the data in a form using menu items to Acrobat/Reader, and then using this menu you can import them into your new form. Note that both forms have the same structure and the naming convention for the data to bind properly. You can have a master schema to define the data for all forms, then you could link to the appropriate schema components.

    Paul

Maybe you are looking for

  • Requests for repeated e-mail sign-in

    One time, I started to receive applications of password to connect to multiple e-mail accounts at the opening of my MBA.  The accounts range from gmail, aol and outlook.  I never forget a password request for my iCloud email account. Any way to preve

  • House sharing is not showing images?

    I have a 64 gb atv4 First of all, I am disappointed that ICloud photos is not compatible with this new machine. However, he has worked to spread my photos of my iMac that will be sufficiently far, but after the update I can't see pictures under "comp

  • TS 2014 64-bit Results.TS.starttime

    I run teststand 2014 64 bit.The passage of starttime in the future, as plu teststand is open. The behavior is different for previous versions of teststand. So maybe the motor teststand ever close? Bug or feature?

  • Error Msvcr71.dll missing when you try to install the software of the weather channel

    I tried to install the software of THE WEATHER CHANNEL after the download. Every time my an error message says "missing Msvcr71.dll" must be reinstalled to continue. My question: my computer is new (two days), how can we lack a .dll file? How can I r

  • HP6500A Fax problems

    Fax line rings when the telephone line is disconnected for the HP6500A - when I connect to the phone line and someone is trying to send me a fax all that they get is a busy signal?