Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
polisetti
Creator II
Creator II

To Unlock the field by using event field trigger

Hello,

In my ad-hoc report I have one list box for month selection and one for time period selection.

I wants that on the month selection time period list box should get locked so that user cannot select it.

I have applied the trigger on month selection ->Lock field(Time period).

It is working .On month selection time period is locked.

But I wants that when user will again deselect month then that time period should automatically get unlocked.

Is there any way to resolve this issue???


Thanks in Advance !!!

15 Replies
marcus_sommer

I think this isn't possible - locked is locked and a listbox haven't a click-event. But you could use buttons with appropriate actions.

- Marcus

Anonymous
Not applicable

Actions can be "conditional" - see attached.

Regards,

Michael

Not applicable

Micheal,

Its an interesting feature... can you explain the logic?

Anonymous
Not applicable

Sure.

The trigger is selection in the Month field.  Actions:

1. Lock Field, with expression

if(GetSelectedCount(Month)>0,'Period')

That means if at least something is selected in Month, field Period is locked.  Otherwise filed to lock is not defined, nothing happens.

2. Unlock Field

if(GetSelectedCount(Month)=0,'Period')

That means if nothing is selected in Month, field Period is unlocked.  Otherwise filed to unlock is not defined, nothing happens.

Not applicable

Thank you, Micheal

polisetti
Creator II
Creator II
Author

Thanks Michael ,

I will try and i will update wheather it is working in my report.

polisetti
Creator II
Creator II
Author

Hi Michael,

I applied the above conditions in my report,when i select on 'month' it is locking the 'time bucket type' and when i unselect the 'Month' it is not working still the 'Time bucket type' is locked .Is there any other way to unlock that field.

Anonymous
Not applicable

If you attach an example, I'll take a look.

polisetti
Creator II
Creator II
Author

Hi,

Please try your condition in this sample report..