Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Many-to-many, view form not displaying field 11 Jul 2016 13:00 #14204

Hello I have a problem :

I'm making a component for volunteers registration. The registration is mainly a form with the name and 2 fields : "banned areas" and "preferred areas" ( the volunteer can choose one ore more "banned areas" and on or more "preferred areas" from a drop-down list".

I have several tables :
- table "volunteers"
- table "areas"
- table "volunteer_N_bannedareas" (a pivot table between "volunteers" and "areas") for "banned areas"
- table "volunteer_N_preferredareas" (a pivot table between "volunteers" and "areas") for "preferred areas"

I can creaté the form "volunteer" with the "builder > pages > layout > item" form with the fields :
- name
- prefered areas : ( Type : N:m || Pivot table : volunteer_n_preferredareas || Value field : Title)
- banned areas : (Type : N:m || Pivot table : volunteer_n_bannedareas || Value field : Title

But when I "run in sandbox", the view does not display the "prefered areas" field but it displays the "banned areas" field,

what I'm doing wrong ?

Philippe
Attachments:

Please Log in or Create an account to join the conversation.

Many-to-many, view form not displaying field 11 Jul 2016 13:16 #14205

Try it with two different fieldnames (you now have 2 "areas")

Please Log in or Create an account to join the conversation.

Many-to-many, view form not displaying field 14 Jul 2016 22:15 #14252

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
This is a limitation at the moment. It is not possible in the builder, but you can edit the relations in your models constructors.

I should have a look, in this case. It is possible to add the feature.
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.086 seconds

Awards for the best Joomla app. This product is gonna win an award for this amazing job. Cook Self Service is the the best application from all over the Joomla universe ! It brings Joomla to a professional level really advanced for developers. It is a real fun to develop with it. The ACL part and security checks implementation are just... so much hours saved. I can now concentrate myself more on the design part and the creative works. Thank you so much. Guys I offer you all my congratulation ! Keep up the works because Joomla is needing it to increase the quality of extensions availables on the JED. I also learned a lot because I can see how to code at the proper place and I found all my answers reading the forum.
lack_hanson (JED)
          

Get Started