Can the default view for a database be set when the macro is used in a page? The goal is to have the same database on multiple pages but want each of those pages to use a different view/filter.
It appears that all pages load the default view.
Hi @Collin Summers this is Rachel from the Confluence Databases team. When embedding a database using its URL, the view used when the URL is copied is automatically set as default for your embed. You can copy a link to a specific view in the view picker which adds a `savedViewId` parameter to your URL. If you're viewing a non-default view, this parameter will also be in the browser URL and you can copy that as well.
If your database URL doesn't have a `savedViewId` parameter, it will load the default view. This happens when you copy the default browser URL for the database.
Hi, @Rachel Li sadly I have troubles when trying to use your way of embedding an entry from the View. Needed so that fields were horizontally and their values were near them.
Exactly like you would embed entity from a database, but from the view, so that the fields shown were limited to the views.
Tried to use the link via 'Copy link to view' and link from the browser field. Both of them had `savedViewId` parameter. But when I try to insert any of them getting the error of "Select a valid database" and thats all. The field propose me to select full view of the Database.
Could you please help if you know how I can achieve something like this?
Error:
Example:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Mariia Bov I'm not sure how exactly to reproduce your error, but it looks like you're trying to use the embed database quick insert action to insert the entry. To get a link to an entry, you can select a row and click "Copy link to entry":
Then you can directly paste this link in a page without needing to open the embed database modal. If you wanted to insert an entry from the modal, you'd have to first select the database and then select the entry.
However, when you insert an entry this way it doesn't include the view settings, so if you had hidden fields on the view the entry was copied from, that will not carry over. I can take this feedback to our team.
Hope this at least clears up the embed database modal part!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, @Rachel Li , very appreciate that you are trying to help!
Sorry for not fully clarifying the way I tried to use a View link - tried to insert it with the '+' at the top band of instruments. And then got the error, mentioned in my previous message.
About an entry link from a view. Even if I copy it from the view, it inserts the entry from a full view, with all fields.
My way trough:
Result of my tries: link to view works correctly, link to entry from a view - no.
Please clarify is it a bug, or you can get the expected result correctly?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Mariia Bov I can confirm that today, copying a link to an entry with a `savedViewId` parameter, the `savedViewId` will be ignored and any view settings (like hidden fields) associated with that view will not be applied to the entry. I understand that this can be confusing since you expect the view settings to be applied since `savedViewId` is in the URL.
I can reproduce this issue and I will take this feedback to our team to see if we can improve the experience.
Also wanted to know that there is no workaround for achieving your goal of embedding an entry with view settings applied.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.