Paging with a SpryNestedXMLDataSet

I have created a page that functions as it should (without
paging)
HERE.
I've converted it to use PagedView
(page
here) and have got everything working - except the
NestedDataSet. I cannot seem to get the nested "photos" dataset to
set its row correctly. I've tried setrow on photos and features at
the same time, spry:setrow in the "photos" repeat region definition
of the TR and in the TD. None work. It simply just repeats the
same, 1st photo throughout the output.
Here's the code -
<div spry:region="pvFeatures features photos">
<table width="610" cellpadding="0" cellspacing="0">
<tr spry:repeat="pvFeatures" spry:even="even"
spry:odd="odd">
<td class="blurb"
spry:setrow="features"><strong>{title}</strong> -
{blurb}</td>
<td>
<table width="104" align="right" cellpadding="0"
callspacing="0">
<tr spry:repeat="photos">
<td class="caption"><img src="{photos::@path}"
alt="{photos::@caption}" title="{photos::@caption}"/><br
/>{photos::@caption}</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
Hope someone can help me get over this hump! Thanks,
Mark

Hi Mark,
We don't really have a good solution for paging nested data,
as you've discovered. The only solution for you I can offer right
now is something that goes like this:
- Replace your nested XML data set with this:
var photos = new Spry.Data.XMLDataSet("fg.xml",
"features/feature", { subPaths: "photos/photo" });
What this is basically doing is basically creating a table
join of the feature rows with the photo nodes, so you end up with
one row per photo, but it also includes all the feature data that
pertains to it.
- Change your markup that generates the photo table to this:
<table width="104" align="right" cellpadding="0"
callspacing="0">
<tr spry:repeat="photos" spry:test="'{photos::title}' ==
'{pvFeatures::title}'">
<td class="caption"><img
src="{photos::photos/photo/@path}"
alt="{photos::photos/photo/@caption}"
title="{photos::photos/photo/@caption}"/><br
/>{photos::photos/photo/@caption}</td>
</tr>
</table>
It's basically the same markup you had with 2 modifications.
First all data references that used to look like {photos::@caption}
are now {photos::photos/photo/@caption} to match the column names
generated by the join. Second, I added a
spry:test="'{photos::title}' == '{pvFeatures::title}'" to your
element that had the spry:repeat on it.
Ideally you would be comparing something like an id field,
but your <feature> node doesn't have anything like that on it
so I had to choose a field ... title.
--== Kin ==--

