Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
chadliagabsi
Creator II
Creator II

conditional Alert Box

Hello,

i need to show a alert box if the first selection is different to Year. i try tools->alert but it don't show any result.

alert.png

1 Solution

Accepted Solutions
YoussefBelloum
Champion
Champion

if there is no Year selected on the opening, you can put this on the Alert Wizard:

GetSelectedCount(Year)=0

View solution in original post

8 Replies
YoussefBelloum
Champion
Champion

Hi,

what do you mean by: First selection is different to year ?

the first selection on the field Year is different from what ?

chadliagabsi
Creator II
Creator II
Author

i have three selection fields (Year, month ,Direction) i do  a conditional display. if you don't select year, the app don't display any graphs. So, i need to inform user with a alert box that he must select a year.

stabben23
Partner - Master
Partner - Master

Maybe use a textbox With condition instead

=If(GetSelectedCount(ANNEE)>0,0,1)

YoussefBelloum
Champion
Champion

This Kind of alerts are activated only on opening, on reloads and on data reduction.

you can do what you want using two options:

1. Create a textobject with conditional display like this: =GetselectedCount(Year)=0

on you charts, put this on the conditional display: =GetSelectedCount(Year)<>0

2.Put this on the conditional calculation (general tabs on the charts): =GetselectedCount(Year)<>0

chadliagabsi
Creator II
Creator II
Author

I understand you but it doesn't answer to my need

I want to have an alert just in openning  of my app.

YoussefBelloum
Champion
Champion

if there is no Year selected on the opening, you can put this on the Alert Wizard:

GetSelectedCount(Year)=0

stabben23
Partner - Master
Partner - Master

like this then

chadliagabsi
Creator II
Creator II
Author

it work thank you!

but i don't understand the difference with GetselectedCount(year)= 0 and GetselectedCount(year,false())