473,394 Members | 1,794 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Cfselect option value in table display format

200 100+
Hi,

I would like to display my values in a table format, view code at the bottom.
i get data but in no order it's all very untidy i cant do a <td width="13">
for each option - it display very untidy & unreadable

Expand|Select|Wrap|Line Numbers
  1.   <select name="S_Selectfrombox" size="10" query="Q_CodeDescr"cols="40">
  2.            <cfloop query="Q_CodeDescr">
  3.         <CFSET V_Optionvalue1 = #Descr2#> 
  4.             <CFSET V_Optionvalue2 = #Descr3#> 
  5.             <CFSET V_Optionvalue3 = #Descr4#>
  6.             <optionvalue="#V_Optionvalue1#" "#V_Optionvalue2#" "#V_Optionvalue3#">
  7. #V_Optionvalue1# #V_Optionvalue2# #V_Optionvalue3# 
  8.  
any ideas, please help
Oct 17 '06 #1
3 6225
Hi ismail,

firstly may i ask why would you like to display table like data inside
a select box?

consider using three select boxes side by side

or else you can remove the select box and put table in that place.

what i say may not be what you require. anyways if you clarify your need
i can surely help


Ramesh
Oct 18 '06 #2
ismailc
200 100+
Hi, Thank You replying

The problem i have is that I have 10 000 records to be displayed on screen and on change i update an textarea, the problem is that i will have so many next link pages and want to keep it in the same page where i the user can scroll down and select with the textarea box displayed at the bottom. [IMG]c:\coulmns.jpeg[/IMG]

i played with frames but then have a problem with passing all the variables.

Please is there a way making the data look nice = columns
this is how my select box look at the moment
1234 Test test2 test3 12345 12345
123 test tes4 test6 test7 no no no no
12347 test no no no

it's very untidy & difficult to read.

Please !!!

Thank You
Oct 18 '06 #3
hi Ismail

sorry for responding late, was sleeping extensively.

It seems you need to insert extra spaces so that all 3 data in select list gets aligned.

if you are using mysql try modifying the select statement to this

Expand|Select|Wrap|Line Numbers
  1. <cfquery name="Q_CodeDescr" ...>
  2. select ....  RPAD(V_Optionvalue1,15,' ') as V_Optionvalue1, RPAD(V_Optionvalue2,15,' ') as V_Optionvalue2, RPAD(V_Optionvalue3,15,' ') as V_Optionvalue3 .... from  ....
  3. ....
  4. </cfquery>
basically this is right-padding the 3 required fields with spaces so that a fixed length column is returned. change the 15 to the required number as per your need.


try this and please let me know if it works.


-Ramesh
Nov 2 '06 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: LC's No-Spam Newsreading account | last post by:
I have a form arranged in a table (you can see an example in the page http://cosmos.mi.iasf.cnr.it/~lssadmin/Website/LSS/Help/query.html) The table is on three columns but has a structure like...
3
by: Paul | last post by:
I have some option boxes and combo boxes that looks up values on a separate table (i.e. campus table with campusID & campus name fields) When I choose a selection from the combo box, it puts the...
6
by: Chris Fink | last post by:
Does anyone know it is possible to include a small image(.gif .jpeg) within a <SELECT><option> so that the user would see the option text as well as a little image(icon) in the option? I know this...
20
by: MLH | last post by:
120 MyString = "How many copies of each letter do you need?" 150 MyVariant = InputBox(MyString, "How Many?", "3") If MyVariant = "2" Then MsgBox "MyVariant equals the string '2'" If...
1
by: sparksol | last post by:
I have a form with a drop down box. If you select an option in the drop down box (depending which option is selected) one or two textbox(es) and a submit button display. I would like to keep the...
20
idsanjeev
by: idsanjeev | last post by:
hello i want to modify multiple rows in database with select option i am using R.update but it can update only one record in database but i wants to more then one record is modify after submit so...
2
by: sabrinakr | last post by:
Hi All, I have spent a long time on this and still cant figure out whats wrong. I have recently started with javscript and my question is as follows: The page works fine but if the User...
16
by: Alexio | last post by:
Am new to javascript. I need to format the currency in the as numbers are entered in textboxes. I can format the currency in the calculations and display in the totals but can not figure out how to...
1
beacon
by: beacon | last post by:
Hi everybody, I've searched around for answers, but the closest thing I've found referenced the Northwind database and it seems to be set up a little differently than mine. I'm using DAPs (data...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.