Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Differentiate ComboBox and ListBox from BIRT Runtime API
Differentiate ComboBox and ListBox from BIRT Runtime API [message #736809] Fri, 14 October 2011 10:59 Go to next message
Alessio Pollero is currently offline Alessio PolleroFriend
Messages: 74
Registered: August 2011
Member
I'm working on a project in which i parse all the parameter of a BIRT report through BIRT RunTime library 3.7, i've found an issue because seems that from the library i can't distinguish between a ComboBox and a ListBox control type, is there a way to distinguish a ComboBox control and a ListBox control ?


Sample code :

[code]if(p.getControlType() == IScalarParameterDefn.LIST_BOX) {  //DO Somethi[/code]ng 
 }
Re: Differentiate ComboBox and ListBox from BIRT Runtime API [message #736825 is a reply to message #736809] Fri, 14 October 2011 11:14 Go to previous message
Alessio Pollero is currently offline Alessio PolleroFriend
Messages: 74
Registered: August 2011
Member
Found by myself :

                        if(p.getScalarParameterType() == "multi-value") {
				//It is a ListBox 
			} else {
				//It is a ComboBox
			}
Previous Topic:Examples of custom report items with methods
Next Topic:Word doc has unwanted empty paragraphs
Goto Forum:
  


Current Time: Sat Apr 20 06:36:23 GMT 2024

Powered by FUDForum. Page generated in 0.02838 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top