PC Review


Reply
Thread Tools Rate Thread

ComboBox and Dynamic Items

 
 
Raghu
Guest
Posts: n/a
 
      16th Oct 2003
I am working on an MSI file that has dialog which contains combo box. I need
to populate the combobox with items based on the user system and let user
choose one of the items. The development and target OS is win2k server
(windows installer 2.0).

The dialgo and control are linked in Control table along with set property.
The property and its items (that are set at design time) are listed in
ComboBox table. But I don't know how to populate combobox with dynamic items
at runtime depending on the user system.

Any help is appreciated.

Thanks.
Raghu/..


 
Reply With Quote
 
 
 
 
Kallely Sajan
Guest
Posts: n/a
 
      17th Oct 2003
It will be something like the following

dim ODB: set ODB = Session.Database
dim oInstaller: set oInstaller = Session.Installer
Set view = ODB.OpenView("Select * From `ComboBox`")
view.Execute

Set mrecord = oInstaller.CreateRecord(4)
Const MSIMODIFY_INSERT_TEMPORARY = 7
dim i : i = 0
i = i + 1
With mrecord
.StringData(1) = "COMBOLIST"
.IntegerData(2) = i
.StringData(3) = "something"
.StringData(4) = "something else"
End With
view.Modify MSIMODIFY_INSERT_TEMPORARY , mrecord

For more info pls refer to
http://msdn.microsoft.com/library/en...obox_table.asp
--

Regards,
Sajan.

PS: Please don't send me direct emails, use the newsroom.

"Raghu" <(E-Mail Removed)> wrote in message
news:#(E-Mail Removed)...
> I am working on an MSI file that has dialog which contains combo box. I

need
> to populate the combobox with items based on the user system and let user
> choose one of the items. The development and target OS is win2k server
> (windows installer 2.0).
>
> The dialgo and control are linked in Control table along with set

property.
> The property and its items (that are set at design time) are listed in
> ComboBox table. But I don't know how to populate combobox with dynamic

items
> at runtime depending on the user system.
>
> Any help is appreciated.
>
> Thanks.
> Raghu/..
>
>



 
Reply With Quote
 
Raghu
Guest
Posts: n/a
 
      17th Oct 2003
I will try this. Thank you.

"Kallely Sajan" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> It will be something like the following
>
> dim ODB: set ODB = Session.Database
> dim oInstaller: set oInstaller = Session.Installer
> Set view = ODB.OpenView("Select * From `ComboBox`")
> view.Execute
>
> Set mrecord = oInstaller.CreateRecord(4)
> Const MSIMODIFY_INSERT_TEMPORARY = 7
> dim i : i = 0
> i = i + 1
> With mrecord
> .StringData(1) = "COMBOLIST"
> .IntegerData(2) = i
> .StringData(3) = "something"
> .StringData(4) = "something else"
> End With
> view.Modify MSIMODIFY_INSERT_TEMPORARY , mrecord
>
> For more info pls refer to
> http://msdn.microsoft.com/library/en...obox_table.asp
> --
>
> Regards,
> Sajan.
>
> PS: Please don't send me direct emails, use the newsroom.
>
> "Raghu" <(E-Mail Removed)> wrote in message
> news:#(E-Mail Removed)...
> > I am working on an MSI file that has dialog which contains combo box. I

> need
> > to populate the combobox with items based on the user system and let

user
> > choose one of the items. The development and target OS is win2k server
> > (windows installer 2.0).
> >
> > The dialgo and control are linked in Control table along with set

> property.
> > The property and its items (that are set at design time) are listed in
> > ComboBox table. But I don't know how to populate combobox with dynamic

> items
> > at runtime depending on the user system.
> >
> > Any help is appreciated.
> >
> > Thanks.
> > Raghu/..
> >
> >

>
>



 
Reply With Quote
 
Raghu
Guest
Posts: n/a
 
      20th Oct 2003
Wow!!! This thing works like a charm.

Thank you very much!!!

"Raghu" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I will try this. Thank you.
>
> "Kallely Sajan" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > It will be something like the following
> >
> > dim ODB: set ODB = Session.Database
> > dim oInstaller: set oInstaller = Session.Installer
> > Set view = ODB.OpenView("Select * From `ComboBox`")
> > view.Execute
> >
> > Set mrecord = oInstaller.CreateRecord(4)
> > Const MSIMODIFY_INSERT_TEMPORARY = 7
> > dim i : i = 0
> > i = i + 1
> > With mrecord
> > .StringData(1) = "COMBOLIST"
> > .IntegerData(2) = i
> > .StringData(3) = "something"
> > .StringData(4) = "something else"
> > End With
> > view.Modify MSIMODIFY_INSERT_TEMPORARY , mrecord
> >
> > For more info pls refer to
> > http://msdn.microsoft.com/library/en...obox_table.asp
> > --
> >
> > Regards,
> > Sajan.
> >
> > PS: Please don't send me direct emails, use the newsroom.
> >
> > "Raghu" <(E-Mail Removed)> wrote in message
> > news:#(E-Mail Removed)...
> > > I am working on an MSI file that has dialog which contains combo box.

I
> > need
> > > to populate the combobox with items based on the user system and let

> user
> > > choose one of the items. The development and target OS is win2k server
> > > (windows installer 2.0).
> > >
> > > The dialgo and control are linked in Control table along with set

> > property.
> > > The property and its items (that are set at design time) are listed in
> > > ComboBox table. But I don't know how to populate combobox with dynamic

> > items
> > > at runtime depending on the user system.
> > >
> > > Any help is appreciated.
> > >
> > > Thanks.
> > > Raghu/..
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Combobox items based on choice in previous combobox Slim Slender Microsoft Excel Programming 0 2nd Aug 2011 03:52 AM
ASP.NET Menu Items - Dynamic Items Disapearing Microsoft Newsserver Microsoft ASP .NET 1 22nd Feb 2008 04:18 PM
ComboBox.Items.Clear() causes the selection of Text inside the edit of the ComboBox Nomasnd Microsoft Dot NET Framework Forms 1 27th Sep 2006 06:32 PM
Combobox items determined by the selection in another combobox =?Utf-8?B?QWxlcmlvbg==?= Microsoft Excel Programming 2 13th Sep 2006 01:07 PM
Load dynamic data into comboBox based on input in ComboBox =?Utf-8?B?SmFzb24gU21pdGg=?= Microsoft Dot NET Framework Forms 1 31st May 2004 05:21 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:39 AM.