<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Parth on Livecycle</title>
	<atom:link href="http://blog.pandyaparth.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.pandyaparth.com</link>
	<description>aka - LiveCycle Karma (Personal blog on LiveCycle, Adobe enterprise technologies and innovation)</description>
	<lastBuildDate>Fri, 27 Nov 2009 06:22:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Conditional set value using XPath</title>
		<link>http://blog.pandyaparth.com/2009/11/conditional-set-value-using-xpath/</link>
		<comments>http://blog.pandyaparth.com/2009/11/conditional-set-value-using-xpath/#comments</comments>
		<pubDate>Fri, 27 Nov 2009 06:07:25 +0000</pubDate>
		<dc:creator>Parth Pandya</dc:creator>
				<category><![CDATA[LiveCycle Components]]></category>
		<category><![CDATA[LiveCycle ES]]></category>
		<category><![CDATA[LiveCycle ES2]]></category>
		<category><![CDATA[Workbench]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[XPath]]></category>
		<category><![CDATA[Innovation]]></category>
		<category><![CDATA[XPath expression]]></category>

		<guid isPermaLink="false">http://blog.pandyaparth.com/?p=146</guid>
		<description><![CDATA[In my quest to use XPath functions &#38; expressions more efficiently in LiveCycle I managed to achieve &#8216;conditional set value&#8217; yesterday.
Example scenarios:

Add some text to email body if some condition is true/false.
Add some text into T&#38;Cs if certain product is selected.
In a generic/single Email or Set Value step you need to construct a big block [...]]]></description>
			<content:encoded><![CDATA[<p>In my quest to use XPath functions &amp; expressions more efficiently in LiveCycle I managed to achieve &#8216;conditional set value&#8217; yesterday.</p>
<h3>Example scenarios:</h3>
<ul>
<li>Add some text to email body if some condition is true/false.</li>
<li>Add some text into T&amp;Cs if certain product is selected.</li>
<li>In a generic/single Email or Set Value step you need to construct a big block of text. eg. Offer letter with certain paragraphs based on few conditions.</li>
</ul>
<h3>Approach 1: The usual way (or one of the usual ways):</h3>
<p>An orchestration in Workbench with <span style="color: #ff0000;">few setValue steps</span> and<span style="color: #ff0000;"> few conditional routes</span> to add/append the desired text to existing text.</p>
<p>And these steps need to be in certain order.</p>
<h3>Approach 2: The XPath trick</h3>
<p>I used <span style="color: #0000ff;">substring()</span> and<span style="color: #0000ff;"> number()</span> function with pure <span style="color: #0000ff;">XPath expression</span> to construct conditional set value. See the usage below.</p>
<h3>Example:</h3>
<p>Consider a requirement in which you wish to send an email with few extra lines added to it if product A is ordered. And if contract term is 12 months then we need to add another T&amp;C statement in the email body.</p>
<p>Let&#8217;s implement that with both approaches&#8230;</p>
<h4>Approach 1: Few set value step and routing conditions to set process variables that get used in email body.</h4>
<h5>Process Diagram:</h5>
<div id="attachment_148" class="wp-caption alignnone" style="width: 310px"><a href="http://blog.pandyaparth.com/wp-content/plugins/feed-statistics.php?url=aHR0cDovL2Jsb2cucGFuZHlhcGFydGguY29tL3dwLWNvbnRlbnQvdXBsb2Fkcy8yMDA5LzExL0FwcHJvYWNoMS5QTkc="><img class="size-medium wp-image-148" title="LC Set Value approach" src="http://blog.pandyaparth.com/wp-content/uploads/2009/11/Approach1-300x159.PNG" alt="Set Value - Route condition approach" width="300" height="159" /></a><p class="wp-caption-text">Set Value - Route condition approach</p></div>
<h5>Email body:</h5>
<blockquote><p>Dear Provisioning Team,</p>
<p>Please send the below details to John.</p>
<p>System:{$ /process_data/@System $}<br />
Agent Name:{$ /process_data/@Agentname $}<br />
Product ordered: {$ /process_data/@Product $}</p>
<p><span style="color: #ff0000;">{$ /process_data/@ProductAConfigurationDetails $}</span></p>
<p>Terms and Conditions:<br />
blah blah blah from Legal<br />
adf<br />
adf<br />
<span style="color: #ff0000;">{$ /process_data/@TCFor12MonthsContract$}</span><br />
blah<br />
blah</p>
<p>regards,<br />
BOH Team</p></blockquote>
<h4>Approach 2: Conditional set value with XPath</h4>
<h5>Process diagram:</h5>
<p><a href="http://blog.pandyaparth.com/wp-content/plugins/feed-statistics.php?url=aHR0cDovL2Jsb2cucGFuZHlhcGFydGguY29tL3dwLWNvbnRlbnQvdXBsb2Fkcy8yMDA5LzExL0FwcHJvYWNoMi5QTkc="><img class="alignnone size-medium wp-image-153" title="Set Value XPath approach" src="http://blog.pandyaparth.com/wp-content/uploads/2009/11/Approach2-300x123.PNG" alt="Set Value XPath approach" width="300" height="123" /></a></p>
<h5>Email Body</h5>
<blockquote><p>Dear Provisioning Team,</p>
<p>Please send the below details to John.</p>
<p>System:{$ /process_data/@System $}<br />
Agent Name:{$ /process_data/@Agentname $}<br />
Product ordered: {$ /process_data/@Product $}<br />
<span style="color: #ff6600;"><br />
<span style="color: #0000ff;">{$ substring(&#8217;This is where the actual text gets put about the product configuration&#8217;,<br />
50000000 * (number(/process_data/@Product !=&#8217;Product A&#8217;))<br />
) $}</span></span></p>
<p>Terms and Conditions:<br />
blah blah blah from Legal<br />
adf<br />
adf<span style="color: #339966;"><br />
<span style="color: #0000ff;">{$ substring(&#8217;12 Months T&amp;C content is written here or can be xpath expression&#8217;,<br />
50000000 * (number(/process_data/@ContractLength !=&#8217;12&#8242;))<br />
) $}</span></span><br />
blah<br />
blah</p>
<p>regards,<br />
BOH Team</p></blockquote>
<h3>Explanation:</h3>
<ul>
<li>The above expression marked in blue puts the text in email body if the condition at the end of it fulfills.</li>
<li>By moving this logic into the email step itself I could clean up the process design significantly. I believe that LC is too good to do data transformation but common&#8230;few set value and few conditional routes for a simple text insertion?? I reckon the XPath trick gives much more cleaner approach to solve this.</li>
<li>First thing to notice in the expression is the use of a large number <span style="color: #ff6600;"><span style="color: #0000ff;">50000000</span></span> . This is used to return blank substring value if the expression is false. Please adjust if your input text can be larger than this.</li>
<li>Second thing to notice is the use of comparison operator. I wanted to have 0 (zero) value for substring start value if condition is true. Boolean true is 1 so I&#8217;m using opposite operator. Eg. if(product=&#8221;Product A&#8221;) is represented as product!=&#8221;Product A&#8221;</li>
</ul>
<p>As this is an XPath based expression we can use it in any LC component. I tried implementing if-else clause as well but that didn&#8217;t turn out well.</p>
<p>If you managed to read through this much then I&#8217;m sure you would love to see the <span style="color: #ff0000;">undocumented &#8216;and&#8217; &#8216;or&#8217; keyword usage in XPath expression</span>. I found that while experimenting and it&#8217;s an instant hit among few of my fellow LC users. <a href="http://blog.pandyaparth.com/wp-content/plugins/feed-statistics.php?url=aHR0cDovL2Jsb2cucGFuZHlhcGFydGguY29tLzIwMDkvMDcvaW50cm9kdWNpbmctbGMta2V5d29yZHMtbG9naWNhbC1vcGVyYXRvcnMtYW5kb3Iv" target=\"_self\">It can be found here</a>..</p>
<p>Let me know if you find this useful!!!!</p>
 <img src="http://blog.pandyaparth.com/wp-content/plugins/feed-statistics.php?view=1&post_id=146" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.pandyaparth.com/2009/11/conditional-set-value-using-xpath/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LiveCycle ES2 documentation</title>
		<link>http://blog.pandyaparth.com/2009/11/livecycle-es2-documentation/</link>
		<comments>http://blog.pandyaparth.com/2009/11/livecycle-es2-documentation/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 01:41:18 +0000</pubDate>
		<dc:creator>Parth Pandya</dc:creator>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[LiveCycle ES2]]></category>

		<guid isPermaLink="false">http://blog.pandyaparth.com/?p=141</guid>
		<description><![CDATA[I&#8217;m thrilled to see LiveCycle ES2 help page with the links to all of the ES2 documentation.
Thanks to Livecycle Docs team at Adobe for publishing this one page reference. I&#8217;ve seen colleagues and clients struggling to find different docs since I started working on LiveCycle, some 4 years back.
This is the page that we all [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m thrilled to see LiveCycle ES2 help page with the links to all of the ES2 documentation.</p>
<p>Thanks to <a href="http://blog.pandyaparth.com/wp-content/plugins/feed-statistics.php?url=aHR0cDovL2Jsb2dzLmFkb2JlLmNvbS9saXZlY3ljbGVkb2NzLw==" target=\"_blank\">Livecycle Docs team</a> at Adobe for publishing this one page reference. I&#8217;ve seen colleagues and clients struggling to find different docs since I started working on LiveCycle, some 4 years back.</p>
<p>This is the page that we all should have in our bookmarks.</p>
<p><a href="http://blog.pandyaparth.com/wp-content/plugins/feed-statistics.php?url=aHR0cDovL2hlbHAuYWRvYmUuY29tL2VuX1VTL2xpdmVjeWNsZS85LjAvbGNfZG9jbGlzdC5odG1s" target=\"_blank\">http://help.adobe.com/en_US/livecycle/9.0/lc_doclist.html</a></p>
<p>Thanks again Doc team!!</p>
 <img src="http://blog.pandyaparth.com/wp-content/plugins/feed-statistics.php?view=1&post_id=141" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.pandyaparth.com/2009/11/livecycle-es2-documentation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrade to LiveCycle ES2!! My fav bits</title>
		<link>http://blog.pandyaparth.com/2009/11/upgrade-to-livecycle-es2-my-fav-bits/</link>
		<comments>http://blog.pandyaparth.com/2009/11/upgrade-to-livecycle-es2-my-fav-bits/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 23:15:35 +0000</pubDate>
		<dc:creator>Parth Pandya</dc:creator>
				<category><![CDATA[LiveCycle ES2]]></category>
		<category><![CDATA[Form Guide]]></category>
		<category><![CDATA[LiveCycle testing]]></category>
		<category><![CDATA[Upgrade]]></category>

		<guid isPermaLink="false">http://blog.pandyaparth.com/?p=137</guid>
		<description><![CDATA[I was recently reading about upgrade to ES2 and new features of ES2 and these are my favorite bits. I&#8217;ll play with ES2 after the GM release and post the experiance later.. But so far this is what I&#8217;m really looking forward in ES2.

Simplify testing and deployment by previewing your business process, including testing form [...]]]></description>
			<content:encoded><![CDATA[<p>I was recently reading about upgrade to ES2 and new features of ES2 and these are my favorite bits. I&#8217;ll play with ES2 after the GM release and post the experiance later.. But so far this is what I&#8217;m really looking forward in ES2.</p>
<ul>
<li><span style="color: #ff0000;">Simplify testing</span> and deployment by previewing your business process, including testing form and Flex® user interfaces, and recording the process results.</li>
</ul>
<p>The testing is on the top of my wish list. I even thought of writting a whole new AIR application to make our life easier around workflow testing and deployment. I&#8217;m talking about deployment on several staging environment!! But for now let&#8217;s forget about my AIR app development&#8230; Thanks ES2 for looking into this.</p>
<ul>
<li>Reference real-time <span style="color: #ff0000;">graphical server health statistics</span> within the LiveCycle administration UI.</li>
</ul>
<p>Love this&#8230;eliminates the need for a monitoring software for small projects.. Will it also have customisable alerts too?</p>
<ul>
<li>Upgrade available from ES update 1, LC 7 and LC 6.</li>
</ul>
<p>This is a big sale point to encourage clients on LC7 deployments. I wish the &#8216;compatibility layer&#8217; usage can be kept to minimal usage as part of the upgrade.</p>
<ul>
<li>Enhancements to Form Guide development cycle.</li>
</ul>
<p>This is BIG improvement&#8230; It&#8217;s something you just need to play with.</p>
 <img src="http://blog.pandyaparth.com/wp-content/plugins/feed-statistics.php?view=1&post_id=137" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.pandyaparth.com/2009/11/upgrade-to-livecycle-es2-my-fav-bits/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introducing LC Keywords-Logical Operators&#8211; and,or</title>
		<link>http://blog.pandyaparth.com/2009/07/introducing-lc-keywords-logical-operators-andor/</link>
		<comments>http://blog.pandyaparth.com/2009/07/introducing-lc-keywords-logical-operators-andor/#comments</comments>
		<pubDate>Mon, 13 Jul 2009 15:09:45 +0000</pubDate>
		<dc:creator>Parth Pandya</dc:creator>
				<category><![CDATA[LiveCycle ES]]></category>
		<category><![CDATA[LC keywords]]></category>
		<category><![CDATA[LiveCycle operators]]></category>
		<category><![CDATA[Logical Operators]]></category>
		<category><![CDATA[Route conditions]]></category>
		<category><![CDATA[XPath and or]]></category>
		<category><![CDATA[XPath keyword]]></category>

		<guid isPermaLink="false">http://livecyclekarma.wordpress.com/?p=122</guid>
		<description><![CDATA[I was experimenting with xpath expression and found that the &#8216;and&#8217; and &#8216;or&#8217; works perfectly as the logical operators.
I&#8217;m perosnally so happy to see them working. In few cases it was too hard to configure the conditional routes with just OR/AND joint.
I&#8217;ve attached an example to demonstrate a simple usage of &#8216;and&#8217;-'or&#8217; logical operators. This [...]]]></description>
			<content:encoded><![CDATA[<p>I was experimenting with xpath expression and found that the &#8216;and&#8217; and &#8216;or&#8217; works perfectly as the logical operators.<br />
I&#8217;m perosnally so happy to see them working. In few cases it was too hard to configure the conditional routes with just OR/AND joint.</p>
<p>I&#8217;ve attached an example to demonstrate a simple usage of &#8216;and&#8217;-'or&#8217; logical operators. This is the condition that I&#8217;ve put in the example.</p>
<blockquote><p>(normalize-space(/process_data/@Input_Value1)=&#8217;555&#8242; <strong><span style="color:#ff0000;">or</span></strong> normalize-space(/process_data/@Input_Value1)=&#8217;666&#8242;) <span style="color:#ff0000;"><strong>and</strong></span> (normalize-space(/process_data/@Input_Value2)=&#8217;777&#8242;)</p></blockquote>
<p>I believe that this is going to make workflow design so much cleaner. Instead of nested conditional routes and 4-5 decision points or set value steps we would be able to do lot more things in few steps now.</p>
<p>I think this is an XPath Explorer feature so is not limited to just route conditions. All of the places where XPath expression is evaluated should be able use these.</p>
<p>Hope this helps to you too!!!</p>
<div>
<p><a class=\"alignleft\" title=\"XPath logical operator example\" href="http://blog.pandyaparth.com/wp-content/plugins/feed-statistics.php?url=aHR0cDovL3BhbmR5YXBhcnRoLmNvbS93cC1jb250ZW50L3VwbG9hZHMvMjAwOS8wNy9sYy1rZXl3b3Jkcy1sb2dpY2FsLW9wZXJhdG9yLWFuZC1vci1leGFtcGxlLnBkZg==" target=\"_blank\">Download the example from here.</a></div>
 <img src="http://blog.pandyaparth.com/wp-content/plugins/feed-statistics.php?view=1&post_id=122" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.pandyaparth.com/2009/07/introducing-lc-keywords-logical-operators-andor/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Max 2009 Announced</title>
		<link>http://blog.pandyaparth.com/2009/06/max-2009-announced/</link>
		<comments>http://blog.pandyaparth.com/2009/06/max-2009-announced/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 03:52:30 +0000</pubDate>
		<dc:creator>pandyaparth</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[LiveCycle ES]]></category>
		<category><![CDATA[Max 2009]]></category>

		<guid isPermaLink="false">http://livecyclekarma.wordpress.com/2009/06/18/max-2009-announced/</guid>
		<description><![CDATA[Adobe just announced the details of the MAX 2009. All of the session and lab sessions are also available on the max website.
Few things that I like -

 Three separate tracks to focus for different type of audience
 New Livecycle@Max preconference
 Interesting sessions like &#8211; Portal based workspace, How to architect LCES in enterprise, Services.SOA.Cloud [...]]]></description>
			<content:encoded><![CDATA[<p>Adobe just announced the details of the MAX 2009. All of the session and lab sessions are also available on the max website.<br />
Few things that I like -</p>
<ul>
<li> Three separate tracks to focus for different type of audience</li>
<li> New Livecycle@Max preconference</li>
<li> Interesting sessions like &#8211; Portal based workspace, How to architect LCES in enterprise, Services.SOA.Cloud roadmap etc&#8230;</li>
</ul>
<p>More details at: <a href="http://blog.pandyaparth.com/wp-content/plugins/feed-statistics.php?url=aHR0cDovL21heC5hZG9iZS5jb20vYmxvZy8yMDA5LzA2L21heC0yMDA5LWFubm91bmNlZC5odG1s" target=\"_blank\">Max Blog</a></p>
 <img src="http://blog.pandyaparth.com/wp-content/plugins/feed-statistics.php?view=1&post_id=117" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.pandyaparth.com/2009/06/max-2009-announced/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Form Pre-populate via Render service (delayed)</title>
		<link>http://blog.pandyaparth.com/2009/06/form-pre-populate-via-render-service-delayed/</link>
		<comments>http://blog.pandyaparth.com/2009/06/form-pre-populate-via-render-service-delayed/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 07:30:52 +0000</pubDate>
		<dc:creator>pandyaparth</dc:creator>
				<category><![CDATA[LiveCycle Components]]></category>
		<category><![CDATA[LiveCycle ES]]></category>
		<category><![CDATA[Workspace]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[dataDoc]]></category>
		<category><![CDATA[Forms pre-population]]></category>
		<category><![CDATA[Orchestration]]></category>
		<category><![CDATA[Render Service]]></category>
		<category><![CDATA[Workbench]]></category>

		<guid isPermaLink="false">http://livecyclekarma.wordpress.com/?p=110</guid>
		<description><![CDATA[Hi All,
I was suppose to post easy techniques on how to pre-populate forms via LiveCycle&#8217;s Render service but unfortunately it is taking longer than what I expected. This is the story so far&#8230; Please comment if you are aware of this and enlighten me around the changed behavior.
Background:
I used the customized render service till LC [...]]]></description>
			<content:encoded><![CDATA[<p>Hi All,</p>
<p>I was suppose to post easy techniques on how to pre-populate forms via LiveCycle&#8217;s Render service but unfortunately it is taking longer than what I expected. This is the story so far&#8230; Please comment if you are aware of this and enlighten me around the changed behavior.</p>
<h3>Background:</h3>
<p>I used the customized render service till LC 8.0.1 SP2 and what we get in dataDoc variable of the Render service is xdp data which had the whole form specific XML structure. But I&#8217;m finding that in LiveCycle 8.2 SP2 the dataDoc contains the xdp data but ONLY the Root element of form data is present.</p>
<p>The issue: This results in stalled operations (exception) as the elements that I want to populate does not exist.</p>
<h3>The strange thing:</h3>
<p>The most strange thing that I have seen is related to where the &#8216;caller&#8217; orchestration was developed. So if your orchestration which has xfaForm variable was created on LC 8.0.1 then the dataDoc variable will have the xdp data with the whole and empty form data section in it. BUT&#8230;.. if you touch that variable or re-create that xfaForm variable on LC 8.2 then you&#8217;ll start getting the blank form xml section in xdp data (of dataDoc) variable of render service.</p>
<p>Please let me know if anyone has seen this before and knows if this was intentional in LC 8.2 or it is a reported/unreported bug.</p>
<p>stay tuned for the pre-population.. I&#8217;ve decided to post a series of two articles to discuss the strategy that I think can work nicely.</p>
 <img src="http://blog.pandyaparth.com/wp-content/plugins/feed-statistics.php?view=1&post_id=110" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.pandyaparth.com/2009/06/form-pre-populate-via-render-service-delayed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Styling in Task Instructions</title>
		<link>http://blog.pandyaparth.com/2009/05/styling-in-task-instructions/</link>
		<comments>http://blog.pandyaparth.com/2009/05/styling-in-task-instructions/#comments</comments>
		<pubDate>Mon, 25 May 2009 03:25:00 +0000</pubDate>
		<dc:creator>pandyaparth</dc:creator>
				<category><![CDATA[LiveCycle ES]]></category>
		<category><![CDATA[Workspace]]></category>
		<category><![CDATA[Styling]]></category>
		<category><![CDATA[Task Instructions]]></category>

		<guid isPermaLink="false">http://livecyclekarma.wordpress.com/?p=97</guid>
		<description><![CDATA[This is really exciting!! I knew that this can be done in LiveCycle 7 but never tried it till now in LiveCycle ES. Ok.. let me describe what it is.
What it is?
I found out that we can add styling to the Task Instructions that apear in Workspace. This means that we can have Red font, [...]]]></description>
			<content:encoded><![CDATA[<p>This is really exciting!! I knew that this can be done in LiveCycle 7 but never tried it till now in LiveCycle ES. Ok.. let me describe what it is.</p>
<h2>What it is?</h2>
<p>I found out that we can add styling to the Task Instructions that apear in Workspace. This means that we can have Red font, Bold statuses/instructions based on the task description that we put in Assign Task step of the orchestration.</p>
<h2>Why you need it?</h2>
<p>Let&#8217;s say for example, A Task is deadlined and you wish to put task status/something else in Instructions field which can stand out form the rest of the text. Having something like &#8216;Deadlined&#8217; status in red with other instructions can be a BIG step forward for someone who works on workspace interface everyday.</p>
<p>I&#8217;ve also noticed that the Task Instructions field on TaskManagerEndpoint also &#8216;likes&#8217; the styling. This means that the Cards or Grid view of Start Process section will also show pretty colors and styling if needed.</p>
<p><span id="more-97"></span>Let me show you what I could do with styling in Task Instructions.</p>
<h4>Snapshots 1: To-Do list view of a user with styling on Task Instructions (configured in Task Instructions of Assign Task operation)</h4>
<div id="attachment_101" class="wp-caption alignnone" style="width: 310px"><a href="http://blog.pandyaparth.com/wp-content/plugins/feed-statistics.php?url=aHR0cDovL3BhbmR5YXBhcnRoLmNvbS93cC1jb250ZW50L3VwbG9hZHMvMjAwOS8wNS90b2RvbGlzdC13aXRoLXN0eWxlLnBuZw=="><img class="size-medium wp-image-101" title="ToDoList-With Style" src="http://pandyaparth.com/wp-content/uploads/2009/05/todolist-with-style-300x142.png" alt="ToDo Screen with Styling" width="300" height="142" /></a><p class="wp-caption-text">ToDo Screen with Styling</p></div>
<h4>Snapshot 2: Card view with styling on Task Instructions (configured at Task Manager Endpoint page in adminui)</h4>
<div id="attachment_100" class="wp-caption alignnone" style="width: 310px"><a href="http://blog.pandyaparth.com/wp-content/plugins/feed-statistics.php?url=aHR0cDovL3BhbmR5YXBhcnRoLmNvbS93cC1jb250ZW50L3VwbG9hZHMvMjAwOS8wNS9zdGFydHByb2Nlc3Mtd2l0aHN0eWxlLnBuZw=="><img class="size-medium wp-image-100" title="StartProcess-WithStyle" src="http://pandyaparth.com/wp-content/uploads/2009/05/startprocess-withstyle-300x133.png" alt="StartProcess view with Styling" width="300" height="133" /></a><p class="wp-caption-text">StartProcess view with Styling</p></div>
<h2>Styling examples:</h2>
<h4>Style used in Snapshot 1:</h4>
<blockquote><p>&lt;font color=&#8221;#FF0000&#8243;&gt;&lt;b&gt;Deadlined.&lt;/b&gt;&lt;/font&gt; {$/process_data/@taskInstructionsString$}</p></blockquote>
<h4>Style used in Snapshot 2:</h4>
<blockquote><p>&lt;font color=&#8221;#FF0000&#8243;&gt;&lt;b&gt;Leave Application&lt;/b&gt;&lt;/font&gt; &lt;font color=&#8221;#9932CC&#8221;&gt;&lt;b&gt;&lt;i&gt;Test&lt;/i&gt;&lt;/b&gt;&lt;/font&gt; Desc</p></blockquote>
<h3>Tip:</h3>
<ol>
<li>As the Workspace is a flex application I decided to try the Hex code for the font colors and it did work nicely.</li>
<li>It is a good idea to show some metadata in task instructions, so user can find out the Task without opening it. Imaging what would happen if you have to find John Smith&#8217;s application by opening Task&#8217;s one after another. I would put applicant name and/or some other identifier in Task Instruction so it is easy to find!!</li>
<li>I have a Status variable in my process and I&#8217;m applying style to that only so the remaining text in Task Instruction is kept in black. I think this is &#8216;good enough&#8217; to indicate what&#8217;s the status rather than having too much red/orange colors in that view.</li>
</ol>
<p><span style="text-decoration: underline;"><strong>Misc: </strong></span>This is just a small example of styling. I don&#8217;t know what else will work or will not work but I think we can do really cool things with this much to help out the user who work on Workspace everyday. I&#8217;m pretty sure that I&#8217;ll see few smiling faces in my next Demo &amp; Deployment of what I&#8217;m currently working on.</p>
 <img src="http://blog.pandyaparth.com/wp-content/plugins/feed-statistics.php?view=1&post_id=97" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.pandyaparth.com/2009/05/styling-in-task-instructions/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>RichText tricks for TextField in Designer</title>
		<link>http://blog.pandyaparth.com/2009/05/richtext-tricks-for-textfield-in-designer/</link>
		<comments>http://blog.pandyaparth.com/2009/05/richtext-tricks-for-textfield-in-designer/#comments</comments>
		<pubDate>Wed, 20 May 2009 02:35:11 +0000</pubDate>
		<dc:creator>pandyaparth</dc:creator>
				<category><![CDATA[LiveCycle Designer]]></category>
		<category><![CDATA[LiveCycle ES]]></category>
		<category><![CDATA[LiveCycle Forms]]></category>
		<category><![CDATA[Richtext in Textfield]]></category>

		<guid isPermaLink="false">http://livecyclekarma.wordpress.com/?p=65</guid>
		<description><![CDATA[This post describes a technique to set rich text content into a Textfield of a form that was designed in LiveCycle Designer ES. Thanks to Paul Guerette who helped me out to understand this few months back.
There can be two scenarios in which you might want to set content into a rich text supported Textfield.

User [...]]]></description>
			<content:encoded><![CDATA[<p>This post describes a technique to set rich text content into a Textfield of a form that was designed in LiveCycle Designer ES. Thanks to Paul Guerette who helped me out to understand this few months back.</p>
<p>There can be <span style="text-decoration: underline;"><strong>two scenarios</strong></span> in which you might want to set content into a rich text supported Textfield.</p>
<ol>
<li>User types the rich text content into a text field and you wish to copy that to another Textfield.</li>
<li>LiveCycle ES server/some other way you wish to set rich text content into a form field. (Form pre-population scenario)</li>
</ol>
<h2>Where is rich text data in a text field?</h2>
<p>When user types plain text in a pure Textfield (field format: Plain Text Only) then the data is set/get from rawValue property. BUT if the Textfield is having Rich Text as the field format then the data is store at .value.exData</p>
<h2>How to check what the rich text data look like under the covers?</h2>
<p>I use email submit button on a simplest form to see the XML that gets created for submission.</p>
<p>If you wish to do this then:</p>
<ol>
<li>Create a simple dynamic PDF form and put a text field with Rich Text format set to it.</li>
<li>Drop a Submit button and put mailto:someone@abc.com as submit URL</li>
<li>Open this sample form in Preview mode type some text with rich-text formatting (Bold, Italics etc)</li>
<li>Hit the email submit button you would be able to see the exData content as the child element of your Textfield.</li>
</ol>
<p><span id="more-65"></span></p>
<p><span style="text-decoration: underline;">Now let&#8217;s look at above mentioned two scenarios in details:</span></p>
<h2><strong>Scenario 1</strong>: User types the rich text into a field and we want to copy that to another field.</h2>
<p>How to copy rich text from one Textfield to another Text field?</p>
<p>Steps:</p>
<ul>
<li>Get the content out of first text field by this java script</li>
</ul>
<pre>txtInputTextArea.value.exData.saveXML();</pre>
<ul>
<li>Set that value in the destination Textfield&#8217;s exData property.</li>
</ul>
<pre>txtOutput1.value.exData.loadXML(userEnteredRichText,1,1);</pre>
<h2><strong>Scenario 2</strong>: We need to pre-populate the form and the rich text data is not typed in (received from web service call or out of database etc..)</h2>
<p>How to set rich text data into a Textfield?</p>
<p>Steps:</p>
<ul>
<li>Receive the markup data. eg. Hi &lt;b&gt;John&lt;/b&gt;,&lt;br/&gt;Please find application-&lt;i&gt;111&lt;/i&gt; details below.</li>
<li>Have exData &#8216;envelope&#8217; ready in your form and inject the received markup data. (You may have to replace &amp;lt; &amp;gt; values with &lt; , &gt; if received data is having that)</li>
<li>set the &#8216;envelope&#8217; + data into Textfield&#8217;s exData element.</li>
</ul>
<pre>txtOutput1.value.exData.loadXML(cleanedValue,1,1);</pre>
<h3>Note:</h3>
<h3>What is &#8216;envelope&#8217; which is mentioned in this example/blog entry?</h3>
<p>I mentioned &#8216;envelope&#8217; in Scenario 2 explanation which is something that allows me to insert markup data in a form that Textfield is expecting for rich text support.</p>
<p>What I have done in my sample (attached/linked below) is to have another Textfield storing this exData section with namespaces in it. This is what gets generated behind the scenes when user types the rich text content in Textfield.</p>
<p>I have a &#8216;ccc&#8217; string in this whole block where the actual data(markup data) is needed for the Textfield to show that correctly.</p>
<p>So in my form script I use this &#8216;envelop&#8217; to store the exData block and then via script I replace the &#8216;ccc&#8217; value with the markup data that I receive. And then I use this merged xml block to set to the Textfield&#8217;s exData property.</p>
<h2>Download Sample implementation:</h2>
<p>Use this PDF file that has both of these scenarios implemented as a sample.</p>
<p><a href="http://blog.pandyaparth.com/wp-content/plugins/feed-statistics.php?url=aHR0cDovL3BhbmR5YXBhcnRoLmNvbS93cC1jb250ZW50L3VwbG9hZHMvMjAwOS8wNS9yaWNodGV4dC1zYW1wbGUucGRm" target=\"_blank\">Richtext in Textfield Sample</a></p>
 <img src="http://blog.pandyaparth.com/wp-content/plugins/feed-statistics.php?view=1&post_id=65" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.pandyaparth.com/2009/05/richtext-tricks-for-textfield-in-designer/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Workspace URL parameters</title>
		<link>http://blog.pandyaparth.com/2009/04/workspace-url-parameters/</link>
		<comments>http://blog.pandyaparth.com/2009/04/workspace-url-parameters/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 12:59:32 +0000</pubDate>
		<dc:creator>pandyaparth</dc:creator>
				<category><![CDATA[LiveCycle ES]]></category>
		<category><![CDATA[Workspace]]></category>

		<guid isPermaLink="false">http://livecyclekarma.wordpress.com/?p=48</guid>
		<description><![CDATA[I recently noticed that LiveCycle workspace URL has few parameters which would be really helpful in LC projects.
The format to livecycle workspace URL is something like this:
http://[server name]:[port]/workspace?[parm]=[value]

[server name]is the name of the LiveCycle ES server
[port] is the server port used for LiveCycle ES
[parm] is the name of the parameter
[value] is the value of the [...]]]></description>
			<content:encoded><![CDATA[<p>I recently noticed that LiveCycle workspace URL has few parameters which would be really helpful in LC projects.</p>
<p class="indent1">The format to livecycle workspace URL is something like this:</p>
<p class="indent1" style="padding-left:30px;">http://[server name]:[port]/workspace?[parm]=[value]</p>
<ul style="padding-left:90px;">
<li>[server name]is the name of the LiveCycle ES server</li>
<li>[port] is the server port used for LiveCycle ES</li>
<li>[parm] is the name of the parameter</li>
<li>[value] is the value of the parameter</li>
</ul>
<p>Three possible types of URL that we can use with the help of URL parameters are:</p>
<ol>
<li>URL pointing to a Task (Work item in To-Do list)</li>
<p><span style="color:#008080;">- http://localhost:8080/workspace?taskId=100</span></p>
<li>URL to open workspace with any of the three tabs of workspace -</li>
<p><span style="color:#008080;">- http://localhost:8080/workspace?startPage=<code>startProcess</code><br />
- http://localhost:8080/workspace?startPage=<code>toDo</code><br />
- http://localhost:8080/workspace?startPage=<code>tracking</code></span></p>
<li>URL to open a form from Start Process page to kick off a new process -</li>
</ol>
<p><span style="color:#008080;">- http://localhost:8080/workspace?startEndpoint=[service name].[endpoint name]</span></p>
<p>The last one is in fact the most interesting one as you can publish the links on company portal and that will straight away open the relevant form so everyone wouldn&#8217;t have to find the form in Start Process page.</p>
<p>More details are at <a href="http://blog.pandyaparth.com/wp-content/plugins/feed-statistics.php?url=aHR0cDovL2xpdmVkb2NzLmFkb2JlLmNvbS9saXZlY3ljbGUvOC4yL3diX2hlbHAvd3doZWxwL3d3aGltcGwvY29tbW9uL2h0bWwvd3doZWxwLmh0bT9jb250ZXh0PVdvcmtiZW5jaF9FUyZhbXA7ZmlsZT0wMDEzMzAuaHRtbA==" target=\"_blank\">LiveDocs </a></p>
 <img src="http://blog.pandyaparth.com/wp-content/plugins/feed-statistics.php?view=1&post_id=48" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.pandyaparth.com/2009/04/workspace-url-parameters/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Welcome</title>
		<link>http://blog.pandyaparth.com/2008/09/welcome/</link>
		<comments>http://blog.pandyaparth.com/2008/09/welcome/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 05:56:13 +0000</pubDate>
		<dc:creator>pandyaparth</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://livecyclekarma.wordpress.com/?p=8</guid>
		<description><![CDATA[Hi, I&#8217;m Parth Pandya. I work at Avoka Technlogies. I hope to share some of my Adobe LiveCycle experiance with the community through this blog.
Other areas of interest include SOA, BPM, Mobile Agents and Flex/Java development.
 ]]></description>
			<content:encoded><![CDATA[<p>Hi, I&#8217;m Parth Pandya. I work at Avoka Technlogies. I hope to share some of my Adobe LiveCycle experiance with the community through this blog.</p>
<p>Other areas of interest include SOA, BPM, Mobile Agents and Flex/Java development.</p>
 <img src="http://blog.pandyaparth.com/wp-content/plugins/feed-statistics.php?view=1&post_id=8" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.pandyaparth.com/2008/09/welcome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
