Professional Documents
Culture Documents
COPYRIGHT @ 2020 BLUE YONDER, INC. ALL RIGHTS RESERVED. BLUE YONDER RESERVES THE RIGHT AT ANY TIME AND WITHOUT
NOTICE TO CHANGE THESE MATERIALS OR ANY OF THE FUNCTIONS, FEATURES OR SPECIFICATIONS OF ANY OF THE SOFTWARE
DESCRIBED HEREIN. BLUE YONDER PROVIDES NO WARRANTY NOR INDEMNIFICATION WITH RESPECT TO THESE MATERIALS
AND/OR THE SOFTWARE DESCRIBED HEREIN, EXCEPT AS APPROVED IN BLUE YONDER’S AGREEMENT WITH AN AUTHORIZED
LICENSEE. BLUE YONDER, INC. GRANTS PARTNER AND/OR CUSTOMER REVOKABLE PERMISSION TO USE THE BLUE YONDER
MATERIALS AND IMAGES AS PART OF INTERNAL TRAINING ACCESS SOLELY FOR PRIVATE, NON-COMMERCIAL AND EDUCATION
PURPOSES ONLY, AND NOT FOR RESALE, REPRINT, CLIENT EDUCATION, DOWNLOAD, OR OTHER SHARING.
• Page Builder
• CWS
• Action Argument Location
• Grids
• Charts
• Advanced CRUD actions
• Filtering
• Sorting
• Paging
Page Builder is an application, which allows users to create UI pages [forms, grids, charts, dashboards] on top of CWS
or IdentifiableWebResources.
Page Builder allows these pages to be configured further for layout, filtering, loading, labels, context-navigation using
customization features.
Resource
A resource is configured to handle primary keys in web service calls and allow for the associating the resource to
one or more actions. The configurations are specified in XML format and saved in a .resource file.
Following is .resource file content:
Actions
Actions are configured to associate URLs (href) and methods to MOCA commands. The configurations are
specified in XML format and saved in an .action file. Following is .action file content:
PATH
• Href : <href>/orders/{id}</href>
• This can be anything. It is recommended that for compound primary keys, it is specified as pk.
• localhost:4800/ws/cws/orders/unique_id
• localhost:4800/ws/cws/orders/client*!order*!wh
• The above would be in the form client_id, ordnum, wh_id – alphabetically by argument.
QUERY
• Href : <href>/orders</href>
• localhost:4800/ws/cws/orders?id=unique&arg=something
• <listConfig>
• <columnConfig> orderConfig </columnConfig>
• <filterable/>
• <pageable/>
• <sortable/>
• </listConfig>
%PRODDIR%/data/rpuxQueryColumnMappings/orderConfig.json
"columns": {
“wh_id": {
"type": "java.lang.String",
"alias": “ord.name"
},
“entdte": {
"type": "java.lang.Date",
"alias": “ord.entdte"
},
……
<filterable/>
publish data where filterByClause = nvl(@filterByClause, [1=1])
|
[select * from ord where @filterByClause:raw]
Operators: EQ, NE, GT, LT
http:localhost:4800/ws/cws/orders?query=[{
"AND" : [{
"column" : “wh_id",
"value" : “WMD1",
"operator" : "EQ"
}, {
"column" : “entdte",
"value" : “"2012-10-23T00:00:00"”,
"operator" : “GT"
}
]
}]
<sortable/>
publish data where sortOrderClause = nvl(@sortOrderClause, ‘ord.ordnum’)
|
[select * from ord order by @sortOrderClause]
http:localhost:4800/ws/cws/orders?sort=-ordnum,+entdte
[
/*#limit=@offset,@limit,true */
select * from ord
]
http:localhost:4800/ws/cws/orders?offset=2&limit=10