Not able to open Multiple Record from LIST Component in UI builder workspace

VG3
Tera Contributor

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

8 REPLIES 8

Dibyaratnam
Tera Sage

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); 
    } 
}

 

VG3
Tera Contributor

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.  

Is your form page custom one or OOB one

VG3
Tera Contributor

Custom Form components page