This was just what I was thinking for this solution and I would like to know if there's a better approach I could take?
I'm creating a simple desktop contacts application.
Users have the ability to enter in peoples contact information. I've add a combo box containing city name. The user has the ability to add city to this list and then when entering in a new contact they are able to just select the city form the drop down.
Now I'm trying to add a default city feature so if someone is constantly adding contacts from the same city when they add a new contact the combo box would show the default city automatically. In the settings mode user can view the all cities via a datagrid.
I'm trying to figure out the best way to do this. I was think I could add a default_city field to the database when user selects a city and indicates it as the desired default city it would add the info to the database. Then i could just run a separate query to input the default city into the combo box's prompt.
I know I could indicate the default city by just adding another column to the dg but I was wondering if there's a way to indicate it as being the default with a icon, or bold text instead?
Thanks for the advice!
You'll want to use item renderers to display custom info in your data grid. There's a good tutorial here:
http://www.switchonthecode.com/tutorials/flex-using-item-renderers
Related
I am working on an add-on for the new google sheets and seem to have hit a problem. I am dynamically generating x number of checkboxes for a user to select. When the user selects some boxes and submits, I am submitting this data to a server handler. However, I can't find a way to get out which checkboxes were selected as I don't know their names. The names are dynamically generated and represent of the ID of the content to retrieve for the user.
Is there any way to find out which checkboxes have been checked on the server side when the name of the checkboxes isn't known?
When you are setting the element's name, set the id to the same as the name and ensure each checkBox has a click handler. Then use:
var source = e.parameter.source;
which returns the id of the clicked element.
The examples given by Srik and Serge insas in response to this question should hopefully help you. There are a few similar posts. Just search for "e.parameter.source"
You'll also find info in the docs here.
I am building cascading country, state and city list cascading combo. I need the below functionalities
Need to provide search functionality with dropdown and i am using this for that functionality.
Next, I need to provide user either to choose from existing dropdown values or enter new one. This can be done for both country and state when entering new city.
So my actual question is, is there any free plugin available for this functionality.
If not i have this implementation idea. I will add a option called NEW to dropdown and when user choose that, the text box will be shown for user input. And on submit i can take the value from dropdown if the textbox value is empty.
Any ideas for this implementation with MVC4
you can use this. This provides both the search and add new option functionality
SexyCombo
Perhaps you can help me. I am writing a windows application in VB.Net.
My client wants an intelligent combo box with type ahead capability. For example let’s I have a list of companies. I want to find my company “MetaPro”. With the Microsoft combo box if you type in the first letter of the name it will bring up first one starting with that letter. For example I type in “M” it will bring up “Mass. Dept. of Ed.”, I then type in “E” I get the first one starting with “E” maybe “E, G & G” where I want the first one starting with “ME”.
Perhaps there is an open source solution to this or I could create a custom control. But I don't know how. Any help or guidence would be appreciated.
In design view, change the AutoCompleteSource to ListItems and AutoCompleteMode to SuggestAppend for the comboBox.
I need to allow the user to select multiple entries from the iPhone address book before proceeding to the next action.
Currently if I use the ABPeopleNavigationController, it only allows me to pick one entry at a time. Is there any way to allow multiple selections i.e. add a checkmark beside all the names I want to select before clicking on 'done' button
This is not possible with the standard ABPeopleNavigationController.
You'll have to use a UITableView to provide the list of people to select and enable multiple selection - basically you have to do it all yourself. It isn't that hard. Just write a custom table data source on your list of people.
I activated restrict_owner to change the textfield to a dropdown when creating a new ticket. Is there a way to change the contents of that dropdown from user id's to user names?
The reason is, that all user id's that we use to log in are somewhat cryptic (something like xyz01, xyz02 and so on). If that list could show the associated user names, that you can enter in the prefs, that would be perfect.
Regards,
Sascha
To get around that, I installed the Auto-Complete Users Plugin. This will allow you to more easily select a user by account name, real name, or email address, plus it seems to have better performance than using restrict_owner.
I'm not sure if the plugin covers all of the same form fields as the restrict_owner option. If there's one that it misses, it shouldn't be too difficult to modify the code and add another field.