Ben -

This is a browser issue. SetBrowserData should not be necessary (if using 
RETRIEVE), but it should certainly force the browser value to be updated. 
DriverSampleDxe (which you are using) only seems to have a sample for Ref, not 
for numeric. And, unfortunately, the SCT doesn't handle callback issues very 
well.

Can you send a screen shot of the debugger you are using (or any relevant debug 
output) to this list?

Tim

From: Ben Schroeder [mailto:ben...@mellanox.com]
Sent: Monday, January 21, 2013 10:22 AM
To: edk2-devel@lists.sourceforge.net
Subject: Re: [edk2] HII Config Access Protocol - Modifying question values

Thanks for the replies Tim and Sathya.

I have tried changing the Value field in these events as well: 
EFI_BROWSER_ACTION_CHANGED & EFI_BROWSER_ACTION_CHANGING.
The value was not updated.
Perhaps I need to call SetBrowserData() or perhaps I need to use VFR refresh 
opcode for my questions (EFI_IFR_REFRESH)..
Regards, Ben.
From: Prakash, Sathya [mailto:sathya.prak...@lsi.com]
Sent: Monday, January 21, 2013 8:05 PM
To: edk2-devel@lists.sourceforge.net<mailto:edk2-devel@lists.sourceforge.net>
Subject: Re: [edk2] HII Config Access Protocol - Modifying question values

Have you tried changing the values in CHANGED/CHANGING Callback actions? Also 
have you tried invoking SetBrowserData() before returning from your callback?

Thanks
Sathya

From: Tim Lewis [mailto:tim.le...@insyde.com]
Sent: Monday, January 21, 2013 10:22 AM
To: edk2-devel@lists.sourceforge.net<mailto:edk2-devel@lists.sourceforge.net>
Subject: Re: [edk2] HII Config Access Protocol - Modifying question values

Ben -

For FORM_OPEN changing the value does nothing. For RETRIEVE it should allow you 
to update the current question value used by the Forms Browser. So something is 
strange.

In general, ONE_OF and NUMERIC are identical. A forms browser may choose to 
display one differently than another. But they both work on a numeric value, 
have the same fields, etc.

Tim

From: Ben Schroeder [mailto:ben...@mellanox.com]
Sent: Monday, January 21, 2013 2:25 AM
To: edk2-devel@lists.sourceforge.net<mailto:edk2-devel@lists.sourceforge.net>
Subject: [edk2] HII Config Access Protocol - Modifying question values

Hi everyone,

I was wondering how it is possible to modify the value of a field displayed in 
an HII form.
For instance:

      numeric varid   = MyIfrNVData.HowOldAreYouInYears,
              questionid = 0x1200,
              prompt  = STRING_TOKEN(STR_NUMERIC_STEP_PROMPT),
              help    = STRING_TOKEN(STR_NUMERIC_STEP _HELP),
              flags   = NUMERIC_SIZE_1 | DISPLAY_UINT_DEC |  INTERACTIVE,
              minimum = 0,
              maximum = 243,
              default = 0,
      endnumeric;

In ConfigAccessProtocol  DriverCallback, I have tried modifying this value in 
certain places, with no success.
For instance on actions of type EFI_BROWSER_ACTION_FORM_OPEN and 
EFI_BROWSER_ACTION_RETRIEVE I have tried accessing the Value union and changing 
it: Value->u8 = 5
Then returning EFI_SUCCESS.
I have not seen any values being changed in all my tests. Is there a different 
way to update the value?

Also, will updating the selected option in a 'one of' statement be similar?

Thanks in advance, Ben.
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to