Hello, is it possible to make function-back buttons for object table that can open an overlay tab with media reference pdf files?
I have these included in my columns:
- Media Reference (string form - no backing mediaset)
- Media Item ID
Hello, is it possible to make function-back buttons for object table that can open an overlay tab with media reference pdf files?
I have these included in my columns:
Hello,
You can absolutely create a button for the object table with a function-backed action. Would you mind sharing a bit more on what you want the button to do so we can best answer your question?
Thanks,
Isy
Hi @Herson ,
You could probably achieve this with only one button, rather than having a button per row. For example, you could have a button that opens a pop up / drawer when clicked which has the PDF Viewer widget embedded. You can use the media reference property on the selected object in the table, so the user flow would be:
user selects row in table → user clicks button → pop up / drawer opens displaying the PDF file
If you specifically want a button per row, that may be a better question for workshop .
Best,
Isy
This is what I have done in a similar case as yours.
I created a function-backed table in the code repository.
The function maps over each row in the ontology object and returns specific details about that object. When a user clicks a row, it should take them to the corresponding object detail page.
Make sure you’re mapping directly over the ontology object itself; any linked object will not work. Within the function, you can also include the link to the specific PDF file you want to open for each row.
Hope that helps! Let me know if you have any questions.
How would an implementation for a button per row look like? At the moment, it is possible to have a link and potentially implement some URI pattern. However, could I also trigger events?
This goes a little bit in the direction that when a new user uses the app almost all of them try to double click rows in a table to open them. While this feature is not available, a button could certainly help here.