问题标签 [rpt]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
106 浏览

crystal-reports - 如何在现有的水晶报表公式中添加秒?

我需要帮助在水晶报告 RPT 文件的时间戳中添加秒数。当前的公式是转换时间并去除秒数。在 CR 中,我可以调整格式以显示“秒”,但它们始终显示为 00 而不是实际值。我们有多个时区的客户,但我们的服务器设置为亚利桑那州。如果我将公式调整为仅formula = CurrentDateTime,它会起作用,但这会影响我们的东海岸业务合作伙伴,因为报告将显示亚利桑那州的时间。

我们正在使用 Crystal Reports V. 14.0.2.36 RTM

0 投票
0 回答
275 浏览

sql-server - 如何在 pandas 中解析 SQL 文件?

我处于一种奇怪的情况,我无法使用python. 但是,我可以使用 以其他方式连接到服务器SQL Server Management,因此我可以执行任何查询。然而,问题是解析pandas从 SQL 管理器中检索到的数据。据我所知,来自 SQL 管理器的数据可以以csvtxtrpt. 解析这些格式中的任何一种都是一件令人头疼的事情,而且对于所有表格来说并不总是相同的。那么我的问题是,解析 SQL Manager 可以输出的任何文件格式的最快方法是什么pandas?是否有 SQL 管理器可以输出的标准格式,并且pandas所有表的解析方式都相同?有没有人遇到过这个问题,或者有其他解决方法吗?

0 投票
1 回答
265 浏览

report - 查看 .rpt 文件

我在 Katalon Studio 工作,我的 Test Suite Collection 为我提供了一份 .rpt 文件的报告。问题是,我怎样才能读取那个 .rpt 文件。我在 stackoverflow 上发现了一些关于它的问题,一些建议使用 Crystal Reports,但我如何看到该软件不是免费的。我还尝试使用 FFV(免费文件查看器)和 Axure 来查看我的 .rpt 文件,但它们对我不起作用。

0 投票
1 回答
1185 浏览

jwt - 令牌刷新时的部分 JWT 令牌

在微服务架构中,我们使用来自 keycloak 的 JWT 令牌。现在我们想要获得第二个权限更少的访问令牌(更少的声明/更少的角色)。用例是:新的访问令牌应该允许其所有者访问文档存储中的一个文档。为什么?限制某人在窃取此令牌时可能造成的损害。

理想情况下,我们可以通过特殊的 refresh_token 调用获得第二个令牌(持有刷新令牌的用户有权获得完全访问令牌,因此他也应该能够获得部分访问令牌)。我们怎么能这样做?

使用范围似乎不起作用:给定范围列表仅在登录时评估(因此在刷新令牌时,我不能采用范围列表)。

我还尝试了解https://www.keycloak.org/docs/latest/authorization_services/index.html#_service_overview或 RPT。但不幸的是,我缺少一些文档(我的尝试失败了)。

还有其他想法吗?或者甚至是一个展示如何做到这一点的例子?

稍后编辑以使我关于 RPT 的问题更加明确: https://www.keycloak.org/docs/latest/authorization_services/index.html#_service_overview说:

... Keycloak 授权服务提供对 OAuth2 的扩展,以允许根据与所请求的资源或范围相关的所有策略的处理来发布访问令牌。这意味着资源服务器可以根据服务器授予并由访问令牌持有的权限来强制访问其受保护的资源。在 Keycloak 授权服务中,具有权限的访问令牌称为请求方令牌或简称 RPT。

这种具有权限的访问令牌可以用于我们的目标吗?

在我的实验中,我可以通过 grant_type=urn:ietf:params:oauth:grant-type:uma-ticket 获得令牌。但是有一些问题:

  • 我不得不更改 keycloak 中的一些设置以启用权限(在它会说“客户端不支持权限”之前)。进行这些更改后,我的正常登录调用将不再起作用(我可以在我的令牌仍然有效时进行测试)。我不得不修改我的 keycloak 配置才能继续工作。

  • 我不太了解用于此功能的权限模型

一个端到端的例子会很有用(Keycloak 文档中的例子有点抽象)。

0 投票
1 回答
158 浏览

javascript - 需要帮助在 BIRT 报表设计器中索引列表

我有一个列表(不是高级的,只有一个键值),它将用于在 rptdesign 文件中生成一个表。我需要做的是将这些列表/表格条目中的每一个索引为 1,2,3,....n 在 BIRT 中是否有一个自动编号设置可以让我这样做,或者我需要编写脚本吗在?如果是这样,我将在哪里输入脚本。任何援助将不胜感激

0 投票
1 回答
1389 浏览

pdf - 有没有办法将 PDF 文件转换为 Crystal 报表文件?

我正在尝试将pdf文件转换为水晶报告文件,这可能吗?有没有软件工具可以做到这一点?

我在网上查过,但找不到任何东西

0 投票
0 回答
208 浏览

php - 使用codeigniter读取rpt并存储在数据库和excel中

