Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Differentiate ComboBox and ListBox from BIRT Runtime API
Differentiate ComboBox and ListBox from BIRT Runtime API [message #736809] Fri, 14 October 2011 06:59 Go to next message
Alessio Pollero is currently offline Alessio Pollero
Messages: 65
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 07:14 Go to previous message
Alessio Pollero is currently offline Alessio Pollero
Messages: 65
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: Fri Jul 25 18:18:10 EDT 2014

Powered by FUDForum. Page generated in 0.01554 seconds