Replies: 3 comments
-
Hey @madsem, what do you mean when it is selected/attached? Clicking the checkbox? |
Beta Was this translation helpful? Give feedback.
-
@ifox okay, I totally forgot about the That actually solves this issue, because I can load the suggestions into the Or is another one of those methods better suited for this? Just asking as I'm a bit foggy on which method is executed when during runtime. I'll close this as I consider it a non-issue now. |
Beta Was this translation helpful? Give feedback.
-
Actually going to reopen this, because I just realized that even with the The problem I am facing now is that, there is also additional data (images). So I can open the browser, make a search and get results returned from the Controller. These results then don't have the primary key (ID) yet, that is needed to save the relationship to other crud modules. This can be handled easily in the But, what about images / media files etc? Those can be downloaded in the background, yes. But then they are only available for selection in a Suppose you have a form like this: Title Now you select the content from the api browser, and in the next step you'd like to select an image from the selection you made in the api browser... Not possible without saving the entry first. It would be possible though, if the Does that make any sense? Or is there a better solution to this that I am forgetting? EDIT |
Beta Was this translation helpful? Give feedback.
-
The Browser Field currently does not fire the endpoint when an item is selected/attached. It should be added though, to make it easier to use the browser with external data that might be downloaded from an API, on select of an item.
EDIT
yeah sorry should have explained better.
Currently it fires only on open and on search (enter key), not when you click the button to select one.
But this could be valuable because imagine you retrieve data from an external source like an API.
Do you want to download images & data for ALL results and write it to a table, or just the one the user selected?
If you don’t know which one the user selected, you have to write everything in the database before you can deliver suggestions for the browser to display.
(in my case this can be two dozen items plus 2-20 HQ screenshots per item, while image download could be queued, the items not as you obviously need the ID in the db first)
It could maybe attach different url parameter values depending on state...
onopen = &status=opened
onsearch = &status=search
onselect = &status=selected
Beta Was this translation helpful? Give feedback.
All reactions