Solved

Autosuggestion with cfgridcolumn

Posted on 2010-09-08
2
52 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

Simple, centralized multimedia control

Watch and learn to see how ATEN provided an easy and effective way for three jointly-owned pubs to control the 60 televisions located across their three venues utilizing the ATEN Control System, Modular Matrix Switch and HDBaseT extenders.

Question has a verified solution.

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

One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

719 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