cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
sanrajbhar
Level: Powered On

If Lookup return is false then dont show form

I am showing form records(using lookup) once user will select record from gallery. so it means Gallery dataSource and Form data source is different.

 

It works fine when records found in expected table and show the records.

if not found it show "No item to display"".

 

So i want to know how can we hide this "No item to dsiplay" with custom message. or Any other Better IDEA you have will be Welcome.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: If Lookup return is false then dont show form

Hi @sanrajbhar,

 

Could you please share a bit more about your app's configuration?

 

If you want to hide the "No Item to display" message within your Data form (Edit form or Display form), I have made a test on my side, please take a try with the following workaround:

2.JPG

 

3.JPG

 

4.JPG

 

 

Within the second screen, set the OnVisible property of the screen to following formula:

If(
IsBlank(LookUp('20180907_case9',Owner=Gallery1.Selected.Executor)),
Notify("No Item/record is found within the form data source",NotificationType.Information)
)

On your side, you should type following formula:

If(
IsBlank(LookUp(YourFormDataSource,FilterCondition)),
Notify("No Item/record is found within the form data source",NotificationType.Information)
)

 

Set the Item property of the Display form to following formula:

 

 

LookUp('20180907_case9',Owner=Gallery1.Selected.Executor)

On your side, you should type following:

LookUp(YourFormDataSource,FilterCondition)

 

Set the Visible property of the Display form to following formula:

If(IsBlank(LookUp('20180907_case9',Owner=Gallery1.Selected.Executor)),false,true)

On your side, you should type the following formula:

If(IsBlank(LookUp(YourFormDataSource,FilterCondition)),false,true)

The GIF screenshot as below:Test1.gif

 

 

 

 

Best regards,

Kris

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Meneghino
Level 10

Re: If Lookup return is false then dont show form

Use the Visible property of the form to hide it, and Visible property of a new label to show the custom message.

Community Support Team
Community Support Team

Re: If Lookup return is false then dont show form

Hi @sanrajbhar,

 

Could you please share a bit more about your app's configuration?

 

If you want to hide the "No Item to display" message within your Data form (Edit form or Display form), I have made a test on my side, please take a try with the following workaround:

2.JPG

 

3.JPG

 

4.JPG

 

 

Within the second screen, set the OnVisible property of the screen to following formula:

If(
IsBlank(LookUp('20180907_case9',Owner=Gallery1.Selected.Executor)),
Notify("No Item/record is found within the form data source",NotificationType.Information)
)

On your side, you should type following formula:

If(
IsBlank(LookUp(YourFormDataSource,FilterCondition)),
Notify("No Item/record is found within the form data source",NotificationType.Information)
)

 

Set the Item property of the Display form to following formula:

 

 

LookUp('20180907_case9',Owner=Gallery1.Selected.Executor)

On your side, you should type following:

LookUp(YourFormDataSource,FilterCondition)

 

Set the Visible property of the Display form to following formula:

If(IsBlank(LookUp('20180907_case9',Owner=Gallery1.Selected.Executor)),false,true)

On your side, you should type the following formula:

If(IsBlank(LookUp(YourFormDataSource,FilterCondition)),false,true)

The GIF screenshot as below:Test1.gif

 

 

 

 

Best regards,

Kris

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,151)