Trying to bind XML data and form fields
I have a fairly simple PDF - and I am trying to bind XML data to he form fields.
In the designer I can bring up the data connection and
select Global - for the binding method - and as I understand it - this will link Form Fields and XML data fields with the same name - (sounds logical to me)
but all that happens is :
I see the name of the field in the form field rahter than seeing the actual data
should I select : None as the binding or normal ....
but Normal doesnt show Anything - even after i select it .
I can't quite seem to make this work -
Any help here would be appreciated
Thanks :)
This is on a stand - alone system
Using Designer ES ......
I saved the Form as an xdp form
and it seems as if all goes well until
View the data and nothing appears - or
just the names of the fields appear
Similar Messages
-
how to find and replace data in form fields in acrobat xi, its not allowing to do so while trying, asking for adobe livecycle to get installed. please help.
Easiest way to do it is the following:
- Open the PDF file in Acrobat.
- Go to Tools - Forms - More Form Options - Export Data.
- Save the form data as an XML file somewhere on your system.
- Open XML the file in a plain-text editor (I recommend Notepad++).
- Let's say you want to replace all the years in the dates from "2013" to "2014". Do a global Search&Replace of "2013-" to "2014-" (I added the dash just to make sure that only date fields are edited).
- Save the XML file (maybe under a new name).
- Go back to the PDF file, and now go to Tools - Forms - More Form Options - Import Data.
- Select the edited XML file and import it.
- Done! -
LC ES 8.2.1.3
I have a web service that outputs XML data and Designer calls the webservice and the XML data populates a text field. This works fine.
My problem is getting the data out of the text field to populate different fields in my form. I have done many searches and have tried many different things but still can't get the data out. I have made sure my form is dynamic xml.
Here is the last thing I have tried:
-------Begin Code -----------
Placed in testData:Intialize and the connectionSet is placed in Page1:Initialize.
var myXML = XMLData.parse(xmlData.rawValue, false);
var subNames = XMLData.applyXPath(myXML, "//Subordinates/Subordinate/full_name");
if (subNames == null) {
//no data
} else if (subNames.length == null) {
//not array, just a single value
topmostSubform.Page2.testData.addItem(subName.value);
} else {
for (var i = 0; i < subNames.length; i++) {
topmostSubform.Page2.testData.addItem(subName.item(i).value);
-------End Code -----------
I have been working on this for 3 days and still can't get it to work. The closest I have come is output in my testData text field that said "Object23485968".
Thank you in advance for your help
JohnI must be missing something somewhere becuause I couldn't get it to work. Here is the xml that I am getting back when I invoke the CFC from within Workbench. This data is assigned to an XML type varialbe called 'xmlOutput'. I then create a data connection in my form to the service I created in Workbench and bind the return data to a text field (with multiple lines). When I bind the data I have the option to choose "document" or "element". Element doesn't return anything, unless I am doing something wrong, so I have to choose Document.
With the xmlOutput below I do get more than one subordinate returned. I only showed one for simplicity.
------------Begin xmlOutput -------------- (Yes, I am getting all of these empty lines in my output)
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://livecycle" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ns1:getSubordinatesResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<getSubordinatesReturn xsi:type="xsd:string"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<subordinates>
<subordinate>
<cost_center_code>123456</cost_center_code>
<cost_center_description>Business</cost_center_description>
<department_code>99</department_code>
<department_description>Information Technology</department_description>
<department_head_emp_id>987654</department_head_emp_id>
<employee_id>456789</employee_id>
<first_name>John</first_name>
<full_name>Public, John</full_name>
<hourly_rate>5.350</hourly_rate>
<job_code>PMBAPP</job_code>
<job_title>Business</job_title>
<last_name>Public</last_name>
<lives_in_state>AK</lives_in_state>
<location_code>ANCH</location_code>
<location_description>Anchorage</location_description>
<network_user_id>JPublic</network_user_id>
<pay_group_code>KMH</pay_group_code>
<rate_type_code>S</rate_type_code>
<reports_to>789123</reports_to>
<territory_code/>
<tier>1</tier>
</subordinate>
</subordinates
------------End xmlOutput -------------- (Yes, I am getting all of these empty lines in my output)
I am really at a loss on how to get this data into my form.
Thanks,
John -
ActionScript to bind XML data to components
How can I use ActionScript to bind XML data to a comboBox
component instead of using the component inspector? (I have done
the latter, successfully, but that doesn’t allow access to
the code - .)
My ActionScript so far imports the data (the trace picks it
up) – but the ‘cbType.dataProvider line’
doesn’t work. It works when I change the data provider to an
array – so what am I doing wrong?
MY CODE:
import mx.data.components.XMLConnector;
var xcFestival:XMLConnector = new XMLConnector();
xcFestival.ignoreWhite = true;
xcFestival.direction = "receive";
xcFestival.URL = "festivalItems.xml";
xcFestival.trigger();
//POPULATE THE COMPONENTS WITH THE DATA
var festXMLlistener:Object = new Object();
festXMLlistener.result = function(evt:Object) {
trace(xcFestival.results);
cbType.dataProvider = xcFestival.results;
xcFestival.addEventListener("result",festXMLlistener);This is on a stand - alone system
Using Designer ES ......
I saved the Form as an xdp form
and it seems as if all goes well until
View the data and nothing appears - or
just the names of the fields appear -
Bind repeating data to multiple fields
I am a livecycle numpty and I need some help! I am developing a readonly report. This report is using sample xml for databinding. Within the xml I have a repeating group - example:
<group>
<groupItem>
<addres>parp</address>
</groupItem>
<groupItem>
<addres>parp</address>
In my report I have two sections that need to reference this repeating data. One section works and the other doesn't. I've read that you can't bind repeating data to multiple fields. How do I get around around this? I can't seem to get the global binding to work (is this purely for user entered data???)
Please help!
Cheers,
Richone way to do this is, in the Initialize event of the field in second repeating section, assign the rawValue from the first repeating section..
For example..
initialize event of Field2..
Field2.rawValue = Field1.rawValue;
Other way is to read the XML tags and assign the value to the fields..
You need to loop thru the group element and read each group item value and assign the value to the field..
Field2.rawValue = xfa.resolveNode("$record.group.groupItem").value; //this command will only read the first occurance of the groupItem value.
Thanks
Srini -
How to convert a data set into a xml data and vice versa
i am new to oracle with xml..
my aim is to convert a data set into a xml data and vice versa..
my work is as follows...
my query:
select rggpk,rggcode,rggname from ms_regiongeo
to convert a data set into a xml*
select XMLType(trim(replace(dbms_xmlgen.getXML('select rggpk,rggcode, rggname from ms_regiongeo'),'<?xml version="1.0"?>',''))) XML_DATA from dual;
(this works fine and output of this query is as follows..)
<ROWSET>
<ROW>
<RGGPK>201</RGGPK>
<RGGCODE>Asia</RGGCODE>
<RGGNAME>Asia</RGGNAME>
</ROW>
<ROW>
<RGGPK>1</RGGPK>
<RGGCODE>OTH</RGGCODE>
<RGGNAME>Others</RGGNAME>
</ROW>
<ROW>
<RGGPK>21</RGGPK>
<RGGCODE>COB</RGGCODE>
<RGGNAME>Africa and Yemen</RGGNAME>
</ROW>
<ROW>
<RGGPK>2</RGGPK>
<RGGCODE>AUS</RGGCODE>
<RGGNAME>Australia</RGGNAME>
</ROW>
<ROW>
<RGGPK>23</RGGPK>
<RGGCODE>IND</RGGCODE>
<RGGNAME>Indian Sub Continent</RGGNAME>
</ROW>
<ROW>
<RGGPK>24</RGGPK>
<RGGCODE>TVM</RGGCODE>
<RGGNAME>North America</RGGNAME>
</ROW>
</ROWSET>
and to reverse this process, I tried a query like this..*
select EXTRACTVALUE (XML_DATA,'ROWSET/ROW/RGGPK') as EMP_ID
from(
select XMLType(trim(replace(dbms_xmlgen.getXML('select rggpk,rggcode, rggname from ms_regiongeo'),'<?xml version="1.0"?>',''))) XML_DATA from dual
)tab1but failed.. and raised with an eror: ORA-19025
help me..
regards,
johnHi-
my aim is to convert a data set into a xml data You can refer to the below posts
Adding namespace to XML output
Re: how to convert table data in xml format based on the xsd. -
MS Word Web Service Interface: bad format of date and currency fields
Hi,
I am using MS Word Web Service interface to create contract documents. However, my date and currency fields show in a strange format. Date is in"YYYY-MM-DD" format, while currencies always have "." as decimal separator (probably technical values). My user settings are "DD.MM.YYYY" for dates and "n.nnn,dd" for decimal numbers.
My workaround is to create a Z structure for WS interface with char fields and then do conversion through CRM_WST_RT_BADI->OUTBOUND_PROCESSING method. This works, but requires a lot of custom development.
Is there a way to "tell" the interface to use correct formats in MS Word without doing it all manually through custom fields?
Thanks!
KR,
IgorOh, indeed!
We might be closer than you think - I live close to Croatian-Slovenian border so we might pop out for a drink! But we can discuss this out of forum...
Now work again:
Is there any documentation on possible formatting keywords? I suppose it's possible to set up decimal places, custom date formats etc.
Cheers,
Igor -
On the initial set up for apple tv it just sits there trying to set the date and time . it is a wireless setup and the ipaddress and router address is correct . I can't get by this screen. The setting is on automatic and I have picked a city in my time zone yet it still tries to set a time and date but fails.
thanksMake sure router is up to date. Try ethernet to rule out any wifi issues. Reboot ATV and router.
-
Color coding in the "Date" and "Time" field in "Person Assignment"
Hi,
What does it mean when the color of the values for the "Date" and "Time" fields under the tab "Person Assignment" on an activity element in the project builder (CJ20N) turn red?
Regards,
Petter KvalvikHi,
I dont suppose we have any option to achieve this at Query Designer level. Your requirement can be achieved in Workbook,
Insert text template in one of the cell in your workbook, context menu--properties-Constant Tab----Check Display last Refreshed. Doing this you will get Date and Time of last refreshed data.
Thanks,
Vishnu. -
To implement search help for date and time fields details
how can i implement search help for date and time fields in screen painter
Hi
Declare the variables as sy-datum and sy-uzeit or any other pre-defined data typ of date and ime types. Serach help will automatically comes.
Aditya -
How to compare table data and table field
Hi buddy,
I have some question about how to compare table data and table field.
1. I know there is one method: CL_ABAP_UNIT_ASSERT=>ASSERT_TABLE_CONTAINS , it use in unit test to compare the table data(A and B) , you can loop table A into structure A1, then use this mehtod it can compare whether table B contain structure A1. but when I try to use this in main program it will dump.
CL_ABAP_UNIT_ASSERT=>ASSERT_TABLE_CONTAINS(
LINE = A1
TABLE = B ).
Is there any method or FM can be used to compare the table data ?
2. I also want to compare two table field , try to find out the different. How to realize this.
Thank you for your sincerely answer.Hi Zongjie,
What`s the difference, if you using loop A into wa_A, read table B into wa_B with all field, then compare with wa_A and wa_B.
The question 2, seems no standard FM available here.
Loop A into wa_A.
Loop B into wa_B.
if wa_A-field1 eq wa_B-field1.
endif.
if wa_A-field2 eq wa_B-field2.
endif.
endloop.
endloop.
regards,
Archer -
Reportable Last Modified Date and Time Field
Reportable Last Modified Date and Time Field
Hello,
We need a reportable RequestCenter 'last modified date/time' database field that is refreshed when the 'Comments and History' field is updated. Any ideas would be appreciated. Thanks!No, unless you can use an FTP client.
-
How do I restore the "Flatten annotations and form fields" Preflight profile?
The "Flatten annotations and form fields" Preflight profile (sub: PDF fixups) was accidentally deleted from my computer. I don't know how to reinstall/recreate it. I use it all the time... please help.
In which case, just recreate it yourself:
Preflight > Pptions menu > New Preflight Profile
Give it the name you want
Custom Fixups section on the left, add two entries from the list
"Flatten all annotations into page contents"
"Flatten all form fields into page contents"
Save it in the PDF Fixups category and lock it -
Form converts to XML data and I need the pdf form to be visable
Hello all,
I just created a form in pro 8 for our salesmen and it is a sales order form. I have sent it out to them to fill out and return it by pressing the email button in the form and some have come back as XML date stream and some came back as the original form with all fields filled in. I want to know how to get all of them to come back filled in instead of the XML Data. All salesmen have Reader 8 installed on the machines. Can anyone help me with this problem?
Thanks in advance,
TonyHi there, I'm myseld using the Application data-field in order to collect mobile forms OFFLINE.
I can collect as many mobile form as i want BUT, of course, need to be online to sync the data from mobile to their cloud.
Hope that helps.
Otherwise, would probably need to plug ur idevice and look for the application database with such tool as iConnector. -
Tidy xml: clean xml data source form and characters
Hi,
the xml data set that I'd like to display with spry includes many special characters such as < and >, which are also used by xml to separate the individual data elements.
How can I replace those when the data are read, so that the data display correctly on my webpage. Currently any data set that has < or > characters is truncated.
I tried a replace function, but that did not work
function TidyXML(region, lookupFunc)
return TidyXML("{abstract}").replace(/\>/, ">");
return TidyXML("{abstract}").replace(/\</, "<");
Thanks for any help,
thorstenHi Phil
thanks for your fast reply.
The xml dataset is generated by Endnote, which is a database program
to organize scientific citations and which has unfortunately only very
limited xml functionality.
Thanks for the CDATA tipp, I will try that.
t.
Am 12.05.2009 um 21:34 schrieb Phil_W:
Hi,
>
You'll need to tidy up the XML file directly as I'd imagine browsers
such as Firefox and IE will not correctly read the XML dataset let
alone Spry Data XML.
>
Do you have the ability to edit the XML dataset / is it generated
from a database in the background?
>
Is the XML dataset online for us to see? Normal routine is to encode
the < > and other special characters when the XML file is generated
or to wrap the data within the XML tags in CDATA tags as below
>
<T_MESSAGE><![CDATA[Hi, <br /> <br /> Just a brief update on
Forum version 2 - currently in progress. <br /> <br /> It can
be seen here <br /> <br /> <a href="http://www.thehmc.co.uk/
forum2" target="_blank" title="http://www.thehmc.co.uk/forum2"
>Link1</a> <br /> <br /> It has some new features. <br />
<br /> 1. The default page allows you to navigate to all topics in
the forum. New posts / replies since your last visit are
highlighted. You can sort the posts / topics by clicking on the
headers, you can search topic subjects. It will automatically check
for new posts and update it's view every 30 seconds. No need to
click on refresh etc. <br /> <br /> 2. The topic pages show if
the person is online via a little green / red dot next to their
name. Layout changed to take full advantage of the website width. It
enables easier (and faster) navigation between the replies to a
post. <br /> <br /> 3. The new forum will natively recognise
youtube, google maps (new), images and links inserted into posts. No
need to put tags round them. <br /> <br /> For some good
examples of where the features are nifty see <br /> <br />
Google Maps <br /> <br /> <a href="http://www.thehmc.co.uk/forum2/topic.asp?ID=293&title=Chiltern%20Classic%20is
" target="_blank" title="http://www.thehmc.co.uk/forum2/topic.asp?ID=293&title=Chiltern%20Classic%20is
" >Link2</a> <br /> <br /> Topic Navigation <br /> <br />
<a href="http://www.thehmc.co.uk/forum2/topic.asp?ID=296&title=Weekend%204/5%20April
" target="_blank" title="http://www.thehmc.co.uk/forum2/topic.asp?ID=296&title=Weekend%204/5%20April
" >Link3</a> <br /> <br /> Let me know your thoughts on the new
look / features. <br /> <br /> Cheers <br /> <br />
Phil]]></T_MESSAGE>
>
Cheers
>
Phil
>
Maybe you are looking for
-
Alert Configuration for File to IDoc scenario
I have followed Alerts : Step-by-Step /people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions and configured Alerts for file to IDoc scenario. But the problem is, I did not notice any alerts being generated. I could notice the ID
-
Best way to calculate maximum of many columns/values per row
Hello, for a new report with some joined tables I have to calculate the last change date. Since every table has a creation and a (last) modification date, I need to get the maximum value from 8 columns to display it. Of course I can compare all value
-
Error loading from csv - how to integrate valid rows and drop invalid?
Hello, Log from execution (step: load csv data): ODI-1228: Task SrcSet0 (Loading) fails on the target ORACLE connection ODI_STAGE. Caused By: java.sql.BatchUpdateException: ORA-12899: wartość zbyt duża dla kolumny "ODI_STAGE"."C$_0URZADZENIA"."C1_ZWI
-
BAPI_BUS20370_CHANGE -Error returnig for bussiness partner
Hi all, I am using Bapi to update records Bapi is : BAPI_BUS20370_CHANGE but it is not updating and returning error : Business Partner not Found .But i have seen, this business partner exists in table But000 and in debuging i have found error is com
-
Downgrade OS Mac 10.6 Leopard to OS Mac 10.5 Leopard ?
My MacBook Pro used OS Mac 10.6 Leopard, now i want to downgrade, and install OS Mac 10.5 Leopard. Is that OK ?