Welcome to Knowage Q&A, where you can ask questions and receive answers from other members of the community.
0 votes
1 view
E' possibile inserire in un cruscotto un testo con la data attuale?
in Cockpit, Dashboard and Console by (140 points)

1 Answer

0 votes
Hi,

yes this is possible. First you need to create a dataset that extract the current date (it could be a Query Dataset or a Javascript Dataset) then you can use it inside your cockpit in a text or html widget for example.

Regards.
by (11.6k points)
Ho provato a fare un dataset 'DataCorrente' (sia Groovy che JS) ma ne cruscotto una volte impostato nella text box DataCorrente.value mi dice 'Nessun dato restituito dal dataset DataCorrente'; premetto che nella creazionedel dataset con Anteprima visualizzava la data correttamente.

LOG:

[http-apr-8080-exec-5] 05 lug 2019 11:21:36,362 ERROR it.eng.spagobi.tools.dataset.DatasetManagementAPI.getDataStore:444 - An unexpected error occured while executing method
it.eng.spagobi.utilities.assertion.UnreachableCodeException: getDataSource method not implemented in class it.eng.spagobi.tools.dataset.bo.ScriptDataSet!!!!
org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:228)
    at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56)
[http-apr-8080-exec-5] 05 lug 2019 11:21:36,362 ERROR it.eng.spagobi.rest.interceptors.RestExceptionMapper.toResponseFromGenericException:73 - Catched service error:
it.eng.spagobi.utilities.exceptions.SpagoBIServiceException: An unexpected error occured while executing service
    at it.eng.spagobi.api.common.AbstractDataSetResource.getDataStore(AbstractDataSetResource.java:225)
...