Advertisement

04.27.2008 at 02:40PM PDT, ID: 23357413
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

Controlling positioning of cfselect labels in a cfform format=flash

Tags: cfml, flash
Hi everyone,

I'm sure I'll get laughed at for this one but here goes...

I have a cfform in flash format to enter preventive maintenance data.  The form is emulating a PM worksheet so I dont really have control of the design.

I'm using numerous cfselect dropdowns to enter most of the data, and to limit typos and other issues we are having with other pages that dont support any type of validation.

My problem is, the labels i'm using for the dropdowns are right-justified to hug the dropdowns, is there a way to force them to be left justified to make the form more appealing to the eye.  I've been playing with the sytle tag but not having much success. Any help would be appreciated.

thanks
- dave
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
<cfsavecontent variable="actionPopulateBuilding">
if(_global.arrBuilding == undefined) _global.arrBuilding = selectBuilding.dataProvider.slice(0);
	
	var arrBuilding:Array = _global.arrBuilding;
	selectBuilding.removeAll();
	
for(var i = 0; i < arrBuilding.length; i++)
	{
	var item = arrBuilding[i].data.split('|');
		if(item[1] == selectClient.value )
		{
			selectBuilding.addItem(arrBuilding[i].label,item[0]);
		}
	}
	selectBuilding.enabled = (selectBuilding.length >0) ? true:false;
</cfsavecontent>
 
<cfsavecontent variable="actionPopulateDevice">
if(_global.arrDevice == undefined) _global.arrDevice = selectDevice.dataProvider.slice(0);
	
	var arrDevice:Array = _global.arrDevice;
	selectDevice.removeAll();
	
for(var i = 0; i < arrDevice.length; i++)
	{
	var item = arrDevice[i].data.split('|');
		if(item[1] == selectBuilding.value )
		{
			selectDevice.addItem(arrDevice[i].label,item[0]);
		}
	}
	selectDevice.enabled = (selectDevice.length >0) ? true:false;
</cfsavecontent>
 
	<cfquery name="Employees" datasource="4NYPElectrical">
	SELECT *
	FROM Employees
	WHERE Division = 'DBM'
	</cfquery>
 
<cfform name="myform" format="flash" action="Pwr_Pnl_PM_Insert.cfm">
<cfformgroup type="hbox">
<cfformgroup type="horizontal">
     <cfselect queryPosition="below" label="Client:"
                  name="selectClient" query="Get_Client" value="ClientCode" 
                  display="ClientName" width="200" required="yes" message="Select Client Please!" onChange="#actionPopulateBuilding#">
     <option value="">Please select a Client</option>
     </cfselect>
	 
	 <cfselect queryPosition="below" disabled="true" label="Building:"
                  name="selectBuilding" query="Get_Building" value="ClientBuildingCode" 
                  display="Address" width="200" required="yes" message="Select Building Please!" onChange="#actionPopulateDevice#">
     <cfoutput query="Get_Building">
	 <option value="">Please select a Building</option>
    <option value="#ClientBuildingCode#|#ClientCode#">#Address#</option>
	</cfoutput></cfselect>
	 
	 <cfselect queryposition="below" disabled="true" label="Generator:" name="selectDevice" width="200" required="yes" message="Select Device Please!">
	<cfoutput query="Get_Device">
	<option value="">Please select a Generator</option>
    <option value="#ID1#|#ClientBuildingCode#">#GenID#</option>
	</cfoutput></cfselect>
	</cfformgroup>
 </cfformgroup>
 
<cfformitem type="html"><p></cfformitem>
 
<cfformitem type="html"><b>Section 1. Engine Lubricating System</b></cfformitem>
 
		<cfselect name="Sect1Item1" width="125" label="1. Check for leaks." >
			<option value="1">OK</option>
			<option value="2">Needs Attention</option>
			<option value="3">No Data</option>
		</cfselect>
 
<cfselect name="Sect1Item2" width="125" label="2. Check engine oil level & oil PSI.">
<option value="1">OK</option>
<option value="2">Needs Attention</option>
<option value="3">No Data</option>
</cfselect>
 
<cfselect name="oillevel" label="Oil Level:" width="150">
<option value="">Select Level</option>
<option value="1">Empty</option>
<option value="2">1/4</option>
<option value="3">1/2</option>
<option value="4">3/4</option>
<option value="5">Full</option>
</cfselect>
<cfinput type="text" name="PSI" label="Oil P.S.I.:" value="0" width="100">
 
<cfselect name="Sect1Item3" width="125" label="3. Change lubricating oil filter.">
<option value="1">OK</option>
<option value="2">Needs Attention</option>
<option value="3">No Data</option>
</cfselect>
 
<cfselect name="oilfilter" label="Oil Filter:" width="200">
 
</cfselect>
 
<cfselect name="Sect1Item4" width="125" label="4. Change engine oil and take oil sample.(CC2525)">
<option value="1">OK</option>
<option value="2">Needs Attention</option>
<option value="3">No Data</option>
</cfselect>
 
<cfselect name="Sect1Item5" width="125" label="5. Change hydraulic governor oil and check level.">
<option value="1">OK</option>
<option value="2">Needs Attention</option>
<option value="3">No Data</option>
</cfselect>
 
</cfform>
Start your free trial to view this solution
Question Stats
Zone: Web Development
Question Asked By: dblumenstetter
Solution Provided By: zadoc
Participating Experts: 1
Solution Grade: A
Views: 0
Translate:
Loading Advertisement...
04.28.2008 at 07:45AM PDT, ID: 21454470

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080236-EE-VQP-29 / EE_QW_2_20070628