简体   繁体   中英

How to get a file's timestamp in spotfire?

I have a spotfire template that runs every night using scheduler and I want to show its last refresh time on the template. Is there anyway I can do it within native spotfire functionality or using IronPython ?

To achieve this, you need to add an extra column to one Information Link you are using or have an separate Information link only with this column element, say "Schedule Refresh Time".

Initially do not be concerned about what is the DB table or column you are using, just pull any column with data type DateTime.

Now add this column to your information link and edit SQL. Here find the column you added in SQL query, and replace the column from something

T1."Any Column" as "Schedule Refresh Time"

To something like

SYSDATE as "Schedule Refresh Time".

Done. From now onwards, whenever the Scheduled update will be pull data from Information Link, this column will capture current server Time and that is time of scheduled refresh.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM