[HowTo] Setting CascadingDropdown Fields on a Single Table in a Submit Form _ Fabrik

Embed Size (px)

Citation preview

  • 8/18/2019 [HowTo] Setting CascadingDropdown Fields on a Single Table in a Submit Form _ Fabrik

    1/3

    1/28/2016 [HowTo] Setting CascadingDropdown F ields On A Single Table In A Submit Form | Fabrik

    http://fabrikar.com/forums/index.php?threads/howto-setting-cascadingdropdown-fields-on-a-single-table-in-a-submit-form.12169/

    [HowTo] Setting CascadingDropdown Fields On A Single Table

    In A Submit Form

    Home   Forums   Wiki Members

    Home  »  Forums  »  Fabrik 2.x  »  Hints, Tips and Tricks

    cypherinfoMember

    Hello,

    as promised in my thread: http://fabrikar.com/forums/showthread.php?t=11893  I want now to show to all of

    Fabrik users how to prepare some cascading dropdown fields on a single table in a submission form - working

    only on the demo site.

    We are using the SVN 2158 and the Nightlybuild: com_fabrik_2.0rc3_17-08-2009.zip   on a Joomla 1.5.13

    installation.

    The example here is about the inserting of: Country, Region and City in a submission form:

    1) create a Fabrik table pointing to your country_region_city table;

    2) edit the form created by Fabrik for that table as follow. For the elements: country, region, town edit them as

    follow:

    Country as databasejoin with the country_region_city table setted in it and its related connection, set the key and

    label option to country as in the attached image;

    Region as cascadingdropdown element setted as follow: same connection, in the table field select the Fabrik table

    (related to the country_region_city table); ID and Label fields setted to region as in the attached file and in the

    watch element section set the watch element and the foreign key to Country as in the attached image;

    Town as cascadingdropdown element setted as follow: same connection, in the table field select the Fabrik table

    (related to the country_region_city table); ID and Label fields setted to town as in the attached image and in the

    watch element section set the watch element and the foreign key to Region as in the attached image.

    And example of this is set on the demo site

    If you don't see the Cascading dropdown element in your list of element, see this thread

    Log in

    Search Forums Recent Posts

    http://fabrikar.com/forums/showthread.php?t=11893http://fabrikar.com/forums/showthread.php?t=11893http://fabrikar.com/forums/index.php?members/cypherinfo.19941/http://fabrikar.com/forums/index.php?members/cypherinfo.19941/http://fabrikar.com/http://fabrikar.com/forums/index.phphttp://fabrikar.com/forums/index.php#fabrik-2-x.74http://fabrikar.com/forums/index.php?forums/hints-tips-and-tricks.93/http://fabrikar.com/forums/index.php?misc/quick-navigation-menu&selected=node-93http://fabrikar.com/forums/index.php?search/&type=posthttp://fabrikar.com/forums/index.php?find-new/postshttp://fabrikar.com/http://fabrikar.com/forums/index.phphttp://fabrikar.com/forums/index.php?wiki/http://fabrikar.com/forums/index.php?members/http://fabrikar.com/http://fabrikar.com/http://fabrikar.com/forums/index.php?login/http://fabrikar.com/forums/index.php?find-new/postshttp://fabrikar.com/forums/index.php?search/&type=posthttp://fabrikar.com/forums/index.php?login/http://fabrikar.com/forums/showthread.php?t=8416http://fabrikar.com/forums/showthread.php?t=12055http://fabrikar.com/nightlies/com_fabrik_2.0rc3_17-08-2009.ziphttp://fabrikar.com/forums/showthread.php?t=11893http://fabrikar.com/forums/index.php?members/cypherinfo.19941/http://fabrikar.com/forums/index.php?members/cypherinfo.19941/http://fabrikar.com/forums/index.php?forums/hints-tips-and-tricks.93/http://fabrikar.com/forums/index.php#fabrik-2-x.74http://fabrikar.com/forums/index.phphttp://fabrikar.com/http://fabrikar.com/forums/index.php?misc/quick-navigation-menu&selected=node-93http://fabrikar.com/forums/index.php?members/http://fabrikar.com/forums/index.php?wiki/http://fabrikar.com/forums/index.phphttp://fabrikar.com/http://fabrikar.com/

  • 8/18/2019 [HowTo] Setting CascadingDropdown Fields on a Single Table in a Submit Form _ Fabrik

    2/3

    1/28/2016 [HowTo] Setting CascadingDropdown F ields On A Single Table In A Submit Form | Fabrik

    http://fabrikar.com/forums/index.php?threads/howto-setting-cascadingdropdown-fields-on-a-single-table-in-a-submit-form.12169/

    Aug 18, 2009

    Bye the way, this element for the moment works only if the table use the same connection of the Joomla site

    database. It does not work in another DB connection!!

    I hope of having been useful for all of the Fabrik users.

    Cypherinfo.

    Attached Files:

    File size:   83.1 KB

    View s:   865

    Country.JPG

    File size:   88.2 KB

    View s:   789

    region.JPG

    File size:   86.6 KB

    View s:   734

    tow n.JPG

    2 people like this.

    za rNew Member

    Proble m

    And what happened when a region is equal in two countries and the second cascading show us the two cities?.

    Do you understand friends?

    to other examples, for example in a school you have got:

    1-type of studies

    2-level

    3-name of the assignatures

    the second cascading will show all the names of the same level but of all types of studies.

    How can I do that?, thanks

    http://fabrikar.com/forums/index.php?members/zar.26170/http://fabrikar.com/forums/index.php?members/zar.26170/http://fabrikar.com/forums/index.php?attachments/town-jpg.1829/http://fabrikar.com/forums/index.php?attachments/town-jpg.1829/http://fabrikar.com/forums/index.php?attachments/region-jpg.1828/http://fabrikar.com/forums/index.php?attachments/region-jpg.1828/http://fabrikar.com/forums/index.php?attachments/country-jpg.1827/http://fabrikar.com/forums/index.php?attachments/country-jpg.1827/http://fabrikar.com/forums/index.php?threads/howto-setting-cascadingdropdown-fields-on-a-single-table-in-a-submit-form.12169/

  • 8/18/2019 [HowTo] Setting CascadingDropdown Fields on a Single Table in a Submit Form _ Fabrik

    3/3

    1/28/2016 [HowTo] Setting CascadingDropdown F ields On A Single Table In A Submit Form | Fabrik

    http://fabrikar.com/forums/index.php?threads/howto-setting-cascadingdropdown-fields-on-a-single-table-in-a-submit-form.12169/

    (You must log in or sign up to reply here

    Tw eet

    Share This Page

    Jun 23, 2010

     wae l.salmanNew Member

    Jul 12, 2010

    I cannot unde rstand

    Let us take an easier situation to make it clear to me and maybe to others.

    At least I am not able to do that.

    Consider that I have "Region" drop down element which has 5 items " a, b, c, d, e".

    Clicking on one of the previous items in the dropdown, should create an automatic new element - another drop

    down element - lets call it "City", and which will include another items according to selecting a or b or ...

    Can any one tell me step by step how to do that please?? Clearly

     wae l.salmanNew Member

    Jul 12, 2010

    Hi

    You said:

    create a Fabrik table pointing to your country_region_city table;

    How to create teh country_region_city table - does this table will include all countries name?? How can we do

    that ??

    Log in

    Useful Links

    Be the first of your friends to recommend this.Recommend

    http://fabrikar.com/forums/index.php?login/http://fabrikar.com/forums/index.php?threads/howto-setting-cascadingdropdown-fields-on-a-single-table-in-a-submit-form.12169/#post-93974http://fabrikar.com/forums/index.php?members/wael-salman.26706/http://fabrikar.com/forums/index.php?members/wael-salman.26706/http://fabrikar.com/forums/index.php?threads/howto-setting-cascadingdropdown-fields-on-a-single-table-in-a-submit-form.12169/#post-93973http://fabrikar.com/forums/index.php?members/wael-salman.26706/http://fabrikar.com/forums/index.php?members/wael-salman.26706/http://fabrikar.com/forums/index.php?threads/howto-setting-cascadingdropdown-fields-on-a-single-table-in-a-submit-form.12169/#post-92697https://twitter.com/intent/tweet?original_referer=http%3A%2F%2Ffabrikar.com%2Fforums%2Findex.php%3Fthreads%2Fhowto-setting-cascadingdropdown-fields-on-a-single-table-in-a-submit-form.12169%2F&ref_src=twsrc%5Etfw&text=%5BHowTo%5D%20Setting%20CascadingDropdown%20Fields%20On%20A%20Single%20Table%20In%20A%20Submit%20Form&tw_p=tweetbutton&url=http%3A%2F%2Ffabrikar.com%2Fforums%2Findex.php%3Fthreads%2Fhowto-setting-cascadingdropdown-fields-on-a-single-table-in-a-submit-form.12169%2Fhttp://fabrikar.com/forums/index.php?login/