Combobox with Database |
Post Reply |
Author | |
wismerhill
Newbie Joined: 16 May 2008 Status: Offline Points: 10 |
Post Options
Thanks(0)
Posted: 04 June 2008 at 11:24am |
Hello,
I have a combobox in the first column of a report control. The data source of this combobox is the result of a recordset : RptControl_TA.Columns.Column(0).EditOptions.Constraints.Add RsTA.Fields("CODE_TA").Value & " - " & RsTA.Fields("LIB_TA").Value, i + 1 When i want to load the data, i add to the combobox column the following information (the same caption as before). Record.AddItem RsListe.Fields("CODE_TA").Value & " - " & RsListe.Fields("LIB_TA").Value But the combobox is empty. I can only recover some information when i use Record.AddItem 1 (where 1 is the second parameter : i+1) Can we use the caption to fill the combobox ? Else i will need to use a tab to save the caption and the data code and research for each record the good caption. Thanks |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
Can you upload a sample?
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
wismerhill
Newbie Joined: 16 May 2008 Status: Offline Points: 10 |
Post Options
Thanks(0)
|
wismerhill
Newbie Joined: 16 May 2008 Status: Offline Points: 10 |
Post Options
Thanks(0)
|
Thanks to Aaron, my problem was solved.
The solution is to declare for my combobox : Column.EditOptions.ConstraintEdit = False |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
I'm a little confused right now
I looked in the help (first time I didn't read it properly) and thought this is going to solve your problem and it did ?!?! but why, see Remarks
Remarks
If True, then you can only choose from the list of constraints added. If False, then you can type a custom response not listed in the list of constraints. Why does this property has an influence on this ???
Please explain....
And @wismerhill
This will have the same effect and you can only select the items in the combo:
''
In the help:
Remarks
If False, then any editing features will not be used. The Combo button and Expand buttons will not be displayed. If True, then all ReportRecordItems can be edited, you will need to set the EditOptions to false for each column that can not be edited, or you can set the EditOptions for each individual ReportRecordItem. Now, this is helpfull isn't it?
Well it works @wismerhill , right? Maybe we will get a reply of the supportteam and clear things....
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |