简体   繁体   English

如何在spotfire中获取文件的时间戳?

[英]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.我有一个使用调度程序每晚运行的 Spotfire 模板,我想在模板上显示其上次刷新时间。 Is there anyway I can do it within native spotfire functionality or using IronPython ?无论如何我可以在本机点火功能或使用 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.最初不要关心您正在使用的数据库表或列是什么,只需提取数据类型为 DateTime 的任何列。

Now add this column to your information link and edit SQL.现在将此列添加到您的信息链接并编辑 SQL。 Here find the column you added in SQL query, and replace the column from something在这里找到您在 SQL 查询中添加的列,并从某处替换该列

T1."Any Column" as "Schedule Refresh Time" T1.“任何列”作为“计划刷新时间”

To something like

SYSDATE as "Schedule Refresh Time". SYSDATE 作为“计划刷新时间”。

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.从现在开始,每当计划更新将从信息链接中提取数据时,此列将捕获当前服务器时间,即计划刷新时间。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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