Passage of a setting for two different queries on a single page

I followed tutorial ADF - value of the parameter passing between Pages. It works very well, but I tried to add a second query to the page single.jspx , using the same setting and it shows all the data.

I tried to analyze the queries and the problem is in bind variables. While the first query gets the right value, the second Gets null (see the log below). I also noticed that if I return to the single.jspx page, only the first request is executed.

< oracle.adf.model > < ViewObjectImpl > < buildQuery > < [3556] SELECT ServiceRequests.ASSIGNED_DATE,.

ServiceRequests.ASSIGNED_TO,

ServiceRequests.CREATED_BY,

ServiceRequests.PROBLEM_DESCRIPTION,

ServiceRequests.PROD_ID,

ServiceRequests.REQUEST_DATE,

ServiceRequests.STATUS,

ServiceRequests.SVR_ID

OF SERVICE_REQUESTS ServiceRequests

WHERE (ServiceRequests.SVR_ID =: p_svr_id) >

< oracle.adf.model > < ViewObjectImpl > < getPreparedStatement > < ViewObject [3557]: [oracle.srdemo.model.ServiceRequestById_VO] AppModule.ServiceRequestById_VO1 created new QUERY statement >

< oracle.adf.model > < ViewObjectImpl > < bindParametersForCollection > < [3558] params for ViewObject Bind: [oracle.srdemo.model.ServiceRequestById_VO] AppModule.ServiceRequestById_VO1 >

< oracle.adf.model > < OracleSQLBuilderImpl > < bindParamValue > < [3559] param 'p_svr_id' liaison: 111>

< oracle.adf.model > < ViewObjectImpl > < buildQuery > < [3716] select svh_date, service_histories where svr_id =: p_svr_id order of svh_date >

< oracle.adf.model > < ViewObjectImpl > < getQueryHitCount > < [3717] number of rows estimated for ViewObject: [oracle.srdemo.model.ServiceHistoryByRequestId_VO] AppModule.ServiceHistoryByRequestId_VO1, query statement: >

< oracle.adf.model > < ViewObjectImpl > < getQueryHitCount > < [3718] ' SELECT count (1) FROM (select svh_date, notes from service_histories where svr_id =: p_svr_id order of svh_date) ">"

< oracle.adf.model > < ViewObjectImpl > < getQueryHitCount > < [3719] Bind params for ViewObject.getQueryHitCount: ServiceHistoryByRequestId_VO1 >

< oracle.adf.model > < ViewRowSetImpl > < doSetWhereClauseParam > < [3720] ServiceHistoryByRequestId_VO1 ViewRowSetImpl.doSetWhereClause(-1, p_svr_id, null) >

< oracle.adf.model > < OracleSQLBuilderImpl > < bindParamValue > < [3721] null of type 12 for connection "p_svr_id" > ""

I got it.

I need to add an another ExecuteWithParams of the request on the other in the pageflow.

Tags: Java

