Hello,
I'm trying to assign a value to validarinfo, the idea is that I have a Gallery and I am trying to validate in all lines if it has blanks but is always equal to zero (either is empty the gallery or not):
Set(
validarinfo,
If(
CountRows(
Filter(
Gallery3_1.AllItems,
COLLQUANTITYTYPEOFSERVICE = "" || COLLCAPACITYSERVICEDESCRIPTION = "" || COLLUNITOFMEASURESERVICEDESCRIPTION = ""
)
) = 0,
true,
false
)
);
What is wrong with the code?
Thanks in advance.
Solved! Go to Solution.
try
COLLQUANTITYTYPEOFSERVICE = Blank() || COLLCAPACITYSERVICEDESCRIPTION = Blank() || COLLUNITOFMEASURESERVICEDESCRIPTION = Blank()
try
COLLQUANTITYTYPEOFSERVICE = Blank() || COLLCAPACITYSERVICEDESCRIPTION = Blank() || COLLUNITOFMEASURESERVICEDESCRIPTION = Blank()
Hi @Emont ,
Do you want to check if the item in the Gallery is empty?
Could you please tell me what’s your data source and what’s the type of COLLQUANTITYTYPEOFSERVICE and other columns?
I assume that you have this in SP and made a test on my side, please try the following workaround.
Set the OnSelect property of Button as following:
Set(
validarinfo,
If(
CountRows(
Filter(
Gallery6.AllItems,
COLLQUANTITYTYPEOFSERVICE.Value = Blank() || COLLCAPACITYSERVICEDESCRIPTION = Blank() || COLLUNITOFMEASURESERVICEDESCRIPTION = Blank()
)
) = 0,
true,
false
)
)
Best regards,
Zhi Chen
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
185 | |
53 | |
41 | |
36 | |
30 |
User | Count |
---|---|
243 | |
82 | |
71 | |
69 | |
65 |