Flex :: Data Tip In Combo Box?
Nov 24, 2010i use combo box to display a list of items. The box'x length is smaller whereas the items length is large. So if i mouse over it i need to display the whole item as a data tip
View 2 Repliesi use combo box to display a list of items. The box'x length is smaller whereas the items length is large. So if i mouse over it i need to display the whole item as a data tip
View 2 Replieshere is the xml data :
<root>
<recommendedMaterials>
<value label="Aluminium" data="0" />
[Code].....
The problem is that the whole xml gets populated. I just want the labels. :(
i am trying to put data in to combo box from php page using http service .there are 2 data records in the php page but instead of displaying data it displays [object object] [object object] in the combo box list
here is the mxml code
@namespace s
"library://ns.adobe.com/flex/spark"; @namespace mx
"library://ns.adobe.com/flex/mx";
[Code]....
I need to pass items through script. or taking from xml
View 1 RepliesI am going nuts with this combo box! I have a flash form with 3 textboxes a combo box, and a submit button. When I hit submit, I post to an aspx page. My 3 textboxes are inserting into my db fine, but I have not been able to retrieve the value of the combo box.I have a change handler on the combo box called "comboDropDown". I have 3 labels, and no data. In the ActionScript for my submit button I have:
on (release) {
function comboDropDown()
{
var vchUser1 = comboBox.selectedItem;[code]............
My XML looks as follows [code]In my folder I have the XML as shown. There are 6 images in the folder and the names are given as urls. I have a combo box on stage. Its name myCB. There is an image holder imgHolder_mc.I have two tasks.Populate the combo box with the imageNames.Based on the imageName selected the image in the image holder must change. The image must be retrieved using the image url.[code]how I can bind this to my combo box and select images according to the selection I made in combo box.
View 1 RepliesI'm in the process of expanding an admin area for a website (coded with PHP and MySQL) and would like to get my client list into a flash combo box. the main columns I would need would be the account and the company name... In a regular example would be
<select name='client'>
<option value='2460'>Client 1</option>
<option value='2461'>Client 2</option>
</select>
If I could get this I should be away...
ive managed to get info from a mysql database into flash in a combo box. i have a text field and i want it to load in the corresponding data when a new title is selected in the combo box.
View 1 RepliesI would like load values from mySQL to select from in a combobox. I would love to do this the most simple way w/o php, but that
View 3 RepliesI use several controls with combo boxes and data grids, which I fill using a HTTPService which returns some XML. However in the XML there are some telephone numbers starting with a plus sign (ie. +123456). However in the combo boxes and the data grids the plus sign doesn't show (so it would display as 12345646).
It doesn't matter if I use CDATA or not. When I change the value I saw the following:
[Code]...
I'm trying to insert some data into my DB from two Combo Boxes in Flash. I'm not quite sure how to go about it. I have no idea how to give the combo box a 'var' value like we do for a regular textfield. I have other pages where I have regular text fields that work fine as I can specify the 'var' value in the properties but not for combo boxes. I'm new to actionscript so please bear with me.
Action Script for my button:
Code:
on (press) {
loadVariablesNum
("http://localhost/Test/acadForm.asp",0, "post");
[code]....
I have a combobox and when selected i would like to show the data in an input text box. The text box appears on another frame and i was advised to make the combo box invisible after i used it and retain its presence on the timeline. I thought i would be able to duplicate the combobox i needed and place it on the frame with the input text box, but this didnt work, neither did duplicating the actions. Been trying for the last couple of hours and have hit a brick wall, hoping someone can point me in the general direction.
View 1 RepliesIm a bit of a novice with flash and have become stuck while trying to achieve what should be a simple task. I am trying to read in XML data and display the lables in a combo box and then display the corresponding data in a text field below. So that when for example "Vintage Red Wine" is selected in the combo box, the description for that wine will then be shown in the textfield below.Most of the code is functional. The combo box displays the information i want. The only thing that doesnt want to work is the text field which should show the wine decriptions.
Here is my XML data:
<?xml version="1.0" encoding="utf-8"?>
<Wines>
[code].....
It might be something simple I'm doing wrong.I have an array populated by XML in a function by doing the following inside the function:
first_special.addItem({label: xmlMenuFile.item.headers[i],data:
xmlMenuFile.item.descriptions[i],data2: xmlMenuFile.item.hints[i]});
The problem I'm having is trying to figure out a way so that the "data2" will fill the text field "hint_txt" on ROLL_OVER of that items name in the list.I've tried to placing an event listener into the function that populates the combo box .this populates the combo box label and data with the Loaded XML File. This works
function changeHandler(ev:Event):void
{
menuText_mc.heading1_txt.text = ev.currentTarget.selectedItem.label;[code]......
I have two combo boxes. The first combo box's data is added through an XMLConnector object, the second combo box, I would like to populate through an on (change) event in the first combo box. The items in the second combo box would relate to the selection made in the first combo box.
I have attempted the following within the Actions for the first combo box:
on(change) {
switch(this.value) {
case "value1":
comboBox2.addItem({Label:"Label",Data:"Data"});
break;
} // end switch
} // end event
which is not working.
should an event be dispatched by comboBox1 and a listener be attached to comboBox2? I can't find any examples of this on the internet.. but i might be using the wrong search terms.
I want to add a ComboBox to a DataGrid. So far, the only way I've found to do it is like this:
<mx:DataGridColumn headerText="Header" dataField="src" >
<mx:itemRenderer>
<mx:Component>[code]..........
The problem is the initial value of the ComboBox isn't set correctly. If I hard code the choices, then the initial value is set correctly. I can't hard code the choices.
I am trying to get the drop down list of combobox by using a php file. That php file returns an xml string which has been used as data provider for combobox.I followed this thread too but in vain.DetailsI have set the creationComplete attribute of mx:Application to init(). In the init() function i have sent the following HTTPService
<mx:HTTPService id="interfaces" url="interfaces.php" resultFormat="e4x" method="POST">
</mx:HTTPService>
Combo Box:
[code].....
I did the following code. I know it's horribly written, but it's only a box with two combo boxes and a textinput bellow being added to a VBox, whose id is "garage". The problem, is that, however I do it, when I open the combo box the program slows down so much it's unbearable to use it any longer. I'd like to know if you have any idea on what's behind the ComboBox and the possible causes for this "slowing down" when I open the ComboBox..
[Code]...
How can I give value to combo box entries. For example, in combo box, I have Array Collection and inside it, I am adding strings like mx:String. I want to give it different value than the text.
View 2 RepliesCombo boxes in Flex are really awkward to use if you have objects in them addressed by properties, in my experience. In Flex 3.5 we had a working extension to the combo box that would populate a selectedValue property (and allow changing the selectedIndex by same).
Here's a quick example of what using one of these looks like:
<c:ValueComboBox valueField="country_code">
<mx:Script>
<![CDATA[
public function get selectedCountry(): String {
[code]...
However, this has stopped working in Flex 4. What's happening is that our existing component drove its changes by overriding the set selectedIndex() function, which is no longer called when the combo box's selected index changes (wtf?).Is there a working value-aware combobox implementation for Flex 4? [URL]
can you please tell me how to have multiple selection in flex combo box component
View 1 RepliesIn my Combo box i have to shows team names condition based . So i will try like
dataProvider="{usersXML.users.user.(id=10).name}" but shows some errors . but if i tried
dataProvider="{usersXML.users.user.name}" display all name . It's working .
How can i condition based to display the list . In combobox . Plz refer me . is it possiable to check array of id on the dataProvider ?
Background: I am doing some UI work where I allow the user to programatically add and resize controls on a canvas. Problem: When resizing a combo box through AS the dropdown stays at the same width as the first time it drops down. So user places combo box on the page, clicks the down arrow, sees the options, selects an option or clicks down arrow again to close, resizes the width of the drop down, clicks the down arrow. Now drop down is the same width as original. Have tried simple things like setting the width of the dropdown specifically and invalidating display list but it still doesn't work.
View 1 RepliesA combo box as an item renderer for a data cell in a Flex Datagrid has been demostrated at various blogs. What if that combo box has to have an external dataprovider that has to be set at the time of converting the renderer class to a ClassFactory.
View 1 RepliesI've successfully created a class which extends List to create a List with different coloured backgrounds depending on a colour property of the ArrayCollection used as a dataProvider. Technique is described here:
[URL]
I'm now trying to do the same thing in a ComboBox. I know it's possible with either a classFactory or extending the ComboBox but I really can't work out how - there is so little information on things like the classFactory around.
I have a combo box in my application. I also have a variable called "Status". I want the combo box to be enabled only when the value of the Status variable is 5 or 6. Otherwise, I should not be able to change the value in the combo box. It should have the previous value only.. I had written a click event to disable the combo box. But even though the combo box is disabled, I get the drop down list of the combo box, and If I select some othe value in the drop down,it changes..Only after that it gets disabled.
[Code]...
The below code show the labels from previously selected list?
Steps to reproduce:
Click on List AB Open the list but don't select / click any item Now click on List CD Open the list again and you see A, B as labels instead of C,D but if you click on any item then everything comes properly
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
[Code].....
I'm starting a Flex app on a pretty big reporting engine and want to know how best to connect to a Postgres Database. I'd like to create a REST API architecture so I can use the service for more than just the Flex app(mobile possibly).These are my options I've found:
Datatype: either XML, JSON or AMF
Flex Service: HTTPService or WebService
Server(using PHP): ZendAMF, custom json_encode implementation, Zend_Rest_Server
I've got my views all mapped out, and the api functions designed. Basically what I need is advice on which Flex / back-end service combo to provide.
Environment: Flex/As3/Cairgorm/composite component.I have two comboboxes and two datagrids such that the selection of combobox 1, inserts data into combobox two and the fist datagrid.The selection of combobox 2 inserts data into datagrid 2.I have setup the change event so that the user selection on each of the combo boxes do the right thing. The problem is that on the initial load of the comboboxes, the change event does not fire and subsequent synchronization data loading does not happen.Is there an event for getting the itemselected (1st item) after the combobox is initialized?
View 1 RepliesHow to make list items as tool tips for combo box items?
View 2 Replies