Mailinglist Archive: yast-devel (62 mails)

< Previous Next >
Re: [yast-devel] Disable InputField on the run
On Wed, 19 Mar 2014 12:55:23 +0100
Julian Zwickl <jzwickl@xxxxxxxx> wrote:

Hey Guys,

I have a question. Is it possible to disable InputFields on the run?
I want to click on a checkbox and then the InputField should be
disabled. The CheckBox and the InputField are placed on a DumbTab

I queried the status of the CheckBox with UI.Querywidget, this works
for me. Then i tried to dis-/enable the InputField with
UI.ChangeWidget but it still doesn't work. Did you have a good
example? Maybe you can take a look(


Hi Julian, your code is slightly strange in sense of what you want
achieve. My wild guess is that you need to add Opt(:notify) to
checkbox, so checkbox report immediatelly if someone click on it an
then you can enable/disable some widgets.

Small examples are at
information about notify option

and one example that most demonstrate this notify that can be useful
for you:

for your code try to
1) add Opt(:notify) to checkbox widget
2) add when statement for ":id" ( BTW I think it is bad idea to have
mixture of string and symbols for ids )
3) move line 18-28 to that case statement

If you have more questions or something is not clear do not hesitate to ask

To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: yast-devel+owner@xxxxxxxxxxxx

< Previous Next >