Deeplinking to JET Pages
View and Edit Mode
The approach for deep linking to JET pages is :
Consider the URL below for Oracle Health Insurance Capitation application running on
http://<host>:<port>/[api-context-root]/capitation**":
The next step is to construct the metadata. JET URL requires the following information
-
"_ojCoreRouter=view-edit-capitationcontracts" represents that we are in Capitation Contracts page. Entity name gets appended after ‘view-edit-‘. It is generally entity plural name. Other values can be view-edit-adjustmentschedules.
-
"op =view " represents we are in view-edit page of a particular Capitation Contract,
-
"id =1" where 1 is the "id" of the current record that we are looking at. In case of 'create' page id won’t be part of the URL.
http://<host>:<port>/[api-context-root]/capitation/?_ojCoreRouter=view-edit-capitationcontracts;id=1;op=view
Once the URL string gets constructed, it should be UTF-8 encoded. Encoded URL then can be used as a deeplink.
Encoded URL:
http://<host>:<port>/[api-context-root]/capitation/?_ojCoreRouter=view-edit-capitationcontracts%3Bid%3D1%3Bop%3Dview
Create Mode
In case of creating a new record, URL will be: Decoded URL:
http://<host>:<port>/[api-context-root]/capitation/?_ojCoreRouter=create-capitationcontracts;op=create
Encoded URL:
http://<host>:<port>/[api-context-root]/capitation/?_ojCoreRouter=create-capitationcontracts%3Bop%3Dcreate
-
"_ojCoreRouter=create-capitationcontracts " represents that we are in we are in create page. Entity name gets appended after ‘create-‘. It is generally entity plural name.
-
"op = create " we are in create page of a Capitation Contract.