获取Jasperserver单选查询参数的默认值
我试图在 Jasperserver 8.0.0 下拉列表中选择默认值,以下代码获取下拉列表,问题是它更改了默认值,但它只给我带来该默认值,其他值消失
SELECT '', pa.attrname
FROM jiprofileattribute pa
WHERE pa.principalobjectclass = 'com.jaspersoft.jasperserver.api.metadata.user.domain.impl.hibernate.RepoUser'
UNION
SELECT pa.attrvalue, pa.attrname
FROM jiprofileattribute pa
WHERE pa.principalobjectclass = 'com.jaspersoft.jasperserver.api.metadata.user.domain.impl.hibernate.RepoUser'
I am trying to select a default value in a Jasperserver 8.0.0 dropdown list, the following code gets the dropdown list, the problem is that it changes the default value but it brings me only that default value and the others disappear
SELECT '', pa.attrname
FROM jiprofileattribute pa
WHERE pa.principalobjectclass = 'com.jaspersoft.jasperserver.api.metadata.user.domain.impl.hibernate.RepoUser'
UNION
SELECT pa.attrvalue, pa.attrname
FROM jiprofileattribute pa
WHERE pa.principalobjectclass = 'com.jaspersoft.jasperserver.api.metadata.user.domain.impl.hibernate.RepoUser'
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
解决方案是在 Jasperstudio 中,属性应作为默认参数传递,这样默认情况下就会选择它。
the solution was that in Jasperstudio the attributes should be passed as default parameter, that way it is chosen by default.