More than one custom ResultScriptWebpart in the application page

I am currently working on a scenario where I have to use an application page for search with different tabs showing the results from different Result Sources created at site collection level.
So in the .aspx page, I have added two ResultScriptWebpart instances; one on each tab in the aspx page. One of them displaying results from the 'Local SharePoint Results' (OOTB result source) and using '-Path' parameter i have excluded one
particular SPList from the 'Local SharePoint Results'. The other ResultScriptWebpart displays the result from the SPList which was excluded in the first one.
I am using DataProviderJSON property to specify the 'SourceName', 'SourceLevel' and 'QueryTemplate' which will give the results as I want in the application aspx page. But I am not getting results on both tabs at the same time.
When I use these Result sources on separate test pages, I get results on them both as expected. 
Can there be only one ResultScriptWebpart on an aspx page? Any other possible reasons?

Brent,
In the statement
${JHS.pageDefGenerator.addBinding($JHS.page,"JhsUsers","#CUSTOM_BINDING2()")}
the second argument should be the id of the binding you want to add. You use twice "JhsUsers" as id for the binding.
This id should be the same id as used in your XML page snippet, so for the first binding it should be "SubjectsActiveVisitsGraph" and for the second binding it should be "SitesActiveVistsGraph"
Steven Davelaar,
Jheadstart Team.

