Multiple drop down menus - google-fusion-tables

How would I create a custom map that has multiple drop down menus? In essence, the model I'm after is this map:
http://www.lmcc.net/about/culture_map
I want to separate places into different categories and have them be accessible through different drop down menus. I do also like the feature of the check box showing all the places in that category.
Is this something I would have to create through Fusion tables? Or is there another way? Any sort of help on how to create a map like this would be great
Thanks!

Related

Vaadin one to many Grid binding and expanding child entity

There is the Customer entity which has a one to many relationship to entity Address,so there is a List<Address> getAddress in Customer.Entity Address has three columns,Street,City and Country.
So for instance to get the address details for one customer with two addresses you do
customer.getAddress.get(0).getStreet
customer.getAddress.get(0).getCity
customer.getAddress.get(0).getCountry
For the second address you do
customer.getAddress.get(1).getStreet
customer.getAddress.get(1).getCity
customer.getAddress.get(1).getCountry
Is there a way to display one row for the Customer details and display a sub-grid or (just dump the Address object's contents) that
expands the Address entity and shows the two address rows with the 3 columns?
In essence show the parent and expand the child.I was looking at TreeGrid but it requires a single type of bean like TreeGrid and I don't know how Address would fill into the picture.
Does the basic Grid have a feature like that? I see that you can add different types of columns with addComponentColumn,but is that only for UI elements,like adding buttons etc ?
you could use a LitRenderer for that, but displaying this much data in a grid would extend the height of a row a lot.
With addComponentColumn you can add any Component you want, like a single Button, Image or a more complex Layout that you created.
Like Tatu Lund suggested you can use the ItemDetailsRenderer. There you can implement a LitRenderer or a ComponentRenderer. Then you can display all complex information about the customer.

How can make a group of data from 2 tables using a tcxGrid in Delphi?

I'm trying to implement a functionality using TcxGrid in Delphi RAD STUDIO:
I have 2 tables, CARS BRANDS and MODELS, I want to show all the Car Brands and Models (on the grid), and let the user pick any Cars brands (BMW, Mercedez, Ferrari) (previouslly created on the CAR BRANDS table) and then pick any of the Models for each brand. For instance, User picks BMW and decides to pick for that brand the models 1A, 2B, 3C (previouslly created on the MODELS table). Then, picks Ferrari and the models 1A, 3C, 4D for that brand. Finally he clicks "SAVE" and it will create a third table: CAR BRANDS/MODELS with the information:
(BMW, 1A);(BMW,2B);(BMW,3C);(FERRARI,1A);(FERRARI, 3C);(FERRARI, 4D)
I'm looking for some way to implement this, thank you in advice!
Your wish come true by simple approach. You need use usual master/detail grids. In the top of your form you need to place master grid with data from table CAR BRANDS, and in the bottom part of your form you need place the secong grid(detail) with data from MODELS.
In detail grid you need make one field with checkbox for selecting models.
These two forms will be works by following way: when user clicks on row in master grid, then you must update detail grid and show for user all models for selected car brand.
If you use devexpress you can find interesting examples in demo for VCL.

Single form to create multiple SKU's from user options

This is complicated and difficult to explain, but here it goes. I have created a db that works just fine. It is a time saver, but not efficient for the user. I have a form for the merchandise where the user selects a paper type from a combobox. They are presented with two choices. They must also select a print size from another combobox. They are presented with 5 choices. I have VBA code that creates a SKU number based on these selections.
An art piece can use both paper types and be available in all 5 sizes. What I am trying to figure out is how I can offer all the possible choices on this form, allow the user to select options for that piece. As an example, the user chooses both paper types and all print sizes. This would create 10 SKU numbers for one art piece. Below is a copy of the form in it's current view:
Is this possible to do from one form? If so, how can this be accomplished in the most efficient way? I feel that it can. In VBA, this would be an IF nest nightmare, especially when concatenating the SKU variables. Either Select statements or another method that I am unaware of, could be the solution.
Thanks in advance for any and all suggestions and assistance.
EDIT: I hope this helps clarify. I would prefer to use this form
to complete the task. The checkboxes are not in an option group so they could all be checked if the user requires it. For the purposes of this question, let's assume the user has checked all the boxes. This would equal 10 total combinations.
I run this sub to generate a SKU based on the paper type and the print size:
Private Function UpdateArtwork()
Me.MerchandiseSKU = Me.cboArtworkID_A5A.Column(5) & _
Me.cboPrintTypeID_A5A.Column(2) & Me.cboPaperTypeID_A5A.Column(0) & _
Format(Me.cboPrintSizeID_A5A.Column(0), "00")
Call UpdateArtworkPic
End Function
I am trying to figure out how to write the code for the new form that allows all 10 SKU numbers to be generated and create 10 new records for Artwork_ID (Artwork table).
I think that the best way of doing this would be to create a new table, called tblArtworkSKU, which has the following fields:
ArtworkSKU_ID - Autonumber, primary key;
Artwork_ID - number, foreign key from the Artwork table;
PrintSize_ID - foreign key from the PrintSize table;
PrintType_ID - foreign key from the PrintType table;
ArtworkSKU - text.
You would then create a small continuous form based on this table, with PrintSize_ID and PrintType_ID selected through combo boxes. When you place this form onto the main form that you have, Access should automatically let you join on Artwork_ID to create a one-to-many relationship.
You could then use the AfterUpdate events of each combo box to create the SKU.
Regards,

Rails: Create a drop down list (within a form) where it's possible to select more than one value

(I've made up the example below as it's clearer than going through my specific case.)
Suppose I have a form for a User, and that the underlying User table has a personality_traits field; an array of the user's personality traits. Is there a standard way in rails to create a drop-down list so that the user can pick any number of a selection of attributes (e.g., "easy-going", "fun-loving", "quick-tempered"), and have these ultimately feed into the personality_traits field as an array? If not, does anyone know of a particularly good method?
bootstrap multiselect will do what you're looking for

Rails model to represent multiple fields

I'm developing a rails project where I have one data model with multiple fields that are collection selects. I'd like to create another model to represent all of these collection select fields. So, for instance, my main data model has three collection select fields -- one for county, one for category, and one for classification. I could separate these into three separate data models, but that seems redundant since they all share the same characteristics. They have a type and a value, like a county is a county and it has a value of let's say Sonoma, just as category has a type of category and a value of let's say Winery. If you've ever used Drupal, I'm basically looking for the behavior of the taxonomy functionality.
So you see my dilemma: I need to separate these fields into three separate fields but they have very similar data structures. Any suggestions would be greatly appreciated.
This is a perfect case for single-table inheritance. Your problem is screaming for it.

Resources