Feature request - auto update dynamic get when adding fields to admin view #370
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: joomla/Component-Builder#370
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The title says it all. It would be nice when creating a dynamic get that there would be a toggle switch "auto update". If set to yes it would automagically update the dynamicGet with the new field when a new field is added to the admin view. I guess it should only work with getItem and getItemList. not the custom options.
hmmm lets see, that will mean all the fields are added with the update right?
I can add this, very easy actually. But the drawback is that it will not be selective (all fields will be added), and only work on the Back-end Views not the Joomla Database as the source. I can also make it target the Join View Tables but again it will not be selective (all fields will be added).
So we will add two switches, one for the Main Source, and one for each Join View Table. How it will work, at the moment you add the field to the Back-end View (admin view) there will be a function updating all dynamic gets and joints that target that view, if they have the Auto Update selected in the dynamic get.
Did I understand you correctly? I like the idea, a nice time safer, and these kind of things are always welcome.
I think sync is a better term here. To keep the selection in sync with the selected view and if that is true then hide the selection text area, or make it read only.
that's nice indeed. I think the toggle switch "auto sync" would be set in dynamic Get. And indeed if set to yes it would just add all fields from the backend view it is connected to. So this could look like this:
You did! 👍 Having this also on linked would be even more awesome and it'll indeed be a timesaver 😄
Okay I came up with a more elegant solution. Which is more instep with the expected behavior. That is if you too are a coffee drinker 👍
Instead of auto sync I added a switch to Select All, which then adds
a.*
to the selection area and will effectively do just that. This way we don't need extra scripts to update the get, since the query will always retrieve all the fields.Then to get this to work on the joint areas you simple replace the selection with the befitting
b.*
orc.*
as related to the AS selection and it will have the same behavior, done!Take it for a ride and let me know!
Nice solution indeed! 👍 No coffee for me tho hihi 😉
O yes and it works for both view and database selection.
Works like a charm! Thanks very much