Adobe Dreamweaver Forums



Last 10 THreads :         Webhelp Instead of HTML Help for Desktop Applications? (Last Post : Peter Grainge - Replies : 1 - Views : 2 )           »          Help With a earth spinn flash site (Last Post : Balambur - Replies : 0 - Views : 1 )           »          pause imported swf when Captivate movie is paused (Last Post : j-wa - Replies : 0 - Views : 1 )           »          Filtering a Datagrid with Multiple Selections (Last Post : funnyduddy - Replies : 0 - Views : 1 )           »          Cross Domain Scripting (Last Post : Gabi_360RVR - Replies : 0 - Views : 1 )           »          Compatible issue with ie6 (Last Post : Osgood - Replies : 2 - Views : 3 )           »          Re: Kintana Dummy Page (Last Post : macrofireball - Replies : 0 - Views : 1 )           »          CSH Calls for Merged CHM's (Last Post : Peter Grainge - Replies : 1 - Views : 2 )           »          managing imported SWF framerates (Last Post : macrofireball - Replies : 6 - Views : 7 )           »          Web friendly URLs (Last Post : matthisco - Replies : 0 - Views : 1 )           »         


Mission Statement
DreamWeaverForum.infois an online Community of web developers joining together to better their field, share problems and solutions as well as promoting their cause.
We strive to bring you the best information, tools, downloads and news to support your work and companys efforts working in web development.
With our favorite tool "Dreamweaver" and the tools and information we bring you, You should be in a great postion to better your skills and show the world your work.
Come back often, Stay late we have many new things coming your way. Wish you all the best in 2009 information..



 



User Info Statistics
Go Back   Adobe Dreamweaver Forums > Macromedia Software > Cold Fusion > Rich Forms
 
Tags:



Reply
  #1 (permalink)  
Old 12-04-2008, 07:04 PM
drieh
 
Posts: n/a
Diggs:
Default Populating cfinputs in a form

I'm using the following function to retrieve two fields from the item table. At
the end I am returning qty.qtystock and the data from this field is correctly
put into the respective cfinput.

I would like to add another cfinput (and more) to populate the field saleprice
that is being queried but since I could not find a way to return this value I
would like to ask whether this is possible?


The function:

<cffunction name="getQty" access="remote" returntype="any">
<cfargument name="article_no" type="string" required="true">

<!--- Define variables --->
<cfset var data="">

<!--- Get data --->
<cfquery name="qty" datasource="#THIS.dsn#">
SELECT qtystock, saleprice
FROM ITEM
WHERE sku = SUBSTRING_INDEX('#ARGUMENTS.article_no#', ' ', 1)
</cfquery>


<!--- And return it --->
<cfreturn qty.qtystock>
</cffunction>

The Form:
<cfselect name="article_no" bind="cfc:getDesc.lookupDescription()"
display="description" value="description" bindonload="true"></cfselect>

<cfinput type="text" size="10" name="instock"
bind="cfc:getDesc.getQty({article_no})">



Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 09:21 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk