[Logo] SpagoWorld Forums
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing  
[Groups] Back to home page  [Moderation Log] Moderation Log   [Register] Register /  [Login] Login 
How to create java class LOV [CLOSED]  XML
Forum Index » Technical Help - SpagoBI Server - CORE
Author Message
arod.spw

Newby

Joined: 06/07/2010 21:54:53
Messages: 26
Location: México
Offline

Hi,

I'm trying to create a java class LOV but I'm kind of lost.
"The java class must implement the interface it.eng.spagobi.bo.javaClassLovs.IJavaClassLov."

I downloaded the source and I only found in the SpagoBIUtils project
/SpagoBIUtils/src/it/eng/spagobi/behaviouralmodel/lov/bo/IJavaClassLov.java
(I didn't find the java package/class mentioned in the creation lov help, however in that package
is JavaClassDetail too, so i guess it's the IJavaClassLov I should use)
I created my class implementing that IJavaClassLov class and making it part of the same package.

I put my .class into /webapps/SpagoBI/WEB-INF/classes/it/eng/spagobi/behaviouralmodel/lov/bo,
restarted my server, put my classname into the classname lov field and after testing I'm getting a ClassNotFoundException

SpagoBI.log:

java class:


Does anybody knows what am I missing or doing wrong?

This message was edited 1 time. Last update was at 27/09/2010 12:37:32

arod.spw

Newby

Joined: 06/07/2010 21:54:53
Messages: 26
Location: México
Offline

For the busy developer, until the answer appears
I didn't spend more time getting this, and all the programming i wanted to do in java was
programmable in javascript, so as side option you can create the xml string
with javascript/groovy. Not explicitly said, but all you need is to write
the xml string as if you where echoing it (I didn't use objects or complicated js, but i guess
it would work too.)
So you can do something like:

var x = ...
...
function foo(i) { .. }
function bar1(arg) { .. }
function bar2(arg) { .. }

'<ROWS>'+
'<ROW name="'+foo(1)+'" value="'.bar1().'" />'+
'<ROW name="'+foo(2)+'" value="'.bar2().'" />'+
...
'</ROWS>'
 
Forum Index » Technical Help - SpagoBI Server - CORE
Go to:   
Powered by JForum 2.1.9 © JForum Team