From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.codeaurora.org (smtp.codeaurora.org [198.145.29.96]) (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 69A6221A04E20 for ; Thu, 18 May 2017 08:35:57 -0700 (PDT) Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 4D98E60F90; Thu, 18 May 2017 15:35:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1495121757; bh=A1emrCCJ/da9BeeM9nI0+RtrmiivNlefOyTruFnym+8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=hw4TYpdfayXOa91XnSb7FVf88wWC0MQ6Em8tsg3N7MLRuQ03BKUUbGApRI0Uttgdi ZQUDv9RvslPeKiKEvtgU2lam2CI7zhHp0acp9ZQREXOEcmcIwOzO+dIV6iSugaBdIl EyCtET2dy/OO6oNKlZLY2LWzc8491nK0iERXzPFs= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id 258BD60ECB; Thu, 18 May 2017 15:35:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1495121756; bh=A1emrCCJ/da9BeeM9nI0+RtrmiivNlefOyTruFnym+8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=MW+czcFy29ckDalHdJvVnGI8Stxs7xqDPrVDOyqbf0R7GwxN1zGFajb+1Xm/h5H85 hU2rfcBptnoVK5bJSy1qVjUGl2ezjC1mZ+D42PWyi8uGjL+sfUKMl48PBq8BHJi60S XJtdLPOEcZ+ruS8FSHIl4vAe73x7IUhYlXn9zxrk= MIME-Version: 1.0 Date: Thu, 18 May 2017 09:35:56 -0600 From: dgurjar@codeaurora.org To: "Dong, Eric" Cc: edk2-devel@lists.01.org In-Reply-To: References: <847821b780b0848d92d7bfcd03ea3bcf@codeaurora.org> Message-ID: X-Sender: dgurjar@codeaurora.org User-Agent: Roundcube Webmail/1.2.1 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, 18 May 2017 15:35:57 -0000 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit 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