public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Dong, Eric" <eric.dong@intel.com>
To: "dgurjar@codeaurora.org" <dgurjar@codeaurora.org>,
	"edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Subject: Re: Convention for creating dynamic HII forms
Date: Thu, 11 May 2017 06:53:08 +0000	[thread overview]
Message-ID: <ED077930C258884BBCB450DB737E66224A95A810@SHSMSX101.ccr.corp.intel.com> (raw)
In-Reply-To: <847821b780b0848d92d7bfcd03ea3bcf@codeaurora.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


  reply	other threads:[~2017-05-11  6:54 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 [this message]
2017-05-18 15:35   ` dgurjar

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=ED077930C258884BBCB450DB737E66224A95A810@SHSMSX101.ccr.corp.intel.com \
    --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