once created RITM asking save that pages again and again

sakila
Tera Contributor

Hello,

 

my issue is after creating RITM page is asking continusly saving the form . if i approved that time aslo asking :changes you may not saved" 

 

here in variable editor using list collector . am using g_form.setValue 

 

any one help here to fix this issue 

 

 

sakila_0-1724913947804.png

if i clicked UAT below related to uat value is populated thorugh list collector 

 

am using this code :

 

var val = g_form.getValue('data_warehouse_grant_access'); //list collector label name

    if (g_form.getValue('development') == 'true') {

        val += "," + '06eb97a01be74a941c21edbbe54bcb91';//this sys id is list collector sys id 

        g_form.setValue('data_warehouse_grant_access', val);

    }

 

 

sakila_1-1724914004933.png

 

 

6 REPLIES 6

Hi @sakila

As per the understanding, you have four checkboxes (Checkbox 1, Checkbox 2, Checkbox 3, Checkbox 4), and based on which checkboxes are selected, certain items should appear in the list collector.

 

First identify the Sys IDs of the records that should appear in the list collector based on each checkbox.

Checkbox1 - sys_id

Checkbox2 - sys_id

Checkbox3 - sys_id

Checkbox4 - sys_id

 

Catalog script

 

// Initialize an array to hold the sys_ids to include in the list collector
    var sysIds = [];

    // Check each checkbox and add the corresponding sys_id to the array
    if (g_form.getValue('checkbox_1') == 'true') {
        sysIds.push('SYS_ID_HERE'); // pur your SYS_ID of check box 1
    }
    if (g_form.getValue('checkbox_2') == 'true') {
        sysIds.push('c2d7a8a04f6c2e0018c5b43e5bcb73b4');
    }
    if (g_form.getValue('checkbox_3') == 'true') {
        sysIds.push('f4a9a9a04f6c2e0018c5b43e5bcb7484');
    }
    if (g_form.getValue('checkbox_4') == 'true') {
        sysIds.push('e8a4a8a04f6c2e0018c5b43e5bcb93b6');
    }

    // Join the sys_ids into a string
    var filter = 'sys_idIN' + sysIds.join(',');

    // Set the filter on the list collector field
    g_form.setValue('list_collector_variable_name', filter);

 

 

Also in your list collector add ‘Advanced’ script :

 

    var filter = g_form.getValue('list_collector_variable_name');

    return filter;

 

sakila
Tera Contributor

not working as