Search page with Non-Mandatory Fields

JDev 11.1.2.3.0 ADF BC
I have a Search page that has 12 fields where Nothing is mandatory while inputting at least one(any of the fields) is mandatory. I am looking to reduce the code in this case, I don't want to use a Stored procedure or backing bean method to handle the if and else's. I would be excited to handle this at the Model part itself(Writing a proper SQL query or by means of bind variables/view criteria).
Hope the use case is clear.

You can use ViewCriteria with Validation property set to "Selectively Required"
Dario

Similar Messages

  • Null pointer exception in Search page with ADF

    Hi,
    I have an entity and view object for table1. I created one more viewobject for the same entity object. And the viewobject has the following query with a bind variable.
    select * from table1 where table1.value = :bindVar
    I added this view object into my application module. I dragged and dropped the 'ExecutewithParams' option into my jsp page. I was trying to run this page to atleast get the search field. But I am getting following exception.
    javax.faces.el.EvaluationException: java.lang.NullPointerException     at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:190)     at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)     at com.sun.faces.util.Util.evaluateVBExpression(Util.java:974)     at com.sun.faces.taglib.jsf_core.ConvertNumberTag.evaluateExpressions(ConvertNumberTag.java:256)     at com.sun.faces.taglib.jsf_core.ConvertNumberTag.createConverter(ConvertNumberTag.java:219)     at javax.faces.webapp.ConverterTag.doStartTag(ConverterTag.java:130)     at com.sun.faces.taglib.jsf_core.ConvertNumberTag.doStartTag(ConvertNumberTag.java:205)     at resources.jsp._CRSCF001._jspService(_CRSCF001.java:149)     [resources/jsp/CRSCF001.jsp]
    I tried the same search page with a new workspace. But it worked well.
    I am not able to figure out what went wrong with the application.
    Could anyone please help me with this issue?
    Thanks,
    Priya.S

    Hi,
    drag it as a parameter form and it should work as you expect it.
    Frank

  • What is the best qay to create a simple page with three textbox fields

    Hi
    I try to create a Portal page for Password change.
    At first look, I taught that to create that basic page will be easy as one, two , three.
    Unfortunately not.
    I need to create three textbox and include pl/sql validation agains our BD.
    I usually work with a form base on procedure whose contain htp.package procedure
    to create a portal page when that form is called. (Base on the way where Portal manage his own change password page.)
    I try to get a better design of the page.
    Where I get all the information about that package ? I want to center the page.
    Oh yeah, I'm a newbie in html.
    Any ideas will be appreciate
    Thank
    Regis

    Hi,
    You could create a FORM with non base table fields. You could then validate the values on SUBMIT (say through a button) and then do whatever processing,redirection needs to be done.
    Or
    you could create a DYNAMIC PAGE with all html fields and proper alignments etc and on form submit do the relevant processing.
    Thanks,
    Anu

  • Make non-mandatory field in Logical Database 'SDF'  mandatory.

    Hi all,
    I want to make a non-mandatory field 'Chart of Accounts'  in Logical Database 'SDF'  mandatory in my Z program.
    Please let me know how this can be done?
    I tried defining the select-option in my zprogram but it gives error saying the parameter has already been defined in LDB.
    Regards,
    Atrinandan
    Edited by: raj on Aug 3, 2009 7:46 PM

    Hi,
      You can try like below:
    at selection-screen output.
    loop at screen.
    if screen-name = 'NAME OF THE PARAMETER'.
    screen-required = 1.
    modify screen.
    endif.
    endloop.
    Regards,
    Himanshu

  • When we change the non-mandatory field in the form, it doesn't get updated

    Hi... I have one question here..
    If I have non-mandatory fields in a custom form, and when I query the form and change the value in the non-mandatory field and click on save, then it doesn't save. It says 'No Changes to Save'. But, it's not the same for non-mandatory fields.
    Can you please suggest me?
    -vrdida

    VRdida,
    If I understand correctly, you have a non-Required item in your form that has an LOV assigned. While this item is Required=No, it works correctly. When you change the Required property of the item to 'Yes' then it fails. When this occurs, do you get an error message? Are you able to select a value from the LOV?
    It sounds like the Required=Yes property might be preventing you f rom opening the LOV. Try setting the Module property: Defer Required Enforcement = Yes. This is the typical setting in an EBS form. This is what allows you to navigate out of a Required field if the value is NULL, but will give you a Required message when you attempt to save the record if the value is still NULL.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.
    Edited by: CraigB on Apr 6, 2011 11:43 AM

  • Conditionally Mandatory or non-Mandatory field in Isupplier banking Detail Form.

    Hi OA Experts
    I need to make a field mandatory or Non-Mandatory based on Lov item in page "/oracle/apps/pos/sbd/webui/SuppRegActPG", Can I do this by using VO extension , if yes, Kindly guide me as I am new to OAF.

    You need to do VO extension first and add transient attribute in the same VO. Set SPEl to the required field using Controller code.For this You need to do controller extension.
    ++++++++++++++++++++++++++++++++++++++++++++++++
    In PR,
    Set SPEL to the field by initializing the field according to its Style.(OAMessagetextinputBean or OAMessageStyledTextBean etc...)
    +++++++++++++++++++++++++++++++++++++++++++++++++
    Then in PFR use Lov event as below.
    if (pageContext.isLovEvent())
              String lovInputSourceId = pageContext.getLovInputSourceId();
              if ("myLovInput".equals(lovInputSourceId)) // "myLovInput" is the item id of LOV, replace with your LOV on page
                   rendVO.getCurrentRow().setAttribute("xxRenderApprove",Boolean.FALSE);//here handle the SPEL
    I hope this will be enough for your requirement.

  • UIX - Showing search page with no results as default

    I modified the uix page to create a search page for a simple uix page according to the code give in the forum.
    But this shows initially with results.
    I want the results to be shown only when a search condition is given.

    What u have said was exactly mentioned as a solution when I had searched the Forum.
    Ok these were the steps I followed:-
    1. A uix data page created (datapage1.uix) in Struts pagelayout.
    2. Drag and Drop EmployeesView1 from datacontrol pallete.
    3. Added the rendered property for the table in the source code.
    <table rendered="${requestScope.showResults?true:false}" model="${bindings.EmployeesView1}" id="EmployeesView10" partialRenderMode="multiple" partialTargets="_uixState">
    4. Then drag and drop textinput from component pallete for the search value and named it value
    5. Drag and drop a submit button from componet pallete and named it Query also named an event query.
    6. In the handeler for this event i added a go
    7. also added a set in the source code for the handeler
    <event name="query">
    <compound>
    <set target="requestScope" property="showResults" value="${true}"/>
    <go name="query"/>
    </compound>
    </event>
    8. Added a DataAction to which i added my method that was exposed to the client. The code for the method is :
    public final void setCondition(String p_cond)
    ViewObject empvo = findViewObject("EmployeesView1");
         //Creating a Where clause for the query
    String whereclause = "LAST_NAME like '%"+ p_cond +"%'";
    empvo.setWhereClause(whereclause);
    empvo.executeQuery();
    9. then I set the parameter value property in the stuts structure panel for the action top ${param.value}
    10. When I run this page from struts pagelayout The initial display is only the testinput field and the button. After I feed the value and hit the button. The screen just blinks thats it. but no results shown.
    Could some one tell me where have I gone wrong?
    Need help! Urgent

  • Search Page with navigation

    Hello,
    I have a custom Portal Application that displays UCM-content using a Content Presenter Template.
    What type of approach should I use to create a keyword search page that will display links to the Content Presenter Template?
    Thank you!
    Mitch

    Alright, finished MovieLibrary V2 :)
    http://www.yonaweb.be/MovieLibrary_v2.zip
    This project is the same as the first MovieLibrary but i added a search page.
    Like you suggested, i used UCM for the data control of a table. I also bound an inputText to the keyword parameter of the search. This however is not working properly... I will look into this a bit further and see if i can make this to work.
    The result table shows the result. The last column contains a link which will link to the item.jspx page. item.jspx Contains the content presenter.
    First of all, i had to add an additional attribute to the data control because i needed the dDocName to pass it to my presenter. dDocName is not included in the DC by default so you need to add it. Just right click the UCM DC and press edit definition. Add an additional attribute so it points to the dDocName. I already done that in the project so when you edit the definition of the UCM DC, you will see the docname attribute added to the list.
    This is the goLink in the search.jspx that will provide the link to the item.jspx:
    <af:goLink destination="/faces/oracle/webcenter/portalapp/pages/item.jspx?dID=#{row.docname}" text="#{row.ID}"/>As you can see i just add the docname attribute to the URL so we can retreive this later.
    Because we are passing the dDocName to the URL, we need to use a managed bean to retreive it and pass it to the content presenter workflow.
    When you look at the parameters of the content presenter taskflow in item.jspx you will notice that the datasource is set to the managed bean itemBean.
    In itemBean I have following code to return the correct value:
    public String getDataSource(){
          FacesContext ctx = FacesContext.getCurrentInstance();
          String did = (String)ctx.getExternalContext().getRequestParameterMap().get("dID");
          System.out.println("dID: " + did);
          return "UCM#dDocName:" + did;
        }The format of the datasource field in the content presenter taskflow is
    <connectionName>#<filter>:<value>
    so in my case i use the connection with the name UCM and i want the content with the dDocName provided in the URL.
    This will result in something like
    UCM#dDocName:myName
    This is also the value you will see in the table with the link.
    I hope my explenation is a bit clear :)
    If not, just ask.
    Edited by: Yannick Ongena on Apr 14, 2011 10:19 AM

  • Problem with Non-English Fields Output to PDF by JASPER in JDev10.1.3

    I am using jsprx files(designed in i-report) to generate pdf reports out of an oracle database.
    The non-English fields are shown correctly when I output the report into an HTML or when I view it with JasperView.
    If I try making PDF files (JasperExportManager.exportReportToPdfFile) the static fields containing e.g.Arabic/Chineese characters won't be displayed and dynamic fields from the database with non-English contents will be shown as ??? or null.
    I received some suggestions about using PARAMETERS to feed the report instead of FIELDS, which I think can not be helpful in this case and in general.
    I think this should be a common problem. These are the components I am using:
    itext-1.4.7. jar
    commons-digester- 1.7.zip
    jasperreports- 1.2.8.jar
    Any comment or help is appreciated.
    Thanks
    Farbod

    I am using jsprx files(designed in i-report) to generate pdf reports out of an oracle database.
    The non-English fields are shown correctly when I output the report into an HTML or when I view it with JasperView.
    If I try making PDF files (JasperExportManager.exportReportToPdfFile) the static fields containing e.g.Arabic/Chineese characters won't be displayed and dynamic fields from the database with non-English contents will be shown as ??? or null.
    I received some suggestions about using PARAMETERS to feed the report instead of FIELDS, which I think can not be helpful in this case and in general.
    I think this should be a common problem. These are the components I am using:
    itext-1.4.7. jar
    commons-digester- 1.7.zip
    jasperreports- 1.2.8.jar
    Any comment or help is appreciated.
    Thanks
    Farbod

  • Saving Notifications with blank Mandatory Fields

    Dear Experts,
    I have an observation.
    The tabs 10\TAB02 and 10\TAB06 of a notification are having mandatory fields.
    Saving of this notification is refused without filling the mandatory fileds of tab 10\TAB02, but the same thing is not happening with the other tab namely 10\TAB06. (This notification is saving without filling the mandatory fields of this tab).
    How to avoid this?
    Regards
    Jogeswara Rao

    10\TAB01     Notification 1     Header Info
    10\TAB02     Additional data 1     Equipment/Material
    10\TAB06     Location                                            
    10\TAB10     Item     Catalogs & Codes
    10\TAB11     Tasks     Tasks
    10\TAB17     Additional data 4     Additional Data
    20\TAB01     Item overview     Object Part & Damage
    20\TAB02     Item causes     Causes
    20\TAB03     Item tasks     Tasks
    20\TAB04     Item activities     Activities
    This is the set-up.
    -Jogeswara Rao
    Edited by: K Jogeswara Rao on Jul 16, 2010 7:21 AM

  • Search Page with TopLink + ADF Faces

    Hi,
    I develop a project with JDeveloper 10.1.3.1.0.3984 using Toplink and ADF Faces.
    I test with the embedded OC4J Server.
    I must search in a table with 100 000 rows.
    I follow the tutorial ADF Faces (Chapter 7) :
    http://www.oracle.com/technology/obe/ADF_tutorial_1013/10131/index.htm
    The search page contains a search form with the table of results.
    I add a Refresh Condition ${adfFacesContext.postback} that keeps the form from executing the query until the user clicks the search button. (Page 7-10)
    It works, but when I launch the search with some parameters, I have a "out of memory" exception, and the good results are displayed in the table.
    I activate the Toplink log, make a new research, and I see 2 sql requests.
    The first one had the default parameters "%" :
    select ... from company where name="%" and cp = "%" and town="%"
    The second one had the good parameters written in the search form :
    select ... from company where name="Uno%" and cp = "65000" and town="%"
    How to avoid the first sql request ?
    Thanks a lot for your help.
    Greetings
    PM

    Hi Shay,
    Thank for your response. I have followed your advice :
    Re: Search Page - Toplink - Double queries
    After several tests, I simplify the problem. I think that the problem doesn't come from Toplink but ADF lifecycle.
    1 - With JDeveloper, I create a simple named query with two parameters (Toplink).
    2 - After, I generate my facade EJB Session Class, add some debug ouputs to see the parameters in the search method and deactivate the code which call the named query (It was not nessary), and create a JSP page using ADF components.
    3 - I drag and drop the search method from the data control panel to the jsp page and create a parameter form.
    4- I run the application. The search page appears with the parameter form. There is no debug output. When I complete the search form and click on the search button, I see the parameter values in the log console. It's normal.
    5- Now, I drag and drop the collection from data control panel to the jsp page and create a ADF Read-Only Table.
    6- I complete Refresh condition :
    <methodIterator id="searchComp2Iter"
    Binds="searchComp2.result"
    DataControl="SessionEJBLocal" RangeSize="10"
    BeanClass="test.model"
    RefreshCondition="${adfFacesContext.postback &amp;&amp; ( bindings.argum1 != null) &amp;&amp; (bindings.argum2 != null) }"
    Refresh="ifNeeded"/>
    7- When I launch the application, There is no debug output. The refresh condition works.
    8- I fill parameters and I click on the search button. I obtain the log :
    07/01/03 11:21:49 TEST 2
    07/01/03 11:21:49 argum1 :null
    07/01/03 11:21:49 argum2 :null
    07/01/03 11:21:49 TEST 2
    07/01/03 11:21:49 argum1 :a
    07/01/03 11:21:49 argum2 :b
    The EJB Session search method is called twice. It's the problem. Why the first call?
    9- When I click a second time on the search button, the EJB Session search method is called once.
    07/01/03 11:22:03 TEST 2
    07/01/03 11:22:03 argum1 :a
    07/01/03 11:22:03 argum2 :b
    How can I have only one call in paragraph 8 ?
    Thank you for your help.
    P.M. MARTIN

  • Non mandatory fields

    Dear Frnds,
                        I need payments terms, shipping point and incoterms to be removed/made non mandatory in VA21 and VA01. I am looking at SHD0 as an option but after ticking the above fields to be invisible i cant seem to be able to save it in a package. plss assist
    Regards
    Cam

    Dear  Camilla,
    Remove these fields from incompletion procedure for  that document type.
    Follow this link
    how will i configure incompletion procedure
    Regards,
    Nitin Jaiswal

  • Mandatory and non-mandatory fields

    Hi all,
    Is it possible to have certain fields in VD01 mandatory for one user and the same fields are non mandatory for another user.If so, can anyone please explain it.
    Thanks in advance
    Sandeep

    Hi,
      In the customizing you can set up mandatory based on the account groups..But not for each user..Instead you can do it through user exit..
      Check this user exit EXIT_SAPMF02D_001.
    Thanks,
    Naren

  • Publishing pages with non-ASCII characters to folder

    There is a weirdness/anachronism in exported file names from iWeb'08.
    I have a page "Mökin katto" (that is Finnish).
    "ls" in Terminal shows the exported folder ok, like
    Mökin_katto.html
    Mökinkattofiles/
    Tarring and uploading to show on my Apache web server did not work so good, though. I changed the server to operate in UTF-8 locale and also use UTF-8 as the default character set. Still no success. At this point, I wanted to check the exported folder in the source (my MacBook). Tab completion didn't work:
    % Mö<TAB>
    didn't give any results. At this point, I wrote a simple Python script to dump the filenames. I created pages with different Scandinavian characters and capitalizations to demonstrate (I have cleaned the output a bit to remove unnecessary filenames):
    % ls
    MäkiÄn_katto.html MökiÖn_katto.html feed.xml
    MäkiÄnkattofiles/ MökiÖnkattofiles/ index.html
    MåkiÅn_katto.html Mökin_katto.html
    MåkiÅnkattofiles/ Mökinkattofiles/
    % ~/repos/scripts/misc/dirdump.py
    MäkiÄn_katto.html 'M(4d)' 'a(61)' cc88 'k(6b)' 'i(69)' 'A(41)'cc 88 'n(6e)' '_(5f)' 'k(6b)' 'a(61)' 't(74)' 't(74)' 'o(6f)' '.(2e)' 'h(68)' 't(74)' 'm(6d)' 'l(6c)'
    MäkiÄnkattofiles 'M(4d)' 'a(61)' cc88 'k(6b)' 'i(69)' 'A(41)'cc 88 'n(6e)' '_(5f)' 'k(6b)' 'a(61)' 't(74)' 't(74)' 'o(6f)' '_(5f)' 'f(66)' 'i(69)' 'l(6c)' 'e(65)' 's(73)'
    MåkiÅn_katto.html 'M(4d)' 'a(61)' cc8a 'k(6b)' 'i(69)' 'A(41)'cc 8a 'n(6e)' '_(5f)' 'k(6b)' 'a(61)' 't(74)' 't(74)' 'o(6f)' '.(2e)' 'h(68)' 't(74)' 'm(6d)' 'l(6c)'
    MåkiÅnkattofiles 'M(4d)' 'a(61)' cc8a 'k(6b)' 'i(69)' 'A(41)'cc 8a 'n(6e)' '_(5f)' 'k(6b)' 'a(61)' 't(74)' 't(74)' 'o(6f)' '_(5f)' 'f(66)' 'i(69)' 'l(6c)' 'e(65)' 's(73)'
    Media 'M(4d)' 'e(65)' 'd(64)' 'i(69)' 'a(61)'
    Mökin_katto.html 'M(4d)' 'o(6f)' cc88 'k(6b)' 'i(69)' 'n(6e)' '_(5f)' 'k(6b)' 'a(61)' 't(74)' 't(74)' 'o(6f)' '.(2e)' 'h(68)' 't(74)' 'm(6d)' 'l(6c)'
    Mökinkattofiles 'M(4d)' 'o(6f)' cc88 'k(6b)' 'i(69)' 'n(6e)' '_(5f)' 'k(6b)' 'a(61)' 't(74)' 't(74)' 'o(6f)' '_(5f)' 'f(66)' 'i(69)' 'l(6c)' 'e(65)' 's(73)'
    MökiÖn_katto.html 'M(4d)' 'o(6f)' cc88 'k(6b)' 'i(69)' 'O(4f)'cc 88 'n(6e)' '_(5f)' 'k(6b)' 'a(61)' 't(74)' 't(74)' 'o(6f)' '.(2e)' 'h(68)' 't(74)' 'm(6d)' 'l(6c)'
    MökiÖnkattofiles 'M(4d)' 'o(6f)' cc88 'k(6b)' 'i(69)' 'O(4f)'cc 88 'n(6e)' '_(5f)' 'k(6b)' 'a(61)' 't(74)' 't(74)' 'o(6f)' '_(5f)' 'f(66)' 'i(69)' 'l(6c)' 'e(65)' 's(73)'
    Scripts 'S(53)' 'c(63)' 'r(72)' 'i(69)' 'p(70)' 't(74)' 's(73)'
    Apparently Ö and ö are translated to the sequences '"O" 0xcc 0x88' and '"o" 0xcc 0x88', Ä and ä to '"A" 0xcc 0x88' and '"a" 0xcc 0x88' and finally Å and å to the sequences '"A" 0xcc 0x8a' and '"a" 0xcc 0x8a'. Looking into this a bit more, those ("0xcc 0x88" and "0xcc 0x8a") are the UTF-8 encodings of COMBINING DIAERESIS (U+308) (http://www.fileformat.info/info/unicode/char/0308/index.htm) and COMBINING RING ABOVE (U+030A) (http://www.fileformat.info/info/unicode/char/030a/index.htm).
    The generated links in the pages are in the short (Latin1 equivalent) form, but the filenames are in this format. The meaning of the strings is the same, but e.g. Apache doesn't internally canonicalize the paths, which results in broken URLs. I think iWeb should export the filenames and the URLs in identical UTF-8 strings (which quite likely should be the Latin1-equivalent Unicode code points). Especially as e.g. Terminal and bash only work with the short forms.
    Is there an option to make iWeb behave this way?

    I tried checking whether changing my keyboard layout (I've created the current one with Ukelele) to one which wrote decomposed characters changed things; it didn't. The filenames and generated html-files contained identical entries; I could use tab-completion for the generated filenames, though. (Bash was otherwise a bit confused about the change, so I can't recommend this)
    By canonicalizing the filenames with a script on the server (a Debian GNU/Linux system) end I can now make it work; the root cause of the discrefence between the file name and the URLs in the generated HTML is still a mystery. This would've worked if iWeb wrote decomposed UTF-8 characters to the URLs, also.

  • JPA - How to map relation with NON-KEY field.

    Hello.
    Problem with mapping is NullPointerException when calling EntityManager em.createNativeQuery:
    Table1 (Bm_Treeassoc):
    MY_ID (Primary Key)
    BOOKMARKID (-> MY_ID in Table2)
    Text
    Table2 (Bm_Bookmark):
    MY_ID ( Primary Key)
    Text
    //CLASS BmTreeassoc
    @OneToMany(targetEntity=BmBookmark.class, mappedBy="treeMaster", cascade = CascadeType.ALL, fetch = FetchType.LAZY)
         private BmTreeassoc treeMaster = null ;
    //CLASS BmBookmark
    @ManyToOne(targetEntity=BmTreeassoc.class, fetch = FetchType.LAZY, cascade = CascadeType.ALL, optional = true)
         @JoinColumn(name="MY_ID", referencedColumnName="BOOKMARKID", unique=true)     
         private ArrayList<BmBookmark> bookmarks = new ArrayList<BmBookmark>() ;
    This Leads to the exception.
    Mapping form MY_ID to MY_ID instead BOOKMARKID will not throw the exception,
    so I assume I have a problem with the KEY Field?
    Any ideas?
    Kind regards
    Frank

    OK,
    after reflecting (after maniacally trying for days).
    Here is the answer by myself:
    I do not use the mapping stuff at all no more.
    I solved my join by using a view:
    CREATE VIEW SAPDEMO.VTree
         AS SELECT t.TreeID, b.MY_ID, b.CLIENTID, b.Nickname, u.URL
         FROM SAPDEMO.BM_TreeAssoc as t
              JOIN SAPDEMO.BM_BOOKMARK as B ON t.BookmarkID = b.MY_ID
              JOIN SAPDEMO.BM_URL as U ON b.URL = u.MY_ID
    Create the entity and then do a:
    select * from VTREE where clientid=1 and treeid=446
    Works great, simple, fast.

Maybe you are looking for

  • Update from 1.4.2_X to 1.5 with reduced right

    Hi everybody, i have a big problem with the JavaUpdate. Our user have on there PCs only reduced rights. So they can't make a update from 1.4 to 1.5 Is there any way to make the update on there PCs without admin-rights? I have try it with different re

  • Parallel Approval in workflow

    Hi Friends, In my workflow, the requirement is like that all of the agents who have been sent the work item should be able to process it. But the moment work item is executed by one of them, it disappears from the inbox of all others. Please advise i

  • Creating Dimension and Adding Member

    Hi BPC gurus; I'm performing on SAP BPC MS 7.5 version I need to add dimension member to the dimension without bpc administration. I searched some thread about that issue, I found something but there is not much document. There is a two method for th

  • How can I convince BT I want to keep Classic Email...

    Hi everyone, For a good few weeks now, when checking my emails via a web browser, I have been able to say no thank you to the new yahoo web page. Today, I wasn't able to read the emails on my main account - Big Brother said I had to install the new s

  • Windows MPG's or WMV files help

    How can I add the above files types to my iPod Touch? Message was edited by: WFMA for spelling