Multipel-Selection

The recommended method of customizing your AppGini-generated application is through hooks. But sometimes you might need to add functionality not accessible through hooks. You can discuss this here.
Post Reply
User avatar
dilitimor
Veteran Member
Posts: 31
Joined: 2013-01-10 02:45
Location: Jakarta, Indonesia
Contact:

Multipel-Selection

Post by dilitimor » 2013-01-10 03:09

How can I generate multiple selection from look-up field

User avatar
a.gneady
Site Admin
Posts: 1021
Joined: 2012-09-27 14:46
Contact:

Re: Multipel-Selection

Post by a.gneady » 2013-01-10 22:30

Multiple selection is currently supported only for option lists. But I'll consider adding it for lookup fields in future releases, though this is not very-well supported by MySQL.
:idea: Learn all the tips and tricks of customizing AppGini apps through our online course.

:arrow: Mass Update plugin: Update multiple records at once and improve your workflow efficiency.

:arrow: Summary Reports plugin: Build powerful reports and charts for your AppGini apps.

:arrow: Search Page Maker: Compose user-friendly yet powerful search pages for your AppGini apps.

jewa
Posts: 2
Joined: 2013-06-12 14:13

Re: Multipel-Selection

Post by jewa » 2013-06-12 14:19

Yes - I need this feature as well...
It would be great to get any indication when this might be integrated.

jewa

dmeunier
Posts: 9
Joined: 2013-11-22 23:04

Re: Multipel-Selection

Post by dmeunier » 2013-12-03 04:06

I agree, this feature would be awesome. BTW love the progress you're making with AppGini!

toconnell
Veteran Member
Posts: 203
Joined: 2013-04-09 19:29

Re: Multipel-Selection

Post by toconnell » 2018-10-17 14:30

Ahmad,
I desperately need this. Is there a work around? I have heard nothing more.

User avatar
dilitimor
Veteran Member
Posts: 31
Joined: 2013-01-10 02:45
Location: Jakarta, Indonesia
Contact:

Re: Multipel-Selection

Post by dilitimor » 2018-10-17 18:39

Yes, I had been waiting too. It is already 5 years since i post this topic

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 219
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: Multipel-Selection

Post by jsetzer » 2018-10-17 19:08

Multi-Select dropdowns for 1:n or n:m relations will be a great comfort-feature for usability, that's for sure. Other feature requests here in this forum are important, too. Couple of them even more important from my personal point of view, because they have an impact on data integrity.

Ahmad does a great job and gives us a great product at a reasonable price in comparison to other frameworks. So let us trust in his decisions for the roadmap.

You may have a look at Select2 library here:
https://select2.org/getting-started/basic-usage

They offer you "Multi-select boxes (pillbox)" which you can use in your code. After posting the selected items to the server via AJAX you will have to run through the posted child-ids, insert new records and set the owner of the new records. You will also have to check for existing records to be deleted.

I did this in one of my projects:
chrome_2018-10-17_20-45-09.png
chrome_2018-10-17_20-45-09.png (35.16 KiB) Viewed 1206 times

(opens a modal form)
2018-10-17_20-47-09.gif
2018-10-17_20-47-09.gif (59.54 KiB) Viewed 1206 times

After Saving my selection, I can close the modal form. I have to refresh the details-tab, but that's ok for my customer. Then the details-tab contains all created records, and customer can edit details for each single record if necessary.

Deleting records is possible, too:
2018-10-17_20-56-51.gif
2018-10-17_20-56-51.gif (55.79 KiB) Viewed 1206 times

This should give you a starting point.

Kind Regards,
Jan

toconnell
Veteran Member
Posts: 203
Joined: 2013-04-09 19:29

Re: Multipel-Selection

Post by toconnell » 2018-10-18 12:26

Jan, Thank you. You have saved my professional life!
I will always appreciate Ahmad. He helped me thru some tuff times in the past with this great product and I will always be an APPGini fan. I only referenced the GP garbage for the 'how to' implement the requested feature but I will always trust him.

Thanks again for your time and effort to respond. I am truly grateful Jan! You fixed two issues I was having with your comments and solved both dilemmas. I am in your debt.

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 219
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: Multiple-Selection

Post by jsetzer » 2019-07-01 19:22

See also this discussion on the same topic:

viewtopic.php?p=10425#p10426

2019-07-01_20-33-31.gif
2019-07-01_20-33-31.gif (167.81 KiB) Viewed 201 times

Kind Regards,
Jan

Post Reply