- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2022 09:47 AM
My Device page has one required param (table) and one optional (sysId). My List's Row Clicked handler opens a url, passing table and sysId, like so:
return {
route: null,
fields: null,
params: null,
redirect: null,
passiveNavigation: null,
title: "anything",
multiInstField: null,
targetRoute: null,
external: {
url: "/x/acso/rf/device/" + event.payload.table + "/params/sysId/" + event.payload.sys_id
}
};
That works fine. But my New Button Clicked handler, which returns the same url without the sysId, opens an existing record -- and always the same record.
return {
route: null,
fields: null,
params: null,
redirect: null,
passiveNavigation: null,
title: "",
multiInstField: null,
targetRoute: null,
external: {
url: "/x/acso/rf/device/" + event.payload.table
}
};
So I looked at the look_up_record data source on the Device page. The param test values are set up like this:
With the params set up this way (that is, with sysId left empty), the preview shows the RFD7110517 record I mentioned above.
That looks wrong to me. The data resource should return an empty arrray until a real sysId (or -1) is supplied.
If I change the test params and put in a -1 for sysId, now the data resource preview shows an empty array.
I could go back to my New Button Clicked handler and explicitly pass a -1, like /params/sysId/-1. But if I have to pass a -1 for sysId, then that param isn't really optional. This looks like a defect. Have I overlooked something?
Solved! Go to Solution.
- Labels:
-
Now Experience UI Framework

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2022 05:14 PM
To get a new record I have always had to pass -1 for the sys_id. The system has always worked that way. I would say if its an issue its just an issue with the documentation.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2022 05:14 PM
To get a new record I have always had to pass -1 for the sys_id. The system has always worked that way. I would say if its an issue its just an issue with the documentation.