Você está na página 1de 3

1/28/2016

[HowTo] Setting CascadingDropdown Fields On A Single Table In A Submit Form | Fabrik

Login

Home

Forums

SearchForums

Wiki

Members

RecentPosts

Home Forums Fabrik2.x Hints,TipsandTricks

[HowTo]SettingCascadingDropdownFieldsOnASingleTable
InASubmitForm
cypherinfo
Member

Hello,

aspromisedinmythread:http://fabrikar.com/forums/showthread.php?t=11893Iwantnowtoshowtoallof
Fabrikusershowtopreparesomecascadingdropdownfieldsonasingletableinasubmissionformworking
onlyonthedemosite.
WeareusingtheSVN2158andtheNightlybuild:com_fabrik_2.0rc3_17082009.ziponaJoomla1.5.13
installation.
Theexamplehereisabouttheinsertingof:Country,RegionandCityinasubmissionform:
1)createaFabriktablepointingtoyourcountry_region_citytable
2)edittheformcreatedbyFabrikforthattableasfollow.Fortheelements:country,region,towneditthemas
follow:
Countryasdatabasejoinwiththecountry_region_citytablesettedinitanditsrelatedconnection,setthekeyand
labeloptiontocountryasintheattachedimage
Regionascascadingdropdownelementsettedasfollow:sameconnection,inthetablefieldselecttheFabriktable
(relatedtothecountry_region_citytable)IDandLabelfieldssettedtoregionasintheattachedfileandinthe
watchelementsectionsetthewatchelementandtheforeignkeytoCountryasintheattachedimage
Townascascadingdropdownelementsettedasfollow:sameconnection,inthetablefieldselecttheFabriktable
(relatedtothecountry_region_citytable)IDandLabelfieldssettedtotownasintheattachedimageandinthe
watchelementsectionsetthewatchelementandtheforeignkeytoRegionasintheattachedimage.
Andexampleofthisissetonthedemosite
Ifyoudon'tseetheCascadingdropdownelementinyourlistofelement,seethisthread
http://fabrikar.com/forums/index.php?threads/howto-setting-cascadingdropdown-fields-on-a-single-table-in-a-submit-form.12169/

1/4

1/28/2016

[HowTo] Setting CascadingDropdown Fields On A Single Table In A Submit Form | Fabrik

Byetheway,thiselementforthemomentworksonlyifthetableusethesameconnectionoftheJoomlasite
database.ItdoesnotworkinanotherDBconnection!!
IhopeofhavingbeenusefulforalloftheFabrikusers.

Cypherinfo.
AttachedFiles:
Country.JPG
Filesize:
View s:

83.1KB
865

region.JPG
Filesize:
View s:

88.2KB
789

tow n.JPG
Filesize:
View s:

86.6KB
734

Aug18,2009
2peoplelikethis.

zar
New Member

Proble m
Andwhathappenedwhenaregionisequalintwocountriesandthesecondcascadingshowusthetwocities?.
Doyouunderstandfriends?
tootherexamples,forexampleinaschoolyouhavegot:
1typeofstudies
2level
3nameoftheassignatures
thesecondcascadingwillshowallthenamesofthesamelevelbutofalltypesofstudies.
HowcanIdothat?,thanks
http://fabrikar.com/forums/index.php?threads/howto-setting-cascadingdropdown-fields-on-a-single-table-in-a-submit-form.12169/

2/4

1/28/2016

[HowTo] Setting CascadingDropdown Fields On A Single Table In A Submit Form | Fabrik

Jun23,2010

wael.salman
New Member

Icannotunde rstand
Letustakeaneasiersituationtomakeitcleartomeandmaybetoothers.
AtleastIamnotabletodothat.
ConsiderthatIhave"Region"dropdownelementwhichhas5items"a,b,c,d,e".
Clickingononeofthepreviousitemsinthedropdown,shouldcreateanautomaticnewelementanotherdrop
downelementletscallit"City",andwhichwillincludeanotheritemsaccordingtoselectingaorbor...

Cananyonetellmestepbystephowtodothatplease??Clearly
Jul12,2010

wael.salman
New Member

Hi
Yousaid:
createaFabriktablepointingtoyourcountry_region_citytable

Howtocreatetehcountry_region_citytabledoesthistablewillincludeallcountriesname??Howcanwedo
that??
Jul12,2010
(Youmustloginorsignuptoreplyhere.)

ShareThisPage
Tw eet

Recom m end Bethefirstofyourfriendstorecommendthis.

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

3/4

Você também pode gostar