[opensuse-autoinstall] Ask-list... wrong answers on combined dialogs?
First, thanks for the help on figuring out how to create an ask-list. I have it working now. I am asking several questions on install that are related. When I have each question in it's own dialog everything is working great. As the questions are related I want to put them in grouped dialog boxes. When I do this, I seem to be getting corrupted answers. I grouped them by simply adding the dialog key to each stand alone question set. My ask section looks like this: <ask-list config:type="list"> <ask> <dialog config:type="integer">1</dialog> <path>networking,dns,hostname</path> <question>Enter Hostname (without domain)</question> <stage>cont</stage> <default></default> </ask> <ask> <dialog config:type="integer">1</dialog> <path>networking,dns,domain</path> <question>Enter Domain (ex: level3.net)</question> <stage>cont</stage> <default></default> </ask> <ask> <dialog config:type="integer">2</dialog> <path>networking,interfaces,0,ipaddr</path> <question>Enter IPv4 address</question> <stage>cont</stage> </ask> <ask> <dialog config:type="integer">2</dialog> <path>networking,interfaces,0,netmask</path> <question>Enter netmask </question> <stage>cont</stage> <default>255.255.255.0</default> </ask> <ask> <dialog config:type="integer">2</dialog> <path>networking,routing,routes,0,gateway</path> <question>Enter default IPv4 gateway</question> <stage>cont</stage> </ask> ... Anything jump out as a problem? I am seeing the 1st answer come out correct, but the subsequent ones do not... Thanks! -- Andrew -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
Opps. I seem to be missing the element keyword... I will add that and try again.
-----Original Message----- From: Lundgren, Andrew Sent: Friday, November 16, 2007 2:29 PM To: opensuse-autoinstall@opensuse.org Subject: [opensuse-autoinstall] Ask-list... wrong answers on combined dialogs?
First, thanks for the help on figuring out how to create an ask-list. I have it working now. I am asking several questions on install that are related.
When I have each question in it's own dialog everything is working great. As the questions are related I want to put them in grouped dialog boxes. When I do this, I seem to be getting corrupted answers. I grouped them by simply adding the dialog key to each stand alone question set.
My ask section looks like this:
<ask-list config:type="list"> <ask> <dialog config:type="integer">1</dialog> <path>networking,dns,hostname</path> <question>Enter Hostname (without domain)</question> <stage>cont</stage> <default></default> </ask> <ask> <dialog config:type="integer">1</dialog> <path>networking,dns,domain</path> <question>Enter Domain (ex: level3.net)</question> <stage>cont</stage> <default></default> </ask> <ask> <dialog config:type="integer">2</dialog> <path>networking,interfaces,0,ipaddr</path> <question>Enter IPv4 address</question> <stage>cont</stage> </ask> <ask> <dialog config:type="integer">2</dialog> <path>networking,interfaces,0,netmask</path> <question>Enter netmask </question> <stage>cont</stage> <default>255.255.255.0</default> </ask> <ask> <dialog config:type="integer">2</dialog> <path>networking,routing,routes,0,gateway</path> <question>Enter default IPv4 gateway</question> <stage>cont</stage> </ask> ...
Anything jump out as a problem?
I am seeing the 1st answer come out correct, but the subsequent ones do not...
Thanks! -- Andrew -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
-- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
Opps. I seem to be missing the element keyword... I will add that and try again.
I was going to mention that. The <element> tags simply control the order in which the text boxes appear in your dialog, but might be necessary. (I just started working with autoyast so my guess is as good as yours.)
<ask-list config:type="list"> <ask> <dialog config:type="integer">1</dialog> <path>networking,dns,hostname</path> <question>Enter Hostname (without domain)</question> <stage>cont</stage> <default></default> </ask> <ask> <dialog config:type="integer">1</dialog> <path>networking,dns,domain</path> <question>Enter Domain (ex: level3.net)</question> <stage>cont</stage> <default></default> </ask>
The <default> tags above are empty. Its probably better just to remove them altogether if you dont want a default answer. Hope that adding the <element> tags back in works! -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
That fixed the problem. It was taking the order from the xml file, apparently the element is needed for the answer.
-----Original Message----- From: Razi Khaja [mailto:razi.khaja@gmail.com] Sent: Friday, November 16, 2007 2:48 PM To: opensuse-autoinstall@opensuse.org Subject: Re: [opensuse-autoinstall] Ask-list... wrong answers on combined dialogs?
Opps. I seem to be missing the element keyword... I will add that and try again.
I was going to mention that. The <element> tags simply control the order in which the text boxes appear in your dialog, but might be necessary. (I just started working with autoyast so my guess is as good as yours.)
<ask-list config:type="list"> <ask> <dialog config:type="integer">1</dialog> <path>networking,dns,hostname</path> <question>Enter Hostname (without domain)</question> <stage>cont</stage> <default></default> </ask> <ask> <dialog config:type="integer">1</dialog> <path>networking,dns,domain</path> <question>Enter Domain (ex: level3.net)</question> <stage>cont</stage> <default></default> </ask>
The <default> tags above are empty. Its probably better just to remove them altogether if you dont want a default answer.
Hope that adding the <element> tags back in works! -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
-- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
Am 16.11.2007 um 23:08 schrieb Lundgren, Andrew:
That fixed the problem. It was taking the order from the xml file, apparently the element is needed for the answer.
which is a bug BTW. The <element> should be optional like it's documented. Easy to workaround by providing the <element> number but still a bug. ciao, Uwe Gansert Uwe Gansert, Server Technologies Team SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Business: http://www.suse.de/~ug -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
participants (3)
-
Lundgren, Andrew
-
Razi Khaja
-
Uwe Gansert