Page 1 of 1

Multipel-Selection

Posted: 2013-01-10 03:09
by dilitimor
How can I generate multiple selection from look-up field

Re: Multipel-Selection

Posted: 2013-01-10 22:30
by a.gneady
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.

Re: Multipel-Selection

Posted: 2013-06-12 14:19
by jewa
Yes - I need this feature as well...
It would be great to get any indication when this might be integrated.

jewa

Re: Multipel-Selection

Posted: 2013-12-03 04:06
by dmeunier
I agree, this feature would be awesome. BTW love the progress you're making with AppGini!

Re: Multipel-Selection

Posted: 2018-10-17 14:30
by toconnell
Ahmad,
I desperately need this. Is there a work around? I have heard nothing more.

Re: Multipel-Selection

Posted: 2018-10-17 18:39
by dilitimor
Yes, I had been waiting too. It is already 5 years since i post this topic

Re: Multipel-Selection

Posted: 2018-10-17 19:08
by jsetzer
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 10477 times

(opens a modal form)
2018-10-17_20-47-09.gif
2018-10-17_20-47-09.gif (59.54 KiB) Viewed 10477 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 10477 times

This should give you a starting point.

Kind Regards,
Jan

Re: Multipel-Selection

Posted: 2018-10-18 12:26
by toconnell
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.

Re: Multiple-Selection

Posted: 2019-07-01 19:22
by jsetzer
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 9472 times

Kind Regards,
Jan

Re: Multiple-Selection

Posted: 2020-02-22 02:09
by sathukorala
jsetzer wrote:
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


Kind Regards,
Jan
Can you please explain how you did this in a simple way?

Re: Multipel-Selection

Posted: 2020-02-22 06:52
by jsetzer
I'm sorry, there is no simple way.

It took days to develop this. And there are still things missing as you can see in this post viewtopic.php?p=10425#p10426

Re: Multipel-Selection

Posted: 2020-06-02 13:41
by dilitimor
Jan, Thank you. You are great