Similar Messages

  • Paging with JDBC

    Hi
    What is the best way to do paging with JDBC when using PL/SQL Cursor. I want to create DAOs that access PL/SQL Cursors with a paging mechanism. The DAO must be stateless.
    Regards,
    Nestor Boscan

    Nestor,
    While I'm not trying to take away from Mikael's suggestion, the way I do it (which was implemented before the existence of "OracleCachedRowSet") is to maintain a scrollable "ResultSet" on the server, and send "Collection"s to the client. But beware of very large "ResultSet"s, because the Oracle JDBC driver implements scrollable "ResultSet"s via client memory.
    In any case, paging has been discussed previously in this forum. Did you try searching the forum archives?
    Good Luck,
    Avi.

  • Database Listing And Paging With Flash Builder

    Hello ;
    i trying to develop an android application with flash builder.
    i have a database and connected it, selected a table and created a service.
    my table have a four coloumn. id - img - tag - date
    id : as you know. table id coloumn auto increment.
    img : long text area. i want to listed to page when clicking the menu item.
    tag : tag is title of the img.
    date : standart date coloumn.
    i want to listing all data with menu style. i added to spinner list and it get to value at database tag (title) .
    how can i listing to text (long text area) in to the img coloumn when selected the tag (title) at spinner list. 
    thanks
    bye.

    i researched a many document but still can't find a insert data grid.
    it seems to under Components Panel all documents and videos
    but i can't see it?
    Anirudh SasikumarRangoraTodd_KoprivaJason San JoseSunilAdobeAmy_WongDatabase Listing And Paging With Flash BuilderUsing Flash BuilderFlex
    somebody help me please?
    thanks
    bye

  • Overhead Paging with a Hosted VOIP system using Linksys SPA942 phones

    Anybody have any experiance with providing Overhead Paging with a Hosted VOIP system using Linksys SPA942 phones?  I currently use a hosted service called Vocalocity and need to  now provide overhead paging to one of our sites.

    I don’t think this is possible since usually this paging opting is used with accordance with the registration from the SPA9000. I am not quite certain if this will be able to work with certain VoIP providers but if it does they should have paging capability and the paging code might also change. I suggest contacting your VoIP provider and Cisco Tech support to further look into your concern. I believe this unit belongs to the business series devices that Cisco is now supporting. Try to go to this link for the other business series devices and the site where you can get hold of Cisco for support: 
    http://forums.linksysbycisco.com/linksys/board/message?board.id=Switches&message.id=4273&query.id=27...

  • Displaytag: paging WITH external sort

    I'm doing a paging with external sort on my list as described in http://displaytag.sourceforge.net/11/tut_externalSortAndPage.html
    I'm getting the correct results with my paging, but when i click the sort headers, it always shows the FIRST page sorted. When I mouseover the sort header on any page, it shows the encoded page number to be 0, even if i'm on other pages. I have specified the total list size using the size property on the table tag, how do I tell displaytag which page it's currently displayed so that the sort header sorts the correct page?
    This is my table tag:
    <disp:table name="requestScope.sysProps" pagesize="10" requestURI="Results.do" defaultsort="1" id="results"
    sort="external" partialList="true" size="requestScope.sysPropsSize">

    To get the number of the current page, you can do this:
    request.getParameter(new ParamEncoder(tableId).encodeParameterName(TableTagParameters.PARAMETER_PAGE))
    tableId is the value of id attribute of display:tag at your jsp.
    But we still have a problem, because if you try to do:
    request.setAttribute(new ParamEncoder(tableId).encodeParameterName(TableTagParameters.PARAMETER_PAGE), pageToGo)
    The displaytag don't care about attributes and render the 1st page.

  • Client side paging with jstl or xslt

    Is there any way to provide client side paging with jstl or xslt/xpath. I have a jsp page with a limited amount of data, say less than 30 rows of data. I want to display 10 rows at a time. The data is returned to the page in xml format and I am currently using xslt to display the data (currently displays all rows on the page). I am looking for a way to update my xpath variables so I can provide paging capabilities. Is there any way to get the information from the request from the jsp to the xpath variables? Or does anyone have any other suggestions for implementing client side paging using either xslst - xpath or jstl? Thanks Vic.

    I am loading the entire xml stream in the client and formatting using xslt. I only want to initially display 10 rows. I would like to implement client side paging. Is there any way to communicate with the xpath variables? Javascript?

  • Enable data paging with parameters count() on new php function issue (BUG?)

    I've got my app prototyped quickly with the default settings in Flex Builder 4.  Now I'm going back and adding/modifying features to polish the app off.
    For this application I'm using PHP5 as the server side.
    The data paging is really cool and simple to call using the default settings.  However, I'm running into issues with customizing the data paging feature.
    This is the default header of the php function that was created for me:
    public function getTblbrowserrecord_paged($startIndex, $numItems){...}
    Instead of dumping all data back to the function I want to be able to search on certain fields so I created a new function called:
    getTblbrowserrecord_search_paged ($szName, $szIP, $szRule, $szURL, $szDateLow, $szDateHigh, $szCode, $startIndex, $numItems  ) {...}
    The new function is tested and operates as designed.
    I set the input types of the variables and return type (Tblbrowserrecord[]) of the new function then went to enable data paging.  The first screen came up and asked me for the key to use which I selected.  The next screen came up and asked me for the number of records which I set to 100 then went to select the count operation.
    I initially selected the automatically created count() function but it came up with the error " Count operation parameters should match the paged operation parameters list."
    So I created another function to match the search function's parameter's list:
    public function count_searched($szName, $szIP, $szRule, $szURL, $szDateLow, $szDateHigh, $szCode, $startIndex, $numItems)  {...}
    But I still ge the error "Count operation parameters should match the paged operation parameters list."
    But they DO match.  I looked at the default functions that were created by FB4 and noticed that the automatically generated function count() has no parameters and the paged function has the two functions $startIndex and $numItems which are not identical yet they work.  I tried removing those two fields from the count function but got the same results.
    What am I doing wrong?
    Thanks!

    Nevermind... For some reason my FB4 is not updating correctly.  After removing the two control fields at the end of the list AND exiting the app/re-entering everything worked ok.  I've been having this issue a lot lately and am thinking that is is a bug of some sort?

  • Simple Paging with netui-data:repeater

    Hello,
    Does anyone have a simple paging example (code, etc) for use with the netui-data:repeater? I have seen Gerald Nunn's solution and while I got the example to work, I have been unable to get it to work with my own project. I'm afraid I just do not yet have enough skill with BEA and java. A simple example would be great.
    Thanks...

    hi there,
    Its been resolved now , was a code error , it was actually using the wrong object.
    thanks anyways

  • ADF Paging with EJB3.0

    Hello,
    I'm using ADF faces and ADF bindings with EJB3.0
    I have af:table with paging, but that is only visual it still gets a list with al my objects.
    Is it possible to have real paging that only gets the displayed data from the database.
    Regards,
    Tim

    Hello,
    I already have the method on the EJB, you pass the parameters, the number of the first record and the number of records you want.
    The problem I'm having is that I don't know how to make adf call it.
    I've used this with myfaces
    http://wiki.apache.org/myfaces/WorkingWithLargeTables
    But if I use something like that I can't use the bindings.
    Am I right in presuming that the adf table only uses get(int pos) and size() to get the data from the collection. If so it was thinking about creating a PagedList based on the myfaces DataModel example. I don't really like that solution, but I don't know a better one.
    Regards,
    Tim

  • Recordset paging with two db in a single page

    I have two table to be show in a page, I can create a
    recordset paging for a table(A), but when i try create another
    recordset paging for other table(B) it changes all my other
    behaviors for my table(A). so is there any help for this?

    Create the rs for table A on one page, then create the rs for
    table B on another page, then go to the code for table B and copy
    it from the second page and paste it into the first page with table
    A.
    Have you got a connection string for both db's? If you have
    two db's, then you should have two connection strings at the top of
    the page after the first line of code.
    I have a site with three db's on a couple of pages!
    Mat

  • Paging WIth Two Disassociated Data Controls

    Is it possible to have two completely disassociated (not parent-child) data controls on a page, each having their own paging buttons?
    I have a requirement for a detail view of one data control with a read-only view of another data control underneath. I would like to have separate paging for both. I can’t seem to find any examples of doing this. The standard paging seems to be bound to the first data control.
    Thanks in advance.

    Hi,
    if you are on the web, you build a navigable from based on the VO (in BC4J parlance). When you drop this to a page it becomes navigable. Do teh same for another, not dependent VO and the two operate independently.
    Now lets talk about what I think you don't tell us: If you are building JClient applications, then you delete the default toolbar in the layout editor, select one VO after the other and create a new toolbar from the data control. This way the two are independent.
    Frank

  • Overhead Paging with Callmanager

    I am finding all sorts of information about setting up paging through phones on CallManager Express. What about CallManager? I can't find anything on this. I've found commands such as ephone-dn, but this doesn't apply to a 2800 series router or CallManager. Any advice would be greatly appreciated!

    We install a paging system mainly for our warehouses using the following equip.:
    1 ata-186
    1 Valcom paging control
    x paging horns w/volume controls and powered by a Valcom power adapter.
    This works very good. The ata is configured with a DN (cti route point). I'm pretty sure you could have multiple zones configured.
    A different way that I learned last week is to use 7960 phones and assign 2 dn for paging, where 1 is the paging ext. # and the 2nd is set to autoanswer. Drawback: you need 7960s all over the place.
    Also I'm looking into the possibility of using one of Valcom's IP speakers PoE (vip-410) to replace the paging control adapter+ata. Berbee has another IP speaker but it's more expensive ($750).
    I hope this helps.
    Elliott Bujan
    Initial Tropical Plants

  • Paging with Call Manager

                      Does Call Manager v8.5 support paging on mulitple phones (groups of phones) simultaneously or does it require another product? We purchased IPSESSIONs a while back to use for paging but I was told that the function was in Call Manager. We have had CM for a few years and we are just now getting ready for paging and some other UC functions.
                      Next question.   With IP sesssions I have to configure on IP multicasting throughout our network to support paging. Can I assume that even if Call Manager supported it internally without the necessity of IPSESSIONs that I would still need the IP Multicasting protocol support on our entire network for paging?

    Hello,
    Chris is right that 3rd party app is needed. But I don't agree that Informacast is the best one.
    What about an alternative in 2Ring PHONE SERVICES which can deliver much more than just paging?
    If you are interested in getting more info, follow this link: http://www.2ring.com/NewJuice
    FREE and TRIAL licenses are obviously available.
    As for your 2nd question, yes, multicast should be enabled in entire network.
    Regards,
    Martin

  • Overhead Paging with Cisco Berbee InformaCast - Caller ID when paging

    Hello, I'm using Cisco Berbee InformaCast with a Bogen overhead paging system. I have Call Manager 6.1.4 and would like to know if there is a way to broadcast the name/number of the IP Phone from which the page originated. If anyone knows of a means of achieving this I would greatly appreciate your assistance.
    Thanks,
    Dave

    Well, not sure why I haven't received any suggestions from anyone. I find it
    hard to believe that there isn't anyone else who has the same need. After going from TAC to SingleWire Support here's what I have:
    there is a way to have InformaCast display within message text the extension that sent a page.  The only catch we were running into with your current implementation was ReliCast.  If you're using a ReliCast dial pattern to page, then all InformaCast would display is the ReliCast CTI port that "called" InformaCast to make the page. It was my hope that there was a way to have the source of that trigger displayed in the reporting feature of InformaCast 7.  Unfortunately InformaCast would produce the same Information.  It would see the calling device as the ReliCast CTI port and log/report that information.
    A possible solution to this issue, a panic button.  You could setup one of the line appearance buttons on a users phone as an emergency live all page.  Then, we can just add a bit of "script" to it that would display the time, day, and source device that made the page.
    For example, you can create a new page type using a combination of Text and Live Audio.  In the Short Text section of the message you could place the following:
    "Panic Button Triggered at ${time} on ${date} by ext ${senderInfo.directoryNumbers}"

  • UC 560 paging with Speaker!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    Hello everyone,
    I have UC560 installed for one of our client. They would like to use paging feature of UC. I create a paging group on UC and able to page on the respected phones. They would like to page in larger area such as in parking lot, for that what should i do??
    Can i connect speaker with phones or not?
    Is there any other best practise from Cisco for paging in larger area?
    Any help would be greatly appreciate..................
    Thanks,
    Abhishek

    One of the best solution is to use a Algo 8180 SIP Audio Alerter. It has Ring and Page functionality.
    http://www.algosolutions.com/products/Audible-and-Visual-Alerting/8180-sip-audio-alerter.html

