In this example, if the collection has no quantities outstanding (Qty-OS) and all rows have a PDN number (a value that looks like "PDN123456", I want to disable a button.
This is my code behind the DisplayMode property:
If(
gblPdnLock = true || (CountRows(
Filter(
colControlSheet,
QtyOS = 0
)
) = CountRows(colControlSheet) && CountRows(
Filter(
colControlSheet,
!!IsBlank('PDN-No')
)
) = CountRows(colControlSheet) && CountRows(
Filter(
colControlSheet,
StartsWith('PDN-No',"PDN")
)
) = CountRows(colControlSheet)),
DisplayMode.Disabled,
DisplayMode.Edit
)
This bit is returning a 0 and it should be a 1. There is a row with a non-blank value.
CountRows(
Filter(
colControlSheet,
!!IsBlank('PDN-No')
)
Obviously, this statement is not coded correctly.
Can anybody help?
Solved! Go to Solution.
Thanks @JR-BejeweledOne - I actually solved this problem moments after posting. Unfortunately there is no method of deleting my question.
This was the solution:
CountRows(
Filter(
colControlSheet,
'PDN-No' <> ""
)
Try removing the extra ! in front of Is Blank
Thanks @JR-BejeweledOne - I actually solved this problem moments after posting. Unfortunately there is no method of deleting my question.
This was the solution:
CountRows(
Filter(
colControlSheet,
'PDN-No' <> ""
)
For future reference if you solve your own question. Post another reply with the answer and mark you own reply as the solution. This will help others who may run into similar issues.
User | Count |
---|---|
251 | |
102 | |
94 | |
48 | |
37 |