Configuring Maximo Anywhere



Download 1.16 Mb.
View original pdf
Page19/73
Date16.12.2020
Size1.16 Mb.
#54492
1   ...   15   16   17   18   19   20   21   22   ...   73
pdf si mpl configure
About this task
In the application definition, you add queries to the specifications for the work list view and the primary resource. Each query must correspond to, and have the same name as, a public query in Maximo Asset Management. The public query, in turn,
corresponds to a query in the service provider for the primary resource.
Each application definition includes three system queries, Records Created Locally,
Records with Errors, and Search Results, that are used for system functions in the mobile app. You must not remove or modify the code for these queries.
Procedure
1.
In the Anywhere\MaximoAnywhere\apps\app_name\artifact directory, open the app.xml file with an XML editor.
2.
Add a query to the work list view. The work list view is the first view that is defined in the UI section of the application definition.
a.
In the element for the work list view, add a child element called
.
b.
Use the queryBase attribute to specify the name of the public query in
Maximo Asset Management. The query name is case sensitive.
c.
Use the label attribute to specify the query label that is displayed in the work list menu.
d.
Optional: To define this query as the default query for the work list view,
specify the query label as the value of the label attribute for the parent
element.
In this example, three queries are added to the work list view for the Work
Execution app:
saveonshow="true"




<...>

<...>

3.
Add the query that you specified instep to the primary resource. The primary resource is the first resource that is defined in the data section of the application definition.
Configuring Maximo Anywhere
11

a.
In the element for the primary resource, add a child element called queryBase.
b.
Use the name attribute to specify the name of the public query in Maximo.
The query name is case sensitive.
c.
Use the queryUri attribute to specify how to retrieve the query records from
Maximo.
In this example, three queries are added to the primary resource, workOrder,
for the Work Execution app:
describedBy="http://jazz.net/ns/ism/work/
smarter_physical_infrastucture#WorkOrder"
name="workOrder" pageSize="100"
>
<...>





<...>

4.
Save the file.
5.
Build and deploy the application.
What to do next
Log into the application and check that the queries that you added appear in the work list menu. Verify that the result set is the same when you run the query in the provider application and in the mobile app.

Download 1.16 Mb.

Share with your friends:
1   ...   15   16   17   18   19   20   21   22   ...   73




The database is protected by copyright ©ininet.org 2024
send message

    Main page