Hi!
I am facing some issues with the sum function within in my gallery.
For the background:
I create a collection with lines which should be patched with number columns in sharepoint afterword.
ClearCollect(
Tätigkeiten;ForAll(Sequence(3);
{
LineGJ21Q1APV:"0";LineGJ21Q2APV:"0";
LineGJ21Q3APV: "0";
LineGJ21Q4APV: "0")
ForAll(
'Gallery Neues Arbeitspaket Tätigkeit'.AllItems;
Patch(
'3400 ILLU Arbeitspakete O3.4';
Defaults('3400 ILLU Arbeitspakete O3.4');
{
GJ21Q1APV: Value('Input GJ21Q1'.Text);
GJ21Q2APV: Value('Input GJ21Q2'.Text);
GJ21Q3APV: Value('Input GJ21Q3'.Text);
GJ21Q4APV: Value('Input GJ21Q4'.Text)}))
The inputs inside my gallery (data source is my collection “Tätigkeiten”) are Text inputs.
But I want to sum them. So I put text inputs inside my gallery with default property Sum('Input GJ21Q1';'Input GJ21Q2').
But after I have run the app and review its performance it says errors: This value can not be converted into a number because value consists of empty string.
I tried a lot of things like changing from text input to number input. I changed the clear collect function to this:
ClearCollect(
Tätigkeiten;ForAll(Sequence(3);
{
LineGJ21Q1APV;0LineGJ21Q2APV:0;
LineGJ21Q3APV: 0;
LineGJ21Q4APV: 0)
But nothing works to avoid these errors.
Please help me with this!
Thank you very much