Data binding not working

For some reason I can't seem to get the XML data to bind
properly. i am using one of the samples (see code listed below) and
instead of getting the data I get something like {@id} -
{firstname} {lastname} - {phone}.
Any one any ideas what could be causing this.
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>Master/Detail Same Data Set</title>
<script type="text/javascript"
src="includes/xpath.js"></script>
<script type="text/javascript"
src="includes/SpryData.js"></script>
<script type="text/javascript">
var dsEmployees = new
Spry.Data.XMLDataSet("employees-01.xml", "/employees/employee");
</script>
</head>
<body>
<span spryregion="dsEmployees">
<select spryrepeatchildren="dsEmployees"
onchange="dsEmployees.setCurrentRow(this.value)">
<option spryif="{ds_RowNumber} == 0" value="{ds_RowID}"
selected="selected">{username}</option>
<option spryif="{ds_RowNumber} != 0"
value="{ds_RowID}">{username}</option>
</select>
</span>
<span sprydetailregion="dsEmployees">{@id} -
{firstname} {lastname} - {phone} </span>
</body>
</html>

Sorry about that Liam, I guess you're looking at the sample
at this URL right?
http://labs.adobe.com/technologies/spry/articles/data_set_overview/samples/data-framework- overview-sample-01.html
The online source for that example was missed during the last
update. I'll make sure it gets fixed.
To get things working, change all spry* attributes to spry:*
attributes. So for example, spryregion should be changed to
spry:region, and spryrepeatchildren changed to spry:repeatchildren.
Note that the source for this file in the zip you downloaded
is all up to date. It's only the online versions that are out of
sync.
--== Kin ==--

Similar Messages

  • Empty Shared Variables & Data Binding not working in dynamically called VI

    Hi,
    I have just upgraded a system from LabVIEW 2011 to 2012 DS2.  I have a real-time PXI system running several shared variables, hosted on the PXI.
    After what appeared to be a succesful upgrade I have a couple of odd issues. 
    1.  The PXI writes test data into a network shared variable, based on a typedef of an array of custom clusters.  The variable is disconnected from the typedef, as RT does not function with shared variables linked to typedefs.  It seems that writing a seingle entry to the array is fine, but writing multiple entries causes the variable to appear empty. 
    I still need to debug this a little more, as while I was station to do so this other issue popped up.
    2.  I have some controls on the Host app with data binding to shared variables.  The host app uses three VIs dynamically called into the wrapper VI.  One of these called VIs is not able to connect to its variable when inserted in to the wrapper, but it can if run independently.  The other two have no such trouble.  Where I see a problem, the indication LED is grey and the mouse-over text reads "no status".  What does this mean?
    Any clues?
    Thanks,
    Ian

    I have changed the Invoke Node to a Run Asynchronous node, and this seems to have fixed the data binding issue. 
    The other issue may be related to a bug fixed in 2012 SP1:
    368648 Network Stream operations return Error 42 when data type contains nested clusters of typedefs
    I am now getting error 42 when reading a particular network shared variable.  This variable contains the results of measurements, in a data type which contains an array of nested clusters of typedefs.  When there is a single entry in the array I can read the variable fine, but when there is more than one entry in the array it does not read and I get error 42.
    I have downloaded 2012 SP1, and will see if this helps. 
    Ian

  • Core data binding not working

    in my project I used core data and binding to produce data on document based program.
    I have used multiple entities and they worked fine and then they stopped working and I don't know why.
    all the text fields now have "()" in them with space in between them, and will not add to the database.  so the field shows a junk value and will not bind properly to the database.
    how would I start to debug this I have been searching but I don't know where to start, mainly i dont know what the problem is.

    Binding works one way. This means that textInput.text changes
    to match the value of account.identifier, not the other way around.
    While I think it's theoretically possible to create a binding the
    other way (I haven't played with binding in ActionScript), it makes
    more sense to listen to the TextInput's change event to get changes
    to the text field.
    Or, you can create a model in the MXML and bind one its
    properties to the textinput's value. Look in the docs about the
    mx:Model tag for details.

  • 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

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

  • 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

  • Binding not working when returning to same page

    Hi, Im developing a portlet that access some data from MYSQL.
    I have a simple page with several textfields, all with bindings to a javabean object that is a property of SessionBean1 bean, so it is a Session Scope bean.
    In that page I put some buttons like next, prior, etc. to navigate between all registers of my DB. I added some code to event button like this:
    public String bnext_action() {
    // get sessionbean
    SessionBean1 SBean1 = (SessionBean1)getBean("SessionBean1");
    // navigate to next register in database
    // ProdBean is my property bean that get values from database
    // bindings are like this : text="#{SessionBean1.prodBean.codigo}
    SBean1.getProdBean().GetNextReg(SBean1.getModuloIdx());
    // set current register index
    SBean1.setModuloIdx(SBean1.getProdBean().getIndex());
    return null;
    The problem is that when I get next register of database, bindings are not reflecting new values, always holding first values. I tried to force things by setting values in pre-rendering face manually with setText method of textfields but nothing happens.
    As Im a newbie in Java yet I really don't undestand this, I have readed all JSF life cycle documention and portlet life cycle docs but couldn't find an answer. Why binding is not working?

    Thanks for this.  Unfortunately now I have tried with Standard actions the links do not work at all.  The links provided were created with spaces so contained within the links are lots of '%20'. e.g. :
    PCI%20DSS/UWE%20PCI-DSS%20Quick%20Reference%20guide.pdf
    for some reason when creating the links with standard actions, when the project is published the links have changed to contain 25s  e.g.
    PCI%2520DSS/UWE%2520PCI-DSS%2520Quick%2520Reference%2520guide.pdf
    no idea why this is happening.

  • 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

  • My phone is so slow won't download any apps and data is not working correctly

    I have the moto e with straight talk

    Hi
    This is not a Firefox thing, but there are some general housekeeping activities you can do to make your telephone run much easier.
    First of all, uninstall any apps and widgets you do not need. It is amazing how they can clutter up your phone! In the app drawer, long press on an app or widget and drag it to the uninstall option at the top of the screen.
    So you have a sizeable SD card in your phone? If so, in Settings app , scroll down to Storage and tap "Move media". As it says on the menu, this will move your media files to your memory card, thus freeing up space on your phone.
    Before you leave Storage, scroll up a little and tap on "Cached Data" and selected to clear the cached data.
    In Settings>Apps, scroll across to "On SD Card" and tick a few boxes to move some of your apps to your memory card. (Note: With some apps, this may mean that any accompanying widgets will not work, this is a bug with Android).
    Once finished, turn off your phone and turn it back on again and you should find your phone has quite a bit more space and is running a bit quicker.

  • Help for date field not working after upgrade

    hi experts,
    In our BSP application for a page we had an inputfield (date).
    Onvaluehelp for input field we were calling the saphelpdate function.
    however after upgrade this functionality is not working properly as no pop up comes after clicking on the icon.
    we have upgraded to SPS 16 recently.
    please help me.
    regards,
    Arvind.

    Hi, I try upper case but nothing happen. This is all my code by far, I hope you can help me:
    DATA: BEGIN OF T_PCONT OCCURS 0,
          PCONT LIKE ZPSPERMISOS-PSOBKEY,
    END OF T_PCONT.
    DATA: BEGIN OF T_FIELDS OCCURS 0.
            INCLUDE STRUCTURE help_value.
    DATA END OF T_FIELDS.
    DATA: BEGIN OF T_VALUES OCCURS 0,
          VALUE(60) TYPE c.
    DATA: END OF T_VALUES.
    DATA: N TYPE i.
    SELECTION-SCREEN BEGIN OF BLOCK  b20 WITH FRAME TITLE text-b02.
      SELECT-OPTIONS:
        P_CONT FOR  ZPSPERMISOSH-PSOBKEY OBLIGATORY NO-EXTENSION NO INTERVALS,
        P_INT  FOR  ZPSPERMISOSH-PARTNER OBLIGATORY NO-EXTENSION NO INTERVALS,
        P_FEC  FOR  ZPSPERMISOSH-ZFINICN NO-EXTENSION NO INTERVALS,    
        P_RAZ  FOR  ZPSPERMISOSH-ZRAZONFINIC NO-EXTENSION NO INTERVALS.
    SELECTION-SCREEN END OF BLOCK b20.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_CONT-LOW.
      PERFORM P_HELP_P_CONT USING P_CONT-LOW.
    *&      Form  P_HELP_P_CONT
    FORM P_HELP_P_CONT  USING P_P_CONT.
      DESCRIBE TABLE T_PCONT LINES N.
      IF N EQ 0.
        T_FIELDS-FIELDNAME  = 'PSOBKEY'.
        T_FIELDS-TABNAME    = 'ZPSPERMISOS'.
        T_FIELDS-SELECTFLAG = 'X'.
        APPEND T_FIELDS.
        CLEAR T_FIELDS.
        SELECT PSOBKEY FROM ZPSPERMISOS
        INTO  TABLE T_PCONT.
        SORT T_PCONT BY PCONT.
      CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE'
        EXPORTING
          CUCOL        = 10
          CUROW        = 1
          TABNAME      = 'T_PCONT'
          FIELDNAME    = 'PCONT'
        IMPORTING
          SELECT_VALUE = P_P_CONT
        TABLES
          FIELDS       = T_FIELDS
          VALUETAB     = T_VALUES.
    ENDFORM.                    " P_HELP_P_CONT
    Edited by: J. Garibaldi on Nov 25, 2009 11:14 AM
    Edited by: J. Garibaldi on Nov 25, 2009 11:16 AM

  • Date comparision not working in BI-Publisher in one scenario.

    Hi,
    Iam using sqlquery as a datamodel for BI-Publisher report. I have a requirement that the input parameters startdate and endate are Date types. When the user enters startdate and enddate and clicks on view, the report should show data which falls in between those dates.
    Here is the sample query i used.
    select * from
    table1
    where begintime >= :p_StartDate and begintime <=:p_EndDate
    Here begintime is a timestamp and p_StartDate and p_EndDate are just dates. So when comparing begintime with p_StartDate/p_EndDate, i guess its taking default time from that date and because of that the comparision is failing in 1 case. i.e, In the above query, though the comparision operator is >= or <= , ultimately > or < is getting effective. So to acheive the actual result, I need to give one day more for start and end dates.
    However I found a way to acheive this without adding extra day to both the dates. Here it is :
    select * from table1 where
    ( begintime >= to_timestamp(to_char(:p_StartDate) || '00 00 00', 'DD Mon YYYY HH24 MI SS')) and
    ( begintime <= to_timestamp(to_char(:p_EndDate) || '23 59 59', 'DD Mon YYYY HH24 MI SS'))
    But the above is working in sqleditor like jdeveloper database navigator. But not working in BI-Publisher.
    BI-Publisher is throwing error saying
    "ORA-01830: date format picture ends before converting entire input string"
    Please help as to how to go about this problem or any alternative solution.
    Thanks & Regards,
    -Vijay-

    Hi,
    I think it will be fine to trunc the begin time since :p_StartDate and p_EndDate are just dates without time stamp
    i.e:
    select * from
    table1
    where trunc(begintime) >= :p_StartDate and trunc(begintime) <=:p_EndDate;
    any problem with this.Please share the thought.
    Best Regards,
    mahi

  • Global Data Plan not working in the Netherlands

    I called customer service a week before my trip and arranged for the $30 "Global Data" plan to begin April 1. I have been unable to get a data connection here in the Netherlands and e-mails to customer service have gone unanswered. I cannot see anything on my account to indicate whether this has ever been activated.
    By poking around the settings and setting the data networks to GSM I've been able to see Vodophone, T-Mobile, and KPN listed, but if I try to connect to any of them I get an error that indicates I cannot connect to them.
    Can anyone provide some advice on how to get this working? I was really relying on this to help with getting info on places to visit and it's proving a pretty difficult trip when having to rely on free wifi spots to make up for this.

        roninacolyte,
    Greetings from the states! To be honest, the Thunderbolt will not work in Hong Kong. You can check out our trip planner for future reference at http://vz.to/n9PFe9
    EvanO_VZW
    Follow us on Twitter @VZWSupport

  • Javascript Date() function not working

    Hi,
    I'm experiencing some problems with the Date() function in javascript. The problem is that the function doesn't seem to work. For example when I do "var date = new Date(); xfa.host.messageBox(date);" in the enter event of a date field, I get "Date is not a function" error message in de javascript debugger.
    Is there anyone out there who knows how why the Date function is not working in LiveCycle Designer. Am I using the Date function in an improper way or maybe I am using the wrong function?
    Please can anyone help me out?

    Hi Paul,
    Thanx for you reply. It worked fine.
    I also found out that following works as well:
    var MyDate = util.scand("dd-mm-yyyy",new Date());
    console.println("this date: "+util.printd("dd-mm-yyyy", MyDate));

  • Database Variant to Data.vi not working for the Date datatype with LV 8.2?

    I'm moving a large body of LV database code from LV 7.1 to 8.2 and find that the Database Variant to Data.vi is not working correctly when used with the Date datatype. It works fine with 8.0, and the common Variant to Data works also. Am I missing something? Thanks in advance for any assistance. Wes

    Thanks for the prompt reply Crystal,
    The data is stored in an Oracle database using the DATE type. I'm querying many rows along with other columns and converting each of the values as necessary for each column with the 'Database Variant to Data' vi. Only conversion to Timestamp is no longer working as of version 8.2. I recognize that plain Variant to Data works but I have many (100's) of VIs to change if that is the only solution (not the end of the world). Most often the dates are originally generated in the database using PL/SQL procedures calling SYSDATE which look like: 5/1/2006 11:56:26 AM (in TOAD anyway) which I then need to read into LV as type Timestamp.
    Regards, Wes.

Maybe you are looking for

  • Where can I find a tutorial on creating interfaces?

    I think an interface is what I need for the program I am working on, although I haven't found any tutorial on how to create these on the Java Tutorial... Anyone could point me somewhere else where I might learn without bothering anyone? :)

  • PR to Payment

    Hi All, Is there a report to find the total report from PR to Paymnet. Regards,

  • Why can't I download the Mac OS I just purchased?  Why does it have to be shipped to me?

    I just purchased Lion OS.  Why can't I download it from the website?  Why does it have to be shipped to me?

  • Acct assignment cat

    Dear All, In OVZG, account assignment cat is E. 1) may i know what is KD-CO and Ind cust? 2) where I can see the mapping of the code below with GL? B   Make to stock KD-CO C   Sales order E   Ind. cust. w. KD-CO M   Ind.cust.without KD Q   Proj. make

  • J2ME's Java Code Compact issues...

    HI, I am recently trying to integrated some files of JSR 180 with MIDP 2.0/CLDC 1.1. After compiling successfully and the generation of "classes.zip" and "nativeFunctionTable.c" when the java code compactor tries to generate RomJava<platform> file it