Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 19 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -960,13 +960,29 @@ Examples:
```json
{
"type": "keyValue",
"key": "Last purchase ID",
"key": "Purchase",
"value": "123",
"url": "browser/_User",
"url": "browser/Purchase",
"isRelativeUrl": true
}
```

To navigate to a specific object using a relative URL, the query parameters must be URL encoded:

```js
const objectId = 'abc123';
const className = 'Purchase';
const query = [{ field: 'objectId', constraint: 'eq', compareTo: objectId }];
const url = `browser/Purchase?filters=${JSON.stringify(query)}`;
const item = {
type: 'keyValue',
key: 'Purchase',
value: objectId,
url,
isRelativeUrl: true
}
```

#### Table Item

A table with columns and rows to display data in a structured format.
Expand Down Expand Up @@ -1109,7 +1125,7 @@ Example:
```json
{
"type": "panel",
"text": "Purchase History",
"title": "Purchase History",
"cloudCodeFunction": "getUserPurchaseHistory"
}
```
Expand Down
Loading