Solved

Autosuggestion with cfgridcolumn

Posted on 2010-09-08
2
49 Views
Last Modified: 2015-10-01
I have Two tables in a database. One is the ITEM Table containing available Items with Columns (ITEMCode and ITEMDescription) and the other table ITEMSOLD Table which contains sold items with columns (ItemCode, ItemDescription, UnitPrice, Quantity, Amount). Now I have a cfgrid that can insert new sold items into the ItemSold table. And I need the corresponding column for the ITEMSOLD.ItemCode on the cfgrid to autosuggest items in ITEM.ItemCode when you type the first letters of any item. Then when an item is selected in ItemCode Column on the cfgrid, the ItemDescription Column in that row will be updated with corresponding Item.ItemDescription based on the item selected in the ItemCode Column.


Thanks
0
Comment
Question by:Nathltd
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 29

Accepted Solution

by:
Pravin Asar earned 500 total points
ID: 33764123
With cfgridcolumn you can use values and valuesDisplay.

While editing, when cell gains focus, that cell is morphed to combobox.

<cfgridcolumn name="itemID" values="1,2,3,4,5" valuesdisplay="Item 1, Item 2,Item 3,Item 4,Item 5">

Of course in your case the values and valuedisplay will be from some sort db query.

0
 

Author Closing Comment

by:Nathltd
ID: 41020965
Thanks for the solution
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question