Problem with search forms in master-detail structure

According to JHeadstart error message i cant generate 2 search forms in one page, BUT i generated master table in one page and master form + detail table in another so WHY i cant put search forms for both tables?? They are on the different pages!
How can i solve this problem?

Sasha,
The reason this is not allowed, is because when you use Layout Style table-form, the same UImodel is used for both the table and the form page, and each UImodel can have only one advancedSearch binding (which is also used for quick search). Each advancedSearch binding can be linked to only one iterator, and that is either the iterator of the master table or the iterator of the detail table.
An enhancement request to remove this limitation is high on our wish-list, but didn't make it in the 10.1.2.1 release.
You could try to make post-gen modifications to add an extra search. I have not tried it, but here is what I would do:
- generate with search for master, and backup the generated pages and ui model
- generate with search for detail, and backup the generated pages and ui model
- merge the pages and ui models, renaming one of the advancedSearch bindings
- for the page where the renamed binding should be use, make a subclass of JhsDataAction and override onQuickSearch and/or onAdvancedSearch, to use the other binding name
Hope this helps,
Sandra Muller
JHeadstart Team
Oracle Consulting

Similar Messages

  • Problem with crude operations in master detail tables

    Hi,
    I have Master-Detail tables in my page and crud operations are there for both the tables. Create/delete/edit are working fine on the master table but i am facing the following problems for the detail table
    1.delete operation is alway referring to the 1st record.
    2.Edit operation is working fine for the 1st time but when i amt trying to edit any other record it's refer to the previous record, if i did the same again then it's pointing to current record.
    Selected row keys and selectionListner and row selection is defined on my detail table as shown below.
    selectedRowKeys="#{bindings.CmSubscriberTerritoryXrefView1.collectionModel.selectedRow}"
    selectionListener="#{bindings.CmSubscriberTerritoryXrefView1.collectionModel.makeCurrent}"
    rowSelection="single"
    Please do need full.

    Hi,
    Thanks for your quick reply.
    I am using JDeveloper 11g. Yes i select the record, i am using a popup for delete operation so i write a button which invoke popup in that popup i am asking confirmation like do you wanted to delete for not. in the OK button i have return logic like
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding =
    bindings.getOperationBinding("Delete2");
    Object result = operationBinding.execute();
    if (!operationBinding.getErrors().isEmpty()) {
    return null;
    operationBinding = bindings.getOperationBinding("Commit");
    result = operationBinding.execute();
    if (!operationBinding.getErrors().isEmpty()) {
    return null;
    FacesContext fc = FacesContext.getCurrentInstance();

  • Problem with apply changes on master-detail with respect to date handling

    dear sir,
    i have one tabler where in i have created from_Date and to_date as varchar2(30) each. I stored the from date as 'dd-mon-yyyy hh24:mi' I had written before header process for calculating no of days between from_Date and to_Date using the said format. If to_Date is null then first i store the value as
    to_char(sysdate,'dd-mon-yyyy hh24:mi') and then convert it as to_Date(substr(to_Date,1,17),'dd-mon-yyyy hh24:mi'). this calculation of days procedures works fine in sql command mode.
    when i am handling through master-detail page i works fine when there is null value inf to_Date vc2 column. if i store using date picker dd-mon-yyyy hh24:mi, the data is getting stored but subsequent edit through master detail give error as ora-01722 unable to fetch row. Manually if i set the to_Date as null pages works fine. I spent lots of time and unable to understand the mistake i do.
    if anybody could help me, i will be much obliged.
    thanking you,
    yours
    dr.s.raghunatha

    I think the best would be if you create an example on apex.oracle.com and I will debug it.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    ------------------------------------------------------------------------------

  • Search Panel in Master-Detail Page

    Hi experts,
    I've stuck to a wierd problem, where i've implemented a master-detail relationship in a page. This works fine.
    I've also created a search page seperately for this. But now, i'm confused on how to add an item into the searchPanel which would be mapped with a detail attribute.
    For E.g:
    ===============================================================
    SearchPage: (1st Page)
    Item1 __________________
    Item2 __________________
    Item3 __________________
    GO CLEAR
    ResultsTable:
    Item1 || Item2 || Item3
    ==============================================================
    CreatePage: (2nd Page)
    Master Details.... CANCEL APPLY
    Item1 ____________________
    Item2 ____________________
    Item3 ____________________
    Details .....
    Item4 || Item5 || Item6
    CANCEL APPLY
    ===================================================================
    **Now i wanna add "Item4" into the search panel of the SearchPage. I hope its clear to you, in case not, just poke me once.
    Regards
    Ari

    Oh !! Gosh Keerthi,
    I know that, how to add attributes into the searchPanel. U're not getting the pulse of the problem. Lemme explain it once again...
    I've got two VOs .. Lets say !! MasterTableVO and DetailTableVO.
    Now in the "SearchPage", i've referenced only the MasterTableVO from advancedTable and got simpleSearchPanel on advancedTable where i've 3 items ITEM1,ITEM2,ITEM3 (these 3 r MasterTableVO attributes.)
    **As this is a master-detail page .. so for each master table record, there r multiple detail records entered in the 2nd Page.
    Now supposedly, i wanna search only those master detail records in the SearchPage which contains a certain "XYZ" value for the ITEM4(this is in DetailTableVO) in the detail records.
    So, To your inquiry .. No, Item4 doesn't exists in the VO referenced in the advancedTable of the SearchPage.
    Regards
    Ari :)

  • Session problem with a form that calls psp web page.

    Hi,
    My unique form is based on table A.
    Within the form I call a stored procedure, which insert data from A into tables B,C,D
    And then within the same form I call a psp procedure using web.show_document('http://server:8080/plsql/psp_procedure?pvId=1001);
    The plsql web page displays data from tables B,C,D for each single pvId.
    The problem is:
    If any commit is issued the psp web page contains no data from B,C,D.
    I suppose I'm working with two different sessions, can I work within the same one?
    Thanks

    Hi,
    I'd say the main problem is that you have both rows with the same name 'Rangée1'. This is not a good idea, especially as the first row is the repeatable row.
    When objects have the same name, you can see the instances in the hierarchy, eg 'Rangée1[0]' and 'Rangée1[1]'. The instances use a zreo-based numbering system.
    By the way you can also see it in the Object > Binding tab:
    So that is when you have multiple objects with the same name.
    The problem with your form is that when objects are repeated (add new instance button), then these new objects also have instances, eg 'Rangée1[0]', 'Rangée1[1]', 'Rangée1[2]', etc.
    So the Acrobat gets confused ;-)
    I have renamed the second row 'Rangée2'. That seems to have solved the problem.
    Here is the form back to you: https://acrobat.com/#d=jcCs7X85xeRYQjvI2Yb*Cw
    Good luck,
    Niall

  • Problems with Search in Contacts (Public folder favourite)

    Office Version:Office 2010Operating System:Windows 7
    I am running Outlook 2010, connecting to an SBS2003 server by HTTP and running in Cached mode.
    My business contacts are stored in a Public Folder, and my personal contacts in my local Contacts folder.
    The Public Folder is in my Favourites, and is designated an 'Outlook Address Book'
    'Download Public Folder Favourites' is enabled in the Exchange Mail Account settings
    I am having problems with Search (which was never a problem in Outlook 2007).
    If I select the Contacts shortcut, under 'My Contacts I have listed in order:
    Suggested Contacts
    Office Contacts (this is my public folder favourite)
    Contacts
    Search Results
    If I select the Office Contacts link, and attempt to search for a contact whose contact card I can actually see on the screen, the search will fail. The scope is defaulting to 'All Contact Items' (which is fine), but if I change this to 'Current Folder'
    then the contact is immediately found.
    In OL2007 I could search for a contact, even when not in a contact folder, and it would find every instance of it immediately.
    Any ideas here? I have been told to rebuild my index, which I will do over the weekend as it will take some time. But I have doubts it will make much difference. This is a new machine with a fresh installation of Win7 x64 and Office 2010.
    thanks

    Keith, I have this same issue here.  I looked on the Small Business Server pages for an answer as suggested by Xiu but could not find any.  I'm not sure why this would be a SBS issue as we are not running SBS and have this issue.
    For some reason, "All Contact Items" doesn't include the current folder if it is a public folder. 
    Did you ever get an answer/solution?

  • Problem with HR Forms

    Hi,
    I am having problem with HR Forms. I am trying to edit renumeration statement form (Copy of the standard form, with custom infotype fileds).
    One of the Single Fields was spelled wrongly, and I am trying to correct it. I went to the chnage screen, double clicked on the faulty field, changed its name, and pressed 'Transfer'. It asked for a customizing request, and saved it.
    If I again go to PE51, and check the form, the changes I made are not reflecting. Why is this? can anybody help?
    The field I require is P9001-ZCREWNO. But it takes only P9001-zcrew. Is there any limit of 5 characters on length of filed name? (All other changes are reflecting, only this particular change is not reflecting.)
    Thanks
    Krishna
    Edited by: Krishna Kishor Kammaje on Jul 16, 2008 9:49 AM

    Sameer,
    Thanks for the reply. That is already done. I already have the field available in the F4 help of the 'Single Field.
    The field name is ZCREWNO. But when I give this and save it, it says 'Saved'. But if I open again, the stored field name is actually ZCREW  (That is only 5 characters). Because of this, the filed value is not getting populated.
    In Pe51_checktab, filed name is ZCREWNO.
    Thanks
    Krishna
    Edited by: Krishna Kishor Kammaje on Jul 16, 2008 11:19 AM

  • Problem with search plug-in in ver 5.9

    Hello
    I have a problem with search plug-in when you type some key words and press search button it works fine, but if you press enter jou have following error:
    Whoops. Something broke.
    Version      5.9.6.43135
    Message      Invalid postback or callback argument. Event validation is enabled using in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
    Source      System.Web
    Stack      at System.Web.UI.ClientScriptManager.ValidateEvent(String uniqueId, String argument)
    at System.Web.UI.Control.ValidateEvent(String uniqueID, String eventArgument)
    at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument)
    at System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
    at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
    at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBefore
    Our technical people have been notified.
    We're sorry for the inconvenience.
    Thanks
    Greg.

    Grzegorz, I'm going to guess this is a problem with the version you're using. We're using 2007.0.620 and whenever we hit enter on the field instead of the search button itself it returns no results. As far as I can tell, it's a bug in the system.
    It looks like updating to the latest version (624) isn't helpful either, although both 620 and 624 remove that nasty explosion that you're getting and instead just return the same page with no search results.
    There may be a way to edit some code-behind to detect when a postback is being made, although given the locked nature of Web Tools I doubt it. If you can find a way to have the button be recognized, let me know - otherwise, I'd say it's a bug that needs to be addressed in the next version.

  • I have a problem with searching page, whenever i try to open any page a blank paper cums appear only written custom search google in English

    i have a problem with searching page, whenever i try to open any page a blank paper cums appear only written custom search by google this one is not such as my google home page
    == This happened ==
    Not sure how often
    == i use to search any page like movies or etc

    Well, it seems waiting is not my strong suit..! I renamed a javascript file called recovery to sessionstore. This file was in the folder sessionstore-backups I had copied from mozilla 3 days ago, when my tabs were still in place. I replaced the sessionstore in mozilla's default folder with the renamed file and then started mozilla. And the tabs reappeared as they were 3 days ago!
    So there goes the tab problem. But again when I started mozilla the window saying "a script has stopped responding" appeared, this time the script being: chrome//browser/contenttabbrowser.xml2542
    If someone knows how to fix this and make firefox launch normally, please reply! Thank you

  • E-Recruiting: Problems with search profile and serach templates

    Hi Recruiting-Experts,
    I´m facing problems with "Search Profiles" and "Search Templates"
    (Customizing SPRO --> SAP-E-Recruiting --> Recruitment --> Talent Warehouse --> Candidate --> Candidate Search )
    Out customers wants me to add a new search criterion to the talent search. It's a customer-field (type 'd' --> Date)  belonging to infotype 5106.
    Unfortunately, it doesn't work. The hit list is always empty.
    What I did:
    Customizing (see above)
    Updated search profile (report RCF_RECREATE_SEARCH_PROFILES)
    The result:
    I can see and choose the new search criterion on talent warehouse search site (recruiters startpage)
    I can find the data (internal format yyyymmdd) via transaction SKPR07 (see XML below, ZZEARLIEST_ENTRY 20090901)
    By the way, the hit list is also empty when adding and searching for birthdate.
    Has it got to do with the date stored in internal format?
    Thanks for any comments / help.
    Regards
    CHRIS
    =========================================================================

    Hi Sebastian,
    thanks for your quick answer.
    That's why I didn't get it done for hours yesterday.
    Thanks again,
    Regards
    CHRIS

  • Problem with multiple forms and subview

    I have a problem when using NetBean Web Pack (JDK6, Net Beans 5.5, JSF 1.2).
    1) I created a JSF page (hello.jsp) and a page fragment (header.jspf) inside Web Pack, and let the JSF page (hello.jsp) includes the page fragment.
    2) The include instruction is outside of the "form" element id=main_form() of the first JSF page.
    3) Inside the page fragment (header.jspf), I put a form (id=header_form) with some input fields inside the "subview" element.
    4) When running the web application, the form and its children (id=header_form) inside the subview are not rendered.
    It seems to be a problem with multiple forms on a page and the subview.
    Do I use these JSF components incorrectly? Any advice?
    Thanks

    The forms are not nested.
    hello.jsp
    <webuijsf:body ...>
    <!-- BEGIN: include header -->
    <div style="margin: 0px 0px 10px 0px; left: 0px; top: 0px">
    <jsp:directive.include file="Header.jspf"/>
    </div>
    <!-- END: include header -->
    <webuijsf:form ...>
    From above fragment, you can see the header.jspf is outside of the form element.

  • Problem with getting actual data from Detail in Master/Detail

    Hi.
    I'm using master-detail tables (based on Read-Only view objects connected with view link).
    In those tables some columns are inputText, so that user can change data for the use of stored procedure only (I don't want to change data showed in tables, just need a possibility to modify it before passing arguments to procedure)
    The problem is when I get data from rows from detail view (Read Only with attributes set to "updatable always") it's not the data user entered in the table (there is no problem in master table) but the data fetched from database.
    This is the way I do it in backing been:
    Row[] masterRows = view.getAllRowsInRange();
    for (int i = 0; i < masterRows .length; i++){
      MasterRowImpl row = (MasterRowImpl )masterRows;
    System.out.println("Group name:" + row.getGroup())
    RowIterator rowIterator = row.getDetailsView();
    while(rowIterator.hasNext()){
    DetailsViewRowImpl detailRow = (DetailsViewRowImpl )rowIterator.next();
    System.out.println("User name: " + detailRow.getName())
    So if (for example) in database I have Group1, with 3 detail rows: John1,John2,John3;
    and user in Tables displayedon page changes it like this:
    Group1_changed, John1, John2_blah, John333
    After executing the code above I get:
    Group name: Group1_changed
    User name: John1
    User name: John2
    User name: John3
    Is it a normal behaviour?
    ps. When I use entity based view objects there is no problem, but I want to use ReadOnly View Objects.

    this is my function that reads the data:
    while( ( ch = dis.read() ) != -1 ){
    mess.append((char)ch);
              licz++;
              if(licz>prog){
                   licz=0;
                   //gauge.setValue();
    when i use just mess.append(dis.readUTF()))
    i get en exception:
    java.io.EOFException
         at java.io.DataInputStream.readFully(+45)
         at java.io.DataInputStream.readUTF(+32)
         at java.io.DataInputStream.readUTF(+4)
         at KConnection.KConnector.connect(+137)
         at SerwisMain.download(+25)
         at SerwisMain.ok(+415)
         at KGUI.KInput.commandAction(+209)
         at javax.microedition.lcdui.Display$DisplayAccessor.commandAction(+152)
         at com.sun.kvem.midp.lcdui.EmulEventHandler$EventLoop.run(+459)

  • Override existing view Link Bind Condition to search within a Master Detail

    Hi All,
    I have 4 level master detail with View Links setup with all of them
    First Level -> Area
    Second Level -> Row
    Third Level -> Locator
    Fourth Level -> item
    All these are rendered graphically with the help of multiple af:iterators.
    Now my requirement is to search for items inside this. So ideally it should only the items that match the search criteria entered in af:quickQuery
    In the queryListener of the quickQuery i have added a viewCriteria dynamically based on the search result.
    But the problem is it doesnt return any row because the bindVariable automatically created because of viewLink gets added to the VO query and it doesnt return any rows.
    Any pointers to overcome this. Please Advise.
    Thanks,
    Ajith

    Hi,
    overriding executeQueryForCollection allows you to access bind variable values for view accessors.
    Frank

  • I need to display a web app search form, inside the detail view of another web app. Does anyone know

    I can't seem to get a web app search form to work inside another web app detail page. Does anyone know if this is possible?
    I can display a list of web app items; and the search form works on a standard page; but when I try to load it within another web app's detail page, I get an error: "page not found". This happens regarless of whether I put {module_searchresuts} on the same page as the form, or if I redirect results to another page.
    Does anyone have any suggestions?

    Heya.. You currently can not do that within the detail view but it is possible to redirect the results to another page.
    Simply replace this red portion:
    action="/Default.aspx?SiteSearchID=50&PageID={module_oid}"
    with:
    ID=/results-page.html
    ...results-page.html being the page you want instead.

  • Add multiple rows in detail form in master detail form

    Hi,
    I have a master detail form to enter survey responses. The master form captures the participant information and the detail form will carry the survey responses. After entering the master record, I need the detail rows to be populated with the survey questions stored in another table. The respondent will then update the response for each row in the detail form. Only after all the responses are filled out, clicking the save button should the detail records be committed.
    Is there a good way to achieve this.
    Thanks in advance
    Gopal

    Sorry, did not check OTN until this afternoon. Busy checking existing Apex pages on my project :)
    Our region to populate the tabular form has the tabular form fields defined as Display As Text (saves state). Non-enterable fields are defined as "Display as Text (saves state)". A tabular form results from these definitions.
    Because Apex won't generate code to handle multipe row tabluar form inserts we wrote our own as an After Submit PL/SQL process, something like
    DECLARE
      v_rows_found_n number;
    BEGIN
      --code for debugging
      raise_application_error(-20000,'Hello World: '||
        apex_application.g_f03(12)||':'||
        apex_application.g_f04(12)||':'||
        apex_application.g_f05(12)||':'||
      for i in 1..apex_application.g_f01.count loop
        BEGIN
          --attempt update first
          update whatever
             set field4 = apex_application.g_f05(i)
           where field1 = apex_application.g_f03(i)
             and field2 = apex_application.g_f04(i)
             and field3 = apex_application.g_f02(i);
          v_rows_found_n := SQL%rowcount;
        --if no rows were updated perform an insert
        if (v_rows_found_n = 0) then
           insert into oe_metric_values(
             field1,         --1
             field2,         --2
             field3,         --3
             field4          --4
          values(
            apex_application.g_f02(i), --1: field1
            apex_application.g_f03(i), --3: field2
            apex_application.g_f04(i), --2: field3
            apex_application.g_f05(i)  --4: field4
        end if; --did update operate on any rows?
      --exception
      --  when others then
      --    raise_application_error(-20000,'i'||':'||
      --      apex_application.g_f03(i)||':'||
      --      apex_application.g_f04(i)||':'||
      --      apex_application.g_f05(i)||':'||
        END; --internal loop block
      end loop; --loop through tabular form submit elements
    end; --pl/sql blockI had to get the identities of the f01, f02 etc. identifiers by looking at the HTML code in the rendered form because Apex assigns those values as it will. Anytime the column display changes in any way i have to go through and make sure the identifers have not changed.
    Hope this helps.

Maybe you are looking for

  • How to populate BAPICATS3 in BAPI_CATIMESHEETMGR_CHANGE?

    Hi All, While updating CATSDB table,, we have mistakenly populated a wrong value to ZZFIELD2. We want to revert it. So we are using FM BAPI_CATIMESHEETMGR_CHANGE. This FM uses two tables: catsrecords_in of type BAPICATS3 and EXTENSIONIN of type BAPIC

  • Restored ipod now dead

    used the restoration button in iTunes yesterday to fix the perpetual album artwork trouble Apple can't fix.  The restoration  completely killed my Ipod Video that is out of warranty.  Perpetually tries to boot up and then turns off, and repeat.  Thin

  • How do i watch tv shows after i purchase them, i can only view 30 second videos

    how do i watch tv shows after i purchase them on itunes, i can only view 30 second video?

  • Using the result of a function, inside a subselect

    Hi! I´m wondering if it´s possible to use the result of a function inside a subselect. Let me give you an example of what I´m trying to do here: select * from t_node where node_pk in (get_node_parents_pk(22345)); The function get_node_parents_pk stan

  • Regarding special GL indicator

    Hi, I am facing a peculiar problem regarding special GL indicator. I am in to the FBKP transaction which shows me the list of special GL with the fields as special GL indicator and account type. In this screen  I donot find the special G/L indicator