UI Builder - Table not showing up with the correct data when Pie chart is clicked.

NehaSNOW
Tera Guru

Hi Developers,

 

Please suggest. 

 

Requirement: - When any Status in the Pie Chart is clicked the Simple List should be displayed showing the records of that Status.

 

Issue: - The Simple List is showing all the records.

Implementation: - I have configured the below Event in the Pie Chart but it is not working.

Release: - Xanadu

 

NehaSNOW_0-1737360618871.png

Thanks,

Neha

 

1 ACCEPTED SOLUTION

Akshays14
Tera Expert

You can try with adding script in link to destination as below:

/**
 * @Param {params} params
 * @Param {api} params.api
 * @Param {any} params.event
 */
function evaluateEvent({
    api,
    event
}) {
    const params = event.payload.params;
    return {
        route: "add your list route here",
        fields: {
            table: params.table,
        },
        params: {
            listTitle: params.listTitle,
            query: params.query
        },
        redirect: false,
        passiveNavigation: false,
        title: event.payload.title,
        multiInstField: null,
        targetRoute: 'current',
        external: null
    };
}
 
 
If my answer helped you in any way, please then mark it as helpful or correct. This will help others finding a solution.

View solution in original post

3 REPLIES 3

Akshays14
Tera Expert

You can try with adding script in link to destination as below:

/**
 * @Param {params} params
 * @Param {api} params.api
 * @Param {any} params.event
 */
function evaluateEvent({
    api,
    event
}) {
    const params = event.payload.params;
    return {
        route: "add your list route here",
        fields: {
            table: params.table,
        },
        params: {
            listTitle: params.listTitle,
            query: params.query
        },
        redirect: false,
        passiveNavigation: false,
        title: event.payload.title,
        multiInstField: null,
        targetRoute: 'current',
        external: null
    };
}
 
 
If my answer helped you in any way, please then mark it as helpful or correct. This will help others finding a solution.

Hi, 
where to add add these script in link to destination.

KiruthikaJ_0-1745310448704.png

 

noraarhzane2
Tera Expert

Hi! 

Did you get it to work?