Tech Blog

Archive for March, 2008

Attending to CF.Objective!

by Rolando on Mar.28, 2008, under ColdFusion

I finally got approval to go to CF.Objective this year!  I've been wanting to go since I heard great things about last year's conference.  This year schedule looks promising too, with great speakers and tracks.  I don't see myself sticking to one track but rather picking the best (for me) of the different sessions.

By glancing through the schedule I'm already looking forward to Advanced Techniques With The ColdBox Framework  by Luis Majano; ColdSpring 1337 by Chris Scott; Transfer ORM Caching Mechanics by Mark Mandel.  There are other ones which I need to make my mind for since they overlap like the workshop by John Paul Ashenfelter (I attended to one of his pressos in CFUnited and it was great) and CF with Air by Samer Sadek ( a coworker of mine).

Regardless of what I pick,  I'm sure this will be a great learning experience as well as a good chance to share the great guys of the CF community. If you haven't buy your tickets yet, hurry up and get registered!

See you at Objective!

Leave a Comment : more...

Prepopulate Form with Logged in user info in LiveCycle ES

by Rolando on Mar.26, 2008, under LiveCycle ES

I’ve seen several questions in the LiveCycle user forum about how to pre-populate a form with user data in the Workspace, so I’ve decided to demonstrate how to accomplish this. Notice that although this explanation is digested enough so that a beginner can accomplish the task, you need to have a good understanding of how forms are rendered in LiveCycle, basic understanding of the XML Path Language (XPath) & how to set the XML schema to your form.

First let’s understand how LiveCycle renders a form in the workspace for a specific process. When you set your process you set an input variable which holds the form to render. LiveCycle by default assigns the “Default Renderer” service to this variable so that it gets rendered properly in the Workspace. This “Default Renderer” is just a short-lived process with several activities that sets variables and enables your form for the workspace.

If you want to pre-populate a form with data, all you have to do is create your custom renderer service. For instance, let’s say you want to render a PDF form in the Workspace. So we need the “Render PDF Form” (see image 1) from the “Samples Forms” category (this samples should be in your process list unless you/the administrator didn’t upload the LiveCycle Archives that comes with the installation). This process takes a PDF form and renders it to the Workspace. First the short-lived process sets some parameters, then renders the form using the renderPDFForm operation from the Forms Service, and then enables the PDF Form to be rendered in the workspace.

    

Render PDF Process

Render PDF Process

Image 1: Render PDF Form Process Design
 

To pre-populate the form we need to get the logged in user info and inject that into the form before getting to the “render Form” activity. To do that you can copy the “Render PDF Form” process into a new process. Then to your new process you want to: <more />

1-      Add two input variables: one called “userId” of type string and another one xmlData of type xml. 

2-      In the first step of the process you want to extract the form’s XML data and assign that to the xmlData variable. 

3-      Then, use the “Query Single Row” operation from the “JDBCService” and query the LiveCycle database to get the user’s info based on the “userId” variable. You can use the LiveCycle’s default datasource which should be “IDP_DS”. Your query will look something like 

SELECT canonicalname, commonname, email, organization, address
                FROM edcprincipalentity e
                                WHERE e.id = [xpath to your userId variable]

4-      Now that you have the form’s XML data you can assign values to the fields by using XPath. So, (continue reading…)

9 Comments more...

Speaking at Baltimore Adobe User Group Inaugural Meeting

by Rolando on Mar.24, 2008, under ColdFusion, LiveCycle ES

This Wednesday, I'll be speaking at the new Baltimore Adobe User Group (BAUG) on LiveCycle ES.  If you live around the Baltimore area, this is a great opportunity to learn what is LiveCycle ES and what it can do for your company.  My presentation comprise two parts as described below:

What’s all the buzz about Adobe LiveCycle ES?

Have you heard about LiveCycle and how great it is but never had a chance to see it in action? Maybe you’ve heard how it can unlock PDF documents, control who can view/print/copy documents even when these have left your network, render forms in multiple formats (HTML, PDF and SWF) all with a single file. Learn why the buzz about LiveCycle ES and why renowned companies like Wachovia and the Federal Government are using LiveCycle ES to automate their business processes.

Unleash the power of Reader Extensions ES

Have you ever filled out a PDF form and, after all the effort, noticed you cannot save your data? Or maybe try to add attachments, comments, signatures, connect to a database but are unable because of the limitations of Adobe Reader? Learn how you can use LiveCycle Reader Extensions ES to unlock these and more capabilities for single or bulk PDF documents.

 

I'll be preceded by Curtis Layton, whom will be speaking on: Intro to Object Oriented Programming in ColdFusion.

You can get more details about the event at the BAUG website: http://baltimore-aug.org/

Leave a Comment :, , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...