-
Notifications
You must be signed in to change notification settings - Fork 0
/
component---src-pages-simple-update-app-saved-query-mdx-506c6d231ffe8ba4a3fd.js
2 lines (2 loc) · 8.12 KB
/
component---src-pages-simple-update-app-saved-query-mdx-506c6d231ffe8ba4a3fd.js
1
2
"use strict";(self.webpackChunkmas_playbook=self.webpackChunkmas_playbook||[]).push([[513],{3624:function(e,t,a){a.d(t,{Z:function(){return k}});var i=a(7294),n=a(8650),r=a.n(n),o=a(1597),l=a(811),s=a(87),c=a(5900),d=a.n(c),u=function(e){var t,a=e.title,n=e.theme,r=e.tabs,o=void 0===r?[]:r;return i.createElement("div",{className:d()("PageHeader-module--page-header--NqfPe",(t={},t["PageHeader-module--with-tabs--vbQ-W"]=o.length,t["PageHeader-module--dark-mode--WCeH8"]="dark"===n,t))},i.createElement("div",{className:"bx--grid"},i.createElement("div",{className:"bx--row"},i.createElement("div",{className:"bx--col-lg-12"},i.createElement("h1",{id:"page-title",className:"PageHeader-module--text--Er2EO"},a)))))},m=function(e){var t=e.relativePagePath,a=e.repository,n=(0,o.useStaticQuery)("1364590287").site.siteMetadata.repository,r=a||n,l=r.baseUrl,s=r.subDirectory,c=l+"/edit/"+r.branch+s+"/src/pages"+t;return l?i.createElement("div",{className:"bx--row EditLink-module--row--BEmSX"},i.createElement("div",{className:"bx--col"},i.createElement("a",{className:"EditLink-module--link--IDrl1",href:c},"Edit this page on GitHub"))):null},p=a(4703),h=a(1721),g=function(e){function t(){return e.apply(this,arguments)||this}return(0,h.Z)(t,e),t.prototype.render=function(){var e=this.props,t=e.title,a=e.tabs,n=e.slug,l=n.split("/").filter(Boolean).slice(-1)[0],s=a.map((function(e){var t,a=r()(e,{lower:!0,strict:!0}),s=a===l,c=new RegExp(l+"/?(#.*)?$"),u=n.replace(c,a);return i.createElement("li",{key:e,className:d()((t={},t["PageTabs-module--selected-item--aBB0K"]=s,t),"PageTabs-module--list-item--024o6")},i.createElement(o.Link,{className:"PageTabs-module--link--Kz-7R",to:""+u},e))}));return i.createElement("div",{className:"PageTabs-module--tabs-container--Cdfzw"},i.createElement("div",{className:"bx--grid"},i.createElement("div",{className:"bx--row"},i.createElement("div",{className:"bx--col-lg-12 bx--col-no-gutter"},i.createElement("nav",{"aria-label":t},i.createElement("ul",{className:"PageTabs-module--list--xLqxG"},s))))))},t}(i.Component),f=g,b=a(7296),y=a(5387),w=a(3732),v=function(e){var t=e.date,a=new Date(t);return t?i.createElement(w.X2,{className:"last-modified-date-module--row--XJoYQ"},i.createElement(w.sg,null,i.createElement("div",{className:"last-modified-date-module--text--ogPQF"},"Page last updated: ",a.toLocaleDateString("en-GB",{day:"2-digit",year:"numeric",month:"long"})))):null},k=function(e){var t=e.pageContext,a=e.children,n=e.location,c=e.Title,d=t.frontmatter,h=void 0===d?{}:d,g=t.relativePagePath,w=t.titleType,k=h.tabs,E=h.title,A=h.theme,x=h.description,N=h.keywords,P=h.date,T=(0,y.Z)().interiorTheme,S=(0,o.useStaticQuery)("2456312558").site.pathPrefix,q=S?n.pathname.replace(S,""):n.pathname,C=k?q.split("/").filter(Boolean).slice(-1)[0]||r()(k[0],{lower:!0}):"",V=A||T;return i.createElement(s.Z,{tabs:k,homepage:!1,theme:V,pageTitle:E,pageDescription:x,pageKeywords:N,titleType:w},i.createElement(u,{title:c?i.createElement(c,null):E,label:"label",tabs:k,theme:V}),k&&i.createElement(f,{title:E,slug:q,tabs:k,currentTab:C}),i.createElement(b.Z,{padded:!0},a,i.createElement(m,{relativePagePath:g}),i.createElement(v,{date:P})),i.createElement(p.Z,{pageContext:t,location:n,slug:q,tabs:k,currentTab:C}),i.createElement(l.Z,null))}},1312:function(e,t,a){a.r(t),a.d(t,{_frontmatter:function(){return l},default:function(){return d}});var i=a(3366),n=(a(7294),a(4983)),r=a(3624),o=["components"],l={},s={_frontmatter:l},c=r.Z;function d(e){var t=e.components,a=(0,i.Z)(e,o);return(0,n.kt)(c,Object.assign({},s,a,{components:t,mdxType:"MDXLayout"}),(0,n.kt)("h2",null,"About this task"),(0,n.kt)("p",null,"This guide explains how to change a query and modify its structure, with the possibility of extending a query to a specific scenario"),(0,n.kt)("h2",null,"Procedure"),(0,n.kt)("h3",null,"Step 1: In the app.xml file, locate the datasource to be modified. In this example, we will use the Technician application. Search for the datasource which id=“dsworktype”."),(0,n.kt)("pre",null,(0,n.kt)("code",{parentName:"pre",className:"language-xml"},' <maximo-datasource id="dsworktype" offline-immediate-download="true" selection-mode="single" saved-query="WOWORKTYPE" lookup-data="true" pre-load="true" object-structure="mxapiworktype" page-size="100">\n <schema id="b2rkz">\n <attribute name="worktype" searchable="true" unique-id="true" id="rrpez"/>\n <attribute name="wtypedesc" searchable="true" id="w5_zm"/>\n <attribute name="woclass" searchable="true" id="b8w9r"/>\n <attribute name="orgid" searchable="true" id="b_jdj"/>\n <attribute name="promptdown" id="n_5q4"/>\n <attribute name="startstatus" id="vm3ke"/>\n <attribute name="completestatus" id="a5yen"/>\n </schema>\n <maximo-datasource-override id="workTypeFilterDS" selection-mode="multiple"/>\n </maximo-datasource>\n')),(0,n.kt)("h3",null,"Step 2: Additionally, this datasource identifies a saved query (WOWORKTYPE) linked to the object structure named MXAPIWORKTYPE. In the object structure application, you can view/manage this query. If you change the ‘Query Definition’, this will change the work type data that is made available to the Technician application and any other application or client API that is using this saved query."),(0,n.kt)("span",{className:"gatsby-resp-image-wrapper",style:{position:"relative",display:"block",marginLeft:"auto",marginRight:"auto",maxWidth:"1152px"}},"\n ",(0,n.kt)("span",{parentName:"span",className:"gatsby-resp-image-background-image",style:{paddingBottom:"50%",position:"relative",bottom:"0",left:"0",backgroundImage:"url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAYAAAC0VX7mAAAACXBIWXMAACHVAAAh1QEEnLSdAAACTUlEQVQoz32R3WvTUBjG8y86cF4JKvNGBk5FLxQEvXBDwSud7Go40TuZutHVNp9Nk7RJs63M4YWos1vTD/qRNuf0I03eR5K5IQi+8OM853nPeTiHV7j94HH71v1HfPHew+Dyjbvs4sIdNndtiV24ssjmri6m6xnJ/m9vfmHpjGB+4Sa/dH2pLWRz+ZGu67BtB5rhYP29hufr21hZ3cDyyw2svHpzznLirW5gZfVUP3nxOj2T6Kdrb/Fs7d1I2Py4xSRZgWmaVC6VyNA10jWF3IpDtV8/qenVqdk4pdXwqN1sULvVTLV3ckztViP1LKMIxy4xIbPzmedFEYZhkKZpkGQZoijBdXfh+z76vT58fwDGGKaTCcIwxGQywWw2O2cyDSn5ZdEwuCCrBV4oFGBZFpmmCdOyYNs2vhweouMPUfMaaPcH6AccvSGDzzha3d4f+mh2/aRHruvCdV0uiJLCVVVF2bZJVRSIYh75fA57+1V0hhw/aifpJTaN4I+m8PwRap0hmj5DMI3AwhijMCKjWERBL3Lhw6dtnslkUNB12s7mkBVlbGVzqOzuIQ7H6HS6GA4G4IwhCAL0BwyjSYRwFgNEAAFxFNFOXkJWUrggimL6QtOySFI1yAUdeUVF2d3Hd2+AgI+RVEwESgKShFTHiOM47UXRjFTdgKobp4GSJMEwTCpZFmRJQkFVUKpUIR90MQ4J/6tgHCOKQRXHQcVxuCBJEk+GYds2FQ0jmXYyIFSr+xj02vC8Our1f0n8o9oxNpUDfP12ROVyOcngvwHwL6AxSGhW/QAAAABJRU5ErkJggg==')",backgroundSize:"cover",display:"block"}}),"\n ",(0,n.kt)("img",{parentName:"span",className:"gatsby-resp-image-image",alt:"Query definition",title:"Query definition",src:"/configuration-practices-documentation/static/0efd7e8ebf1ccb17fa9f4c5dc2f55e74/3cbba/query-definition-update.png",srcSet:["/configuration-practices-documentation/static/0efd7e8ebf1ccb17fa9f4c5dc2f55e74/7fc1e/query-definition-update.png 288w","/configuration-practices-documentation/static/0efd7e8ebf1ccb17fa9f4c5dc2f55e74/a5df1/query-definition-update.png 576w","/configuration-practices-documentation/static/0efd7e8ebf1ccb17fa9f4c5dc2f55e74/3cbba/query-definition-update.png 1152w","/configuration-practices-documentation/static/0efd7e8ebf1ccb17fa9f4c5dc2f55e74/d43b5/query-definition-update.png 1433w"],sizes:"(max-width: 1152px) 100vw, 1152px",style:{width:"100%",height:"100%",margin:"0",verticalAlign:"middle",position:"absolute",top:"0",left:"0"},loading:"lazy",decoding:"async"}),"\n "),(0,n.kt)("h3",null,"Step 3: (Optional): You can also extend a saved query by adding a ‘where=’ clause in the datasource as shown below (instead of changing the query itself, which could be used by many applications). This will ‘append’ to the saved query."),(0,n.kt)("pre",null,(0,n.kt)("code",{parentName:"pre",className:"language-xml"},' <maximo-datasource-override id="pmduewolistDS" saved-query="PMWOLIST" where="schedfinish>="&SYSDAY&" and schedfinish<="&SYSDAY&+7D"" mobile-qbe-filter="{{\'status_maxvalue\': \'!=COMP,CAN,CLOSE,WAPPR\'}}" offline-immediate-download="true"/>\n')))}d.isMDXComponent=!0}}]);
//# sourceMappingURL=component---src-pages-simple-update-app-saved-query-mdx-506c6d231ffe8ba4a3fd.js.map