Using informations about the XML Data Set in *.js

Dear Users,
I hope I am able to explane my problem correctly:
I wonna create a fade effect with various pictures. They don't should blend to 0 - I found a js script that lets the pictures fade from one to the other like this: www.sv-guenther.de
What this script needs is the number of pictures. I put the picture links into an XML file. Everything works as long as write the number or length of the picture children manually.
I tried to read out the length by using the ds_RowCount option. This works fine as long as I use this in HTML context like this:
<div spry:region="ds1" ><script type="text/javascript">  alert({ds_RowCount});</script>{ds_RowCount}</div>
Both works: The alert shows the number 21 AND you can read the "21" and not {ds_RowCount}.
okay, but how do I use the "21" integer in a script block in the head area? like this:
<head>
<script type="text/javascript">
var x = {ds_RowCount};
</script>
</head>
I tried it in different ways: var x = '{ds_RowCount}'; or spry:....
As you can see: I am afraid my scripting knowledge is not the best - like my English is...
Sorry and thank you very much for your help! - any kind of help
best regards from Bonn, Germany
Thorsten

Dear Ben,
if you would see me, you wouldn't laugh anymore, you would cry -) - but you are in DownUnder - this would look like I am laughing for you - wouldn't it?
Thank yoou so much for remembering me. I have been reading your post about this topic (blend a picture). Once somebody asked the same (or almost the same) like I did yesterday. But the difference is, that if you blend a text to 0 it is big diference blending a picture - in my mind. I would love to reduce the opacity from one picture when the next picture is already behind it. So it looks like a smooth fade in fade out, without displaying the background.
I found a quite good code example for this:HERE
To make it as easy as possible for me I tried to include the number of the pictures straight into the js code. in the meantime I found the correct code option for this: What I was looking for was: getData() and if I combine it with an observer to wait for the "onPostLoad" everything works fine. I am ashamed that I asked first and then lokked into the SPRY API - Sorry!
Everything works fine? No not yet - unfourtunally. So I am pleased to get the chance to ask a second time:
Let's say I have more than one picture and more than one topic. So my XML looks like this:
<leistungen>
<inhalte name="Bauvorhaben">
     <inhalt name="Bautechnische Beratung">
     <texte>
          <text>Beurteilung der Baubeschreibung, Beratung zur Ausführungsplanung</text>
     </texte>
     <bilder>
          <bild></bild>
     </bilder>
     </inhalt>
     <inhalt name="Baubegleitende Qualitätsüberwachung">
     <texte>
          <text>Stichprobenhafte Kontrollen der Bauausführung zur Gewährleistung der Einhaltung anerkannter Regeln der Bautechnik und vertraglicher Vereinbarungen</text>
     </texte>
     <bilder>
          <bild>3867</bild>
     </bilder>
     </inhalt>
     <inhalt name="Baumängel">
     <texte>
          <text>Feststellung und Beurteilung von Baumängeln, Ursachenermittlung,Sanierungsempfehlung, Schätzung der Instandsetzungskosten</text>
     </texte>
     <bilder>
          <bild>2857</bild>
          <bild>3612</bild>
     </bilder>
     </inhalt>
     <inhalt name="Beweissicherung">
     <texte>
          <text>Dokumentation von  Schäden an  Bestandsgebäuden im Einflußbereich von Bauvorhaben, Beurteilung von Schadensansprüchen</text>
          <text>Bauzustandsdokumentation, Leistungsfeststellung</text>
     </texte>
     <bilder>
          <bild>1176</bild>
          <bild>154</bild>
     </bilder>
     </inhalt>
     <inhalt name="Abnahme von Bauleistungen / Abnahmebegleitung">
     <texte>
          <text>Einfamilienhäuser</text>
          <text>Mehrfamilienhäuser</text>
          <text>Wohnanlagen</text>
          <text>Bürogebäude</text>
     </texte>
     <bilder>
          <bild>2485</bild>
          <bild>3485</bild>
          <bild>3481</bild>
          <bild>3460</bild>
     </bilder>
     </inhalt>
     <inhalt name="Schiedsgutachten">
     <texte>
          <text>Rechtsverbindliche Beurteilung von Bauprozessen und Gewerken zur Konfliktvermeidung und -lösung</text>
     </texte>
     <bilder>
          <bild>7080</bild>
     </bilder>
     </inhalt>
</inhalte>
<inhalte name="Bestandsgebäude">
     <inhalt name="Beweissicherung">
     <texte>
          <text>Dokumentation von  Schäden an  Bestandsgebäuden im Einflußbereich von Neubauten, Beurteilung von Schadensansprüchen</text>          
     </texte>
     <bilder>
          <bild>1176</bild>          
     </bilder>
     </inhalt>
     <inhalt name="Gebäudeschäden">
     <texte>
          <text>Feststellung und Beurteilung von Gebäudeschäden, Ursachenermittlung, Sanierungsempfehlung, Kostenschätzung</text>
          <text>Bautechnische Beratung beim Kauf einer Bestandsimmobilie</text>
     </texte>
     <bilder>
          <bild>2108</bild>
          <bild>4004</bild>
          <bild>1387</bild>
          <bild>3488</bild>
     </bilder>
     </inhalt>
</inhalte>
</leistungen>
First I create an new object
var ds1 = new Spry.Data.XMLDataSet("xml/leistungen.xml", "leistungen/inhalte/inhalt/texte");
So the  dsR =  ds1.getData() gives me a dsR.length = 8 - correct - because this XML has got 8 <texte> nodes. But some of these <texte> nodes have more than one <text> node. If I asked for the contet of the fifth node dsR[4]["text"] it gives me back "Bürogebäude" = the last sub node content. I wished I could catch the first, second, third as well. Just like a spry:repeat - do you understand?
I figured out that it doesn't help to extend the string like
dsR[4][0]["text"] or dsR[4][0][0].
As far as I understood the Spry framework flattens the XML like a table. So I thought that there might be just in this raw, in the actual column just another object (not a string)  to be found.This object  I could touch or open with square brackets. Like
dsR[0]["texte"][0]
- but: I can't!
But this would mean, that straight in js I could always only catch the first node value??? I must be wrong!!!  But I don't know were!
Dear Ben, Dear Guys out there - is this to difficult what I am looking for or am I blind?
thank you so much for helping me out here - again!

Similar Messages

  • What application should i use to create the xml data as the input data for XFA template

    HI,
    I need to generate pdf or html document form from existing XDP with the given xml formatted data set. We usually use word to generate content for those XFA template, as the data should be in xml format content in word document should be able to convert into xml document that is compatible with XFA template. I want to know if there is any tool to conver word doument content to xml format that is compatible with XFA template or has adobe given their own tool to create content that comply with XFA template? . Also i want to know if i can do above mention functionality jaut with adobe forms if not what are the other services that i should use. Please give me the prices of adobe forms and any other tool that i should use. Thank you

    XFA is just the definition of the form template. Once you have an XFA based template, you can merge any XML you want.
    The trick is do the appropriate binding so the data from the XML goes in the right fields on your form. This binding is done using LiveCycle Designer.
    Jasmin

  • Spry XML data set and dynamic post variables

    Hi,
    I am trying to create an XML data set that has dynamic post
    variables.
    Everytime something is pressed on the page a variable changes
    and I then want to reload the XML data set using the new variable.
    I know I can just pull in an XML with all possible variables
    and filter client side but this would make it way too large.
    Does anyone know what I may need to do.
    I tried this:
    var myVar = 0;
    var dss = new Spry.Data.XMLDataSet (
    '../../cgi-bin/server_details.pl' , 'top' , { method: 'POST' ,
    postData: sid=ajaja21&ip=127.0.0.1&cid=' . myVar ,
    subPaths: [ "auth" , "plugins" , "plugins/plugin" ] , keepSorted:
    "true", sortOnLoad: "plugins/plugin/order", sortOrderOnLoad:
    "descending", useCache: false, loadInterval: 10000 } );
    onclick="myVar=1";
    But the script doesn't understand the post variables sent (it
    does when I remove the . myVar part and put in a static value). I
    think it isn't sending that dynamic variable with the post
    variables.
    Any ideas anyone?
    Thanks

    Well I had it working when I stripped back everything and
    just had the dss data set and a single onclick function, but now
    that I put it back together it hash foobared again.
    Here are the relevant bits of code that I've changed.
    The function to change server id:
    //function to run when changing the server id
    function changeServer ( sid ) {
    //set the url to use the current server id
    dss.setURL = ( '../../cgi-bin/server_details.pl' , { method:
    'POST' , postData:
    'sid=7gv1m3vjvagfl7h7qeefb8iodj8evhmb&ip=127.0.0.1&cid='+sid
    //force a reload of the server data
    dss.loadData();
    The inital load of the data set
    var dss = new Spry.Data.XMLDataSet (
    '../../cgi-bin/server_details.pl' , 'yams' , { method: 'POST' ,
    postData:
    'sid=7gv1m3vjvagfl7h7qeefb8iodj8evhmb&ip=127.0.0.1&cid=0' ,
    subPaths: [ "auth" , "plugins" , "plugins/plugin" ] , keepSorted:
    "true", sortOnLoad: "plugins/plugin/order", sortOrderOnLoad:
    "descending", useCache: false, loadInterval: 10000 } );
    And the part that changes the server id
    <td align="left" style="cursor:default; width:174px;"
    onclick="changeServer({dsv::servers/server/@id})">{dsv::servers/server/name}</td>
    I checked that the function is receiving the correct server
    id and I even tried hard coding the cid variable to 2 in the change
    function but it still wasn't changing on the server side.
    Any ideas?
    Thanks

  • XML Data Set selection by attribute?

    I am new to Spry and was trying to work with the XML Data Set
    feature. I have an XML file with the schema listed below. I wanted
    to know if it were possible to only grab the data from this XML
    file if it matches a certain type? For example, grab data from
    seminarType where @type="condition1"? Is this able to be done or
    will I have to generate an XML file for each type? My goals was to
    have one large file to grab data from.
    <seminars>
    <seminarType type="">
    <seminarSession type="">
    <seminar>
    <location><![CDATA[]]></location>
    <date></date>
    <time></time>
    <seats></seats>
    <directions><![CDATA[]]></directions>
    </seminar>
    </seminarSession>
    </seminarType>
    </seminars>

    The seminar node contains all the information I want to grab.
    I need to be able to select those nodes based off seminarType @type
    and then seminarSession @type.
    Example:
    <seminars>
    <seminarType type="type1">
    <seminarSession type="session1">
    <seminar>
    <location><![CDATA[location]]></location>
    <date>12-12-2007</date>
    <time>14:00</time>
    <seats>23</seats>
    <directions><![CDATA[mapquest
    directions]]></directions>
    </seminar>
    </seminarSession>
    <seminarSession type="session2">
    <seminar>
    <location><![CDATA[location]]></location>
    <date>10-08-2007</date>
    <time>10:00</time>
    <seats>15</seats>
    <directions><![CDATA[mapquest
    directions]]></directions>
    </seminar>
    </seminarSession>
    </seminarType>
    </seminars>
    So I would want to grab all the session nodes where
    seminarType @type="type1" and seminarSession @type="session1"
    Does this help?

  • I am using the Order Analysis Toolkit and want to get more information about the compensation for "Reference Signal Processing", which is scarce in the manuals, the website and the examples installed with the toolkit.

    I am using the Order Analysis Toolkit and want to get more information about the compensation for "Reference Signal Processing", which is scarce in the manuals, the website and the examples installed with the toolkit.
    In particular, I am analyzing the example "Even Angle Reference Signal Processing (Digital Tacho, DAQmx).vi", whose documentation I am reproducing in the following:
    <B>DESCRIPTIONS</B>:
    This VI demonstrates how to extract even angle reference signals and remove the slow-roll errors. It uses DAQmx VIs to acquire sound or vibration signals and a digital tachometer signal. This VI includes a two-step process: acquire data at low rotational speed to extract even angle reference; use the even angle reference to remove the errors in the vibration signal acquired at normal operation.
    <B>INSTRUCTIONS</B>:
    1. Run the VI.
    2. On the <B>DAQ Configurations</B> tab, specify the <B>sample rate</B>, <B>samples per channel</B>, device and channel configurations, and tachometer channel information.
    <B>NOTE</B>: You need to use DSA PXI-447x/PXI-446x and PXI TIO device in a PXI chassis to run this example. The DSA device must be in slot 2 of the PXI chassis.
    3. Switch to <B>Extract Even Angle Reference</B> tab. Specify the <B>number of samples to acquire</B> and the <B># of revs in reference</B> which determines the number of samples in even angle reference. Click <B>Start</B> to take a one-shot data acquisition of the vibration and tachometer signals. After the acquisition, you can see the extracted even angle references in <B>Even Angle Reference</B>.
    4. Switch to the <B>Remove Slow-roll Errors</B> tab. Click <B>Start</B> to acquire data continuously and view the compensate results. Click <B>Stop</B> in this tab to stop the acquisition.
    <B>ORDER ANALYSIS VIs USED IN THIS EXAMPLE</B>:
    1. SVL Scale Voltage to EU.vi
    2. OAT Digital Tacho Process.vi
    3. OAT Get Even Angle Reference.vi
    4. OAT Convert to Even Angle Signal.vi
    5. OAT Compensate Even Angle Signal.vi
    My question is: How is the synchronization produced at the time of the compensation ? How is it possible to eliminate the errors in a synchronized fashion with respect to the surface of the shaft bearing in mind that I am acquired data at a low rotation speed in order to get the "even angle reference" and then I use it to remove the errors in the vibration signal acquired at normal operation. In this application both operations are made in different acquisitions, therefore the reference of the correction signal is lost. Is it simply compensated without synchronizing ?
    Our application is based on FPGA and we need to clarity those aspects before implementing the procedure.
    Solved!
    Go to Solution.

    Hi CracKatoA.
    Take a look at the link bellow:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=255126&requireLogin=False
    Regards,
    Filipe Silva

  • Formatting tags in xml data set used for spry region

    I am trying to put <p>,,,</p> tags in my xml data set but they cause the field to not load. For example I would like to create an xml file as follows:
    <blog>
          <blogentry>
              <blogdate>Jan 2009</blogdate>
              <blogtitle>January Blog</blogtitle>
              <blogtext><p> this is a paragraph</p>
    <p>and so is this</p>
              </blogtext>
         </blogentry>
    </blog>
    When I do this I don't get anything in the spry region.  If I remove the <p>,</p> tabs it works.
    Is there anyway to do this (not just with <p> but with any tags ... ie. tables, etc.).
    Thanks/Hal

    I have an online example:
    http://www.pearlmanpr.com/perspective_test.html
    The spBlog.xml file contains test junk.  If I put the <[[CDATA....]]> inside the BlogEntry/BlogText tag it doesn't work at all.
    http://www.pearlmanpr.com/perspective_test_2.html
    If I use it without the <[[CDATA..]] it doesnt work either.
    http://www.pearlmanpr.com/perspective_test_3.html
    If I use it without any <> within the tag it sort of works (still needs to be aligned).

  • How to use XmlModify to sort the XML Data?

    Hello,
    I saw some examples explain how to use XmlModify in BDB XML package. I want to sort the XML data by several elements but my Java program could not work correctly.
    <CustomerData>
    <Transaction>
    <DLSFIELDS>
    <ADR_PST_CD>12345</ADR_PST_CD>
    <CLT_IRD_NBR>002</CLT_IRD_NBR>
    </DLSFIELDS>
    </Transaction>
    <Transaction>
    <DLSFIELDS>
    <ADR_PST_CD>12345</ADR_PST_CD>
    <CLT_IRD_NBR>102</CLT_IRD_NBR>
    </DLSFIELDS>
    </Transaction>
    // many nodes like transaction ...
    </CustomerData>
    My XQuery script was executed successfully in the shell. The script looks as follows:
    "for $i in collection('sample.dbxml')/CustomerData/Transaction order by xs:decimal($i//ADR_PST_CD), xs:decimal($i//CLT_IRD_NBR) return $i".
    The Java code :
    // create XmlManager
    XmlManager manager = // ...;
    // open XmlContainer
    XmlContainer container = // ...;
    XmlQueryContext context = manager.createQueryContext(XmlQueryContext.LiveValues, XmlQueryContext.Eager);
    XmlQueryExpression expression = manager.prepare("for $i in collection('sample.dbxml')/CustomerData/Transaction order by xs:decimal($i//ADR_PST_CD),xs:decimal($i//CLT_IRD_NBR) return $i", context);
    XmlModify modify = manager.createModify();
    XmlUpdateContext uc = manager.createUpdateContext();
    XmlDocument xmldoc = container.getDocument("sample.xml");
    XmlValue value = new XmlValue(xmldoc);
    long numMod = modify.execute(value, context, uc);
    System.out.println("Peformed " + numMod     + " modification operations");
    Could you point out the errors above or offer some suggestion?
    Thanks.

    I have other question of the sorting issue. Here are a large XML need to sort so I have to split it to multiple small XML files. After importing these files, I will use the XmlModify and XQuery to sort them. I'm not clear on the multiple XML files processing.
    1. Can the BDB XML ensure that all these XML files were sorted or how to update all documents with same logic.
    2. If I want export all these sorted documents, how can I ensure these files processed in sequence? Which document needs process first?
    The export method:
    public void export(String outputfile)throws Exception{
    final int BLOCK_SIZE = 5 * 1024 * 1024; // 5Mb
    try{
    File theFile = new File(outputfile);
    FileOutputStream fos = new FileOutputStream(theFile);
    byte[] buff= new byte[BLOCK_SIZE];                         
    XmlResults rs = container.getAllDocuments(new XmlDocumentConfig());               
    while(rs.hasNext()){
         XmlDocument xmlDoc = rs.next().asDocument();
         XmlInputStream inputStream = xmlDoc.getContentAsXmlInputStream();                    
         long read=0;
         while(true){
         read = inputStream.readBytes(buff, BLOCK_SIZE);
    fos.write(buff,0,(int)read);                    
         if(read < BLOCK_SIZE) break;
    inputStream.delete();
    xmlDoc.delete();
    rs.delete();
    //MUST CLOSE!
    fos.close();               
    catch(Exception e){
    System.err.println("Error exporting file from container " + container);
    System.err.println(" Message: " + e.getMessage());
    Thanks.

  • Need information about the transition used in this video.

    Hi,
    I try to make a video about a game (a fragmovie).
    I have see a video with very nice transition. I want try to do same but i don't know how.
    If somemone have tuto, links, tips or whatever for help me, thanks you.
    The video : http://www.youtube.com/watch?feature=player_embedded&v=unWCV9aWWrc
    I want do same transitions as 00:14 or 00:27sec.
    Thanks.

    I'd take your two clips and set them up with a simple dissolve transition between the two using opacity with the blend mode set to alpha add. Next drop the comp with the dissolve transition into a new comp or select both layers and pre-compose. Now apply Effect>Stylize>Motion Tile and animate the tile center to complete the transition.
    EZ as pie.
    Strike that, easier than pie.

  • How to get information about the modules used in the RT system from host pc.

    hi all,
    i am trying to  read the modules of the RT tragets from my host pc without deploying the program.
    i have 2 or more than 2 rt systems from which i am trying to get the information about the modules used in that particular system.
    Regards,
    Santhosh M

    hi, you can use the sys_context function, like this:
    select sys_context('userenv','current_user'),
         sys_context('userenv','os_user'),
         sys_context('userenv','host'),
         sys_context('userenv','ip_address'),
         sys_context('userenv','instance'),
         sys_context('userenv','sessionid'),
         sys_context('userenv','terminal')
    from dual;
    Is this what you 're looking for?

  • Require information about the Role of Data Analyst

    Hi All,
    I know this might be irrelevent question in this forum, but after a long search, I could not find any suitable place where I can get the information about the role of Data Analyst ( DA ). What all activities the DA needs to perform? Can anyone suggest me anything related to this?
    Thanks in advance
    Himanshu

    As with just about any role, it really depends on the organization. There are dozens if not hundreds of jobs that different organizations might label "Data Analyst." A lot of what a statistician, an economist, or an actuary does would count as data analysis. So would a lot of what a business analyst does. So would a lot of what an software architect does.
    Justin

  • XML Data Sets and IE8

    I have an issue with Spry XML Data sets that is driving me nuts.
    The setup is quite straightforward. I have a PHP script which submits a SOAP request, the result of which is pure XML. I echo this XML out as the result of the script.
    I have another page on which is one or more Spry XML Data Sets. These data sets use the previous script as the source. I know this works OK because when i 'Get Schema' in the XML dataset dialog in Dreamweaver, the schema is properly displayed. This page also has a Spry Table on it, which uses the dataset as the source. There is nothing else on the page at all.
    Now, when I preview this page in Firefox, Chrome, Opera or Safari, it displays fine. However, when I preview it in IE, the table briefly flashes up then disappears. A quick look at the source of the page shows the HTML all laid out very licely, but the Spry fields still show with their placeholders (e.g. {Balance}) instead of the actual value. Im left with a totally blank page in IE.
    I have tried running in compatibility mode with no effect. I found a posting on Experts Exchange (yuk!) where someone else was having the problem but this turned out to bedue to badly formed XML. I have run my XML though XMLSpy and several online validators and it checks out every time.
    Any ideas? I am slowly losing the will to live....
    Si

    Hi,
    I'm trying to debug the same problem...I think.The pages work in firefox on PC & MAC but stop with the {data_name} in IE on both PC & MAC.
    I'm using Dreamweaver CS3 with ADDT. I've read the posts about adding the content-type to my file that ADDT created for me just before the XMLExport, so I've added that to the get_menu_1_info.php file (see lines 42-46). I've peeked into the XMLExport.class.php file to see that the Execute function is supposedly already sending the header info (see line 223). But I'm not getting the data into IE.
    Any help would be appreciated!
    here's where you can see the page:
    https://hbblearning.org/Takv3uMYsX7cVK5eRo/newcomer_info.html
    here's where I generate the xml file to be consumed:
    https://www.hbblearning.org/get/get_menu_1_info.php
    I've attached the files for you to see.

  • Using importdata to import xml data into dynamic PDF form

    Hi again,
    Me and my colleagues have a problem using the importData service to import some xml data into an empty PDF form (represented as an XFA input variable).
    In the server log I get the error that Only XDP data is supported for XFA forms, however I only have the xml data and not the entire xdp available.
    Is this really not possible to to (like importing xml data to a form is possible in the Designer when creating forms).
    I hope the scenario is understandable
    Sincerely
    Kim Christensen
    Dafolo A/S
    Denmark
    PS: During the various projects I am working on I keep running into problems...however I am totally new to LiveCycle so I consider this very informative learning steps and appreciate all your help :-)

    Hi again,<br /><br />I have been experimenting a little with both the renderPDFForm and importData services. However I don't seem to be ble to make them work as I  need them to.<br /><br />My scenario is simple, I have one (call it a template xdp/PDF form) and lots of data in xml files (around 1000), that I need to import into the template. Therefore I have set up a "Watched Folder" to take the xml as a document (I guess this is a requirement) and then I need either the renderPDF or importData services to import the xml data into the template.<br /><br />I would like to know how I should setup the services to make this work.<br /><br />When I try to use importdata I setup the following:<br /><br />PDF document: set to be the template i need to import the xml to)<br /><br />Input data: the document variable (an xml file) that is passed to the   Watched Folder<br /><br />Data merged PDF: set to an out xfaform<br /><br />When I do this I get an Coercion error in the server log:<br /><br />2007-11-15 13:27:05,324 ERROR [com.adobe.workflow.AWS] stalling action-instance: 1506 with message: ALC-DSC-000-000: com.adobe.idp.dsc.DSCRuntimeException: Internal error.<br />     at com.adobe.idp.dsc.util.CoercionUtil.toDOMDocument(CoercionUtil.java:656)<br />     at com.adobe.idp.dsc.util.CoercionUtil.toType(CoercionUtil.java:878)<br />     at com.adobe.idp.dsc.util.CoercionUtil.toType(CoercionUtil.java:803)<br />     at com.adobe.workflow.datatype.runtime.support.AbstractDataTypeRuntimeHandler.coerceFrom(Abs tractDataTypeRuntimeHandler.java:64)<br />     at com.adobe.workflow.datatype.runtime.support.AbstractComplexDataTypeRuntimeHandler.getNode (AbstractComplexDataTypeRuntimeHandler.java:47)<br />     at com.adobe.workflow.dom.VariableElement.setBoundValue(VariableElement.java:93)<br />     at com.adobe.workflow.pat.service.PATExecutionContextImpl.setProcessDataValue(PATExecutionCo ntextImpl.java:729)<br />     at com.adobe.workflow.pat.service.PATExecutionContextImpl.setProcessDataWithExpression(PATEx ecutionContextImpl.java:335)<br />     at com.adobe.idp.workflow.dsc.service.SetValueService.execute(SetValueService.java:46)<br />...<br />Caused by: ALC-DSC-119-000: com.adobe.idp.dsc.util.InvalidCoercionException: Cannot coerce object: <document state="passive" senderVersion="3" persistent="false" senderPersistent="true" passivated="true" senderPassivated="true" deserialized="true" senderHostId="127.0.0.1/172.16.10.125" callbackId="0" senderCallbackId="7" callbackRef="null" isLocalizable="true" isTransactionBound="false" defaultDisposalTimeout="600" disposalTimeout="600" maxInlineSize="65536" defaultMaxInlineSize="65536" inlineSize="8039" contentType="application/xml" length="-1"><cacheId/><localBackendId/><globalBackendId/><senderLocalBackendId/><senderGl obalBackendId/><inline><?xml version="1.0" encoding="UTF-8"?><br /><form1><br />  <sub_BlanketTop /><br />  <sub_SubjectTop><br />    <f...</inline><senderPullServantJndiName>adobe/idp/DocumentPullServant/adobejb_server1</s enderPullServantJndiName><attributes file="c:\NCRConvert\ProcessForm\stage\Wx450d4b32843a0b0bcb8ef99e\NCR-00564_dXAE3soH.xml"/ ></document> of type: com.adobe.idp.Document to type: interface org.w3c.dom.Document<br />     at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)<br />     at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)<br /><br />However it is possible to manually import the xml data in Acrobat Professional without any problems.<br /><br />When I use the renderPDFForm with the following settings:<br /><br />Form to render: literal value that points to the template<br /><br />Form data: document variable from watched folder (xml)<br /><br />Content Root URI: repository://<br /><br />With these settings I also get a coercion error, however it does not seem to be exactly the same.<br /><br />Sincerely<br />Kim

  • Spry xml data set, accessing specific rows

    Hello. I've been trying to build a website using Spry XML
    Data Sets, and while I've accomplished my goals for now, I don't
    think the solution I came up with is the best.
    The website consists of several areas that show projects.
    Each project has several fields that are to be filled with content
    retrieved from the xml files, but the projects are not all exactly
    alike and some have specific fields that others don't require.
    All the info is available in several languages, so for now
    I've created an xml file for each one. An xml file could be like
    Code Part1. (Why I can't add several code snippets along the post
    baffles me. I mean, I can't, right?)
    This dataset, for simplicity purposes, is not dependent on
    the language (Code Part2).
    And then there are the content areas (Code Part3).
    So as you see, each project has its own structure. This makes
    using spry:repeat a not very effective method for filling in all
    the content. Ideally I should be able to access each row in the
    dataset through some sort of value, like id, or one of its
    children's values. The ds_RowID depends on the row order, so unless
    there's another way to use it, it doesn't solve my problem.
    Here's what I've come up with (Code Part4).
    This works (in FF3 OSX, at least), although there are some
    other problems that might make it necessary to create a spry:region
    (or at least use spry:repeat) for each field. Anyway, it sounds
    silly and wasteful to go through every row of the dataset everytime
    for each of the fields that need to be filled.
    My hope is that I'm ignorant of some much better method of
    achieving my goals, something more direct and elegant.
    Can anyone help me out with this? Thank you very much in
    advance.

    Hi there
    You are indeed absolutely correct a spry region should have been shown, my appologise for that, the code is wrapped in a standard spry region.
    That being said i have used a work around in the SQL SELECT statement of the xmlExportObj, Recordset to find the information required without having to do any IF, ELSE on the page.
    Many thanks for your reply and for pointing out my mistake in how I had presented my question.
    My next question is to follow seperately
    Regards
    Ray

  • Spry Tables and Xml Data Sets viewed in IE7

    Has anyone ever run into a problem with Spry Tables and Xml
    Data Sets viewed in IE7? Work fine in IE6 and Firefox, but get the
    error "exception caught while loading feed.xml: [object Error]" in
    IE 7. Any ideas?
    Attached is the xml I'm using.
    Thanks

    I came looking for the answer to this question. I could not
    find an answer. Eventually I found it the answer that worked for
    me, a graphic designer with not much experience in xml.
    The following url provided an errata file in PDF format:
    www.peachpit.com/dwcs3cib
    which includes the following addendum to the incomplete
    instructions in the book i was using to learn about spry:
    "If Internet Explorer 7 is your primary browser, you'll nee
    to take some extra steps to view spry dynamic content locally.
    First, your site must be within the local server webroot; be sure
    your Lessons folder is stored within the Inetpub>wwwroot folder.
    Next, double-click the site name in the files panel to open the
    Site Definition dialogue. Click the Testing Server category; from
    the Access List choose Local/Network. Click Okay to close the Site
    Definition dialogue. Now, when you preview your page with Internet
    Explorer, your local Web server (localhost) serves the page as
    designed."
    Horray for me! Now i can move on from here and actually get
    some work done!

  • Spry XML Data Set

    I have made a basic XML file that gets written to from the
    inputs of a form. All the information is written in the XML file
    correctly, but when the data is inserted, the new data doesnt
    display in the Spry table (evan with DW closed). I have a page for
    the form and a page to display All the data. The only way i can get
    the table to show the updated data is to close the browser and
    reopen. After i insert the data to the file i get the "File has
    been modified outside of Dreamweaver, Reload it" prompt. Is there a
    setting i should change? My XML file is in the root folder of my
    site on the local machine, i am using Vista Ultimate and
    ASP.

    Well I had it working when I stripped back everything and
    just had the dss data set and a single onclick function, but now
    that I put it back together it hash foobared again.
    Here are the relevant bits of code that I've changed.
    The function to change server id:
    //function to run when changing the server id
    function changeServer ( sid ) {
    //set the url to use the current server id
    dss.setURL = ( '../../cgi-bin/server_details.pl' , { method:
    'POST' , postData:
    'sid=7gv1m3vjvagfl7h7qeefb8iodj8evhmb&ip=127.0.0.1&cid='+sid
    //force a reload of the server data
    dss.loadData();
    The inital load of the data set
    var dss = new Spry.Data.XMLDataSet (
    '../../cgi-bin/server_details.pl' , 'yams' , { method: 'POST' ,
    postData:
    'sid=7gv1m3vjvagfl7h7qeefb8iodj8evhmb&ip=127.0.0.1&cid=0' ,
    subPaths: [ "auth" , "plugins" , "plugins/plugin" ] , keepSorted:
    "true", sortOnLoad: "plugins/plugin/order", sortOrderOnLoad:
    "descending", useCache: false, loadInterval: 10000 } );
    And the part that changes the server id
    <td align="left" style="cursor:default; width:174px;"
    onclick="changeServer({dsv::servers/server/@id})">{dsv::servers/server/name}</td>
    I checked that the function is receiving the correct server
    id and I even tried hard coding the cid variable to 2 in the change
    function but it still wasn't changing on the server side.
    Any ideas?
    Thanks

Maybe you are looking for

  • Unable to Import Idoc from R/3 System.

    Hi, I am facing an error while importing Idoc (SERDAT.SEERDAT01) from 4.6c R/3 system, the errror is "unable to read the segments" and the same Idoc I am able to import successfully from ECC6 system. Please let the solution for the same. Thanks & Reg

  • How do I enter a license number in Final Cut Pro X?

    I am taking a class that includes a license for Final Cut Pro X.  I was given a license number by my teacher and told to "download Final Cut from Apple and enter the license number".  When I download the trial I don't see any way to upgrade it to a f

  • ODBC Client/Server Mode, unexpected scale for non-numeric type

    When I connect to Oracle RDB via Oracle ODBC driver, I noticed the SQLBindCol for the CHAR type returns scale=0 while scaleLen=-2. This behavior is different from MS native ODBC driver and also vary from IBM DataDirect. For MS ODBC driver and IBM Dat

  • JTable how to know when a cell is updated?

    I have a Tabel with a custom tablemodel (based on AbstactTableModel). I need to do something when a user changes the value of a cell. Can anyone give me an example?

  • Actiontec GT704GS how do I configure QoS???

    I just got a new Actiontrec GT704GS router/modem from Verizon and the documentation has virtually zero beginner information about how to configure QoS. I use a Skype enabled phone with a static IP so it souldn't be too hard to set up. The manual says