Search with no required fields page

JDev ADF BC 11.1.2.3.0

I have a search page that has 12 fields where nothing is mandatory, everything by entering at least one (one of the fields) is mandatory. I am looking to reduce the code in this case, I don't want to use a bean stored procedure or support method for managing the if and else. I'd be happy to manage it to the model part itself (through the criteria or appropriate SQL query writing bind variables/view).

Hopefully the use case is clear.

You can use ViewCriteria with ownership Validation "selectively required.

Dario

Tags: Java

Similar Questions

  • Message box with the required fields

    I have a box, and when I check I would like for other required fields. I seem to have this part works very well, so that when the user tries to submit the form without entering the data in this field, it throws an error message.

    I would like to take a little further, that when the user MOVES out of the field, it is also a message. And when the check box is NOT checked, there is no error message if the field is empty.

    I put the following code in the field under the exit event:

    if (this.rawValue == '' || this.rawValue == null || trainingCB =="1") {
        xfa.host.messageBox("Training agenda required");
    }
    

    However, the message box is popping up even when the checkbox is unchecked. How do I get this only appears if the field is empty AND the check box IS checked?

    Figured it out. Two simple problems.

    First of all, I was not using the & and in my case. Second, I forgot to put .rawValue on something. If the corrected code looks like this:

    if (trainingCB.rawValue == "1" && (this.rawValue == "" || this.rawValue == null)) {
        xfa.host.messageBox("Training agenda required");
    }
    
  • New search with two different database Page

    Hi all

    I got a new work in which I design a page using OFA where, in two fields (2 boxes) are present that references on behalf of the Organization and values such as LPN...

    ----------------------------------------------------------------------------------------
    Name of organization: (text box with LOV icon)

    LPN values:---(zone de texte avec icône LOV)

    Go cancel


    Table of results

    -----------------------------------------------------------------------------------------


    In this the is organization name text box refers to a database and the Lpn to the other databases values text box...

    In case of employee exercise research I got the name of the employee and the employee number in the same database... But here its different... How do I get this resolved? Is it possible to do so in the OPS?

    Ganesh

    Then no problem. Create two different VO and create messageLovInputs based on these VO. Let us know if you face any problems with it.

    Thank you
    AJ

  • [adf:popup] Cancel a popup with the required fields

    Hello everyone

    I have a requirement in which I need to change some values of a required attribute, but I don't know how to cancel the popup without triggering the error: "this field is required.

    Does anyone has solutions?

    Thanks in advance
    Angel

    Hello
    on the Dungeon of button cancel immediately = 'true '.

    Published by: dhiraj Clement on November 17, 2010 04:24

  • Help with required fields please

    I tried to get help with a required field and of forum aid said he's got to work for me but I can't and I have not been able to get answers more of him to help me more.

    I try to have a radio box when YES is selected to demand another field to fill.  The script I got is:

    getField("Location").required = (getField("Group1").value == 'Yes');

    Location is the area I need to be filled if the Group 1 is Yes.  The previous programme of assistance forum said I had to have this script in the two fields in Group 1 and when I do that, nothing else happens.

    What I am doing wrong?

    Please, I need to fix this immediately and I'll use this java script on many other forms that I have so I need to get there soon.

    Thank you in advance.

    This works.  It's perfect.  Thank you very much. You're my hero!

  • Required fields forms Adobe XI

    Hello

    I am new to JVS and I need a little help from you guys.

    I have a form created with Adobe XI with some required fields. The only thing I found on the forum in fact to force the user to fill in these fields was to add a JVS code to a button to the pop-up window, a message indicating to the user that the field... .this... .and this... and this... must be filled. The code looks like:

    var emptyFields = [];

    for (var i = 0; i < this.numFields; i ++) {}

    var f = this.getField (this.getNthFieldName (i));

    If (f.type! = "button" & & f.required ") {}

    If ((f.type=="text" & & f.value== "") |) (f.type=="checkbox" & & f.value=="Off")) emptyFields.push (f.name);

    }

    }

    If (emptyFields.length > 0) {}

    App.Alert ("error! ("You must fill in the following fields: \n" + emptyFields.join ("\n"));

    }


    What I want to do, it's when the user ends to complete the entire form, he's going to push a button that will validate the form (above the code) and then trigger a save us to dialogue.

    My question is to know how to make a link to existing code, another code for save us function that will jump upward from the economy than us to dialogue ONLY if the user filled the form, otherwise will give the java script error message.

    NOTE: I tried with properties button / Action menu and added THE FOCUS the above JavaScript code and then execute a menu / save us... but this will jump to the top of the error if the required fields are empty and also save it without worrying about us dialogue the user will fix or not empty fields .

    Your help is very appreciated,

    Adrian,

    Add this line at the end of the code:

    of other app.execMenuItem ("SaveAs");

  • Digital signature field-how to disable until all required fields are valid?

    I have a document with several required fields, but the user can sign the form without worrying if these fields are valid. Is an option in LiveCycle to control this, IE invalid Signature field until all required fields are true? I think that this could include additional JavaScript. However, I would like to get some advice from others with more expertise.

    Thank you
    Andy

    Hi Andy,.

    Here's a sample: https://acrobat.com/#d=rm5V4y7ANBcmZTsrcXxp1w

    It uses two functions execValidate(), which validates the form and returns true, the form is valid and false if there are errors. PreSign event has access to the cancelAction property, so if there are errors, the cancelAction is set to true.

    I also used the new form Validation features in LC Designer ES2 to combine error messages.

    Good luck

    Niall

  • Suddenly, when I search using the address field, I am is more directed directly on the site I look for ex-BBC, as I was before. To place a web page

    When I search using the address field, I am is more directed directly on the site I look for ex-BBC, as I was before.

    Instead Google web page appears with a list of proposals, and I have to click on the link to the BBC it to get on the site.

    Ways you can give me the code to insert in the "topic: config" keyword. URL

    r

    Take a look at this module.

    https://addons.Mozilla.org/en-us/Firefox/addon/keywordurl-hack/

  • Validation of required fields on create page

    Friends,

    I need help on a problem. I created a page to input data with two data fields, save and Cancel buttons.

    I've marked these two fields as required, so when I hit the button with the data to save his shot a pop-up box indicating that they are necessary.

    So far so good.  But when I hit Cancel postings still draw. I want the validations to fire when I hit the Save button only.

    Can you please let me know how I can get this feature.

    Thank you

    Sri.

    OK my mistake there, it should be real change these properties to True and try.

    BR, 906099

  • Search only to hide resulted pdf pages when search results will require a readjustment

    Hi all

    I have a pdf of dynamic xml form, when open the pdf doc, only one page will be visible on this page I have search features. Once I do a search on this page according to research he reveals these pages (which are satisfied with the search conditions). In each page of search results I have a "Return to Homepage" button, when the user click of button on the search results needs to be reset (need to hide all no hidden page and update should come to the search page).

    Actually, I got this feature but here when the user clicks on the "Back to Home Page" button, I'm hidding all the pages in pdf doc. Here, I need to hide only the pages that are displayed not all pages in pdf format. My code snippet as follows (assume that doc pdf has 8 pages)

    topmostSubform.Page1.presence = 'hidden ';
    topmostSubform.Page2.presence = 'hidden ';
    topmostSubform.Page3.presence = 'hidden ';
    topmostSubform.Page4.presence = 'hidden ';
    topmostSubform.Page5.presence = 'hidden ';
    topmostSubform.Page6.presence = 'hidden ';
    topmostSubform.Page7.presence = 'hidden ';
    topmostSubform.Page8.presence = 'hidden ';

    How to hide only search pages has resulted. Because if I have 500 pages in pdf doc, I need to write to hide for each page. I need to avoid this.

    Thanks in advance

    Prasad Salvan

    Hi Prasad,

    Since you had the search criteria to make the required pages visible, I would put in place a global variable (in the file / form properties / Variables tab) and then the search script put the search criteria in the global variable (when accessing the global variable, you must only .value, instead of .rawValue).

    When you set the global variable you must give a name and an initial value of "0".

    Then the button "go to the search page" would include script to hide the page references in the global variable.

    Good luck

    Niall

  • JavaScript application: I need to validate 1 page of a multipage requiring field doc are not empty.

    Here is the Javascript code I have so far and it is not working properly.

    He's back "Zip" when any required field is empty and it won't accomplish what I want to do because I need to validate that a single page of a 10-page document.

    Any help would be gladly appreciated.  I'm definitely on the bus of struggle.

    var emptyFields = new Array(); Table to contain the names of incomplete fields;

    var oField; a variable that contains the test field object;

    var numArray = [1, 2, 5, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 21, 25, 26, 31, 32, 33, 35, 36, 37, 38, 39, 43].

    for (var i in numArray) {}

    oField = this.getField (this.getNthFieldName (i));

    If (oField.type! = "button" & & oField.required ") {}

    check according to the type of field

    {Switch (oField.type)}

    case "button":

    break;

    case 'checkbox ':

    case 'radiobutton ':

    If (oField.value == oField.defaultValue & & oField.value == "Off") emptyFields.push (f.name);

    break;

    case "combobox":

    case "listbox":

    case 'text ':

    if(oField.Value == oField.DefaultValue) emptyFields.push (f.name);

    break;

    case "signature":

    if(oField.Value == oField.DefaultValue) emptyFields.push (f.name);

    break;

    by default:

    App.Alert ("Field not processed" + oField.name + "type" + oField.type, 1, 0);

    break;

    }

    }

    }

    If (emptyFields.length > 0) {}

    App.Alert ("error! ("You must fill in the following fields: \n" + emptyFields.join ("\n"));

    }

    Here is my final product for sharing:

    var emptyFields = []; Table to contain the names of incomplete fields;

    var oField; a variable that contains the test field object;

    var numArray is ['field1', 'Field2', 'field3'];.

    var index = 0;

    var len = numArray.length;

    Console.println ("length of the array:" + len);

    for (var i in numArray) {}

    Console.println ("Index:" + index);

    Console.println ("numArray:" + numArray [i]);

    oField = this.getField(numArray[i]).value;

    Console.println ("oField:" + oField);

    ++ index;

    check according to the type of field

    If (oField == "") {}

    var a = this.getField(numArray[i]).valueAsString;

    Console.println ("Value:" + a);

    emptyFields.push (numArray [i]);

    }

    If (index == numArray.length & emptyFields.length > 0) {}

    App.Alert ("you must fill in the following fields: \n" + emptyFields.join ("\n"));

    }

    }

  • Not able to cancel page create without entering the required fields

    Hi all

    I am creating a custom page. I have a new folder creation Page. In this page the 3 fields are required. So I made these fields as required-> Yes. If the user clicks the Cancel button, it must navigate to the previous Page.

    But because of required fields, it's show "form validation failures: ' error. Is requested to enter required fields.


    Kindly help me in this.


    Thank you and best regards,

    Myvizhi

    Make the following property of the button Cancel to "True".

    Disable the side customer Validation

  • Problem to browse to files in the page with the text field with special characters

    Hello.
    I have a very interesting thing happening in my APEX (4.0.1) application.

    I have problems with a text field, because when I insert the text 'aaaaa' and send the page, the text is transformed in "Aaa£ aa.
    After some time trying to understand the game characters and translations and etc, I realized that this thing happened in some pages.

    Then, I started to remove components of the page where it happens and I discovered that what initially is an element to browse file...
    Every time I have send the page, if there is an element of browse file created on the page, the text is changed. If I delete the queue item browse, when submitting the page, the text remains correct.

    Is it supposed to work like this? And if yes, why is it?

    Thank you.
    vssantos

    Published by: vaissantos on April 1st, 2011 22:45

    Is it supposed to work like this?

    No, of course not.

    Of one of your previous posts, it seems that you use the APEX? If so, similar problems have been reported a number of times before: + {: identifier of the thread = 1104224} + suggests a fix.

  • Conditional required field - need help with refresh

    Use this code to require a field if selection #30 is chosen from a drop-down list.  In tests, it works but only after I select things twice, it seems also need refresh/clear the values before it will make the required field.  Example if I select any other choice that the e-mail is going ok and the first time I select #30, it passes through, but if I select #30 a 2nd time, I get a message telling me that at least one of the required fields is not finished... which is a 2nd part to this question.  Is it possible to tell the person what field is missing data, or automatically place the cursor in the field?  It is not as critical in the refreshing part.  Thank you!

     if
    (this.rawValue =='30'){
    Q11_Comments.mandatory 
    = "error";
    }
    else
    {Q11_Comments.mandatory 
    = "disabled";
    }
    

    Selections from drop-down menu only recording not until you exit the field, so your code would probably work on the Exit event.

    To operate when the selection is made, you can use xfa.event.newText so try this like your statement:

    If (this.boundItem (xfa.event.newText) is '30')

  • How can I get the search bar on the home page of Firefox to stop mirroring of what is in the search toolbar?

    This seems to be something new, but I usually use the built in the toolbar to search at the top right of my Firefox window to search eBay and I usually go to the Firefox default Home/Start for searches on Google page. Now, it seems that whenever I try to search from the home/start page, I get the results of any search engine is specified in the top search bar. So if toolbar is set to 'eBay' and I search something on the homepage, only eBay results appear.
    I don't want to do. I want that the Google search home page every time, no matter what is on my search toolbar. It's really annoying to have to go to the search bar engine resume Google and then my search. I often open new tabs quickly find something relevant to what I'm working on because it requires less effort to hit Ctrl + T to open a new tab that is already on the cover with my cursor in the search field, than using the toolbar where I have to take my hands on the keyboard to use the mouse. How can I fix it. This "improvement" sucks.

    I forgot an obvious solution to this problem. I just changed my homepage of "www.google.com" rather than use the default Firefox homepage. In hindsight, it makes little sense to use the default Firefox homepage as an intermediary to Google anyway.

Maybe you are looking for

  • Satellite C850D-13F - driver graphics card has been restored

    Hi guys,. I bought a 13F C850D last December.This PC has a dual card graphics, but since the early days, sometimes using a browser display normally start intermittently up to that on the lower right. In the sidebar, a message telling me that:display

  • Librarian needs help

    On my 2011 Mac Mini (OSX El Capitan) I seem to have two libraries - photos Finder shows the entries for - iPhoto Library.photolibrary and Photos Library.photoslibrary The two have different pictures in these libraries - what they are for, and I can m

  • LifeCam studio won't launch

    Hello My lifecam studio worked pretty well, but I kept getting a message saying something about the requirements is not enoughbut it was the path in front of the requirements. but I was going to upgrade my CPU when even if I upgraded from AMD Phenom

  • Outlook 2007 Email sending his own

    Intermittently when I send an email from Outlook 2007, it is just to send e-mail while I still type and have yet to complete the email or click on the Send button.  Does anyone know what is the cause?

  • Display the name of the tag as the column name and the value in the tag as a row of data from the input string.

    Hi Forum members,I am looking for a query display the name of the tag as the column name and the value in the tag as a row of data.I have to print the values within the tag to a file by choosing the value of the flags. the sequence of the tags will v