File tree 1 file changed +19
-3
lines changed 1 file changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -960,13 +960,29 @@ Examples:
960
960
``` json
961
961
{
962
962
"type" : " keyValue" ,
963
- "key" : " Last purchase ID " ,
963
+ "key" : " Purchase " ,
964
964
"value" : " 123" ,
965
- "url" : " browser/_User " ,
965
+ "url" : " browser/Purchase " ,
966
966
"isRelativeUrl" : true
967
967
}
968
968
```
969
969
970
+ To navigate to a specific object using a relative URL, the query parameters must be URL encoded:
971
+
972
+ ``` js
973
+ const objectId = ' abc123' ;
974
+ const className = ' Purchase' ;
975
+ const query = [{ field: ' objectId' , constraint: ' eq' , compareTo: objectId }];
976
+ const url = ` browser/Purchase?filters=${ JSON .stringify (query)} ` ;
977
+ const item = {
978
+ type: ' keyValue' ,
979
+ key: ' Purchase' ,
980
+ value: objectId,
981
+ url,
982
+ isRelativeUrl: true
983
+ }
984
+ ```
985
+
970
986
#### Table Item
971
987
972
988
A table with columns and rows to display data in a structured format.
@@ -1109,7 +1125,7 @@ Example:
1109
1125
``` json
1110
1126
{
1111
1127
"type" : " panel" ,
1112
- "text " : " Purchase History" ,
1128
+ "title " : " Purchase History" ,
1113
1129
"cloudCodeFunction" : " getUserPurchaseHistory"
1114
1130
}
1115
1131
```
You can’t perform that action at this time.
0 commit comments