In true fashion, I found the answer after submitting the post. I'll share in case anyone else also has this question.
The code to use is: disableDeleteRow(ruleFieldInfo.XPath, true);
For my use case the code looks like this:
$form.addNewRow('/my:myFields/my:FGUoM/my:FGUoM_Input');
i=i+1;
$form.setValue('/my:myFields/my:FGUoM/my:FGUoM_Input/my:Repeating_Content['+i+']/my:Material_Number',$form.getValue('/my:myFields/my:CreateFGShell/my:CreateFGShell_Input/my:Repeating_Content/my:Material_Number1'));
$form.setValue('/my:myFields/my:FGUoM/my:FGUoM_Input/my:Repeating_Content['+i+']/my:Alternative_Unit_of_Measure_for_Stockkeeping_Unit','24C');
disableDeleteRow(ruleFieldInfo.XPath, true);
------------------------------
Shelby Murrell
SAP Functional Lead
MONSTER ENERGY
[USA]
------------------------------
Original Message:
Sent: 07-22-2024 18:11
From: Shelby Murrell
Subject: Question on disabling deleting a specific row in a repeating table
Hello,
We received a request to disable the ability to right click and select "delete" on a specific row in a repeating table. This table currently gets auto-populated by JS code after creating a material number in SAP. There is one row that will populate with a specific value in one column and the business is asking to disable this row only from being potentially deleted.
I found several suggestions about disabling the entire table or removing the ability to delete all rows. However not a specific row. Was wondering if this is even possible? I can share the JS code that auto-populates this table if that would be helpful.
Thank you,
------------------------------
Shelby Murrell
SAP Functional Lead
MONSTER ENERGY
[USA]
------------------------------