Similar Messages

  • Adding more than one custom binding to the same page

    Hi guys,
    JHeadstart 11.1.1.3.35
    How can I add two custom bindings to the same page ? I have 2 graphs on the same page (in tabbed regions).
    My FORM_GRAPH template for the first one is
    #macro (CUSTOM_BINDING1)
        <graph IterBinding="ActiveVisitsIterator" id="SubjectsActiveVisitsGraph" xmlns="http://xmlns.oracle.com/adfm/dvt" type="BAR_VERT_STACK">
          <graphDataMap leafOnly="true">
            <series>
              <data>
                <item value="Active"/>
                <item value="Inactive"/>
              </data>
            </series>
            <groups>
              <item value="VisitNo"/>
            </groups>
          </graphDataMap>
        </graph>
    #end
    ${JHS.pageDefGenerator.addBinding($JHS.page,"JhsUsers","#CUSTOM_BINDING1()")}
    <dvt:barGraph id="barGraph1" value="#{bindings.SubjectsActiveVisitsGraph.graphModel}" subType="BAR_VERT_STACK"
                                        threeDEffect="true" animationOnDisplay="AUTO" seriesRolloverBehavior="RB_HIGHLIGHT">
                            <dvt:background>
                              <dvt:specialEffects/>
                            </dvt:background>
                            <dvt:graphPlotArea/>
                            <dvt:seriesSet>
                              <dvt:series/>
                            </dvt:seriesSet>
                            <dvt:o1Axis/>
                            <dvt:y1Axis/>
                            <dvt:legendArea automaticPlacement="AP_NEVER"/>
                            <dvt:graphTitle text="Subject Status"/>
                            <dvt:o1Title text="Visit"/>
                            <dvt:y1Title text="Number of Subjects"/>
                          </dvt:barGraph>and for my second
    #macro (CUSTOM_BINDING2)
        <graph IterBinding="SiteActiveVistsIterator" id="SitesActiveVistsGraph" xmlns="http://xmlns.oracle.com/adfm/dvt" type="BAR_VERT_STACK">
          <graphDataMap leafOnly="true">
            <series>
              <data>
                <item value="Active"/>
                <item value="Inactive"/>
              </data>
            </series>
            <groups>
              <item value="VisitNo"/>
            </groups>
          </graphDataMap>
        </graph>
    #end
    ${JHS.pageDefGenerator.addBinding($JHS.page,"JhsUsers","#CUSTOM_BINDING2()")}
    <dvt:barGraph id="barGraph2" value="#{bindings.SitesActiveVistsGraph.graphModel}" subType="BAR_VERT_STACK"
                                                        threeDEffect="true" animationOnDisplay="AUTO" seriesRolloverBehavior="RB_HIGHLIGHT">
                                            <dvt:background>
                                              <dvt:specialEffects/>
                                            </dvt:background>
                                            <dvt:graphPlotArea/>
                                            <dvt:seriesSet>
                                              <dvt:series/>
                                            </dvt:seriesSet>
                                            <dvt:o1Axis/>
                                            <dvt:y1Axis/>
                                            <dvt:legendArea automaticPlacement="AP_NEVER"/>
                                            <dvt:graphTitle text="Site Summary"/>
                                            <dvt:o1Title text="Visit"/>
                                            <dvt:y1Title text="Number of Subjects"/>
                                          </dvt:barGraph>but only the first binding is being added to the page def ? I tried putting both graph bindings in the first custom binding but on generation I get an error "Error while parsing XML for page definition element JhsUsers: Expected 'EOF'." (although the code in the binding macro is exactly the same as in the pagedef when added manually ?
    How can I add both of these graph bindings ?
    Cheers,
    Brent

    Brent,
    In the statement
    ${JHS.pageDefGenerator.addBinding($JHS.page,"JhsUsers","#CUSTOM_BINDING2()")}
    the second argument should be the id of the binding you want to add. You use twice "JhsUsers" as id for the binding.
    This id should be the same id as used in your XML page snippet, so for the first binding it should be "SubjectsActiveVisitsGraph" and for the second binding it should be "SitesActiveVistsGraph"
    Steven Davelaar,
    Jheadstart Team.

  • How do I print more than one custom-size photo on a page in PSE 10?

    I recently upgraded from Photoshop Elements 6 to Photoshop Elements 10.  I make greeting cards, and on PSE 6 I was able to print two custom-size (6-1/2” x 5”) cards on each 8-1/2” x 11” sheet of photo paper.  The option to print more than one custom-size card on a single sheet of paper is not available in PSE 10.  I want to know how I can print more than one custom-size card (or photo) on a page in PSE 10?

    In Editor:
    File>Print>#4 Select type of print>picture package

  • Server0 is taking more than one hr to start the applications

    we are in the meddile of tht sp19 uppgrade for portal server.
    when SDM is restarting the J2ee process, all of the them are not coming up
    and server0 process is taking lots of lots of time to start the applications.
    pls cud any one let me know wht to do
    Thank you
    Mallesh.

    It isn't, something has gone awry. Hold the power button for about 10 seconds to perform a forced shutdown. Then restart as normal. When you turn to the System Preferences, Users and Groups tab you will probably find that the account was deleted. But it may not be. If you chose the option to delete the user's folder, make sure that it is indeed deleted. It will probably be a good idea to start in recovery mode - restart holding the command R key - and use Disk Utility to repair the hard drive, just in case.

  • Can the iPhone 4 with iOS5, have more than one custom voicemail greeting?

    Is it possible to put more than one custom greeting on the iPhone 4 with iOS 5?  I sometimes would like certain people to know where I am or what I'm doing so they may take the opportunity to join me without me answering the phone each time it rings when I'm hosting a seminar or teaching a class. I would like to record a couple of responses that I could pick from, but don't know if that is possible.  Thanks!

    iPhone and carriers do not natively support this. You have to use a third party application from the App Store to take advantage of this feature, which is possible via an application such as YouMail. It's free in the app store. I'm sure there are others like that available as well.

  • Can i Bind more than one Model object to the Custom controller or not

    Hi All, I trying to bind more than one model object to the custom controller, Both the model objects contains same attribute name called ( output). Both model objects created on to top of the BAPI. So when i bind first model object to the custom controller will work fine. When i am trying to bind the second model object to the same controller. This second model object also having the same attribute name called "output" . So it is giving an error of "Duplicate context element "Detail". Rename or uncheck duplicate elements.
    can i assign more than one model object to the single controller or not?
    But in the reference document, it has given that , we can create model object with more than one bapi.So in this case if both the bapis contains any element with the same name will also be problem. Any body give me the solution.
    Initially we have created one custom controller for each model object. But later i realized that, why con't we use same controller for all the model object. Because, the custom controller context is the public context. this context shared across all the view controllers.
    The concept which I am trying to do is right or wrong?

    Hi Vishal,
    of course, you can bind one controler to many models. When the same name occours you can simply RENAME binded node in controler.
    Regards
    Bogdan

  • How to use the same credit card for more than one customer master

    Hi,
    this is a question for consultants at least a little familiar with SAP business partner, Customer-vendor-intergration cvi, contract accounting:
    My customer wants to store the same credit card with more than one customer. Arguments are that family members or partners may mutually agree to use the same credit card for their distinct purchases.
    I never tried with amazon or the likes but I know that SAP validates the uniqueness of credit cards.
    I found 6 code line where the message (V/)005 "Payment card &1 &2 is already assigned to customer &3" prohibits duplicate assignment.
    Even if I create a couple of enhancements to suppress the error, I don't know how the system will work.
    The customer does not like the idea of using alternative payer.
    Did you ever face the same problem and how did you solve it?
    Much Thanks in advance
    Best regards
    Clemens

    thanks

  • Assign the same credit card to more than one customer master

    Hi,
    this is a question for consultants at least a little familiar with SAP business partner, Customer-vendor-intergration cvi, contract accounting:
    My customer wants to store the same credit card with more than one customer. Arguments are that family members or partners may mutually agree to use the same credit card for their distinct purchases.
    I never tried with amazon or the likes but I know that SAP validates the uniqueness of credit cards.
    I found 6 code line where the message (V/)005 "Payment card &1 &2 is already assigned to customer &3" prohibits duplicate assignment.
    Even if I create a couple of enhancements to suppress the error, I don't know how the system will work.
    The customer does not like the idea of using alternative payer.
    Did you ever face the same problem and how did you solve it?
    Much Thanks in advance
    Best regards
    Clemens

    Thank you Rafael,
    as I said "The customer does not like the idea of using alternative payer."
    I know this would be the correct way but the customer rules - so I try to evaluate a solution.
    Regards
    Clemens

  • How do I tell FiIrefox to only restore a sesson of more than one tab, and disregard the restore of a single tab session (ie. closing the browser)

    I am on the beta channel of Firefox (currently 17.0, by the about window) and I cannot seem to find a way to limit the size of a browsing session that is automatically restored when re-opening the browser. In the past, Firefox would only save sessions of more than one tab when closing the entire application, and ask me about restoring said session when restarted. Now, Firefox seems to treat a session of just a single tab the same, which is a preference I dislike, given that I use a blank start page to great effect.
    I am using a number of addons, including Tab Mix Plus, which specifically modifies tab behavior (although I have it configured to use Firefox's default session manager), but the problem persists even with all addons disabled.
    I cannot seem to find an option in about:config to change this behavior. Is this a permanent change within Firefox, and if so, is there or will there be an option to specify the number of tabs that constitute a session that will be automatically saved?

    Make sure that Firefox closes properly to prevent session restore from restoring a crashed session.
    *"Hang at exit": http://kb.mozillazine.org/Firefox_hangs
    *"Firefox hangs when you quit it": https://support.mozilla.org/kb/Firefox+hangs
    Use "Firefox/File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit") to close Firefox if you are currently doing that by clicking the close X on the title bar.

  • Using more than one front panel at the same time

    I have a main program where I can call sub vi’s and then the sub vi’s front panel opens.
    I want to use/see/operate more than one front panel at the same time. How I can do it?
    For example when I close the main program it won’t close before I close all the sub vi’s front panels.
    I use event case to call these sub vi’s. Can I close all vi's using one button?

    I wouldn't use subVIs for display, at least not if you plan to have them open all the time. Instead, I would suggest that you have one loop with a FP VI which will talk to the FP all the time and will pass to the data to the other loops through a variable or a functional global.
    Then, you can use a tab control to organize your display. If there is no specific reason for not having the graphs in the same VI, you can use a tab control to organize it. If you can't, you can also use subpanels to display the VIs and put several subpanels in your VI.
    If you still want to display the VIs seperately, you can control their positions and sizes through their proerty nodes, but I don't think there's any reason for this.
    To learn more, I suggest you read the LabVIEW style guide. I think it has some tips about application design.
    Try to take over the world!

  • How to make more than one person can access the database at one time

    how to make  more than one person can access the database at one time 

    Please post further f'up's in the Access forum.
    In short: for different reasons it is best practice that each user gets its own local copy of the database. This means that you need to split it into a front-end which only consists of the forms, queries, reports etc. Everything which doesn't need to be
    shared. And a back-end, which only stores the data.
    Take also a look at Allen Browne's article:
    Split your Access database into data and application.
    When you've splitted your database, you may often consider to use SQL Server as back-end. Here you may read Armen Stein's
    The Best of Both Worlds: Access-SQL Server Optimization.

  • SU01 user as reseller for more than one customer?

    Hi,
        We have a requirement where internet user act as a reseller and can place order for more than one customer in ISA R/3 edition. In the XCM configuration i have selected the user as R3_SU01UserStandalone and then followed the activity given in the SAP Document:
    http://help.sap.com/saphelp_crm40/helpdata/en/03/f6ce51eb8e4dbe82b9ca75e5c74fe6/frameset.htm
    Can anyone provide a solution what other steps i need to follow for this issue.
    Thanks
    Ankit

    Dear Shankar
    You have not specified whether the scenario is MTO or MTS.  If it is MTO, stock will be allocated against sale order as and when MFBF is done.  If it is MTS, then go to OMJJ, select Movement Type and give 292 and execute.  Now select "Field selection (Enjoy)" tab on your left and there maintain the option as Required Entry for the field "KDAUF" and save.
    Now go to MB1A, give movement type 292 with special stock W, plant and storage location and execute so that the system will ask for sold to party code.  Give the sold to party code and enter material code, stock to be reserved and save.
    If you see in MMBE now, those stocks will be displayed as special stock.
    thanks
    G. Lakshmipathi

  • Can I assign more than one Pricing procedures to the one vendor.

    Hi Gurus,
    Can I assign more than one Pricing procedures to the one vendor.
    If possible, where it can assign &give the procedure.
    My client requirement is :
    Vendor supply the goods from two different countries. So, pricing procedure is different because taxes are differ in two countries and currency also differs.
    If goods are supplying from country u2018Au2019 ,automatically pricing procedure for that country  was trigger. How the system know , which pricing schema is required.
    Give me solution

    Hi,
    Extend your vendor to new purchase organisation.  Assaign new pricing procedure to this Purchase organisation.
    Use different Purchase organisation while creating POs for the same vendor  procuring from different countries.
    Regards,
    Satya
    Edited by: Penjarla Venkata Satyanarayana on Aug 28, 2008 4:21 PM
    Edited by: Penjarla Venkata Satyanarayana on Aug 28, 2008 4:23 PM

  • My sister has a mac and i want to update my phone onto the computer but i dont want her to see all my stuff can you somehow have more than one itunes account on the same computer so my stuff with save?

    my sister has a mac and i want to update my phone onto the computer but i dont want her to see all my stuff can you somehow have more than one itunes account on the same macbook so my stuff with save?

    How to use multiple iPhone, iPad, or iPod devices with one computer. The only way is for you to have a separate user account to log into on that computer.

  • Can i have more than one ipod touch on the same account, or must they both be set up with different id's.

      Can I have more than one ipod touch on the same account, or must they each have their own ID.

    If you use the same account see the following to separate Messages and FaceTime between the two iPod see:
    MacMost Now 653: Setting Up Multiple iOS Devices For Messages and FaceTime

Maybe you are looking for

  • External Hard Drive- switching from Mac to PC?

    I have an External Hard Drive that I purchased and have been using on my Powerbook G4. If I plug it into a PC, will it lose all my data or screw something up, or is that transition safe? I never formatted the EHD manually like someone suggested, it d

  • How to restrict the length of the input?

    Hi all, could any one tell me how to restrict the length of the input string? My SOA Suite is 10.1.3.1 I tried the following; getting an error. <element name="RestrictLengthProcessRequest"> <simpleType name="SSN"> <restriction base="string"> <length

  • Speaker - Sound Problem

    Hi All , I have a problem with my new iPhone 4s 64gb ( i bought 1 day ago ).When im playing video,music or any sounds ( inbound calling,alarm,siri,keyboard click, ... ) not any sound in my speakers.Works only when im put headset,watch video,listen a

  • Function calling stored procedure that returns a cursor into a LOV

    Hello, Is it possible in HTML DB to implement a process that has a function that calls a stored procedure that returns a cursor, used to then populate a select list? Or can I do a function call to a stored procedure in the 'List of values definition'

  • I am having problems reinstalling Acrobat 7

    Hi, I'm an owner of ancient G5 Mac and CS2 Premium, which I had to reinstall this week. This means also GoLive2 and Acrobat7 in the package. The links you provide are apparently CS2 Standard. I can download GoLive2 separately, but I can't see ANY pos