tag:blogger.com,1999:blog-7970679050025899967.comments2023-11-24T03:56:57.923-08:00Adobe LiveCycle Designer Cookbooks by BR001BR001http://www.blogger.com/profile/02005650446661555680noreply@blogger.comBlogger185125tag:blogger.com,1999:blog-7970679050025899967.post-70841109191746125272021-11-15T14:43:32.561-08:002021-11-15T14:43:32.561-08:00what would be really handy for us dummies is the e...what would be really handy for us dummies is the exact script I need to type in the script editor once I have the text.field selected in my form, eg<br /><br />} <br /><br />inthis.field.display <<"Enter the Data">><br />make.its.font <><br />and.its.font <><br />cleartheText.whenField=Selected<br /><br />}<br /><br />the font format for whatever is typed in the field would be whatever was set in the Font platelette. <br /><br />Anonymoushttps://www.blogger.com/profile/04263910966885523041noreply@blogger.comtag:blogger.com,1999:blog-7970679050025899967.post-40796877457916719322021-08-06T06:28:26.974-07:002021-08-06T06:28:26.974-07:00Thank you for this, It has helped me a lot!
Thank you for this, It has helped me a lot!<br />Anonymoushttps://www.blogger.com/profile/11255375854723222952noreply@blogger.comtag:blogger.com,1999:blog-7970679050025899967.post-29144137883443883062020-12-31T16:38:38.586-08:002020-12-31T16:38:38.586-08:00Hi Laila,
Try using this function;
function form...Hi Laila,<br /><br />Try using this function;<br /><br />function formatRoman(index)<br />{<br /> var xslt = <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><br /> <xsl:output method="text" media-type="text/plain"/><br /> <xsl:variable name="recordNumber">{index}</xsl:variable><br /> <xsl:template match="/"><br /> <xsl:number value="$recordNumber" format="i"/><br /> </xsl:template><br /> </xsl:stylesheet>;<br /> return $data.applyXSL(xslt.toXMLString());<br />}<br /><br /><br /><br />Then call it using;<br /><br />this.rawValue = formatRoman(this.parent.index + 1);<br /><br />Regards, BruceBrucehttps://www.blogger.com/profile/13436665111609409629noreply@blogger.comtag:blogger.com,1999:blog-7970679050025899967.post-5443655630422766112020-12-31T14:36:06.320-08:002020-12-31T14:36:06.320-08:00Many many Thanks. I get this pdf now.Many many Thanks. I get this pdf now.Laila Arjumanhttps://www.blogger.com/profile/00192187728644941770noreply@blogger.comtag:blogger.com,1999:blog-7970679050025899967.post-67724605078464121322020-12-30T22:46:51.710-08:002020-12-30T22:46:51.710-08:00Hi Tarek, I've fixed the links in the post, s...Hi Tarek, I've fixed the links in the post, seems Google Sites no longer allows attachments. A shame as that is were most of the samples I've posted over the years in the Adobe forums were stored. I don't seem to be able to update the links in the comments part of the blog either, so if there's a particular one you are after from the comments please let me know.<br /><br />Regards, BruceBR001https://www.blogger.com/profile/02005650446661555680noreply@blogger.comtag:blogger.com,1999:blog-7970679050025899967.post-46332288171394625102020-12-30T21:44:57.485-08:002020-12-30T21:44:57.485-08:00Hi Laila, Seems Google doesn't want attachmen...Hi Laila, Seems Google doesn't want attachments in Google Sites anymore. Have moved to Google Drive, so the "Download sample form AutoNumber.pdf" is working again.<br /><br />Regards<br />BruceBR001https://www.blogger.com/profile/02005650446661555680noreply@blogger.comtag:blogger.com,1999:blog-7970679050025899967.post-62010179953021974192020-12-30T15:05:09.044-08:002020-12-30T15:05:09.044-08:00Hi Bruce! I am trying to download the samples, but...Hi Bruce! I am trying to download the samples, but the links are dead. Can you please with that issue?<br />TarekTarekAHFhttps://www.blogger.com/profile/15914538165615810959noreply@blogger.comtag:blogger.com,1999:blog-7970679050025899967.post-21114309210960343412020-12-18T14:50:28.324-08:002020-12-18T14:50:28.324-08:00Numbering rows in a LiveCycle Designer table or re...Numbering rows in a LiveCycle Designer table or repeating subform where is the pdf?Laila Arjumanhttps://www.blogger.com/profile/00192187728644941770noreply@blogger.comtag:blogger.com,1999:blog-7970679050025899967.post-27488087508634242922020-12-12T06:59:48.987-08:002020-12-12T06:59:48.987-08:00How I write Roman, Alphabet using javascript. I wa...How I write Roman, Alphabet using javascript. I want to write a)Partnar i,b)Partner ii, c)Partner iii and so on when I click a button.When I use this script "this.rawValue = this.parent.index + 1; " it can change only Partner 1,Partner 2, Partner 3 and so on but I cann't do that I write above. Please help me.<br />Laila Arjumanhttps://www.blogger.com/profile/00192187728644941770noreply@blogger.comtag:blogger.com,1999:blog-7970679050025899967.post-2047019101733042142020-11-10T03:51:28.761-08:002020-11-10T03:51:28.761-08:00Hi, Seems google has upgraded the Sites platform I...Hi, Seems google has upgraded the Sites platform I had the links pointing to and moved everything to google drive! Anyway I have updated the links for this post, and will work though the others.BR001https://www.blogger.com/profile/02005650446661555680noreply@blogger.comtag:blogger.com,1999:blog-7970679050025899967.post-57733971936043389392020-11-09T06:50:22.960-08:002020-11-09T06:50:22.960-08:00Thank you so much... very useful indeed. Just wond...Thank you so much... very useful indeed. Just wondering about the download links. They seem to be broken. Appreciate it if you could get them back to download sample pdfs. Thanks.Unknownhttps://www.blogger.com/profile/15890489184391289580noreply@blogger.comtag:blogger.com,1999:blog-7970679050025899967.post-41688848441501209052020-03-08T23:26:57.741-07:002020-03-08T23:26:57.741-07:00Hi, There is a lot of other stuff going on in the ...Hi, There is a lot of other stuff going on in the sample, hopefully it should be reasonably simple without the extra stuff.<br /><br />Have a look at this sample that just does the dimensions.<br /><br /><br />https://sites.google.com/site/livecycledesignercookbooks/ImageViewer.Dimension.pdf?attredirects=0&d=1BR001https://www.blogger.com/profile/02005650446661555680noreply@blogger.comtag:blogger.com,1999:blog-7970679050025899967.post-28439887877151606912020-02-26T05:58:21.573-08:002020-02-26T05:58:21.573-08:00Hi, how would I go about getting the image dimensi...Hi, how would I go about getting the image dimensions from an image field? I see that you have done it in this example but I'm finding it hard to follow. Anonymoushttps://www.blogger.com/profile/16760195121840540430noreply@blogger.comtag:blogger.com,1999:blog-7970679050025899967.post-86797963466979316072020-02-04T09:59:08.140-08:002020-02-04T09:59:08.140-08:00Actually, I tried everything. The only way was to ...Actually, I tried everything. The only way was to insert a dummy span element with white background after change the background color. It looks funny only when the field is in interactive data-entry mode. When in read-only mode or in static PDF, then it is fine.TarekAHFhttps://www.blogger.com/profile/15914538165615810959noreply@blogger.comtag:blogger.com,1999:blog-7970679050025899967.post-89935987889349619142020-02-04T09:56:02.283-08:002020-02-04T09:56:02.283-08:00Actually, it worked! That was awesome! I had to ex...Actually, it worked! That was awesome! I had to execute the lines of code that will do the conversion in one shut, not one by one. That was a great help.TarekAHFhttps://www.blogger.com/profile/15914538165615810959noreply@blogger.comtag:blogger.com,1999:blog-7970679050025899967.post-83817783865953517602020-02-03T04:49:29.609-08:002020-02-03T04:49:29.609-08:00Hi Tarek,
You might need some code like the follo...Hi Tarek,<br /><br />You might need some code like the following to convert a 'normal' text field to a rich text one;<br />if (TextField1.value.oneOfChild.className === "text") {<br /><br /> TextField1.value.nodes.remove(TextField1.value.text);<br /><br /> var exDataNode = xfa.form.createNode("exData");<br /><br /> TextField1.value.nodes.append(exDataNode);<br /><br />}BR001https://www.blogger.com/profile/02005650446661555680noreply@blogger.comtag:blogger.com,1999:blog-7970679050025899967.post-82287751779290778062020-02-03T04:46:34.304-08:002020-02-03T04:46:34.304-08:00I was not able to get this to work either, you ca...I was not able to get this to work either, you can nest the span elements with the background-color style, so in this example only the word RED has a background color of Red<br /><br /><?xml version="1.0" encoding="UTF-8"?><br /><body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"><br /> <p><br /> <span style="background-color:#ffffff"><br /> Please click the<br /> <span style="background-color:#ff0000"><br /> RED<br /> </span><br /> Button<br /> </span><br /> </p><br /></body><br /><br />Probably doesn't help but maybe easier if you have to update when the field is disabledBR001https://www.blogger.com/profile/02005650446661555680noreply@blogger.comtag:blogger.com,1999:blog-7970679050025899967.post-50759575223081254252020-02-01T18:23:08.396-08:002020-02-01T18:23:08.396-08:00Thanks a lot for this great article. I am unable t...Thanks a lot for this great article. I am unable to convert plain text field to rich text field using script sample provided. I get error "Invalid append operation: value cannot have a child element of exData. The element [exData] has violated its allowable number of occurrences.". Also, when I use background-color then try to reset it to white, it will look funny. Can I disable the color or use transparent background color?TarekAHFhttps://www.blogger.com/profile/15914538165615810959noreply@blogger.comtag:blogger.com,1999:blog-7970679050025899967.post-15942109571943526472020-01-30T20:26:58.464-08:002020-01-30T20:26:58.464-08:00How can you reset the background color to none or ...How can you reset the background color to none or transparent after to set it? This is because the background color is applied to the end of the field after it is set. I tried everything I thing of nothing worked. I tried using white color but it looks funny when the field is active. Can you help please? TarekAHFhttps://www.blogger.com/profile/15914538165615810959noreply@blogger.comtag:blogger.com,1999:blog-7970679050025899967.post-71060741643393143962018-11-15T09:54:27.303-08:002018-11-15T09:54:27.303-08:00The proto object is working fine with me. I am try...The proto object is working fine with me. I am trying to use Javascript to set the use attribute during the initialization event, this will allow me to programmatically apply proto object which will save a lot of time. I applied "use" attribute for the tooltip part using XML, and it worked. But, when I tried to modify the "use" attribute on initialize event, I got this error: "Bad value: 'protoGhostText.assist.toolTip' of the 'use' attribute of 'toolTip' element ". Default will be used instead."<br />Any idea on this?TarekAHFhttps://www.blogger.com/profile/15914538165615810959noreply@blogger.comtag:blogger.com,1999:blog-7970679050025899967.post-53794556578837328062018-08-16T05:16:58.533-07:002018-08-16T05:16:58.533-07:00What a great form. Looks good and what a work. Cha...What a great form. Looks good and what a work. Chapeau.Anonymoushttps://www.blogger.com/profile/14263268688935226766noreply@blogger.comtag:blogger.com,1999:blog-7970679050025899967.post-5428027190637137752018-04-13T14:53:36.102-07:002018-04-13T14:53:36.102-07:00Hi Tarek,
Thanks for pointing this out and sorry ...Hi Tarek,<br /><br />Thanks for pointing this out and sorry for missing that file in the first place. I have added a link to the XDP files above, or use https://sites.google.com/site/livecycledesignercookbooks/Calendar.zip?attredirects=0&d=1<br /><br />BruceBrucehttps://www.blogger.com/profile/13436665111609409629noreply@blogger.comtag:blogger.com,1999:blog-7970679050025899967.post-67200245431256556272018-04-11T09:00:10.939-07:002018-04-11T09:00:10.939-07:00Thank you so much ... very useful indeed. Just won...Thank you so much ... very useful indeed. Just wondering about the script under "XFAUtil.xfa" I could not find it. Appreciate it if you could provide the link to download it. Thanks.TarekAHFhttps://www.blogger.com/profile/15914538165615810959noreply@blogger.comtag:blogger.com,1999:blog-7970679050025899967.post-15726785615727940922018-04-04T12:26:21.262-07:002018-04-04T12:26:21.262-07:00me again. sorry for my inconvenience.
we are addin...me again. sorry for my inconvenience.<br />we are adding appropriate country data to "selectedCountries" array with push method.;<br />selectedCountries.push([ country.Name.value.replace(/,/g, "\\,"), country.Code.value]); <br />i want to get "country.Code.value" for that selection to a new textfield that i created in the form. <br />but i couldn't do it yet. i couldn't call the country code for that selection (with click event on that CountryList)<br />how can i do?<br />thanksCuriousCoderhttps://www.blogger.com/profile/10221417196560337645noreply@blogger.comtag:blogger.com,1999:blog-7970679050025899967.post-92147970862547688002018-04-03T11:56:15.880-07:002018-04-03T11:56:15.880-07:00Dear Bruce;
with my deep sincerity; you are a grea...Dear Bruce;<br />with my deep sincerity; you are a great and good guy..<br />thank you so and so muchCuriousCoderhttps://www.blogger.com/profile/10221417196560337645noreply@blogger.com