cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sanrajbhar
Helper I
Helper I

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
v-xida-msft
Community Support
Community Support

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
Community Champion
Community Champion

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

v-xida-msft
Community Support
Community Support

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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (74,785)