You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to create a new custom tag that replaces all null values with #N/A. I can replace cell values from the tag but cannot distinguish empty strings from null because it outputs the same value to the cell. So, I need to inspect the original values accessible from the ProcessingContext Value property, but I cannot map the cell to the proper value.
publicclassNullableTag:OptionTag{publicoverridevoidExecute(ProcessingContextcontext){vardataSource= context.Value as IDataSource;varrange= context.Range;
range.Cells().ToList().ForEach(cell =>{varrow= range.FindRow(r => r.Contains(cell));varvalues= dataSource.GetValue(row);varvalue= ...// get value from values by cell addressif(value==null){ cell.FormulaA1 ="=NA()";}});}}
Could you point me in the right direction?
The text was updated successfully, but these errors were encountered:
I want to create a new custom tag that replaces all null values with #N/A. I can replace cell values from the tag but cannot distinguish empty strings from null because it outputs the same value to the cell. So, I need to inspect the original values accessible from the ProcessingContext Value property, but I cannot map the cell to the proper value.
Could you point me in the right direction?
The text was updated successfully, but these errors were encountered: