• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Dynamically populate a selct box within a PDF form.

New Here ,
Jun 18, 2007 Jun 18, 2007

Copy link to clipboard

Copied

Hi All

I am trying to dynamically populate a select box within a PDF form,

I have connected the PDF form to the web service, which is now available from within the form. My
qestion is how do i bind to the drop down list? My web service code is below for perusal. I have
outputed the query results to an array (tested with cfdump all is ok) results as expected, i just
can not figure out how to access them via the PDF form. Any Ideas!!


<!---//We need to publish this service as document/literal rather than rpc/encoded--->
<cfcomponent style="document">

<!---//Set-up the function allowing remote access--->

<cffunction name="productType" access="remote" returntype="array" output="true">

<!---//Query the product type database for a list of Product Types--->

<cfquery name="getType" datasource="hurley">
SELECT productType, pTypeID
FROM productType
</cfquery>

<!---//Create an array to output to the web client--->

<cfset returnArray=ArrayNew(2)>

<!--- Populate the array row by row --->
<cfloop query="getType">

<cfset returnArray[CurrentRow][1]=productType>
<cfset returnArray[CurrentRow][2]=pTypeID>

</cfloop>

<cfreturn returnArray>

</cffunction>

</cfcomponent>
TOPICS
Advanced techniques

Views

319

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jun 18, 2007 Jun 18, 2007

Copy link to clipboard

Copied

LATEST
I think you can do something like that using the Java iText package (already installed on your server if you are using CFMX). Check out the ComboBox example on the iText site:

http://itextdocs.lowagie.com/tutorial/#part5

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation