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.

Similar Messages

  • 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.

  • 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

  • Can there be more than one JVM Running on the same machine

    Can there be more than one JVM Running on the same machine.

    Even JVM's of different versions (or vendors) can run on the same box at the same time.

  • Can you have more than one apple id under the same account

    can you have more than one apple id under the same account

    Stop using the same Apple ID for iMessage on these devices.  Go to Settings>Messages>Send & Receive (Receive At in iOS 5), tap the ID shown, sign out, then sign back in using a unique ID for each device.  (Or, just sign out and stop using your Apple ID for iMessage.)

  • Hi, can anyone tell me if I can have more than one iTunes account on the same PC. I've just bought my wife an iPad2 and want to create a separate account for her. Can I do that on the same PC as mine?

    Hi, can anyone tell me if I can have more than one iTunes account on the same PC. I've just bought my wife an iPad2 and want to create a separate account for her. Can I do that on the same PC as mine? Thanks.

    I would advise that you not set up a second Apple ID. It's really not necessary - having two Apple IDs won't affect how iTunes works with your iPads - and will just complicate matters. Each iPad will be treated independently and can be set to sync only the items you want on that particular iPad. If you really want to keep the two iPads separate, set up different iTunes libraries and have only those items you want on the related iPad in that library, rather than a different Apple ID. If you plan not to use a computer and just download directly to the iPads, you can again choose what apps and content each iPad gets.
    But answering your specific question, you can have content from up to five iTunes Store accounts on any one computer or iPad. To create a new iTunes Store account, you'll need a different email address, and from there you just create the account the same way you did the first one.
    Regards.

  • I have a game in the game center(clash of clans) and i have more than one apple mobile on the same account and i dont know how to delete the game(clash of clans) from the game center

    i have a game in the game center(clash of clans) and i have more than one apple mobile on the same account and i dont know how to delete the  game(clash of clans) from the game center.

    Hello ayhamnaser,
    Thank you for using Apple Support Communities.
    For more information, take a look at:
    Using Game Center
    http://support.apple.com/kb/ht4314
    If in Game Center > Me > Games > my iOS Games > swipe to the left on the game > Remove.
    Have a nice day,
    Mario

  • How Do I Share My Database Between More Than One User Account on the Same Mac?

    How Do I Share My Database Between More Than One User Account on the Same Mac?

    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.

  • Using more than one Business area in the same report

    Hi,
    Is it possible / recommended to use more than one business area in the same report.
    For example, I have a sales (business area sales) report on one tab and a rebates(rebates business area) report on a second tab.
    Thanks

    Hello
    Possible: yes
    Recommended: no
    This can certainly be done and Discoverer will not prevent you from having reports that use different business areas as you describe.
    However, for management and security purposes it does not make for ease of use. As you know a user has the ability to share a workbook with another user. If they do this then ALL reports within that workbook are shared. If the receiving user does not have access to one or more of the business areas then some reports will run and some will not. This can be very confusing to an end user and a possible nightmare to administer.
    My recommendation would be to have a workbook per business area and not mix.
    If there is more than one business area per functional area, for example sales and returns, then so long as the users have access to both business areas then you could use a common workbook.
    Personally I would not even do this, so my strongest advice would be to have all reports in a workbook written against the same business area.
    Hope this helps
    Michael

  • 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!

  • Is there a way to have more than one Query view in the same workbook?

    Is there a way to have more than one Query view in the same workbook?
    BEx allows us to insert Queries into workbooks, but not saved views.
    I can open a view in excel & then save it as a workbook....but after that there is no way to add another view to the same excel. If I open a new view, it opens in a new Excel.

    Hi
        when u open some query in BEx analyser,u can save it as a query view as well as workbook.The difference is, workbook is if u work with the design mode which will be in the left side of ur screen and query view is wen u save after drill downing some char or key figures from a intial screen wen u execute query in BEx analyser

  • Manage more than one news module in the same website

    Hi, I am wondering if it is possible to manage more than one News module in the same website and have them all display different content.
    Like a news module in the News section displaying announcements and a press section module displaying press related news f. e.

    Hello
    Possible: yes
    Recommended: no
    This can certainly be done and Discoverer will not prevent you from having reports that use different business areas as you describe.
    However, for management and security purposes it does not make for ease of use. As you know a user has the ability to share a workbook with another user. If they do this then ALL reports within that workbook are shared. If the receiving user does not have access to one or more of the business areas then some reports will run and some will not. This can be very confusing to an end user and a possible nightmare to administer.
    My recommendation would be to have a workbook per business area and not mix.
    If there is more than one business area per functional area, for example sales and returns, then so long as the users have access to both business areas then you could use a common workbook.
    Personally I would not even do this, so my strongest advice would be to have all reports in a workbook written against the same business area.
    Hope this helps
    Michael

  • HT4859 Can I have more than one icloud account on the same pc I share with my spouse?

    Can I have more than one icloud account on the same pc that I share with my spouse?

    Yes, providing that you use seperate user accounts on the computer.

  • Enter more than one personnel number for the same confirmation in CO11N

    More than one labor working on Machine work center simultaneously.
    So that during production orders confirmation in CO11N we need to enter more than one personnel number for the same confirmation but in CO11N the system allow me to enter only one personnel number.
    Note: I can not distinguish between the productions for each labor so that I can not enter separate confirmation for each labor.

    Hi,
    You can use the User Exit: CONFPP07  Single Screen Entry: Inclusion of User-Defined Subscreens
    for this purpose..
    Take help from the ABAPer for this enhancement..
    Regards,
    Siva

Maybe you are looking for

  • Archiving sales orders

    Hi, Is it possible to archive only sales orders, or does archiving sales orders mean we have to seperately go and archive all related deliveries, billing, etc. Any idea?? Thanks Keshi

  • Java.lang.reflect.Constructor thread safe ?

    When you have a Constructor object in Java. Is calling the newInstance method on the same Constructor object from multiple threads safe. Or is this not thread safe leading to wrongly constructed objects?

  • Trying to configure mail with icould

    I need assists with trying to set up my mail account on my desk top with the new Icould. I use to have moble me and have transfered everything but my mail on my desktop will not link up. Ipad and Iphone both work but not getting anything through my c

  • 1310 Root with two non-root bridges

    I have a Cisco 1310 root bridge and a 1310 non-root bridge . it worked fine for a year, I then installed one more 1310 as a non-root bridge now I?m seeing both of my non-root bridges dropping offline more and more. I checked my first non-root bridge

  • Unable to integrate BRFplus (NW 702) with NWBC

    Dear Gurus, I'm finding it hard to integrate BRFplus into NWBC. I have added the BRFplus related roles for the my ID. Within NWBC, each time I click on BRFplus, it popups up BRFplus on Internet Explorer. How can BRFplus be viewed within NWBC? Am I mi