Re: [edk2] Convention for creating dynamic HII forms
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-boun...@lists.01.org] On Behalf Of dgur...@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 ___ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel
Re: [edk2] Convention for creating dynamic HII forms
Hi Dev, I add my comments below. Thanks, Eric -Original Message- From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of dgur...@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 ___ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel
[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. 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 ___ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel