Hi,
I need to generate a report and I need that when I generate the report, CMDBuild ask me a parameter (through a dropdown). I want CMDBuild show the field Description from a class in this dropdown. I have thought to create a PostgreSQL function that recieves the parameter. Then call the function with SELECT * FROM function_name(...). My problem is that I don't know how to create the SELECT and the head of the funcion (i mean: CREATE OR REPLACE FUNCTION function_name (...) returns... )
Thanks in advance,
Marcos