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
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