Afternoon all, I have a ListBox that I want users to populate during the install process with two buttons(Add/Remove) and an Edit field. I'm using a custom action written in C# to perform these tasks. Below is my sample code:
[CustomAction] public static ActionResult AddToListBox(Session session) { try { String val = (String)session["SOME_KEY"]; int rowCnt = session.Database.CountRows("ListBox"); //TODO add where's clause View myView = session.Database.OpenView("SELECT * FROM `ListBox` WHERE (`Property`='MY_LISTBOX')"); Record record = new Record("MY_LISTBOX", rowCnt, val, val); record[0] = "MY_LISTBOX"; record[1] = 4; record[2] = storeName; record[3] = storeName; myView.InsertTemporary(record); myView.Close(); myView.Dispose(); } catch (Exception ex) { return (ActionResult.Failure); } return (ActionResult.Success); } <Control Id="StoreEdit" Type="Edit" Property="SOME_KEY" X="30" Y="94" Height="18" Width="200"/> <Control Id="AddStoreBtn" Type="PushButton" X="235" Y="94" Width="56" Height="17" Default="no" Disabled="no" Text="Add"> <Publish Event="DoAction" Value="AddServerToList">1</Publish> </Control> <Control Id="StoreLabel" Type="Text" X="30" Y="114" Width="80" Height="10" Text="Video store(s):" /> <Control Id="StoreList" Type="ListBox" Property="MY_LISTBOX" X="31" Y="126" Width="198" Height="100" Sorted="yes" Indirect="no"/> When the custom action above is executed, a new entry seems to be successfully added to the table. However the ListBox UI does not update with that new value (the new value does not appear in the list) right away. If I leave that particular dialog and come back, that new value now appears. If anyone could provide any recommendations on how to make the ListBox control update immediately, I would greatly appreciate it. Thanks in advance ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users