This forum is now out of date, for our new forum Click Here
Writing Advanced Functions
Question Asked
I've seen a hint in the forum that it's possible to implement your own Advanced Functions in Java.
Can you point me to some documentation and example code?

Gert

Mon Dec 1, 2014 4:02 AM

Answer
Hello Gert,

Here is a link to our latest Wiki section on Advanced Use
of Javascript.

Advanced Use

Please let us know if this was what you were after or
if you need further assistance.

Thank you.

Kyle

Tue Dec 2, 2014 4:12 AM

Answer
Thanks for your response, Kyle!
Unfortunately, that's not it. I was referring to the Advanced Functions you can use in the Report Builder.
And I saw a hint in this post
http://www.yellowfinbi.com/YFForum-How-to-add-custom-java-function-?thread=114199
that it’s possible to implement your own advanced functions in JAVA.
(Not to be confused with JavaSCRIPT, which is something completely different.)

Here’s a small snippet of example code from that post:

...
...
...
protected void setupParameters() {
Parameter p = new Parameter();
p.setUniqueKey("NUMERICFIELD");
p.setDisplayName("Numeric Field");
p.setDescription("Numeric Field");
p.setDisplayType(DISPLAY_SELECT);
p.setDataType(TYPE_FIELD); // require a field in
p.setAcceptsFieldType(TYPE_NUMERIC, true); // on
addParameter(p);
}
...
...
...

I can’t find any related information in the Wiki or the internet.
That’s why I’m asking here in the forum.
Your developers certainly have some example code. If you could provide that to me, I may be able to work with it, even if I can't get any official documentation.

Please note that you may not be able to display the above-mentioned post when you’re logged in.
You may have to log off before you can view the post.

Gert

Tue Dec 2, 2014 5:06 AM

Answer
Hey Gert,

Thanks for the clarification and
apologizes for the misunderstanding.

With the detailed information you provided
I will consult with Senior Support and the Dev
team for the appropriate response.

Thank you in advance for your patience.

Kyle

Kyle

Tue Dec 2, 2014 5:26 AM

Answer
Hi Gert,

please see chapter 17 of this administrator's guide for more documentation on custom java functions.

And of course, if you have any further questions after reading the guide then please don't hesitate to ask us.

regards,
Dave

David

Mon Aug 31, 2015 7:51 AM

Answer
Hi Dave,

thanks for your info!
I've built a .jar file. Now I need to register it with Yellowfin.

The Guide tells me to add an entry to the file "custom-analytical-functions.xml". But I can't find such a file in my YF installation, and I can't find any examples for it on the internet. Can you provide one?

Gert

Wed Dec 3, 2014 1:31 AM

Answer
Hi Gert,

apologies, that guide is a bit out of date, it actually has to be listed in a file called
META-INF/services/com.hof.mi.interfaces.AnalyticalFunctions


Please let us know if there are any other issues.

regards,
Dave

David

Wed Dec 3, 2014 11:28 AM

Answer
Hi Dave,

in our Yellowfin installations, the META-INF directory only contains a file named MANIFEST.MF (about 100 bytes in size). Nothing else.

If I try to understand what you wrote, I would create a "services" directory and in it, create a file named "com.hof.mi.interfaces.AnalyticalFunctions". Unfortunately, I have no example of the format the file is supposed to have. An example file would be really helpful.

Gert

Wed Dec 3, 2014 6:53 PM

Answer
Hi Gert,

just letting you know that I've emailed you an example as requested, please let us know if you don't receive it or the attachment gets blocked.


regards,
Dave

David

Fri Dec 5, 2014 12:00 PM

Answer
It works now. Thanks, Dave!

Gert

Sat Dec 6, 2014 3:02 AM

Comment
Hi Dave,

Can I get an example too please. I am trying to add a function myself

Regards
Dieter

Dieter

Thu Mar 26, 2015 12:53 AM

Comment
Hi Dieter,

just emailed one to you.

regards,
Dave

David

Thu Mar 26, 2015 10:12 AM

Comment
Hi Dave - Can you also send me any information you have on creating advanced functions in version 7.1. I haven't been able to locate any info on this.

Regards,
Steve

Steve

Tue Nov 24, 2015 2:00 AM

Comment
Hi Steve,

I'll send this to you via email.

Thank you,

Kyle

Kyle

Wed Dec 2, 2015 10:14 AM

Answer
Hi Dave
There is a requirement for us to use User Defined Functions (created in Java) in Yellowfin reports. I guess this is same as Advanced Functions.
Can you please share some details and documentation on how to create and compile java UDF which can then be used in Yellowfin.
We have searched the yellowfin wiki and forums but the details are not available anywhere.

Regards
Ravi

Ravindra

Sat Dec 5, 2015 1:30 AM

Comment
Good Afternoon Ravi,

Hope you are well,

I can see that you have logged a support request regarding this question as well, I have responded to the case and you should received my response.

If you have any questions please feel free to respond to the case.

Thanks

Adam

Adam

Sat Dec 5, 2015 1:54 AM