From: dgurjar@codeaurora.org
To: "Dong, Eric" <eric.dong@intel.com>
Cc: edk2-devel@lists.01.org
Subject: Re: Convention for creating dynamic HII forms
Date: Thu, 18 May 2017 09:35:56 -0600 [thread overview]
Message-ID: <c9169c9236fe369a8bdcc8fa2b332dc2@codeaurora.org> (raw)
In-Reply-To: <ED077930C258884BBCB450DB737E66224A95A810@SHSMSX101.ccr.corp.intel.com>
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
prev parent reply other threads:[~2017-05-18 15:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c9169c9236fe369a8bdcc8fa2b332dc2@codeaurora.org \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox