Hi All,

In a dialog we are trying to populate few of the databases in a ComboBox...
Its working fine , and its showing databases in the combo....
The code is below inside a custom action written in C#.

  foreach (string database in databases)
                {
                    Record lRecord = session.Database.CreateRecord(4);

                    lRecord.SetString(1, "SELECTEDDATABASEID");
                    lRecord.SetInteger(2, databaseIndex);
                    lRecord.SetString(3, database);
                    lRecord.SetString(4, database);
                    lView.InsertTemporary(lRecord);

                    ++databaseIndex;
                }
                lView.Close();

But I am facing few issues

When I go back a Dialog where we specify connection details to a server, and
then hit next.. Its again call the same code and results in duplication ..
So its banging..
So , I need clear all the  items in that particular combo box before trying
to add items...

I tried the below code

session.Database.Execute("DELETE FROM ComboBox WHERE Property =
'SELECTEDDATABASEID'");


But I encountered the below issue:

The installer has encountered an unexpected error installing this package.
This may indicate a problem with this package. The error code is 2878.

So, is there any way we can resolve these issues.

Thanks in advance
Ranganatha
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to