Paged view data set not working

Help - I'm new to spry and web design in general, I'm
attempting to create a spry table pulling data from an xml file
which works fine, but the xml file has 70+ records so I want to use
the SpryPagedView.js function, but when I add the code for the
SpryPagedView data set the browser displays the following error in
a red box at the bottom right of the page saying "failed to
retrieve data set (pv1) for spry:repeat".
What am I doing wrong???
The html is as follows: -
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml"
xmlns:spry="
http://ns.adobe.com/spry">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
<title>Untitled Document</title>
<script src="SpryAssets/xpath.js"
type="text/javascript"></script>
<script src="SpryAssets/SpryData.js"
type="text/javascript"></script>
<script src="SpryAssets/SpryPagedView.js"
type="text/javascript"></script>
<script type="text/javascript">
var ds1 = new Spry.Data.XMLDataSet("extlist.xml",
"Root/Row"});
var pv1 = new Spry.Data.PagedView(ds1,{ pageSize:20 });
</script>
<link href="style.css" rel="stylesheet" type="text/css"
/>
</head>
<body>
<p>
<input type="button" value="First"
onclick="pv1.firstPage();" />
<input type="button" value="Prev"
onclick="pv1.previousPage();" />
<input type="button" value="Next"
onclick="pv1.nextPage();" />
<input type="button" value="Last"
onclick="pv1.lastPage();" />
</p>
<div spry:region="pv1" spry:repeatchildren="pv1">
<table>
<tr>
<th>First Name</th>
<th>Surname</th>
</tr>
<tr>
<td>{First_Name}</td>
<td>{Surname}</td>
</tr>
</table>
</div>
</body>
</html>
and the XML is laid out as follows: -
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Root xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance">
<Row>
<Surname>Blogs</Surname>
<First_Name>Joe</First_Name>
<Ext>2279</Ext>
<DDI>657912</DDI>
</Row>
</Root>

Bannana fingers wrote:
> Help - I'm new to spry and web design in general, I'm
attempting to create a
> spry table pulling data from an xml file which works
fine, but the xml file has
> 70+ records so I want to use the SpryPagedView.js
function, but when I add the
> code for the SpryPagedView data set the browser displays
the following error in
> a red box at the bottom right of the page saying "failed
to retrieve data set
> (pv1) for spry:repeat".
> What am I doing wrong???
If the following is your exact code:
> var ds1 = new Spry.Data.XMLDataSet("extlist.xml",
"Root/Row"});
> var pv1 = new Spry.Data.PagedView(ds1,{ pageSize:20 });
Then the issue may be that you have a } after "Root/Row"
which could cause an error in the creation of the ds1 dataset.
HTH
Danilo Celic
|
http://blog.extensioneering.com/
| WebAssist Extensioneer
| Adobe Community Expert

