Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Highlighted
Not applicable

To clear a field when a variable value changes

Hi i have two calender objects for Start date and End date, each controlled by variables vStartdate and vEnddate.

When i select any of these and change the dates i want to clear all the previous selections on my date field  which is cdate and cweek.

I tried using trigger to 'Clear Field'= cweek  in the 'On Change' and 'On Input' triggers of the variables.

Clear Field is not working at all.... Why ???  Pls help

7 Replies

Re: To clear a field when a variable value changes

Hi

I think, you used "=" symbol in clear field. If so, remove that "=" sign

Trigger-> Onchange -> Clear Field -> cweek

Not applicable

Re: To clear a field when a variable value changes

Can you share your qvw?

Not applicable

Re: To clear a field when a variable value changes

No... i tried all combinations....

when i put clear all instead of clear field, its working....

But i need clear field itself

MVP
MVP

Re: To clear a field when a variable value changes

Try to use clear other field action first.... i.e. if you have more than one action in OnInput or OnChange, prompt the Clear Other fields action first.

Re: To clear a field when a variable value changes

Hi

can you able to provide the sample post?

or

set hierarchy in the action.

Partner
Partner

Re: To clear a field when a variable value changes

Hi Arjun,

Find the attachment hope it will helps you., if you have calendar object to select the date then you can follow this.,

This is just a suggestion.

Not applicable

Re: To clear a field when a variable value changes

Hi Vishnu, i am using the Personal edition. Cant open the file.

I would greatly appreciate if you could write the code here ..