Maybe you are looking for

  • Is there any way to export IT Resource data from OIM using the export tool?

    Hello, we are trying to migrate an OIM development environment to a preproduction environment and we need to migrate more than 400 IT Resources. We have exported some IT Resources and when we imported them in the preproduction environment their data

  • GROUPING IN SQL DEVELOPER(Fuzzy grouping in SQL)

    Hi All, I am stuck up with some logic here, can any one suggest me what would be the best solution or how can we acheive this. We have a customer id's , each customer can have many accounts, and the customer belongs to a company.I need to modify a SQ

  • Problem with JMENU / JTEXTAREA

    Hello All, I have the following problem: I want to create a little text editor. I just have a window containing a menu bar and a text area. The basic functions work fine. I can open a file and read it into the text area. The problem I have is, that m

  • E63 Contacts button doesn't work

    Just updated my E63 firmware to 200.21.012 (18-06-2009; RM-450). Now 'Contacts' button doesn't work anymore. When I press 'Contacts' button, screen blinks, nothing else happens. Cannot view my Contact List by any other way either. However I can acces

  • Cannot restore from memory card

    Hi all I have had a lot of problems with my phone and decided to do a hard reset. I wasn't able to back up all my information via PC Suite as the connection kept going, so I backed it all up to my memory card. The phone is now working OK (including c