Single data set, loaded once, with multiple xpath paths?

All,
Is it possible to load xml via a URL one time on a page
request and then
create mutliple datasets from that single call using
different xpath
expressions? sort of like doing a mega query then creating
subsets of that
query?
something like:
<root>
<process type="1" blah="blah"/>
<process type="1" blah="blah2"/>
<process type="2" blah="blah3"/>
</root>
ds1 = new XMLDataSet(blah.cfm,"/root/process[@type=1]";
ds2 = new XMLDataSet(blah.cfm,"/root/process[@type=2]";
what i really need to do is make that cfm call one time per
load.
thanks for any help.
Marc

Surely. Sorry for not being more specific earlier.
I'm currently using the tab widget. there are about 5 tabs
total. each of
those tabs represents a list of process in a given "status",
like "running",
"pending", etc. Currently, the way I create this is to run a
big old query
that gets ALL processes, and then I loop over that query,
grouping on the
Process Status, and create a tab for each status. I'm not
using any
spry:repeat regions or anything like that currently. In fact,
the only spry
i'm using at all is for the tab widget. the query is just a
query that runs
when the page loads. it's not doing any spry data loading
with XMLDataSet or
anything.
However, I'd like to convert this process to using the
XMLDataSet so that I
can use the spry repeat regions. What I'd like, then, is to
pass a cfm page
as the XML param. this would return the same query i'm
running now, except
in xml format. I'd also like to pass the loadInterval param
so that I can
avail myself of the automatic data refreshing so that all of
the tabs will
have their content updated at the specified interval, as
opposed to doing it
with a page refresh which is how I do it now (which is just a
brute force
way of rerunning the query and recreating all html).
so in the end what i end up with is 5 tabs, each representing
a status,
whose data comes from the same xml but whose tab content is a
subset of that
xml. the loadinterval then ensures that all tabs are updated
at the
appropriate frequency.
how's that? clearer?
thanks again!
Marc
"CristianC MARIN" <[email protected]> wrote
in message
news:erch4i$erv$[email protected]..
> Hello Marc,
>
> Could you please describe me in more details what do you
mean by reload
> param and your exact use case to make sure I have the
entire picture in
> mind when I'll answer you?
>
> Cristian

Similar Messages

  • Select max date from a table with multiple records

    I need help writing an SQL to select max date from a table with multiple records.
    Here's the scenario. There are multiple SA_IDs repeated with various EFFDT (dates). I want to retrieve the most recent effective date so that the SA_ID is unique. Looks simple, but I can't figure this out. Please help.
    SA_ID CHAR_TYPE_CD EFFDT CHAR_VAL
    0000651005 BASE 15-AUG-07 YES
    0000651005 BASE 13-NOV-09 NO
    0010973671 BASE 20-MAR-08 YES
    0010973671 BASE 18-JUN-10 NO

    Hi,
    Welcome to the forum!
    Whenever you have a question, post a little sample data in a form that people can use to re-create the problem and test their ideas.
    For example:
    CREATE TABLE     table_x
    (     sa_id          NUMBER (10)
    ,     char_type     VARCHAR2 (10)
    ,     effdt          DATE
    ,     char_val     VARCHAR2 (10)
    INSERT INTO table_x (sa_id,  char_type, effdt,                          char_val)
         VALUES     (0000651005, 'BASE',    TO_DATE ('15-AUG-2007', 'DD-MON-YYYY'), 'YES');
    INSERT INTO table_x (sa_id,  char_type, effdt,                          char_val)
         VALUES     (0000651005, 'BASE',    TO_DATE ('13-NOV-2009', 'DD-MON-YYYY'), 'NO');
    INSERT INTO table_x (sa_id,  char_type, effdt,                          char_val)
         VALUES     (0010973671, 'BASE',    TO_DATE ('20-MAR-2008', 'DD-MON-YYYY'), 'YES');
    INSERT INTO table_x (sa_id,  char_type, effdt,                          char_val)
         VALUES     (0010973671, 'BASE',    TO_DATE ('18-JUN-2010', 'DD-MON-YYYY'), 'NO');
    COMMIT;Also, post the results that you want from that data. I'm not certain, but I think you want these results:
    `    SA_ID LAST_EFFD
        651005 13-NOV-09
      10973671 18-JUN-10That is, the latest effdt for each distinct sa_id.
    Here's how to get those results:
    SELECT    sa_id
    ,         MAX (effdt)    AS last_effdt
    FROM      table_x
    GROUP BY  sa_id
    ;

  • How to deal with multiple disk path's

    hi
    i'm setting up a new server with virtual servers with extra io domain's
    now i have a question on how to deal with multiple disk path's
    so following questions:
    - can i enable multipath on the primary and on the alternate domain?
    i tried this but when rebooting the alternate the alternate keep's freezing and the only solution is to hard stop it and it's depending host
    - if i can't enable multipathing how to handle this
    for example a disk has on the primary domain 4 path's to a disk
    do  i then assign all 4 path's to a virtual disk server or do i create a virtual disk server per path
    if i do the first is adding all the path to the same mpgroup enough or not

    Hello
    1.-can i enable multipath on the primary and on the alternate domain?  Yes. i understand for multipath mpxio or similar.
    2.-i tried this but when rebooting the alternate the alternate keep's freezing and the only solution is to hard stop it and it's depending host
    if you are going to use alternate domain you have to give this IO the all bus root nexus, what you describe sounds like DIO,
    3.- - if i can't enable multipathing how to handle this for example a disk has on the primary domain 4 path's to a disk
    If you have 4 path to the same disk in the primary and you are using multipath let's say mpxio, then you will have only one disk in the primary, which is a virtual device that handle the 4 paths.  That's is what you have to use in a vds.
    Please check this doc to see the best practice to ldom
    white-paper-ldom
    regards
    eze

  • Is it possible to load transaction with multiple batch_source_name??

    Hi,
    I am calling 'Autoinvoice Master Program' for creating transactions in my custom package.
    I have 15 lines in my data file. They are invoices, credit memos, debit memos with different batch_source_name.
    Import program is picking tranasctions with any one of batch_source_name & update the base table.
    15 lines are populated in interface(ra_interface_lines_all) but base table (ra_customer_trx_all) populated with few line.
    Is it possible to load transactions & call the AutoInvoice with multiple batch_source_name in one data file ??
    Please help me on this issue.
    Thanks in advance.
    Manish
    Edited by: user12143717 on Mar 4, 2010 6:49 AM
    Edited by: user12143717 on Mar 11, 2010 6:16 AM

    Hi,
    I cannot find a method to achieve this. You may try to create a new contact folder and copy the contacts you want to use to the new contact folder, and then mail merge from the newly created contact folder.
    Regards,
    Steve Fan
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Using report parameter in data set filter expression with an SSAS data source

    I have an SSRS report with an SSAS data source.
    Report parameters:
    Param1 - text, single select
    Param2 - text, multi-select
    Dataset:
    In Query Designer, I want to include Param1 as a filter expression so I can have "Dimension1 Begins with @Param2". I'm not sure the exact syntax to make param2 work in this.
    The point is to filter my data set on param1. If A is selected for param1, I want the data set to have the filter saying "Dimension1 begins with A"
    Anyone know how to use a report parameter in the dataset filter expression for an ssas data source?

    hi,
    try this maybe the dates you are comparing are not in the same format.
    I test data template in EBS but not with dates.
    to_date(date,'dd/mm/YY') between to_date(:p_from_date ,'dd/mm/YY') and to_date(:p_to_date ,'dd/mm/YY')
    if dont works try to put values insted of your parameter like :
    to_date(date,'dd/mm/YY') between to_date(:p_from_date ,'10/01/07') and to_date(:p_to_date ,'01/12/07') ... put dates where u can have some values in report...
    if dont work then try to print the values of the 2 parameters and the date of the select somwhere in ur report to see what you have in it..
    hope it helps..
    Regards Joe.

  • Load balancing with multiple clusters (HTTPProxyServlet)

              Hello!
              I'm newbie in Weblogic. I would like to have clustering and load balancing in
              development environment. I've created 2 clusters, with one managed server each.
              I've created a web application for deploying the http proxy servlet and put it
              under another managed server without clustering. Below is my configuration:
              managed server without cluster (as proxy) - Port 8002
              admin server - Port 8001
              cluster_1 - multicast address 237.0.0.11, multicast port 8004, cluster address
              - t3://localhost:8006, t3://localhost:8007
              cluster_2 - multicast address 237.0.0.10, multicast port 8014, cluster address
              - t3://localhost:8006, t3://localhost:8007
              managed_cluster1 - under cluster_1, port 8006
              managed_cluster2 - under cluster_2, port 8007
              in the web.xml of the proxy, i put the following parameters:
              <param-name>WebLogicCluster</param-name>
              <param-value>localhost:8006|localhost:8007</param-value>
              However, when i send the requests to http://localhost:8002/sms, the requests always
              go to the same server, for eg: managed_cluster2?
              If i configure using single cluster, the load balancing will be in proper. What's
              the cause fo the problem? and any solution?
              Thanx in advance.
              Regards,
              joey
              

    You have 2 options here Jordi, either you can use BGP loadbalancing, this requires multipath as BGP by default would only install one route from the BGP table to the RIB hence FIB.
    But this may result in excessive IRL (inter rack link) usage in the cluster when traffic coming in on rack0 wants to take the bGP path out on rack1
    You could also use ABF (access-list based forwarding) to forcelly push traffic received on rack0 out on the link on rack0 and use an ipsla tracker to fallback to rack1 in case the uplink is gone.
    Alternatively to extend this by IGP signaling to redirect traffic preferably to rack1 to start with to minimize the IRL usage.
    And then you also have the ability to use RPL in the uplink path to make one link more preferred on teh internet then the other in case you want to control a bit which link is preferably used on rack0 or rack1
    regards
    xander

  • Please Help, Data Set Master/Detail with mySQL DB

    Hi...
    I installed the Data Set Master/Detail Sample (states and
    citys autopopulate) getting values from a XML file...
    when a user adds a listing in my site, it works great.. i use
    the XML file values for the states/citys and then everything is
    stored in a DB... BUT i need to do this..
    when he comes back to edit his listing, i want the Data Set
    Master/Detail to show hes values (from de DB) with the option to
    edit them, not the first XML file values.
    Thanks

    Thank you kinblas!!!!!
    I saw another post with the solution!!!
    Here it is
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72&catid=602&threadid =1308016&highlight_key=y&keyword1=SetDefaultState
    Thanks again!

  • STATIC "HTML Data Set Photo Gallery" with CAPTIONS

    Because of search engines and validation I would really like to use the STATIC "HTML Data Set Photo Gallery" http://labs.adobe.com/technologies/spry/demos/gallery_pe/static/china.html.
    But I definitely need captions for the Photos. I found possibilities to add them via XML, but not for the HTML-Version.
    As far as I got I think I have to edit this function from "gallery_hds.js" and add some RegEx, to extract caption text.
    function PhotosFilter(ds, row, rowIndex)
        var tnStr = row.thumbimg;
        if (tnStr)
            row.path = tnStr.replace(/.*<a[^>]*href="?([^"]*)"?.*/i, "$1");
            row.thumbpath = tnStr.replace(/.*<img[^>]*src="?([^"]*)"?.*/i, "$1");
        return row;
    In the following rows within the html-document
    <span class="thumbnail"><a href="../../gallery/galleries/paris/images/paris_02.jpg"><img src="../../gallery/galleries/paris/thumbnails/paris_02.jpg" alt="paris_02.jpg" /></a></span>
    I would insert text before the closing span-tag (or before the closing a-tag?) - like so
    <span class="thumbnail"><a href="../../gallery/galleries/paris/images/paris_02.jpg"><img src="../../gallery/galleries/paris/thumbnails/paris_02.jpg" alt="paris_02.jpg" /></a>Here is some HTML Text</span>
    This text must be extracted via RegEx - similar to the rows within the if-Statement of the upper mentioned function "PhotosFilter". But here my RegEx-knowledge is definitely to short!
    Thank you very much in advance for any help or suggestion.
    Angela Fengler

    Because of search engines and validation I would really like to use the STATIC "HTML Data Set Photo Gallery" http://labs.adobe.com/technologies/spry/demos/gallery_pe/static/china.html.
    But I definitely need captions for the Photos. I found possibilities to add them via XML, but not for the HTML-Version.
    As far as I got I think I have to edit this function from "gallery_hds.js" and add some RegEx, to extract caption text.
    function PhotosFilter(ds, row, rowIndex)
        var tnStr = row.thumbimg;
        if (tnStr)
            row.path = tnStr.replace(/.*<a[^>]*href="?([^"]*)"?.*/i, "$1");
            row.thumbpath = tnStr.replace(/.*<img[^>]*src="?([^"]*)"?.*/i, "$1");
        return row;
    In the following rows within the html-document
    <span class="thumbnail"><a href="../../gallery/galleries/paris/images/paris_02.jpg"><img src="../../gallery/galleries/paris/thumbnails/paris_02.jpg" alt="paris_02.jpg" /></a></span>
    I would insert text before the closing span-tag (or before the closing a-tag?) - like so
    <span class="thumbnail"><a href="../../gallery/galleries/paris/images/paris_02.jpg"><img src="../../gallery/galleries/paris/thumbnails/paris_02.jpg" alt="paris_02.jpg" /></a>Here is some HTML Text</span>
    This text must be extracted via RegEx - similar to the rows within the if-Statement of the upper mentioned function "PhotosFilter". But here my RegEx-knowledge is definitely to short!
    Thank you very much in advance for any help or suggestion.
    Angela Fengler

  • Task with multiple outgoing path

    Hi,
    I'm creating a process in Oracle JDeveloper.
    In the process, there is an activity with two outgoing path.
    Most of the examples I've seen uses parallel gateway which comes in pair.
    But the problem is that, the two outgoing path will not merge and end at the same end event.
    E.g.
    Task A -> 1) Task B -> End Event 1
    -> 2) Task C -> End Event 2
    Is there possible way this can be done?
    Thank you!

    Hi Srini,
    have a look for example here [http://docs.oracle.com/cd/E21764_01/integration.1111/e10224/bp_hwfmodel.htm#BABCFHEI].
    You should be able to set multiple users/groups/application roles. The default delimiter is a comma (,).
    Regards,
    Martin.

  • Load data from a file with multiple record types to a single table-sqlldr

    We are using two datastores which refer to the same file. The file has 2 types of records header and detail.
    h011234tyre
    d01rey5679jkj5679
    h011235tyrr
    d01rel5678jul5688
    d01reh5698jll5638
    Can someone help in loading these lines from one file with only two data stores(not 2 separate files) using File to Oracle(SQLLDR) Knowledge Module.

    Hi,
    Unfortunately the IKM SQLDR doesn't have the "when" condition to be wrote at ctl file.
    If you wish a simple solution, just add an option (drop me a email if you want a LKM with this)
    The point is:
    With a single option, you will control the when ctl clause and, for instance, can define:
    1) create 2 datastores (1 for each file)
    2) the first position will be a column at each datastore
    3) write the when condition to this first column at the LKM in the interface.
    Does it help you?

  • Ok... so iOS5 has brought some cool (and useful) new features.... good job.  However, moving forward I would like to see even more "holding faith" with the overall philosophy of lots of devices interacting with a single data set.

    My first, and perhaps clearest, example here is iMessage.  It's great that I can take and reply to messages on my iPhone and on my iPad as if it didn't matter which device I use.  However, I spend most of my working day on my Mac, and it's a little annoying to have to use one of my other devices to send and receive messages when my most powerful device (my Mac) is right there under my finger tips.  I'm an iChat user, which has some great functionality, but of course it doesn't integrate with iMessage in anyway or Facetime for that matter, even though you can effectively do a "Facetime" call on iChat if the other person has the appropriate user account. 
    So my question/suggestion is - I wonder if there's a way of bringing iChat, iMessage, Facetime etc... all into harmony so that messages, video chatting, screen sharing etc... is dealt with under a single application.  I accept you may have it so that there is more functionality on, say, your Mac (e.g. screen sharing).  But the integration would still be helpful I think.
    Any thoughts (with the hope that Apple will also see these comments/answers/suggestions and take it as food for thought on product development)?
    Incidentally, and also for Apple's benefit, please don't read this message as as meaning that I don't like what's already been done!  It's great and I think it really is moving in the right direction.  It's just that there's still room for improvement.
    Rob

    Thanks for responding Wes.  I've pasted the confusing text from that website referenced in my original post below:
    Ingest movie clips  
    You can ingest entire movie clips or a selected portion of the movie clips (partial ingest). You can also transcode the selected movie clips using more than one encoding option.
         Select File > Ingest. Alternatively, press Ctrl+I (Win) or Cmd+I (Mac OS).
         Navigate to the folder containing media, and click the folder. The contents of the folder are displayed in the center panel.
    Tip: To access folders from which you previously ingested content, use the menu above the panel.
         Do the following based on your requirements:
    To view content as Thumbnails, click the Icon View button.
    To view content as a list, click the List View button.
    To quickly preview the contents of a movie clip, drag the cursor across the thumbnail. You can also click the thumbnail and use the playhead to scrub the movie. Alternatively, use the JKL keys to control playback of the selected thumbnail.
    To change the thumbnail size of movie clips in the panel, use the Zoom slide bar.

  • Best practice for setting up iCloud with multiple devices using a single AppleID

    Hi there
    Me and my wife have an iPhone each, and are looking at getting both of us using iCloud. The problem is that we only use one Apple ID for our music library.
    Is getting a separate Apple ID necessary for each device on iCloud, or can multiple devices have seperate settings/photos/music, etc.?

    Using different Apple ID for iCloud is not necessary, but in most cases it is recommended.
    You can however choose to use separate Apple IDs for iCloud and continue to use the same Apple ID for iTunes, thereby being able to share all your purchases of music, apps and books.

  • Deleting data from another table with multiple conditions

    Hi frnds
    I need to delete some data from a table based on multiple condition I tried following sql but its deleteing some rows which is not meeting the criteria which is really dangerours. When i trying = operator it returns ORa- 01427 single -row subquery returns more than one row
    delete from GL_TXNS
    where TRN_DT in (Select trn_Dt from GL_MAT)
    and BR in (select ac_branch from GL_MAT)
    and CODE in (select CODE T from GL_MAT)
    and (lcy_amt in (select lcy_amt from GL_MAT) or
    fcy_amt in(select fcy_amt from GL_MAT)
    rgds
    ramya

    My answer is the same as Avinash's but I will explain a little bit more.
    ORa- 01427 single -row subquery returns more than one rowmeans that you have a subquery that Oracle is expecting one value from that is returning multiple values. In your case you need one value for the equijoin ("=") and you are getting more than one value back. The error happens even if all the values are the same - multiple values being returned will cause the error.
    The solution is to either allow multiple values to be returned (say, use the IN condition istead of "=") or only return one value if possible (say, forcing one value by using DISTINCT, GROUP BY, or a WHERE clause condition of ROWNUM=1) - but these workarounds must be checked carefully to make sure they work correctkly

  • Data table header facet with multiple components?

    Hi,
    I have a data table to which I wish to add buttons to change the sort order of the items displayed. However when I add the 'buttons' to the 'header' facet I get strange results - some components are shown, some are not, and the order they appear seems almost random.
    Is the header / footer facet designed only for one component - or can I combine them somehow?
    Code snippet is
    <h:dataTable id="table" rowClasses="oddRow,evenRow" width="80%"
    value="#{ControllerBean.orderedResults}" var="meet">
    <h:column>
    <f:facet name="header">
    <h:commandLink action="#{ControllerBean.setOrder}">
    <h:graphicImage value="/img/up.gif" style="border: 0px" />
    <f:param name="order" value="up-title" />
    </h:commandLink>
    <h:outputText value="#{msgs.title}" />
    <h:commandLink action="#{ControllerBean.setOrder}">
    <h:graphicImage value="/img/down.gif" style="border: 0px" />
    <f:param name="order" value="down-title" />
    </h:commandLink>
    </f:facet>
    <h:outputText id="meetTitle"
    value="#{meet.title}" />
    </h:column>
    etc..
    So to be clear - I want a header that contains two graphic buttons separated by the text. When I run this code as is here, I get just the 'down' button, but by changing the order I can sometimes get the down button and the text......
    Cheers
    Reeling

    Yes, you can place it in a panelGrid or panelGroup component.
    The following is an excerpt from a book:
    TIP: To place multiple components in a table header or footer, you must
    group them in an h:panelGroup tag, or place them in a container component
    with h:panelGrid or h:dataTable. If you place multiple components in a facet, only the
    first component will be displayed.
    Thus you could have something like:
                   <f:facet name="header">
                        <h:panelGrid columns="1">
                             <h:outputText value="#{fields.recordings}" style="font-weight: bolder" />
                             <h:panelGroup>
                                  <h:outputText value="#{fields.type}" style="font-weight: bolder"/>
                                  <h:outputText value="#{fields.date}" style="font-weight: bolder"/>
                                  <h:outputText value="#{fields.time}" style="font-weight: bolder"/>
                             </h:panelGroup>
                        </h:panelGrid>
                   </f:facet>

  • Loading datastore with multiple interfaces

    We want to have multiple interfaces load the same datastore. Each of these processes can run in parallel. The problem we have is when the LKM fires it creates a C$ table with the same name in each interface. Is there a way to prevent this from creating a duplicate name?
    Troy

    Hi-
    Whenever ODI creates a loading table it will add the prefix with the name of C$ with the name of your table name. That is the reason you are getting the table name with more than 30 characters.
    Loading table prefix is a mandatory field that should be there in your physical schema definition. So whenever you are creating a table it should not exceed the characters defined in the technology or database.
    Thanks,
    Saravanan Rajavel

Maybe you are looking for

  • BOM Deletion Inconsistency

    Hello All, Deleted a BOM (ALT 1) containing a only document item in it, ALT 2 is still available. Now we are again in need of the that BOM but when tried to re-create ALT 1 system gave error message that "ALT 1 BOM already exist for the material and

  • Frozen won't charge

    Frozen won't charge

  • After updating to 3.6.18, I am unable to drag and drop my tabs to rearrange them.

    I just ran an auto update for both Firefox and Flash. After restarting FF, I have not been able to drag and drop my tabs anymore. If I attempt to, the thumbnail of the tab flashes briefly before disappearing, and the arrow showing where the tab would

  • Generating execl dynamically using HSSF POI API

    I am dynamically generating an excel report from a java servlet using the hssf poi api. However, unless I manually close a previoulsy generated excel window, the excel report content is not updated with new data when a new report is run. The previous

  • Why is Safari becoming slow and unresponsive?

    Ok - I have exactly the same problem.  I can run safari and use it.  After a short while it becomes slow and unresponsive.  When I quit I get the rainbow ball of death and the only way I can stop the application is to force quit. It is definitely lin