Not able to open Multiple Record from LIST Component in UI builder workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2024 12:11 AM
Hello,
We have 2 pages one for List of records with help of LIST Component and other page Form component to display the particular record information.
But I am facing one issue like I am not able to open the multiple records at a time.
For example , If i click on one record , it open in new tab. Again , if I click another record from list component it doesn't open in new tab , it overrides the previous Form record tab and display information.
Any suggestion / help , How we can open the multiple record on multiple tabs ?
Thanks,
SVG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2024 08:32 AM
The event which is getting triggered on click of the list records. Can you try updating the mapped event handler script with the below one and check. Dont forget to add recordRoutesMapping as the Client Script include for the UX client scrirpt.
function handler({
api,
helpers,
event,
imports
}) {
const {
routeMapping,
buildDefaultRoutePayload
} = imports["global.recordRoutesMapping"]();
var route = 'record';
var targetRoute = '';
const defaultRoutePayload = buildDefaultRoutePayload(route, targetRoute, event);
const routeMap = api.data.dynamic_routing_simplelist.routeMap;
const payload = routeMapping(routeMap, defaultRoutePayload, event);
if(payload.fields.table == 'cert_task') {
payload.route = '';
payload.external = {
url: '/cert_task.do?sys_id='+payload.fields.sysId
};
}
// If a table name passed into trueupTable matches the existing table
// refresh trueup DR to get real table name; otherwise use existing.
if(api.state.routeParentTables && api.state.routeParentTables.split(',').find(table => table === payload.fields.table)) {
api.setState('navigationPayload', payload);
api.data.resolve_route_parent_tables.refresh();
} else {
api.emit('NAV_ITEM_SELECTED', payload);
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2024 07:23 PM
Thanks for reply, I tried this it is not working , as per the above script route to "Record" page OOB template page, even I replaced that my page and tried but not working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2024 10:01 PM
Is your form page custom one or OOB one
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2024 11:01 PM
Custom Form components page