cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Daniel_Dority
Level 6

Controls not updating

I've created a few dropdownlist controls on a new blank dialog.

I create a new STRINGLIST object, assign values to it but nothing appears. The control id's do match up on the dialog yet still no values.

Using messages boxes, I can verify that the values do exist and the lists are being created. What gives?

Legend:
EnsureStringList function creates a stringlist if it doesn't already exist.
Setup is a .NET Object with some properties that I return.

[CODE]
// ----[List of Network Domains]---- //
EnsureStringList(domainList);

StrGetTokens(domainList, Setup.GetCurrentDomains(), ",");

MessageBox(Setup.GetCurrentDomains(), INFORMATION);

CtrlSetList(dialogName, DomainId, domainList);
CtrlSetCurSel(dialogName, DomainId, Setup.Configuration.NetworkDomain);
[/CODE]

Even a simple CtrlSetText doesn't work.
Labels (1)
0 Kudos
(2) Replies
RobertDickau
Flexera Alumni

Where are you calling this code? (In the DLG_INIT case of the custom dialog code?) Do return values from CtrlSetZzzz tell you anything?

Does the skeleton code in the "Using InstallScript to Implement Custom Dialogs" and "Using InstallScript to Process Dialog Controls" topics work?
0 Kudos
Daniel_Dority
Level 6

Yes, I am calling it in the DLG_INIT code. And using MessageBoxes I can tell that the code is firing.

When I create a new dialog I first chose Blank Template. Nothing seems to work when talking with the controls. I chose, create a new scripting template and it works.

I don't know what backend changes are present, but I guess I'll have to work with that template instead.
0 Kudos