1
Vote

htmlInstaller does not populate user-defined edit values

description

When using an <input type="text"> element in an HTML page, htmlInstaller does not populate values so they can be used by components.

The sample configuration.xml has an element <input type="text" id="TestValueFromHtml" />, but any value put in this box is not visible to components (the log says: "Setting user-defined edit value 'TestValueFromHtml'=")

Tested with version 2.0.81.0.
Attachments include the configuration.xml, the log file, and the Index.html in use.

file attachments

comments

jennings wrote Mar 26, 2012 at 11:50 PM

I don't have the environment necessary to compile and test this, but I think the problem is in htmlInstaller\SetControlValuesTask.cpp on line 59:

else if (0 == wcscmp(type, L"text"))
{
std::wstring value = DVLib::UTF8string2wstring(elt.get_html(false));
LOG(L"--- Setting user-defined edit value '" << id << L"'=" << value);
...

Judging from the code on line 65 for file-path input types, I think it should be:

else if (0 == wcscmp(type, L"text"))
{
std::wstring value = elt.get_value().to_string();
LOG(L"--- Setting user-defined edit value '" << id << L"'=" << value);
...

jennings wrote Jun 19, 2012 at 12:10 AM