i want disable the check box and icon in list view

Venkatesh7
Kilo Contributor

I want disable the check box and icon in list view any one can please tell me the solutions

Please find the below attachment 

1 ACCEPTED SOLUTION

Hi Venkatesh,

Did you use correct table while using list_edit ACL

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

19 REPLIES 19

HI 

Ankur Bawiskar

it is working ui script but not working acl because already list view is not edit before 

any solution is there 

Thanks ,

Venkatesh .Y

 

Hi Venkatesh,

Did you use correct table while using list_edit ACL

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Venkatesh7
Kilo Contributor

hi 

Ankur Bawiskar

 

i need help 

i want schedule script is not working can you check the code 

​

 

​var dataSources = ['Firewall Data', 'IPS Firewall', 'GRA Firewall'];

gs.log('*** Kicked off: 1. Running : Scheduled Script Firewall Operations');

//Get SysId of the Main data Source //cfee7764dbfd43007782f33eae9619fc
var sysIDOfRecord;
var dataSourceTable = 'sys_data_source';
var grCI = new GlideRecord(dataSourceTable);
grCI.addQuery('name', 'Firewall Operations');
grCI.addQuery('import_set_table_name', 'u_import_firewall_operations');
grCI.query();
if(grCI.next())
sysIDOfRecord = grCI.sys_id;

var attachmentTable = 'sys_attachment';
var dataSource = dataSources[0];
gs.log('*** Kicked off: 2. Data Source : ' + dataSource + sysIDOfRecord);
var i = 0;

//var execute = new ExecuteSchedules();
//execute.RunProcess();

var execute1 = new ExecuteSchedules();
execute1.RunProcess();
gs.log('*** Kicked off: 2.0 Data Source : ' + dataSource + sysIDOfRecord);
var grAttach = new GlideRecord(attachmentTable);
grAttach.addQuery('table_sys_id', sysIDOfRecord);
grAttach.orderByDesc('sys_updated_on');
grAttach.query();
gs.log('*** Kicked off: 2.1. Sys ID Of Data Source : ' + sysIDOfRecord);
gs.log('*** Kicked off: 2.2. Total Attachments : ' + grAttach.getRowCount());
while ( grAttach.next() )
{
gs.log('*** Kicked off: 3. In the While Loop');
var fileName = grAttach.file_name.toUpperCase();
if(fileName.indexOf('.XLS') > -1)
{
gs.log('*** Kicked off: 4. In the If Loop File Name : ' + grAttach.file_name);
fileName = grAttach.file_name.split('-');
fileName = fileName[1].replace('operations report','').trim();

//Choose right data source to attach the attchment
if(fileName.contains('GRA'))
dataSource = dataSources[2];
else if(fileName.contains('IPS'))
dataSource = dataSources[1];
else
dataSource = dataSources[0];

gs.log('*** Kicked off: 5. In the If Loop File Name : ' + dataSource);

grCI = new GlideRecord('sys_data_source');
grCI.addQuery('name', dataSource);
grCI.query();
if(grCI.next())
{
gs.log('*** Kicked off: 6. In the If of Source Table : ' + dataSource);
var deleteAttach = new GlideRecord(attachmentTable);
deleteAttach.addQuery('table_sys_id', grCI.sys_id);
deleteAttach.addQuery('table_name', dataSourceTable);
deleteAttach.query();
deleteAttach.deleteMultiple();

grAttach.setValue('table_sys_id', grCI.sys_id);
grAttach.setValue('table_name', dataSourceTable);
grAttach.update();

gs.log('*** Kicked off : 7. Executing = ' + dataSource);
var rec = new GlideRecord('scheduled_import_set');
rec.get('name', dataSource);
SncTriggerSynchronizer.executeNow(rec);
gs.sleep(30000);
gs.log('*** Kicked off : 8. Executed = ' + dataSource);

}
}


}


Thanks and Regards
Venkatesh Y

Hi Venkatesh,

Could you please raise another question for this and past the link here?

I believe the previous question is already answered.

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Venkatesh7
Kilo Contributor

HI

 

Ankur

 i have small doubt on ui script 

 

what ever you told to me  , That is working fine . But I  need to one user  have  check box and i -icon  visible 

please find the below attachment

please provide me solution.

Thanks and Regards,

Venkatesh Y.