How to bind the form to an XML element with a specific attrib/value?
Is it possible to link a form in Designer to an XML element using an attribute as a criterion value? This is a very basic construction of XPath and I can't believe that the form designer cannot do this. For example:
< library >
< book lang = "fr" >
Harry Potter < title > < /title >
< price > 29.99 < / price >
< / book >
< book lang = "MS" >
< title > Learning XML < /title >
< price > 39.95 < / price >
< / book >
< / book >
I would bind only the knot book with an attribute lang of "eng".
[The simple xpath reference would be: bookstore/book[@lang='eng']
Thanks for any help that anyone can provide. I am new to LiveCycle Designer
Jordon
You must use the below expression in data binding, property to get the title of the book whose language is English
.book $. (lang.value == "eng") .title
Thank you
Srini
Tags: Adobe LiveCycle
Similar Questions
-
How to pass the content of an xml element in the text frame in inDesign Script
var XMLFile = File.openDialog ("select XML Files... ») ;
var doc = app.activeDocument;
If (!) App.Documents.Length)
{alert ("ERROR: Document not opened");}
return;
}
doc.importXML (XMLFile);
var firstFigureNode = doc.xmlElements [0] .xmlElements [1] .xmlElements [0];
var lableNode = firstFigureNode.xmlElements [0];
var lableNodeText = lableNode.contents;
myFrame var = doc.textFrames.add ({geometricBounds: [-13, 13, 3, -3]});
lableNodeText.move (LocationOptions.AFTER, myFrame.texts [0]);
========================================================
My requirement is: == > > move the content of an xml element in the text by inDesign Script block, but XML InDesign file Structure should not be change & data in the XML Structure should remain as it was before...
I tried to code above, but it does not work...
Please can someone help me in solving this problem...
It does not work correctly...
It moves firstFigureNode in myFrame...
firstFigureNode.placeXML (myFrame);
===>> For Apple Script try below Code ===>>
myFrame markup using firstFigureNode
-
How to obtain the page to an XML element?
Hi all
I am fairly new to InDesign scripting (and scripts in general) and have lots of fun :-)
I have an InDesign document containing several frames (texts, graphics, etc.) and I tagged using the InDesign tags window.
After much struggle, I managed to get the name of the XML element tag first in my document using this simple code:
app.activeDocument.xmlElements[0].xmlElements[0].markupTag.name
I know that it worked because I got the right answer in the Javascript console. (By the way, can someone explain to me why I write xmlElements [0] twice?) And what is the difference between xmlElements and xmlItems? Any help is appreciated).
Then I'll probably use a loop for for each markupTag of each xmlElement. But I have a lot of trouble to obtain the page associated xmlElement :-/
After a lot of searching on Google, I came across this article which is supposed to answer my question exactly. I tried to understand this code, copy and paste in ExtendScript, but I must admit it's a bit too complex for me...
Can someone tell me how to get a graphic or a text linked to my XML tags block? Any help is greatly appreciated!
Nevermind, I found an easier way to achieve what I was trying to do. Actually, I wanted to be able to handle different images in my document, so why I wanted to use the XML markup.
For those of you who have the same problem, who knows from InDesign CS5, there is an itemByName method that allows you to select an image by its name in the layers panel. So much easier to use :-)
Thread closed!
-
How to bind the form field in two pdf documents
Is there a way to link two form fields. 1 document allows the reader to enter the text in the field. However, I would like any document 2 to display the text as well. Is this possible? Please notify.
Hi lysaj85192398,
There is no direct function that can perform this task. But I'm sure you can do this with JavaScript.
Take a look at this: transfer to another PDF form fields?
Thank you
Abhishek
-
How to get the previous group on XML element
My XML structure goes like this.
<? XML version = "1.0" encoding = "UTF-8"? >
< SA321 >
PT BOOK < P_BOOK > < / P_BOOK >
< P_YEAR > 2009 < / P_YEAR >
< LIST_G_FAMILY >
< G_FAMILY >
< PARENT_FAMILY > 2240 < / PARENT_FAMILY >
< FAM_CODE_DESC > Cruiser informatico < / FAM_CODE_DESC >
< SUBTOT_FLAG > Y < / SUBTOT_FLAG >
< NEW_USED > NEW < / NEW_USED >
< LIST_G_ASSET >
< G_ASSET >
< ASSET_DESCR > 2240 - Cruiser informatico < / ASSET_DESCR >
< ACQUISITION_YEAR > 2009 < / ACQUISITION_YEAR >
JANUARY < EFFECTIVE_MONTH > < / EFFECTIVE_MONTH >
< EFFECTIVE_YEAR > 2009 < / EFFECTIVE_YEAR >
< ASSET_AMOUNT > 3000 < / ASSET_AMOUNT >
< EXEMPT_GAIN_AMOUNT > 450 < / EXEMPT_GAIN_AMOUNT >
< EXPECTED_LIFE_YRS / >
< PRV_FY_NBV > 0 < / PRV_FY_NBV >
< RATES_DEC > 37.5 < / RATES_DEC >
< RATE_FROM_LAW > 50 < / RATE_FROM_LAW >
< RATES_DEC1 / >
< 1 > 0 < / 1 >
< FISCAL_LIMIT > 1275 < / FISCAL_LIMIT >
< DEPRN_RATE > 25 < / DEPRN_RATE >
< PY_DEPRN_RESERVE > 0 < / PY_DEPRN_RESERVE >
< YTD_DEPRN > 749.99 < / YTD_DEPRN >
< ACCUM_DEPRN > 749.99 < / ACCUM_DEPRN >
< NET_BOOK_VALUE > 2250.01 < / NET_BOOK_VALUE >
< YTD_IMPAIRMENT > 0 < / YTD_IMPAIRMENT >
< IMPAIRMENT_RESERVE > 0 < / IMPAIRMENT_RESERVE >
< ACCUM_LOST_RATES > 0 < / ACCUM_LOST_RATES >
< DEPR_REINT_LOSS_NOTEXP > 0 < / DEPR_REINT_LOSS_NOTEXP >
< GAIN_AMOUNT > 600 < / GAIN_AMOUNT >
< GAIN_YEAR > 2006 < / GAIN_YEAR >
< > 110270 ASSET_ID < / ASSET_ID >
< > 110270 ASSET_ID < / ASSET_ID >
< REINT_NOT_ACC > 437.5 < / REINT_NOT_ACC >
< PY_COL15 > 0 < / PY_COL15 >
< LIST_G_COL15 >
< G_COL15 >
< COL15_TOT > 0 < / COL15_TOT >
< COL16_TOT / >
< COL_16 > 0 < / COL_16 >
< / G_COL15 >
< / LIST_G_COL15 >
< / G_ASSET >
< G_ASSET >
< ASSET_DESCR > 2240 - Cruiser informatico < / ASSET_DESCR >
< ACQUISITION_YEAR > 2009 < / ACQUISITION_YEAR >
JUNE < EFFECTIVE_MONTH > < / EFFECTIVE_MONTH >
< EFFECTIVE_YEAR > 2009 < / EFFECTIVE_YEAR >
< ASSET_AMOUNT > 1500 < / ASSET_AMOUNT >
< EXEMPT_GAIN_AMOUNT > 0 < / EXEMPT_GAIN_AMOUNT >
< EXPECTED_LIFE_YRS / >
< PRV_FY_NBV > 0 < / PRV_FY_NBV >
< RATES_DEC > 40 < / RATES_DEC >
< RATE_FROM_LAW > 50 < / RATE_FROM_LAW >
< RATES_DEC1 / >
< 1 > 0 < / 1 >
< FISCAL_LIMIT > 750 < / FISCAL_LIMIT >
< DEPRN_RATE > 20 < / DEPRN_RATE >
< PY_DEPRN_RESERVE > 0 < / PY_DEPRN_RESERVE >
< YTD_DEPRN > 316.95 < / YTD_DEPRN >
< ACCUM_DEPRN > 166.95 < / ACCUM_DEPRN >
< NET_BOOK_VALUE > 1333.05 < / NET_BOOK_VALUE >
< YTD_IMPAIRMENT > 150 < / YTD_IMPAIRMENT >
< IMPAIRMENT_RESERVE > 150 < / IMPAIRMENT_RESERVE >
< ACCUM_LOST_RATES > 2.92 < / ACCUM_LOST_RATES >
< DEPR_REINT_LOSS_NOTEXP > 0 < / DEPR_REINT_LOSS_NOTEXP >
< GAIN_AMOUNT > 0 < / GAIN_AMOUNT >
< GAIN_YEAR / >
< > 110289 ASSET_ID < / ASSET_ID >
< > 110289 ASSET_ID < / ASSET_ID >
< REINT_NOT_ACC > 89,32 < / REINT_NOT_ACC >
< PY_COL15 > 0 < / PY_COL15 >
< LIST_G_COL15 >
< G_COL15 >
< COL15_TOT > 0 < / COL15_TOT >
< COL16_TOT / >
< COL_16 > 0 < / COL_16 >
< / G_COL15 >
< / LIST_G_COL15 >
< / G_ASSET >
< / G_FAMILY >
< / LIST_G_FAMILY >
< / SA321 >
Now, I have a query like the following.
Select *.
FROM (SELECT sap_getFileContent ('o5875854.xml', 'DIR') report_data)
T FROM dual)
xmltable)
"SA321/LIST_G_FAMILY/G_FAMILY/LIST_G_ASSET/G_ASSET.
by the way of xmltype (t.report_data)
path of VARCHAR2 (50) column column1 ' / SA321, LIST_G_FAMILY, G_FAMILY, PARENT_FAMILY.
, path VARCHAR2 (100) Column2 "ASSET_DESCR."
, Column3 VARCHAR2 (50) path 'EFFECTIVE_MONTH '.
, NUMBER column4 path 'EFFECTIVE_YEAR '.
, path NUMBER column 5 "ASSET_AMOUNT".
, path NUMBER column6 "EXEMPT_GAIN_AMOUNT".
, path NUMBER column7 'EXPECTED_LIFE_YRS '.
, path NUMBER column8 'YTD_DEPRN '.
, path NUMBER column9 "PY_DEPRN_RESERVE".
, path NUMBER column10 'RATE_FROM_LAW '.
, column11 NUMBER path '1 '.
, path NUMBER column12 'FISCAL_LIMIT '.
, path NUMBER column13 'YTD_IMPAIRMENT '.
, path NUMBER column14 'ACCUM_LOST_RATES '.
, path NUMBER column15 'YTD_IMPAIRMENT '.
, path NUMBER column16 ' LIST_G_COL15/G_COL15/COL_16.
) x ;
the query always returns NULL for collumn1. Can someone help me please.
Concerning
SAPHello
Your example of XML code is not correct, there is no LIST_G_ASSET element closing tag.
But I guess that's not the real problem.the query always returns NULL for collumn1.
The important thing to understand is that the paths that you declare in the COLUMNS clause are relative to the context item is past the main XQuery expression. He knows more about the rest of the document, in particular of his ancestors.
In this case, you try to process a node whose absolute path would be/SA321/LIST_G_FAMILY/G_FAMILY/PARENT_FAMILY
in a document which the node root is G_ASSET.
The solution is to divide the query into two parts, the first one finds PARENT_FAMILY and the collection of G_ASSET and the second more shreds the collection G_ASSET is passed the first XMLTable in relational lines:
SQL> SELECT x1.column1 2 , x2.* 3 FROM XMLTable( 4 '/SA321/LIST_G_FAMILY/G_FAMILY' 5 passing xmltype(bfilename('TEST_DIR','o5875854.xml'), nls_charset_id('AL32UTF8')) 6 columns 7 column1 VARCHAR2(50) path 'PARENT_FAMILY' 8 , assets XMLType path 'LIST_G_ASSET' 9 ) x1 10 , XMLTable( 11 '/LIST_G_ASSET/G_ASSET' 12 passing x1.assets 13 columns 14 column2 VARCHAR2(100) path 'ASSET_DESCR' 15 , column3 VARCHAR2(50) path 'EFFECTIVE_MONTH' 16 , column4 NUMBER path 'EFFECTIVE_YEAR' 17 , column5 NUMBER path 'ASSET_AMOUNT' 18 , column6 NUMBER path 'EXEMPT_GAIN_AMOUNT' 19 , column7 NUMBER path 'EXPECTED_LIFE_YRS' 20 , column8 NUMBER path 'YTD_DEPRN' 21 , column9 NUMBER path 'PY_DEPRN_RESERVE' 22 , column10 NUMBER path 'RATE_FROM_LAW' 23 , column11 NUMBER path 'CASE1' 24 , column12 NUMBER path 'FISCAL_LIMIT' 25 , column13 NUMBER path 'YTD_IMPAIRMENT' 26 , column14 NUMBER path 'ACCUM_LOST_RATES' 27 , column15 NUMBER path 'YTD_IMPAIRMENT' 28 , column16 NUMBER path 'LIST_G_COL15/G_COL15/COL_16' 29 ) x2 30 ; COLUMN1 COLUMN2 COLUMN3 COLUMN4 COLUMN5 COLUMN6 COLUMN7 COLUMN8 COLUMN9 COLUMN10 COLUMN11 COLUMN12 COLUMN13 COLUMN14 COLUMN15 COLUMN16 ---------- -------------------------------- ----------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- 2240 2240-Equipamento informatico JANUARY 2009 3000 450 749,99 0 50 0 1275 0 0 0 0 2240 2240-Equipamento informatico JUNE 2009 1500 0 316,95 0 50 0 750 150 2,92 150 0
-
How to export the Indesign to Format XML using JavaScript document
Hi all...
Can someone help me, how to export the indesign document to XML Format using JavaScript...
Thanks in advance...
doc.exportFile ( ExportFormat.XML, File(Folder.desktop+"/doc.xml" )
-
How to add the form designed in adobe acrobat pro live cycle Designer?
How to add the form designed in adobe acrobat pro live cycle Designer?
I want to add the form designed in adobe acrobat pro live cycle Designer. I saved the form designed in adobe live cycle designer in pdf format. But you can't change the same in Adobe Acrobat format. I would like to add a few fields and use the fields designed by Adobe Live cycle Designer.
You can only modify this form in LiveCycle Designer. Forms Acrobat and LCD are not interchangeable.
-
I'm new in indesign scripting, please tell me how to write a script to get the contents of an XML element and then sort all the content
Hello
Can the code below is useful for you, but I do not know how to sort.
Change the tag based on your employment application.
-
How to create the MUCOW file in xml using Adobe Muse
How to create the file MUCOW as xml using Adobe Muse .kindly give step tutorial or PDF... WHERE DO I CREATE MUCOW? No idea for me
Just lucky to have this info to my favorites
-
How to use the scanner Canon of my computer with Windows Vista?
How to use the Canon Scanner of my Toshiba with Windows Vista computer? Need help, tq.
How to use the Canon Scanner
http://www.ehow.com/how_5796443_use-Canon-flatbed-scanner.html
I would propose Canon Support and the knowledge base for information and manuals
http://www.USA.Canon.com/Cusa/consumer/standard_display/support
-
How to debug the java application BlackBerry on Eclipse with a BlackBerry Smartphone?
Problem:
How to debug the java application BlackBerry on Eclipse with a BlackBerry Smartphone?
The following procedure:
http://docs.BlackBerry.com/en/developers/deliverables/12002/Debug_an_app_on_BB_device_656366_11.jsp
Error:
An internal error occurred during: "launch WMMS_ACC_video_test0".
java.lang.NullPointerExceptionI found that other methods of debugging.
If anyone knows how to do it please tell me.
Thank you for your attention.
http://www.BlackBerryForums.com/developer-forum/107455-debugging-live-device.html
Solution:
Start the IDE
Connect your device to the PC via USB
compile your application and load on the device
in JDE - Debug - attach to-Pocket
ignore all dialog boxes
do the breakpoint
Start your application on the device -
How to access the tool feather in 13 elements Adobe? All I can find is the pencil.
How to access the tool feather in 13 elements Adobe? All I can find is the pencil.
Unfortunately, the pen tool is only in full Photoshop, not in any version of the EP. The closest is the text on the custom path tool, which has a kind of rudimentary pen tool to create the path where you want to place the text.
-
The VMware Workstation Server service stopped with service specific error %-1.
Hi, when I try to enable sharing in Workstation 8 GTR | Change | Preferences | Sharing virtual machines, I get an error Impossible to configure the workstation server. Check the event log, I found they were trying to start the VMware Workstation Server service that does not start (even when you try to start it manually) and the following error is recorded "the VMware Workstation Server service stopped with service specific error %-1." by the Service Control Manager. I found no additional cases related.
Running on Windows 7 SP1 x 64. The port is set to 7443.
I also tried to find a newspaper there instead of vmware, but neither found anything related; However I could have missed something.
Thanks for all the ideas, what could be wrong and how to fix it.
Hello
I have Workstation 8.0.1 installed on two laptop computers each running Windows 7 SP1 x 64... the shared component of the virtual machine runs on one but not the other. On the machine that I have problems with I uninstalled Workstation and reinstalled - without success. What I ended up doing to replace the datastores.xml file in the Directory go (C:\Documents and Settings\All Users\Application Data\VMware\hostd) on the laptop with the problem with the file datastores.xml of the laptop that works - success! I knew that there was a problem with the file because I've been poking around and noticed that the datastores.xml file is not open for editing - it was corrupted.
I have attached the file to this message.
Change of the
section at the location that you store your shared VM (be sure to not use a UNC, which breaks the service as well!). I hope this helps.
Steve
-
How to reset the form filling on windows 7
He worked that suddenly stopped working. How to reset the function so it will work again? I have windows 7 on a new laptop
See:
- Tools > Options > privacy > History: "Remember search and form history" [X]
-
Hello
Could someone please tell me how can I bind the items added in the "combo box" could be linked to files saved in my PC and if a new file is added in the same folder in my PC, it could be added directly to the list of the combo box items... Thanking you in advance
Concerning
Julien
Thank you very much...
Maybe you are looking for
-
Trying to Deauthorize mini PPC running iTunes 4
Hi, I have an old mini PPC I want to give. I would remove the machine first, but I can't connect to the iTunes Store. When I try to go to https://appleid.apple.com.ca I get a message from Safari saying that it cannot establish a secure connection.
-
The CQ60 430SA with SSD upgrade
Hello After much trawling the internet and various research I hope someone can help me to confirm if I can finish the next upgrade. I have a CQ60-430SA Windows 7 Professional 64 bit stock, with 4 GB of RAM, AMD Turion x 2 64-bit processor (VERY hot)
-
Toolkit ECU Measurement and Calibration does not run when I build an executable.
I did a LabVIEW application that communicates with a target using CCP (with ECU Measurement and Calibration Toolkit). The source code of LabVIEW works OK, but when I create a .exe file, it does not work. I tried to copy the Toolkit ECU Measurement an
-
Windows Server R2 2012 building a drop zone
Hi people, smart Advice or you advise how to build Windows Server R2 2012 as a jump of boxes in the demilitarized zone and to connect to the internal networks of the company for external suppliers... all recommendations or help much appreciated. M
-
HP Pavilion a1106N with original 2 x 256 MB 240 pin DDR2 SDram PC2 3200 mb/s I need to move to full capacity 4x1Go My question is: is this memory ECC or NON ECC is it important? Support site HP does not say ANYTHING aboutIf I buy ECC is compatible or