我有两个需要读取的 rpt 文件,存储到 excel 和 mysql 数据库中。此外,我需要通过引用两个 rpt 文件中共有的唯一列来创建一个报告,该报告是两个 rpt 文件的连接结果。我以前读过 Excel、Exported Excel 和 Exported pdf,但这次我什至不知道如何开始。我尝试谷歌搜索并找到以下解决方案,但它将 rpt 转换为 pdf:

上面的代码也在寻找一个 COM 组件:CrystalReports10.ObjectFactory.1

我需要在 Linux 服务器上部署这个应用程序,所以我不确定这个 COM 组件是否在那里可用。请告诉我如何使用 Codeigniter 读取 rpt 并将数据存储到数据库和 Excel 中。

0 投票
1 回答
497 浏览

php - 在PHP中逐列读取rpt文件内容

我有 .rpt 文件,我需要读取它们的数据,然后将数据存储在 MYSQL 数据库中。我尝试了以下解决方案:

我从 stackoverflow 的另一篇文章中得到了这个代码想法,但是我仍然有两个问题:

  1. 我不知道我的文件中可用的列数。它可能因文件而异。

  2. 每个文件都由许多记录组成,其中一些记录标题再次重复。此外,不同文件之间的标题不一致,因此我无法估计每当标题再次出现时从顶部和内容之间删除的行数。

我在 Notepad++ 中编辑了我作为示例粘贴在这里的文件,但是我不确定是否所有隐藏字符都将按原样复制。

其他样品

0 投票
1 回答
645 浏览

r - R repeatability model (in rptR), unsure about formula. Outcome =Zero repeatability for several models, with boundary singular fit warning

I am analyzing repeatability between a variety of cognitive tests (and repetitions of those tests). I try to determine the individual repeatability of birds using the rptR package in R. However, regardless of my model or what I'm testing it always results in a warning and R = 0. I am trying to understand what causes this.

I currently have a dataframe which includes: an ID (repeated twice for each individual). Each ID repetition is accompanied by a score for the test in question. These scores are first log-transformed to attain normality and then the Z-scores of these scores are computed so that I can make comparisons between tests measuring the same trait on different scales. However, regardless of how I set up my model, with my data it always results in a repeatability of R=0. While this is technically possible, I find it unlikely for it to be so low for all parameters (as I make comparisons both between different tests as well as the same test measured twice). Moreover, I get a warning with every model I run stating: 'Boundary (singular) fit: see ?isSingular'. From what I've gathered this means that the variance in my data might be too small, though I am not entirely certain about this. And I am worried that this might be causing my R = 0.

A snippet of my dataframe looks as follows: RNR_ID RoundNR TTC TTC_Z Test_date 2 1 1 28 0.0966013973 43423 114 1 2 14 -0.8138678026 43543 5 2 1 48 0.8045891472 43425 122 2 2 31 0.2302959586 43549

An example of two variations of my models: Unadjusted R:

Rep1_Assoc_A <- rpt(TTC_Z ~ RoundNR + (1|RNR_ID), grname = "RNR_ID", data = rpt_Assoc_A_df, datatype = "Gaussian", nboot = 10, npermut = 10)

Adjusted R (In which I control for test date in the hope of accounting for learning of individuals between repetitions of the same test):

Rep2_Assoc_A <- rpt(TTC_Z ~ RoundNR + Test_date + (1|RNR_ID), grname = "RNR_ID", data = rpt_Assoc_A_df, datatype = "Gaussian", nboot = 10, npermut = 10)

Note: RNR_ID, RoundNR & TTC_Z are numerical variables. Test_date is given as Date format, though I am not sure how the model handles this. In this model the RoundNR indicates the "treatment" (as this indicates whether a test was the first or the second time an individual was scored). The TTC_Z indicates the Z-score of an individual.

And the resulting output respectively:

As stated before, while running this code the console throws several: boundary (singular) fit: see ?isSingular messages at me. I have also tried a fake dataset in which I adjusted all values of repetitions to be nearly identical, which indeed results in a high R (around 0.9..). While this seems to suggest my R=0 might actually be correct, I am still skeptical due to this being not only unexpected, (As I would expect at least a very low but measurable R). But due to my lack of comprehension behind the model I fear something else might be going wrong as well.

To summarize, my questions are:

Q1: Are the current formulas for my models correct? And are the variables in the right data types?

Q2: What does the boundary (singular) fit: see ?isSingular mean in this situation, and can I "fix" it?

Q3: What could be causing my R=0? Am I analyzing my data wrongfully or is my R just really 0?

0 投票
2 回答
59 浏览

python - 如何在python 3中删除文件中不超过某个字符的行

我有一个非常大的文件需要解析。我不需要任何高达'&'. 我只需要'&'文件中的信息。如何删除之前的行'&'?这是我到目前为止所拥有的:

输入文件:

在 rpt 文件中,它有 6 行,第 1-4 行是不需要的信息。我想删除第 1-4 行,所以我可以专注于第 5 和第 6 行。