* Convention for creating dynamic HII forms
@ 2017-05-10 20:38 dgurjar
2017-05-11 6:53 ` Dong, Eric
0 siblings, 1 reply; 3+ messages in thread
From: dgurjar @ 2017-05-10 20:38 UTC (permalink / raw)
To: edk2-devel
Hi,
I was wondering if anyone here could provide some clarification on how
to create dynamic HII forms.
Currently I have a Form A with multiple goto statements to Form B.
When the user clicks a goto, my ConfigCallback function will use the
QuestionId to get the data to populate Form B with from a UEFI variable.
Form B's values appear to be updated when I use HiiSetBrowserData.
However, when I do this I notice that after the user modifies Form B,
the "Configuration Changed" string does not always appear. As a result
when I try to save the form, there are no calls made to my RouteConfig
function.
When I enter Form B the internal question values for that form are not
updated with the values. Because of this the form doesn't recognize when
its questions are modified.
I was wondering if anyone has had experience creating form where the
internal question values need to be modified on entry, and what the
common convention was for doing this.
Thanks,
Dev
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Convention for creating dynamic HII forms
2017-05-10 20:38 Convention for creating dynamic HII forms dgurjar
@ 2017-05-11 6:53 ` Dong, Eric
2017-05-18 15:35 ` dgurjar
0 siblings, 1 reply; 3+ messages in thread
From: Dong, Eric @ 2017-05-11 6:53 UTC (permalink / raw)
To: dgurjar@codeaurora.org, edk2-devel@lists.01.org
Hi Dev,
I add my comments below.
Thanks,
Eric
-----Original Message-----
From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of dgurjar@codeaurora.org
Sent: Thursday, May 11, 2017 4:39 AM
To: edk2-devel@lists.01.org
Subject: [edk2] Convention for creating dynamic HII forms
Hi,
I was wondering if anyone here could provide some clarification on how to create dynamic HII forms.
Currently I have a Form A with multiple goto statements to Form B.
When the user clicks a goto, my ConfigCallback function will use the QuestionId to get the data to populate Form B with from a UEFI variable.
Form B's values appear to be updated when I use HiiSetBrowserData.
However, when I do this I notice that after the user modifies Form B, the "Configuration Changed" string does not always appear.
[[Eric]] The "Configuration Changed" flag shows up because the question value has been changed. Browser base on the current question value and the backup value in the browser to decide whether shows up this flag.
As a result when I try to save the form, there are no calls made to my RouteConfig function.
When I enter Form B the internal question values for that form are not updated with the values. Because of this the form doesn't recognize when its questions are modified.
I was wondering if anyone has had experience creating form where the internal question values need to be modified on entry, and what the common convention was for doing this.
[[Eric]] edkii has a sample driver in MdeModulePkg/Universal/DriverSampleDxe, you can reference that driver. If this driver don't has the case you said, you can provide a patch for this code, and we can base on the code to find the error place.
Thanks,
Dev
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Convention for creating dynamic HII forms
2017-05-11 6:53 ` Dong, Eric
@ 2017-05-18 15:35 ` dgurjar
0 siblings, 0 replies; 3+ messages in thread
From: dgurjar @ 2017-05-18 15:35 UTC (permalink / raw)
To: Dong, Eric; +Cc: edk2-devel
On 2017-05-11 00:53, Dong, Eric wrote:
> Hi Dev,
>
> I add my comments below.
>
> Thanks,
> Eric
>
> -----Original Message-----
> From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of
> dgurjar@codeaurora.org
> Sent: Thursday, May 11, 2017 4:39 AM
> To: edk2-devel@lists.01.org
> Subject: [edk2] Convention for creating dynamic HII forms
>
> Hi,
>
> I was wondering if anyone here could provide some clarification on how
> to create dynamic HII forms.
>
> Currently I have a Form A with multiple goto statements to Form B.
> When the user clicks a goto, my ConfigCallback function will use the
> QuestionId to get the data to populate Form B with from a UEFI
> variable.
> Form B's values appear to be updated when I use HiiSetBrowserData.
>
> However, when I do this I notice that after the user modifies Form B,
> the "Configuration Changed" string does not always appear.
> [[Eric]] The "Configuration Changed" flag shows up because the
> question value has been changed. Browser base on the current question
> value and the backup value in the browser to decide whether shows up
> this flag.
>
> As a result when I try to save the form, there are no calls made to my
> RouteConfig function.
> When I enter Form B the internal question values for that form are not
> updated with the values. Because of this the form doesn't recognize
> when its questions are modified.
>
> I was wondering if anyone has had experience creating form where the
> internal question values need to be modified on entry, and what the
> common convention was for doing this.
> [[Eric]] edkii has a sample driver in
> MdeModulePkg/Universal/DriverSampleDxe, you can reference that driver.
> If this driver don't has the case you said, you can provide a patch
> for this code, and we can base on the code to find the error place.
>
> Thanks,
> Dev
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel
Hi Eric,
Thanks for the response. I've taken a look at DriverSampleDxe in the
past to get an understanding of Hii forms, From what I can tell I don't
think there is a form present there that does what I'm asking for. Any
chance you can point me to a line number or location in that driver that
you think does what I'm trying to do correctly?
-Dev
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-05-18 15:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-10 20:38 Convention for creating dynamic HII forms dgurjar
2017-05-11 6:53 ` Dong, Eric
2017-05-18 15:35 ` dgurjar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox