cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

navigate to the component/version object page of the same entity

girish6
Associate
Associate
0 Kudos
108

Hi all,

i have an entity books

books: cuid{

title:string

bookid:string

isdeleted: boolean

versions: Association to many books on  versions.bookid = $self.bookid and versions.isDeleted = true and versions.isDeleted != $self.isDeleted ;

}

this gives a table of versions in the object page 

adding the below in manifest enables the navigation

in routes

"name": "versionDetail",
"pattern": "books({key})/versions({key2}):?query:",
"target": "versionDetail"
 
 
in targets of object page 
"navigation": {
"versions": {
"detail": {
"route": "versionDetail"
}
}
say the current version key is k1 and one of the previous version key is k2
 
on click of a lineitem of table the url goes to books(k1)/versions(k2)
but i want the navigation to happen to books(k2)
the table comes from cap annotations not in the frontend
thanks in advance.

Accepted Solutions (0)

Answers (0)