Advertisement

07.24.2008 at 05:47AM PDT, ID: 23591825
[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!

9.9

Flex 3 / Actionscript How do I populate employee record form when datagrid element is selected?

Asked by Anthony_Harris in Adobe Flex

Tags:

I am redesigning a homegrown ERP/cost management system based in Access to run in MySQL with a Flex designed front end. My question is this: I have a tab based interface with sub-tabs. One is "HR Functions." I used the application generator to create a datagrid that displays employeeID, last name, and first name from the employee table.  I have several other tabs in the HR section such as an employee information form, work history, assignment information, etc, that pull from 3 different tables. I want to use the if(dataGrid.selectedItem) statement to control what is displayed throughout the HR section. For instance, if I find my employee id and highlight it in the datagrid, I want the employee informatino form to populate with all of my information in the employee info tab. Any help on this is greatly appreciated.Start Free Trial
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:
<mx:Canvas label="Tabs" width="100%" height="100%">
						<mx:TabNavigator x="0" y="0" width="1023" height="683">
							<mx:Canvas label="Employee Information" width="100%" height="100%">
								<mx:Panel x="10" y="0" width="827" height="273" layout="absolute" title="Employee Information" id="empinfoform0" borderColor="#212B8E">
									<mx:Image x="0" y="0" width="80" height="79"/>
								</mx:Panel>
							</mx:Canvas>
							<mx:Canvas label="Employee Chooser" width="100%" height="100%">
								<mx:Panel width="470" height="381" layout="absolute" id="empsearchbox0" title="Select an Employee" y="10" x="10" borderColor="#212B8E">
									<comps:ShortEmps id="ShortEmps1" label="Short Emps" x="27.5" y="35"/>
								</mx:Panel>
							</mx:Canvas>
							<mx:Canvas label="Contract Information" width="100%" height="100%">
								<mx:Panel x="10" y="10" width="349" height="203" layout="absolute" title="Contract Information" id="contractPanel" borderColor="#212B8E">
									<mx:Label x="10" y="10" text="Current Project" id="curproj"/>
									<mx:Label x="10" y="36" text="Shift" id="shiftlbl"/>
									<mx:Label x="10" y="62" text="Status" id="statuslbl"/>
									<mx:Label x="15" y="88" text="Craft" id="craftlbl"/>
									<mx:ComboBox x="126" y="8"></mx:ComboBox>
									<mx:ComboBox x="126" y="86"></mx:ComboBox>
									<mx:Label x="15" y="114" text="Project Wage" id="wagelbl"/>
									<mx:Label x="15" y="135" text="Per Diem" id="perdiemlbl"/>
									<mx:TextInput x="126" y="112"/>
									<mx:TextInput x="126" y="133"/>
									<mx:RadioButtonGroup id="radiogroup1"/>
								</mx:Panel>
							</mx:Canvas>
							<mx:Canvas label="Employment History" width="100%" height="100%">
								<mx:Panel x="10" y="10" width="476" height="272" layout="absolute" borderColor="#212B8E" id="emphistpane" title="Employment History">
									<mx:DataGrid x="10" y="0" height="222" width="427">
										<mx:columns>
											<mx:DataGridColumn headerText="Year" dataField="col1"/>
											<mx:DataGridColumn headerText="Proejct" dataField="col2"/>
											
										</mx:columns>
									</mx:DataGrid>
								</mx:Panel>
							</mx:Canvas>
						</mx:TabNavigator>
[+][-]07.24.2008 at 11:03PM PDT, ID: 22086262

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Adobe Flex
Tags: Actionscript, Adobe Flex MXML, PHP, MySQLd
Sign Up Now!
Solution Provided By: hobbit72
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628