Dropdown dependents agile toolkit - atk4

Hello friends a pleasure to be around here, I'm new to this framework and I have a few doubts about how to make dependent dropdown, for example, I have a list of countries and select a country to show me their states hope I can help from already thank you very much.

Here is a demo of what you're looking for:
http://demo39.agiletoolkit.org/demo.html?t=20

Could it be that above example (http://demo39.agiletoolkit.org/demo.html?t=20)
only works when the arrays have numbers for their dropdown values? ie:
$country_list=array(1=>'Country1', 2=>'Country2')
$state_list=array(1=>array('st1','st2'),2=>array('st3')
night it be the demo will not work when using:
$country_list=array('COUNTRY1'=>'Country1','COUNTRY2'=>'Country2')
$state_list=array('COUNTRY1'=>array('ST1'=>'st1','ST2'=>'st2'),'COUNTRY2'=>array('ST3'=>'st3')
with the second setup I get an error at form submit time saying:
Value 'ST3' is not one of the offered values
or am I doing something else wrong? should I (not) use stickyGET for instance?

Related

Dotvvm multiselect business pack filtering backspace doesn't work

I Used component from Business pack called MultiSelect viz code:
<bp:MultiSelect DataSource="{value: UserRoleGroupNames}" SelectedValues="{value: UserDetailDTO.UserRoleGroupNames}" Placeholder="Vyberte uživatelské role" class="form-control"/>
Everything looks good expect filtering. I cant delete letters with backspace key.
Thank you! I've been able to repro this issue. It will be fixed in next release.

Dynamic exposed filters in Drupal 7

I've got a question in drupal. I have two filters. The values of the 2nd filter depends on what value was chosen in the first filter.
Example.
First filter values : Lakers,Clippers
Second filter values : if Lakers was chosen = KOBE,GASOL
if Clippers was chosen = PAUL,GRIFFIN .
Is there any module that supports this? Or do I have to code this? If I do is there any reference or guide that I could read and follow?
THANKS!
Yes there is
Drupal has a module called hierarchical select.
check this out
https://drupal.org/project/hierarchical_select.
Hope this helps you.
Don't use hierachical select. It is chock full of bugs and since the maintainer went to work for Acquia, he no longer pays any attention to it. You'll have to write some code to make this work using contextual filters.

Implementing basic next/previous picture

I'm trying to convert the Adjuster example mentioned here: http://agiletoolkit.org/learn/understand/view/interactive
into a View that is able to show me the next/previous picture of a list of given images.
I guess the number in the example could be an index into an array of pictures.
I'm just not sure how to provide the list of pictures, when all the code is put in init() for the View, so no way to give it the picturelist before that...
Should I use memorize/recall for this list also to prevent it getting lost upon reload ?
is there another example that might help me?
I think you what you are doing can be much easier done with a classic JavaScript Lightbox script. You would supply it list of images and it would show one full-screen.
If not, you can use this:
https://gist.github.com/romaninsh/7217119
This will give you slides similar to the ones on http://agiletech.ie/
Be advised that this code is a little old.

How to display dynamic marker label info from database

For the past month or so I have been trying to solve this problem. I checked the website extensively, including all tutorials I could find, and even bought a book. I previously posted but have had no luck. Hopefully I have more info to get some help.
Basically I have a map in my FileMaker database. Everything works fine, except for one thing I would like to change. When I roll over each marker I would like to see the label show the customers name, instead of the static "Marker 1", "Marker 2", etc.
I included a link to dropbox that has the html, the MarkersArray custom function and hopefully all the info that's passed to the Html that may be needed. Through much trial and terror, I can't figure out how to make it happen. Any help or guidance would be greatly appreciated.
Thanks
Steve
https://dl.dropboxusercontent.com/u/71328624/GoogleMapsDocs/html.txt
https://dl.dropboxusercontent.com/u/71328624/GoogleMapsDocs/ss1geo.png
instantiate a variable that calculates the company name inside of your for loop. replace "Marker" +i with the variable.

Apple Maps - Find destination/location - How to?

I'm still a noobie to app making, and i've been trying to read some of the documentary for the MapKit, but im still clueless on how to do this.
I have a textfield on TabBar2, and Apple Map on TabBar1.
How do i make the textfield on TabBar2, searchable for destinations like adresses ?
and then show the found destination, on the map on TabBar1 ?
I hope this made some sense.
Thanks in advance
One way to do it is to use MKLocalSearchClass which searches for key words and can be tricked to look for addresses as well. You need to incorporate MKLocalSearchHandler in your class in order to produce the results. You can then add the results in a map view. Apple has a sample code which works basically the same way. It creates a search based on keywords and shows the location of those keywords nearby the users location. For example coffee or movie or etc. the code can be changed to look for a address or anything else you want. Any how here is the link to the sample code, hope it guides you to the right direction.
Map Search Sample Code

Resources