The requirement is to create a LUT number field in tax registration sublist. We are unable to create a field LUT number in tax registration sublist through UI.
The solution for create a LUT number field in tax registration sublist will be a virtual field. We can create that virtual field by developing a user event script in beforeLoad context.
let form = scriptContext.form;
let sublist = form.getSublist({
id: ‘taxregistration’
});
sublist.addField({
id: ‘custpage_lut_number_field’,
type: serverWidget.FieldType.TEXT,
label: ‘LUT NUMBER’
});
Create custom record for storing the tax registration sublist lines. Otherwise, the value in the LUT number will not be get in any saved search or reports as it is a virtual field. By using a client script we can create custom records for each line in the tax registration sublist.
For viewing the entered LUT number value in the virtual field in view mode, we need to perform saved search and get the LUT number field value and set in the Lut numbrer field in tax registration subtab.
Create a client script by using sublistChanged and validate delete entry point. We can create, update or delete the tax registration sublist by creating or updating custom record.