Similar Messages

  • Help! HTML Data set not working in IE (but in all other browsers)

    Hi there,
    I am totally desperate - I built a master/detail region page using a HTML data set.
    http://www.atcongress.com/programme/continuousLearningByName.html
    It works fine in Firefox/Safari/Chrome/Opera.
    Only IE7 and IE8 give me grief - displaying javascript errors; apparrently it is not able to bind the HTML data table to the data set:
    The IE Javascript Error Console displays "
    'Spry.Data.HTMLDataSet' ist Null oder kein Objekt
    This is in German but you'll get the idea I presume?! Translation would be something like
    'Spry.Data.HTMLDataSet' is Null or not an object"
    Anyway, the source HTML data table uses spry as well. This works fine on all browsers. Maybe because the HTML is on the same page?
    http://www.atcongress.com/programme/continuousLearningTable.html
    Any ideas? Do you need more info?
    Please help - the system needs to go out to test users any day now!
    Andreas
    This is the entire message from the IE8 javascript error console:
    Meldung: 'Spry.Data.HTMLDataSet' ist Null oder kein Objekt Zeile: 30 Zeichen: 1 Code: 0 URI: http://www.atcongress.com/programme/continuousLearningByName.html Meldung: 'Spry.Debug' ist Null oder kein Objekt Zeile: 961 Zeichen: 41 Code: 0 URI: http://www.atcongress.com/_spryAssets/SpryData.js Meldung: 'Spry.Data.initRegionsOnLoad' ist Null oder kein Objekt Zeile: 4855 Zeichen: 65 Code: 0 URI: http://www.atcongress.com/_spryAssets/SpryData.js

    More info on my trial & error process -  error still in this case...
    I cleaned up the code in both the problematic file and the source file that they validate fine now wit the W3C validator:
    http://validator.w3.org/check?uri=http://www.atcongress.com/programme/continuousLearningBy Name.html&charset=(detect+automatically)&doctype=Inline&ss=1&outline=1&group=0&No200=1&ver bose=1&st=1&user-agent=W3C_Validator/1.1
    Data source file:
    http://validator.w3.org/check?uri=http%3A%2F%2Fwww.atcongress.com%2Fprogramme%2Fcontinuous LearningTable.html&charset=%28detect+automatically%29&doctype=Inline&ss=1&outline=1&group= 0&No200=1&verbose=1&st=1&user-agent=W3C_Validator%2F1.1
    I'd also like to mention again that the source html file also contains an HTML data set and spry code. No problems there.
    In  order to make sure that is not a problem of referencing external data I  also tried copying and pasting the source data table into the  problematic file so that it can be used as a local data source. Still  the same.
    Apparently the probem is the master/detail region part.  The working HTML spry file uses a standard HTML table whereas my  problematic one uses a master/detail region
    ANY help would be greatly appreciated!

  • DOCUMENT SETTING that ALLOW FUTURE POSTING DATE does not work in PL34

    Hi Expert,
    I am now using SAP B1 2005B (7.40.252) sp:00 pl:34 and realised that the ALLOW Future Posting Date was not working. 
    I still can remember while I was using pl:11 at B1 2005A, there is no such problem and wish to know when can the bug fix up? in which sp/pl?
    Wish to hear goods news ASAP .
    Thank you.
    Joan.

    Basically can you please clarrify your requirement as to what you want to change ..what I understand you would need to change the code for ABAP - RFEBBE00
    Value Date code in the above abap
            IF PAR_VALD = 'X'.
              MOVE C2-VALDT TO HLP_VALDT.  "  VALUE DATE
             write hlp_valdt to umsatz-budat dd/mm/yy.
            ELSE.
              MOVE C8-BALDT TO HLP_BALDT.
              MOVE HLP_BALDT TO HLP_VALDT.
            write hlp_valdt to umsatz-budat dd/mm/yy.
            ENDIF.
               MOVE HLP_VALDT(2) TO UMSATZ-BUDAT.
               MOVE HLP_VALDT2(2) TO UMSATZ-BUDAT3.
               MOVE HLP_VALDT4(2) TO UMSATZ-BUDAT6.
    Regards
    Anurag
    Message was edited by: Anurag Bankley

  • Purchase Order Goods Receipt quantity tolerance setting not working.

    Team,
    We are using the IS-Oil solution, ECC 6.0 REL 605 SP LEVEL 009 .
    The issue that I have is as follows:
    Purchase Order Goods Receipt quantity tolerance setting not working, I had set up a 10% tolerance on QTY received in the GR process via the PIR and also the Purchase Value Key in the  material master and also changed the message to a warning in OMCQ for message number M0722.
    I  had performed a similar configuration and master data maintenance on a different NON IS-OIL client install and it worked fine.
    I believe it is the IS-OIL component in the Inventory update portion of the GR process that is causing the error.
    I have searched for OSS notes, however they mention that there is no solution.
    Setting the PO line item as Unlimited will not be best practice for the business and will not be used.
    Has anyone come across this issue? and how was it resolved, your help and guidance will be greatly appreciated.
    Thanks

    Hello,
    Please check the Tolerance levels in O588 
    Also you can use the BAdI OIB_QCI_ROUND_QTY: A new method, CHECK_TOLERANCE
    Best Regards,
    R.Brahmankar

  • Why Does Live View In DW Not Work With BC Template?

    The live view using a BC template in DW CS6 shows "PAGE NOT FOUND" in the body section but the header and footer look fine. I should also point out that the index.htm page works fine, it's just the other pages that have this problem. What makes it weirder is that the site works fine in all other modes including when viewing in a normal browser, it's ONLY when in live view! I also noticed that if I delete the .htm extension in the url in the DW browser when in Live View it fixes the problem, but this requires me to do this everytime I want to switch to live view and surely is either a problem with how the BC template files are named or DW CS6 is buggy? Hopefully this is an easy one to answer??

    Hi Alex,
    Thanks for your reply, I have done a video demo at http://screencast.com/t/RsutrvoFn0xZ
    Date: Thu, 14 Feb 2013 05:49:55 -0800
    From: [email protected]
    To: [email protected]
    Subject: Why Does Live View In DW Not Work With BC Template?
        Re: Why Does Live View In DW Not Work With BC Template?
        created by Alex Pavelescu in Dreamweaver & Business Catalyst - View the full discussion
    Hi, Please provide the site url, and if you can, a video demo of the issue you're facing, using http://www.techsmith.com/jing.html, where you could also display the way you have your side setup ( Dreamweaver menu > Site > Site manager > http://screencast.com/t/GqqBk9MY4ck ) Kind Regards,Alex
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5072585#5072585
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5072585#5072585
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5072585#5072585. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Dreamweaver & Business Catalyst by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • THE DATA FROM THE ORACLE DATABASE VIEW DATA IS NOT REFERESHED AUTOMATICALLY

    THE DATA FROM THE ORACLE DATABASE VIEW DATA IS NOT REFERESHED AUTOMATICALLY IN OBIEE DASHBOARD(ANSWERS)
    UNLESS AND UNTILL I OPEN THE ORACLE BI ADMINISTRATOR TOOL AND DO UPDATE ALL ROWCOUNT AND THEN SAVE THE RPD.
    WHERE AS ORACLE DATABASE TABLE DATA IS AUTOMATICALLY REFRESHED.
    PLS SOMEONE HELP OUT IN THIS ISSUE.

    Check whether you have enable cache on that view?

  • Command Sets not working on ACS 5.1

    I'm running ACS 5-1-0-44-3.
    I have everything running properly on ACS 5.1.  I'd like to implement command sets for selected users and groups.  Under Access Policies -> Device Admin-> Authorization I have Command Sets selected.  The cisco provided is DenyAllCommands.  I have this command set running on all groups and every groups is still able to issue any command they wish.  I've also created a "show_only" command set that I've issued one group and they are still able to do conf t or any other command.
    Am I missing something?
    Do you need to reference the command set name under the shell profiles?
    Its my understanding that all you have to do is reference it in "Authorization" in the rules under Device Admin.
    I can understand a custom command set not working because of user error but DenyAllCommands should work.
    Anyone have any ideas?
    I have already re-patched the ACS
    Stopped and started services.
    And it seems like Command Sets is the only not referenced in the logs

    I do it a lot 
    could you paste screnshot of your command set?
    I've recently met another issue,
    with my command set definition as below (as you can see its very simple):
    almost every show is blocked (as suspected) but not "show run" (which is strange for me)

  • The Restriction option to NOT ALLOW CHANGES to Mobile or Cellular data does not work why is this ?

    The Restriction option to NOT ALLOW CHANGES to Mobile or Cellular data does not work why is this ?

    Hi there,
    You may want to try force closing all open apps and resetting the device as an initial troubleshooting step. Take a look at the articles below for more information.
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    Turn your iOS device off and on (restart) and reset
    http://support.apple.com/kb/ht1430
    Additionally, you may want to try completely disabling and re-enabling restrictions.
    -Griff W.

  • How come the current view button does not work?

    How come the current view button does not work?

    Sorry, I have no idea what you are asking; please provide some details, and/or a screenshot if possible: https://forums.adobe.com/thread/1070933

  • Umm I just got this iPhone 5 and cellular data is not working, can't access apps, heck can't even download any and Safari...ummm yeah not happening.  I'm with Sprint if that makes any difference.

    Umm I just got this iPhone 5 and cellular data is not working, can't access apps, heck can't even download any and Safari...ummm yeah not happening.  I'm with Sprint if that makes any difference.

    Are you in an area where there is no coverage?
    You can try a reset, hold down the home/sleep button together until you see the apple logo and then release, then wait for the phone to boot back up.
    If that doesn't help, then yOu'll need to contact Sprint again.

  • HT1976 my cellular data is not working , how do i fix it

    my cellular data is not working
    when i turn it on it doesnt show
    but ym wirless network works
    i need help.
    thanks

    My cellular data stopped working when i update my iphone 5c to ios7.1 any help please

  • Restore last view setting not working in version XI

    When reopening documents the new version XI, Adobe keeps opening my documents on page one. Though I have gone to preferences\documents and checked the box for restoring last view setting when reopening documents. Is this a bug that needs fixing? I already uninstalled and re-downloaded the program. It still will not work correctly.

    it still does not work for me. It is set to 1 minute. I have tried it in a number of pdf's. I left it longer than 1 minute and it still does not work. It does not work for any of my pdf's but it DID work in previous versions. I guess I will just go back to version 9! They should be able to fix this though. I also re-downloaded, deleted the program, and loaded it again.... still doesn't work!!!

  • Sessions.xml data source not working using toplink

    I'm having some difficulty getting a data source to work. I have an ADF selectOneChoice component and I want the list of values available to be bound to a database given by the JNDI name and controlled at the j2ee container level.
    I have created a sessions.xml file
    <toplink-configuration>
    <session>
    <name>PIMSSession</name>
    <project-xml>META-INF/PIMS_ADF_TLMap.xml</project-xml>
    <session-type>
    <server-session/>
    </session-type>
    <login>
    <datasource>jdbc/PIMSDS</datasource>
    <uses-external-connection-pool>true</uses-external-connection-pool>
    </login>
    <connection-pool>
    <is-read-connection-pool>true</is-read-connection-pool>
    <name>default</name>
    <login>
    <datasource>jdbc/PIMSDS</datasource>
    <platform-class>Oracle10g</platform-class>
    <uses-external-connection-pool>true</uses-external-connection-pool>
    </login>
    </connection-pool>
    </session>
    </toplink-configuration>
    The sessions.xml points to the toplink mapping file PIMS_ADF_TLMap.xml, which contains information about the database view that is used to populate the drop down list. It also contains a deployment connection:
    <toplink:login xsi:type="toplink:database-login">
    <toplink:platform-class>oracle.toplink.platform.database.oracle.Oracle10Platform</toplink:platform-class>
    <toplink:user-name>pimsdev</toplink:user-name>
    <toplink:password>BB742416276274A494F7008B3AE0FB10</toplink:password>
    <toplink:driver-class>oracle.jdbc.OracleDriver</toplink:driver-class>
    <toplink:connection-url>jdbc:oracle:thin:@yvworad01:1521:PIMSD</toplink:connection-url>
    </toplink:login>
    The problem I'm having is that my ADF application always binds the selectOneChoice to the connection-url in the toplink mapping file instead of the datasource in the sessions.xml.
    If I remove the deployment connection from the mwp file, recompile and deploy I get a JBO-29000 error about not having a suitable driver.
    Does anyone know how to get the selectOneChoice to bind to a datasource instead of the toplink mapping connection-url?

    Hi Aaakar,
    From the error message, please try to change the setting of Credential type for the data source on report manager as follows:
    Go to the Data Sources properties page.
    For the Connect Using option, select Credentials stored securely in the report server.
    In User Name and Password, type credentials that can be used to access the database. If you are using SQL Server as the data source, the user name must be valid for both logging on to the server and for accessing the database that contains the data for
    the report.
    If the user name and password are credentials for a Windows account, select Use as Windows Credentials.
    If you want the report server to pass the credentials of the user accessing the report to the server hosting the external data source, click Windows Integrated Security. In this case, the user is not prompted to type a user name or password.
    For more details about Configure Data Source Properties, please see:
    http://technet.microsoft.com/en-us/library/ms155882.aspx
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Spry data set not displaying in IE8

    Hi,
    I have inserted a spry data set based on an HTML table onto my page. The data displays in live view and in Safari, but when I try to preview in IE8 I get nothing. Here's the page:
    http://www.emiliocorsetti.com/publish/maps.html
    Any ideas? I didn't modify the CSS one iota.

    Ben,
    Not sure what happened there. I was changing and deleting the spry data set so many times that I must have put the file up after I had deleted it. In any case, I put the correct file up. And a funny thing happened. The page works online but it won't work in browser preview. Any ideas?
    Emilio

  • Update using date picker not working?

    Hello,
    This might be simple for a lot of people here but I can't get it going...
    The problem is that, I have a tabular form with 1 text field and 1 date field. I am using a PL/SQL anonymous block transaction to insert/update a view based on the field values. Insert is fine but update on the date field is not working - but no errors. The date field is a date picker('DD-MON-YYYY') column. Kindly help check the problem. Thank you.
    Below are some codes that might be helpful
    -- update statement in the block
    update  del_ignore_conchold_v
    set     conc_prog_name = apex_application.g_f03(v_row)
           ,remove_entry_date = apex_application.g_f04(v_row)
    where   row_id = apex_application.g_f02(v_row);
    -- update trigger on the view
    CREATE OR REPLACE TRIGGER APPS_TEST.del_ignore_conchold_v_upd_tr
       instead of update
       ON APPS_TEST.DEL_IGNORE_CONCHOLD_V referencing new as new old as old
       for each row
    begin
       update apps.del_ignore_conchold_tbl@PROD
          set conc_prog_name = :new.conc_prog_name,
              remove_entry_date = :new.remove_entry_date
        where conc_prog_name = :old.conc_prog_name
        and   remove_entry_date = :old.remove_entry_date;
    end;Thanks,
    Rownald

    Hello,
    The output for g_f03(v_row) and g_f04(v_row) appear to be fine. g_f03 only has the actual text and g_f04 has the date(from date picker field) with format like 22-OCT-2009. Below is an excerpt of the code & debug log - might be of help.
    Thanks as always.
            if apex_application.g_f02(v_row) is not null then
                wwv_flow.debug('MY PROCESS: g_f02 ' || apex_application.g_f02(v_row));
                wwv_flow.debug('MY PROCESS: g_f03 ' || apex_application.g_f03(v_row));
                wwv_flow.debug('MY PROCESS: g_f04 ' || apex_application.g_f04(v_row));
                -- update stmt
                update  del_ignore_conchold_v
                set     conc_prog_name = apex_application.g_f03(v_row)
                       ,remove_entry_date = apex_application.g_f04(v_row)
                where   row_id = apex_application.g_f02(v_row);
                wwv_flow.debug('MY PROCESS: g_f03 ' || apex_application.g_f03(v_row));
                wwv_flow.debug('MY PROCESS: g_f04 ' || apex_application.g_f04(v_row));
    -- debug log --
    0.09: ...Do not run process "AddRows", process point=AFTER_SUBMIT, condition type=, when button pressed=ADD
    0.09: ...Process "Save_Transaction": PLSQL (AFTER_SUBMIT) declare v_row binary_integer; begin for i in 1..apex_application.g_f01.count loop v_row := apex_application.g_f01(i); if apex_application.g_f02(v_row) is not null then wwv_flow.debug('MY PROCESS: g_f02 ' || apex_appli
    0.09: MY PROCESS: g_f02 AAE2DlAHKAAAA0qAAB
    0.10: MY PROCESS: g_f03 Delete data from temporary table
    0.10: MY PROCESS: g_f04 22-OCT-2009
    0.11: MY PROCESS: g_f03 Delete data from temporary table
    0.11: MY PROCESS: g_f04 22-OCT-2009
    0.15: ...Process "Reset Pagination": RESET_PAGINATION (AFTER_SUBMIT) reset_pagination
    0.15: Branch point: AFTER_PROCESSINGRownald

Maybe you are looking for