Showing posts with label Presentation. Show all posts
Showing posts with label Presentation. Show all posts

Monday, 22 April 2019

Limit SR Classification based on other attributes

1. Copy classfication diaglog from Library.xml and paste it into presentation (sr.xml) file.
<dialog id="associateClassification" label="Classify">
        <tree beanclass="psdi.webclient.beans.assetcat.AssociateSpecBean" allowqualifiedrestriction="true" height="250" id="associateClassification_tree" maxchildren="1000" relationship="CLASSSTRUCTURESR"  openfirstlevel="false" width="600">
            <treenode displaykeyattribute="false" displayobjectname="false" id="associateClassification_tree_node1" keyattribute="classstructureuid" objectname="CLASSSTRUCTURE">
                <treeattribute dataattribute="classificationid" display="true" id="associateClassification_tree_node1_attr1"/>
                <treeattribute dataattribute="classificationdesc" display="true" id="associateClassification_tree_node1_attr2"/>
            </treenode>
        </tree>
        <buttongroup id="associateClassification_2">
            <pushbutton default="true" id="associateClassification_2_2" label="Cancel" mxevent="dialogcancel"/>
        </buttongroup>
</dialog>
2. create a new relation in SR Object for Classstructure as child object

commoditygroup=:commoditygroup and contract=:contract

3. import sr.xml again and good to go.


Thanks to Haris who did it atlast.


Wednesday, 13 April 2016

Custom Power App for Desktop Requisition XML | IBM Maximo

Once we modified OOB Desktop requisition  to Power App, Presentation is as below:
<?xml version="1.0" encoding="UTF-8"?>
<presentation id="mymr" ismobile="false" mboname="MR" resultstableid="results_showlist" version="6.0.0">
<page id="mainrec" scroll="false">
<include controltoclone="pageHeader" id="INCLUDE-pageHeader"/>
<clientarea id="clientarea">
<tabgroup id="maintabs" style="form">
<tab default="true" id="results" label="List" type="list">
<menubar event="search" id="actiontoolbar1" sourcemethod="getAppSearchOptions"/>
<table id="results_showlist" inputmode="readonly" label="Requisitions" mboname="MR" selectmode="multiple">
<tablebody displayrowsperpage="20" filterable="true" filterexpanded="true" id="results_showlist_tablebody">
<tablecol dataattribute="MRNUM" filterable="false" id="results_showlist_column_select" mxevent="toggleselectrow" mxevent_desc="Select Row {0}" sortable="false" type="event"/>
<tablecol dataattribute="MRNUM" id="results_showlist_column_link" mxevent="selectrecord" mxevent_desc="Go To %1" type="link" usefieldsizegroup="false"/>
<tablecol dataattribute="DESCRIPTION" id="results_showlist_column3"/>
<tablecol dataattribute="SITEID" id="results_showlist_column1"/>
<tablecol dataattribute="REQUESTEDBY"