Similar Questions

  • Bug: Editor two different view on a single page?

    Hi all

    I use WebCenter Portal 11.1.1.8 and I encountered a problem with the page execution on space (Webcenter Portal). I created a new portal with the default parameter and create a new page with the name is "New Page" with the Style of the blank Page and ID = "newpage". In the Source tab, I see code like this:

    <? XML version = "1.0" encoding = "UTF - 8"? >

    " < = xmlns:jsp jsp:root ' http://Java.Sun.com/JSP/page "xmlns:pe =" " http://xmlns.Oracle.com/ADF/PAGEEDITOR "cust =" http://xmlns.Oracle.com/ADF/faces/customizable "xmlns:f =" http://Java.Sun.com/JSF/Core "xmlns:trh =" http://MyFaces.Apache.org/Trinidad/html "xmlns:af =" http://xmlns.Oracle.com/ADF/faces/Rich "version ="2.1"> " "" ""

    < jsp:directive.page deferredSyntaxAllowedAsLiteral = "true" / >

    < jsp:directive.page contentType = text/html"; charset = utf - 8 "/ >

    < f: view >

    < af:document title = "#{pageDocBean.title}" id = "docrt" > "

    < f: facet name = "metaContainer" >

    < trh:meta name = "keywords" content = "#{bindings." SEO_KEYWORDS} "/ >"

    < / f: facet >

    < af:form usesUpload = "true" id = "f1" >

    < af:pageTemplate value = "#{bindings.shellTemplateBinding.templateModel}" id = "T" > "

    < f: facet 'content' = name >

    < pe: pageCustomizable id = "PGE1" >

    < af:panelGroupLayout id = "pgl1" layout = "scroll" styleClass = "WCSchemeCustom" inlineStyle = "" >

    < cust:panelCustomizable id = rendered = "#{bindings.showHeader"hm_pnchdr"}" layout = "vertical" showTabAction = "true" / > "

    < af:panelGroupLayout id = "pgl2" layout = "vertical" styleClass = "AFStretchWidth" >

    <trh:tableLayout id = 'tl1' width = '100% ' >

    < trh:rowLayout id = "rl1" >

    "< trh:cellFormat id ="cf1"rendered =" #{bindings.leftWidth! = "and bindings.leftWidth! =" 0% "}" width = "#{bindings.leftWidth}" valign = "top" >

    < cust:panelCustomizable id = "hm_pnc1" layout = "scroll" showTabAction = "true" / >

    < / trh:cellFormat >

    "< trh:cellFormat id ="cf2"rendered =" #{bindings.centerWidth! = "and bindings.centerWidth! =" 0% "}" width = "#{bindings.centerWidth}" valign = "top" >

    < cust:panelCustomizable id = "hm_pnc2" layout = "scroll" showTabAction = "true" / >

    < / trh:cellFormat >

    "< trh:cellFormat id ="NF3"rendered =" #{bindings.rightWidth! = "and bindings.rightWidth! =" 0% "}" width = "#{bindings.rightWidth}" valign = "top" >

    < cust:panelCustomizable id = "hm_pnc3" layout = "scroll" showTabAction = "true" / >

    < / trh:cellFormat >

    < / trh:rowLayout >

    < / trh:tableLayout >

    < / af:panelGroupLayout >

    < cust:panelCustomizable id = rendered = "#{bindings.showFooter"hm_pncftr"}" layout = "vertical" showTabAction = "true" / > "

    < / af:panelGroupLayout >

    < f: facet name = "Publisher" >

    < pe: pageEditorPanel id = "pep1" / >

    < / f: facet >

    < / pe: pageCustomizable >

    < / f: facet >

    < / af:pageTemplate >

    < / af:form >

    < / af:document >

    < / f: view >

    < / jsp:root >

    You pay attention to the red line. Here you can see the body of the page, we have 3 columns.

    If you click on the Edit link, you will still see the page in edit mode with 1 single column in the middle (this is normal).

    In the tree view of pages, I create a new link object has ID = "newlink" The link is to 'New Page'.

    (a) arrived to the New Page , I click on the view link to see the page on the portal and then press Ctrl + Shift + E to go into edit mode and here I saw that it is normal with 1 single column in the middle of the page.

    (b) after that, I try to go to the New Page in another way with the link , I create above. And I always display the normal News Page . But when I press Ctrl + Shift + E to go into edit mode, I saw another screen, not like the screen I saw in step a. "We have 3 column in the middle of the page"?


    You have an idea about this?

    Thank you very much!

    Post edited by: AS84

    Yes, I see the same question in WebCenter Portal 11.1.1.8.6 but switching back and forth between a Page and PageLink cope (via Ctrl + Shift + E) - began to show a box or a column by the suite and the issue is not seen any more that it overrides the settings of the page.

    Another option that I tried and it works for me. Steps are the following:

    Create a copy of the blank Page Style

    Click on change the Source

    Delete the columns or the code for leftWidth and rightWidth ONLY that resembles

    NOTE: Do NOT remove the centerWidth.

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

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

    Now, create a new page (say MyNewBlankPage) using 'Copy of the blank Page Style' with all the default options (left: 0%, Center: 100%, right: 0%)

    Then, create a new Page link pointing to "MyNewBlankPage" with the value of the parameters as the left: 25%, Center: 50%, right: 25% and click Save

    Show portal, access MyNewBlankPage and press Ctrl + Alt + E for edit to new message and now you will see only 1 box or column of composer.

    Return to the view portal, access the link to the MyNewBlankPage page and press Ctrl + Alt + E to edit the composer. Again, you will see only 1 box or to the composer instead of 3 boxes or 3 columns (i.e. it is not replacing the Page settings when I used the new style (based on the Style of the Page blank) page in which I had removed left & right columns.)

    Also, it seems that this problem is resolved in 11.1.1.9.0 that I am not able to reproduce it.

  • Two build for two different OS version

    Hello

    I have two different construction for two different OS version of the same application.

    It's a build for v5.0 and one for version 6.0.

    So how can I download this two builds on appworld

    can I download two builds?

    How appworld process works for different os?

    -David

    When you set your release simply add two bundles, for example MyApp50 and MyApp60. Download the file of cod for OS5.0 and speify minimum supported OS version 5.0. After that, download the 6.0 bundle and specify minimum supported OS version 6.0. And select all of the possible devices for two cod.

    App World will do the rest is the latest version that is possible for a given user, so users with 6.0 and above will receive 6.0 cod, while users with OS5.0 will receive the 5.0 file cod.

  • possible to have 2 different application fields for two different clips at the same time

    Hello

    possible to have 2 different application fields for two different clips at the same time for the classification match in terms of the scope, only not to the eye?

    Not that I know of.  And Yes, it would be very useful. As would the ability to go back 2 in reading monitor and a button "game clip under the read head 1. Sigh.

    Neil

  • view the code for two different pages at a time

    HI - in other editors I've used I've always been able to implement the code for two different pages so that I can watch side by side to compare. I can't find a way to do this in Dreamweaver. Anyone know if this is possible?
    Thank you

    Found. Always after asking for help! This is the "cascade" in the Windows menu.
    Thanks anyway!

  • Culture in two different places in the same page

    What on Earth, I want to crop in two different places in the same page. For example, I want to keep something in the upper part and something in the lower part, but skip the other parts. What happens on Earth, I can do that, gentlemen?

    There is a rectangle of cropping by page.  What the parties 'ignored' would look like? Flat white?

  • Wanted to buy three licenses of creative cloud for three different users with a single credit card. [was: HELP!]

    Hi, I wanted to buy three licenses of creative cloud for three different users with a single credit card. I am connected to my computer three times and the buyer licenses three. Now, I found that all licenses are associated with MY ACCOUNT! Is this normal?

    Orders are not yet completely resolved, and once this is done, you can directly contact billing support team.

    To the link below, click on the still need help? option in the blue box below and choose the option to chat or by phone...

    Make sure that you are logged on the Adobe site, having cookies enabled, clearing your cookie cache.  If he continues to not try to use a different browser.

    https://helpx.Adobe.com/contact.html?step=ZNA_account-payment-orders_stillNeedHelp

    Concerning

    Rajsahree

  • I use Windows 7 and I am not able to print several different images on a single page.

    When I try to print photos from the 'My pictures' library, I use the following steps:

    1. turn the photo highlight

    2. click on 'print '.

    3. in the window that says: "How do you want to print your photos? I choose the number of photos I want per page, for example 3 x 5.

    4. when I try to add a picture DIFFERENT from my library so that I can print several different photos on this page of photos of 3 x 5, it simply replaces the previous photo. How can I get there?

    Thank you.

    Original title: I use Windows 7 and I am not able to print several different images on a single page. The answer posted here from 8/11 includes a link that does not work.

    Hello

    Welcome to the community of Microsoft and thanks for posting the question. I've surely you will help find a solution on the issue.

    What program you want to use?

    We will try to print in a different way and check.
     
    Open Paint and then do a collage of different photos then save it then open it in their program and print.
     

    To print the image in Microsoft Paint, steps to follow:

    a. Click Start, in the search box, type in the paint.

    b. open the document you want to print.

    c. select print and check.

     

    With the help of paint

    http://Windows.Microsoft.com/en-us/Windows7/using-paint

     
    Hope this information helps. Please reply back with the
  • How to set up two different sites with a section that has the same content?

    I have two sister sites, each a separate but related Department in a hospital. Each of these Web sites, I have a main tab called library, which has about 30 pages it contains for related health issues. The library is the exact same content on each site, but the main navigation and the header of the site is obviously different. I have been maintaining this same content on both sites (if something is changed, then I must do it twice). It is not effective, and I would like to find a way to combine them somehow. I don't have a ton of experience, but I catch pretty quickly and I basically need ideas for the best way to handle this. I considered creating a third-party site, and the Library tab on each of the other sites would take you to this new site. I also wondered if there is a way to integration of duplicate content to two different pages (perhaps with an iframe). In this way I would update the original file, and it would be updated on both sites.

    The sites also have different sizes. It is 960 pixels wide and the other is 690 because it has a sidebar that makes it smaller. How would you recommend all that I manage that? I use Dreamweaver CS6 and my pages are all HTML

    Because the sites are on separate areas, I'm not sure you can use set includes in this situation.

    Iframes would be the way to go. You just save the content iframe on one of your sites and link page to two pages.

  • One login for two different sites of the BC

    I have a client who has created two different sites of BC due to the product of the limit of two Types of pricing. Site 1 has the retail and dealer price and location 2 is distributor and master distributor prices.

    Site 1 is the main and has documents in a neighborhood secure requiring access to all levels of the four user, my client would like to allow customers to have a single login for both sites for users of site 2 can access documents in a space secured on site 1 without having to maintain two connections.

    Anyone know if it's feasible say with a biscuit or a special script?

    Thank you

    Barry

    Barry H, you must set up a system which hangs in the API of so, but that is at the heart of CRM and interacts with both sites.

  • Site2site two vpn "Server" for two different ISPS

    Hello. I have two lines of two different ISPS. Both are 4 / 4 Mbit/s leased lines. I want to create a vpn site-to site with a few points of end for each of them. I have ASA 5540 firewall as a VPN endpoint on my network. My question is. I have two different VPN? Can I create two outside interfaces and use each one for each ISP one here to create my VPN? I first thought of contexts, but I abandoned em as soon as I saw that there's no VPN with contexts.

    Thanks in advance.

    Simple topology is

    VPN - RTR - ASAOut1 VPN1ISP

    -ASAOut2 VPN2ISP

    Hello

    I understand that you need create a tunnel between ASA 1 and 2 of the ASA with an ISP and the other tunnel on ASA 2 other ASA 2 ISPS.

    It is possible as long as you take care of the delivery. For the remote access clients it will end interface ehich has the default gateway.

  • SIDS even be identified for two different VMs

    were presented in a new and interesting dilemma.   Our Active Directory Administrator has discovered two different machines virtual (VM different names) which seem to show that they have the same identical SID.    The two virtual machines created from the same template.   How is that possible?

    However, when you deploy virtual machines from the model, we have chosen "no customization.   So, maybe it's the source of the problem.  I guess we should be "Customizing" then?

    Yes, if you choose "no customization" it will be just like deploying a clone, then it would be something that you would see the SIDS the same for the two virtual machines.  «If you have you not the Customization Wizard, you could just sysprep your model, then deploy with no "personalization".»

  • In summary for two different periods - 1 query?

    Hello

    To find budgetary changes to a project within a range of periods, I select the type of Budget records, get the settings "until the" and calculate the difference between the project_to_date_dr - project_to_date_cr of the tip and the FromDate. (I use the gl_balances twice in the query under two pseudonyms).

    Do this in a query and the data that I checked are correct.

    When I want to do the same for the load, it becomes problematic. My understanding is that in the calculation of the load, I need to know the difference between the SUM of the project_to_date_dr and the SUM... cr of dates. What happens is, since there are two rows in the example, I test, I don't get the charge but double the load.

    The (shortened) query:
    Select (sum (nvl(glb_ToDate.project_to_date_dr,0))-
    Sum (NVL(glb_ToDate.project_to_date_cr,0))
    ) -
    (sum (nvl(glb_FromDate.project_to_date_dr,0))-
    Sum (NVL(glb_FromDate.project_to_date_cr,0))
    ) CCID_Encumbrance

    of gl.gl_balances glb_ToDate,.
    GL.gl_balances glb_FromDate
    where
    glb_FromDate.Code_Combination_Id = glb_ToDate.Code_Combination_Id and

    glb_ToDate.set_of_books_id = 1 and
    glb_ToDate.currency_code = "USD" and
    glb_ToDate.actual_flag = 'E' and

    glb_FromDate.set_of_books_id = 1 and
    glb_FromDate.currency_code = "USD" and
    glb_FromDate.actual_flag = 'E' and

    glb_ToDate.Period_Name = ' 03-2010 "and
    glb_FromDate.Period_Name = ' 01-2010"and

    glb_FromDate.Code_Combination_Id = 442719

    Glb_FromDate.Code_Combination_Id group,
    glb_ToDate.Code_Combination_Id

    The result of the load is 199,68.

    If I remove the "sum" and "group by", I get four rows - two with an amount of 0 and two with a $ 99.84.

    I have to build two separate queries/sub-sub-queries and then combine them?

    Thank you.
    Leah

    You must use both hands and combine.

  • How to make 2 different forms for 2 different users with a single report?

    Hello

    I have a report based on a table with many columns.
    There are two different groups of people who will use this report.
    These two groups of people need to have different forms in order to complete the information as to specific columns.

    How can I allow users from the first group to use a report and the second group, users use a (different from the first) second form - first group will have to fill in the information for the first 5 columns and the second group will fill in information for the last 5 columns. However, the two groups should see all the report.

    Thank you in advance.

    Hi Rita,.

    OK - do you want to have two separate pages, one for each type of user?

    If so and you want one button to manage this for you, it is possible that the page a button can be calculated using a function.

    Create a new branch on your page and set the Type to "branch to function returning a page.

    As part of PL/SQL, you should return a string that represents the page number to create a branch to. How you do this depends on how you identify the type of user. For example:

    IF IsAdminUser(v('APP_USER')) = 'Y' THEN
     RETURN '2';
    ELSE
     RETURN '3';
    END IF;
    

    This requires that you have a function called IsAdminUser that checks if the current user is an admin user - if they are, the function returns "2", "3" is returned.

    Set this button to be triggered by the button. Remove any other branch which is also triggered by the same button that only a branch can be performed.

    Andy

  • Two different antennas on a single point of access

    Hi all

    I know that the two different antennas connected by an access point are not supportet by Cisco.

    Unfortunately I can not find the document where this scenario is described.

    Does anyone know what document describes this solution?

    Thank you

    Martin

    you are correct. It is actually recommended that it makes no sense that he would defeat the purpose of the diversity. If an antenna gain is higher then the other your stronger antenna is probably still favored for tx

    Diversity

    Diversity is the use of two antennas for each radio, to increase the chances that you get a better signal on

    or antennas. Antennas used to provide a solution of diversity may be under the same physical envelope

    either two separate but equal co-located antennas. Diversity provides relief to a wireless network

    network in a scenario of multiple paths. Diversity antennas are physically separated from the radio and the other to

    ensure that we meet less trips with multiple effects of propagation than the other. Double antennas generally to ensure

    that if an antenna is in RF null, while the other is not, which offers better performance in railways

    environments (see Figure 3). You can move the antenna around the null point and provide a means of

    receive the signal correctly.

    http://www.ciscosystems.or.at/application/PDF/paws/27147/multipath.PDF

    hope this helps... Please rate the post if you find it useful

    Thank you

Maybe you are looking for