【问题标题】:Maximo Anywhere 7.6 - Custom Query added in Maximo & app.xml is not displayed in the browserMaximo Anywhere 7.6 - 在 Maximo & app.xml 中添加的自定义查询未显示在浏览器中
【发布时间】:2016-06-17 11:40:10
【问题描述】:

我在 Maximo 的服务请求应用程序中创建了一个自定义公共查询。在执行anywhere-rdf-puller.xml 的过程中,同样会作为WorkManagement rdf 的一部分下载。

当查询添加到 app.xml 中的视图和资源部分时,在模拟器中是不可见的。

我已经验证了生成的 ApplicationUIBuilder.js,我可以看到查询详细信息,但在调试中我在 eventcontext 对象中找不到查询。我只能看到标准查询。

我已将标准查询作为参考,在 app.xml 中添加自定义查询。下面是sn-ps的代码:

<view id="ServiceRequest.MyReportedSR" label="My Service Requests" resource="serviceRequest" showBackButton="true">
            <queries id="ServiceRequest.MyReportedSR_serviceRequest_queries" resource="serviceRequest">
                <query id="ServiceRequest.MyReportedSR_MY_REPORTED_SR" label="My Service Requests" queryBase="MY_REPORTED_SR"/>
                <query id="ServiceRequest.MyReportedSR_HIGH_PRIORITY_SR" label="Urgent Service Requests" queryBase="Z_HighPrioritySRs"/>
   .
   .
                </queries>
   .
   .
    </view>


<resource defaultOrderBy="srnum desc" describedBy="http://jazz.net/ns/ism/work/smarter_physical_infrastructure#ServiceRequest" hasManagedQuery="true" id="serviceRequest" name="serviceRequest" pageSize="200" providedBy="/oslc/sp/WorkManagement"> 
            <attributes id="serviceRequest_attributes">
.
.
</attributes>
<queryBases id="serviceRequest_queryBases">
                <!-- list of query bases the app will rely upon for this resource -->
                <queryBase id="serviceRequest_queryBase_MY_REPORTED_SR" name="MY_REPORTED_SR" queryUri="/oslc/os/oslcsrdetail?savedQuery=MY_REPORTED_SR"/>
                <!-- Added by Karthik For Demo -->
                <queryBase id="serviceRequest_queryBase_HIGH_PRIORITY_SR" name="Z_HighPrioritySRs" queryUri="/oslc/os/oslcsrdetail?savedQuery=Z_HighPrioritySRs"/>
            </queryBases>
        </resource>

任何建议将不胜感激?

问候, 卡提克

【问题讨论】:

  • 这在禁用 Maximo 中的 Anywhere 管理门户后有效。

标签: maximo-anywhere oslc


【解决方案1】:

查询似乎没有显示,因为它被可用的 Anywhere Administration 查询覆盖。禁用 Anywhere Administration 后,app.xml 中编写的查询可见。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多