How to show a message or hide the undefined error if json is empty

how to show a message or hide the undefined error if json is empty



Try to use when screen1 error occurred

Block example please :sweat_smile:

But I feel this run time error is not because of empty results.

Any try tobuse this

Here use if then block

If error message contain text run time error
Then use notifier to alert user with custom dialog

1 Like

He told you to use the block when Screen error occurred…
Screen is a component and **when Error Occurred" is a event ( yellow blocks )
Here
:point_down:

And Here
:point_down:

Here is the Kodular documentation.
It is a GREAT source of consultation and learning.

1 Like

I found the component that is giving an error. but when there’s nothing in json it gets an error

Are you sure the cause of the error is this block?
Have you already tested it, check if the key value is empty ?

1 Like

In the json api it’s empty, I want if there’s nothing in json it doesn’t show errors

Use the Error Occurred Block that Rogerio is mentioning.
Only put it in your Screen and leave it empty.

I found a solution, thanks to everyone who helped me

Can you share with us your solution…?

1 Like

I just changed “not found” to “create empty dictionary”

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.