Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

ODBC Connection populate/filter dropdown lists

$
0
0

Hi =)

 

I'm working on a form in Designer ES4 with an ODBC connection and I'm trying to populate/filter dropdown lists.

The idea is this:

     User chooses from dropdown list 1* an option.

     After making that choice, the user can select an option from dropdown list 2**.

 

(* here, there should only appear distinct elements of the column 1 of the table)

(** here, there should only appear elements of the column 2 which column 1 element match the previous choice)

 

Ok, so I've created a database and a simple table in SQL Server Express with just 2 columns (and 6 lines) and I'm able to set up the connection in Livecycle.

 

The problem I'm having is when I try to populate dropdown list 1. I've followed this tutorial:

 

     http://www.youtube.com/watch?v=wPcXdE6xR5g

 

With no luck what so ever. I cannot even open the first dropdown list. I've made those changes in the initialize event on the javaScript console:

 

     var sDataConnectionName = "DataConnection";

     var sColHiddenValue = "ID";

     var sColDisplayText = "typeObject";

 

And the dropdown list just shows the first item. I cannot open it.

 

Can I just access data from the Database without making any binding, using just queries and adding items to the dropdown lists?

 

Thanks =)


Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>