From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 2353721A13489 for ; Wed, 10 May 2017 23:54:53 -0700 (PDT) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 May 2017 23:54:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.38,323,1491289200"; d="scan'208";a="85449656" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga002.jf.intel.com with ESMTP; 10 May 2017 23:54:49 -0700 Received: from fmsmsx156.amr.corp.intel.com (10.18.116.74) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 10 May 2017 23:54:24 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx156.amr.corp.intel.com (10.18.116.74) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 10 May 2017 23:54:23 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.193]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.217]) with mapi id 14.03.0319.002; Thu, 11 May 2017 14:53:09 +0800 From: "Dong, Eric" To: "dgurjar@codeaurora.org" , "edk2-devel@lists.01.org" Thread-Topic: [edk2] Convention for creating dynamic HII forms Thread-Index: AQHSyc1t9LzgHPgGlk28474wb6A3DaHusFSg Date: Thu, 11 May 2017 06:53:08 +0000 Message-ID: References: <847821b780b0848d92d7bfcd03ea3bcf@codeaurora.org> In-Reply-To: <847821b780b0848d92d7bfcd03ea3bcf@codeaurora.org> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: Convention for creating dynamic HII forms X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 May 2017 06:54:53 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Dev, I add my comments below. Thanks, Eric -----Original Message----- From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of dgur= jar@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 c= reate 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 Questi= onId to get the data to populate Form B with from a UEFI variable.=20 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.=20 [[Eric]] The "Configuration Changed" flag shows up because the question val= ue has been changed. Browser base on the current question value and the bac= kup 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 Rout= eConfig function. When I enter Form B the internal question values for that form are not upda= ted with the values. Because of this the form doesn't recognize when its qu= estions are modified. I was wondering if anyone has had experience creating form where the intern= al question values need to be modified on entry, and what the common conven= tion was for doing this. [[Eric]] edkii has a sample driver in MdeModulePkg/Universal/DriverSampleDx= e, you can reference that driver. If this driver don't has the case you sai= d, you can provide a patch for this code, and we can base on the code to fi= nd the error place. Thanks, Dev _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel