Hi,
I want to hide and show the Popup
by typing in a input box and which that matches with the DataSource column, if it matches then show the result on Form and if it does not match then show the PopUp (No Record Found). But I am unable to do that
ScreenOnVisible
UpdateContext({InfoPopup: false});
PopUp( all Controls)
All Controls OnVisible = InfoPopup variable
after Entering text into InputBox and Pressing the button
Button
OnSelect
UpdateContext({recordCount: CountIf(SystemDisposal, SeviceTagNumber = ServiceTagInput_1.Text)});
If(recordCount > 0, UpdateContext({InfoPopup: true}),UpdateContext({InfoPopup: false}))
it works if there is a record the form displays it but if there is no record it should show the Popup
Solved! Go to Solution.
CountIf will be empty since there is no record (if I'm not mistaken). How about you use the CountRows instead?
UpdateContext({recordCount: CountRows(Filter(SystemDisposal, SeviceTagNumber = ServiceTagInput_1.Text))});
If(recordCount > 0, UpdateContext({InfoPopup: true}),UpdateContext({InfoPopup: false}))
Write this code on Visible Property of PoP up Box
If(IsEmpty(Gallery1.AllItems),true,false)
CountIf will be empty since there is no record (if I'm not mistaken). How about you use the CountRows instead?
UpdateContext({recordCount: CountRows(Filter(SystemDisposal, SeviceTagNumber = ServiceTagInput_1.Text))});
If(recordCount > 0, UpdateContext({InfoPopup: true}),UpdateContext({InfoPopup: false}))
@SanshubhLubal
There is no gallery, I am going through a button to a new screen and then there is a From (Edit) and an InputText Box in which I enter some text and it will have to match it with the Datasource and then if it exists then it will show up on the form.. and if not exists then it should show the error and also when the textbox is empty it should show blank screen.
@SanshubhLubal
There is no gallery, I am going through a button to a new screen and then there is a From (Edit) and an InputText Box in which I enter some text and it will have to match it with the Datasource and then if it exists then it will show up on the form.. and if not exists then it should show the error and also when the textbox is empty it should show blank screen.
If(IsEmpty(Filter(SystemDisposal, SeviceTagNumber = ServiceTagInput_1.Text)),true,false)
Hi,
@SanshubhLubal @Akser
Thanks for your answers and I have used CountRows and that helped me on my problem.
Kudos to both !!!
User | Count |
---|---|
253 | |
113 | |
92 | |
48 | |
38 |