forked from Helmut-B/S4HANA
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MARP-148 S4HANA connector - update rest client, example and document (#…
…11) * Update rest client, example and document * Update to version 10.0.19-SNAPSHOT * Update README.md - Added changes from Andreas --------- Co-authored-by: Sabine Gillner <[email protected]>
- Loading branch information
1 parent
f274916
commit 93f7243
Showing
24 changed files
with
466 additions
and
49 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
S4HANA-demo/dataclasses/com/axon/market/s4/hana/demo/demoHANAData.ivyClass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
demoHANAData #class | ||
com.axon.market.s4.hana.demo #namespace | ||
businessPartners java.util.List<com.axon.market.s4hana.client.APIBUSINESSPARTNERABusinessPartnerType> #field | ||
totalCount Integer #field |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
.../src_hd/com/axon/market/s4/hana/demo/BusinessPartnerView/BusinessPartnerView.rddescriptor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<richDialogDescriptor> | ||
<property> | ||
<name>viewTechnology</name> | ||
<value>JSF</value> | ||
</property> | ||
</richDialogDescriptor> |
59 changes: 59 additions & 0 deletions
59
...NA-demo/src_hd/com/axon/market/s4/hana/demo/BusinessPartnerView/BusinessPartnerView.xhtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<html xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:f="http://xmlns.jcp.org/jsf/core" | ||
xmlns:h="http://xmlns.jcp.org/jsf/html" | ||
xmlns:ui="http://xmlns.jcp.org/jsf/facelets" | ||
xmlns:ic="http://ivyteam.ch/jsf/component" | ||
xmlns:p="http://primefaces.org/ui" | ||
xmlns:pe="http://primefaces.org/ui/extensions"> | ||
<h:body> | ||
<ui:composition template="/layouts/frame-10.xhtml"> | ||
<ui:define name="title">Business Partner View</ui:define> | ||
<ui:define name="content"> | ||
|
||
<h3>List of Business Partner</h3> | ||
|
||
<h:form id="form"> | ||
<p:dataTable var="businessPartner" value="#{data.businessPartners}" | ||
rows="10" paginator="true" paginatorPosition="bottom" | ||
paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}" | ||
currentPageReportTemplate="{startRecord}-{endRecord} of {totalRecords} records" | ||
rowsPerPageTemplate="5,10,20"> | ||
|
||
<p:column headerText="Business Partner" | ||
sortBy="#{businessPartner.businessPartner}"> | ||
<h:outputText value="#{businessPartner.businessPartner}" /> | ||
</p:column> | ||
|
||
<p:column headerText="Name" | ||
sortBy="#{businessPartner.businessPartnerFullName}"> | ||
<h:outputText value="#{businessPartner.businessPartnerFullName}" /> | ||
</p:column> | ||
|
||
<p:column headerText="Grouping" | ||
sortBy="#{businessPartner.businessPartnerGrouping}"> | ||
<h:outputText value="#{businessPartner.businessPartnerGrouping}" /> | ||
</p:column> | ||
|
||
<p:column headerText="Category" | ||
sortBy="#{businessPartner.businessPartnerCategory}"> | ||
<h:outputText value="#{businessPartner.businessPartnerCategory}" /> | ||
</p:column> | ||
|
||
<p:column headerText="City"> | ||
<h:outputText | ||
value="#{empty businessPartner.toBusinessPartnerAddress.results ? '' : businessPartner.toBusinessPartnerAddress.results.get(0).cityName}" /> | ||
</p:column> | ||
|
||
</p:dataTable> | ||
<br /> | ||
<div class="command-btns"> | ||
<p:commandButton id="proceed" actionListener="#{logic.close}" | ||
value="Close" update="form" icon="pi pi-check" /> | ||
</div> | ||
</h:form> | ||
|
||
</ui:define> | ||
</ui:composition> | ||
</h:body> | ||
|
||
</html> |
4 changes: 4 additions & 0 deletions
4
.../src_hd/com/axon/market/s4/hana/demo/BusinessPartnerView/BusinessPartnerViewData.ivyClass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
BusinessPartnerViewData #class | ||
com.axon.market.s4.hana.demo.BusinessPartnerView #namespace | ||
businessPartners List<com.axon.market.s4hana.client.APIBUSINESSPARTNERABusinessPartnerType> #field | ||
businessPartners PERSISTENT #fieldModifier |
52 changes: 52 additions & 0 deletions
52
...src_hd/com/axon/market/s4/hana/demo/BusinessPartnerView/BusinessPartnerViewProcess.p.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
"format" : "10.0.0", | ||
"id" : "18FDC5AB53AFDA15", | ||
"kind" : "HTML_DIALOG", | ||
"config" : { | ||
"data" : "com.axon.market.s4.hana.demo.BusinessPartnerView.BusinessPartnerViewData" | ||
}, | ||
"elements" : [ { | ||
"id" : "f0", | ||
"type" : "HtmlDialogStart", | ||
"name" : "start(List<APIBUSINESSPARTNERABusinessPartnerType>)", | ||
"config" : { | ||
"callSignature" : "start", | ||
"input" : { | ||
"params" : [ | ||
{ "name" : "businessPartners", "type" : "List<com.axon.market.s4hana.client.APIBUSINESSPARTNERABusinessPartnerType>" } | ||
], | ||
"map" : { | ||
"out.businessPartners" : "param.businessPartners" | ||
} | ||
}, | ||
"guid" : "18FDC5AB53C99122" | ||
}, | ||
"visual" : { | ||
"at" : { "x" : 96, "y" : 64 } | ||
}, | ||
"connect" : { "id" : "f2", "to" : "f1" } | ||
}, { | ||
"id" : "f1", | ||
"type" : "HtmlDialogEnd", | ||
"visual" : { | ||
"at" : { "x" : 224, "y" : 64 } | ||
} | ||
}, { | ||
"id" : "f3", | ||
"type" : "HtmlDialogEventStart", | ||
"name" : "close", | ||
"config" : { | ||
"guid" : "18FDC5AB53F884AF" | ||
}, | ||
"visual" : { | ||
"at" : { "x" : 96, "y" : 160 } | ||
}, | ||
"connect" : { "id" : "f5", "to" : "f4" } | ||
}, { | ||
"id" : "f4", | ||
"type" : "HtmlDialogExit", | ||
"visual" : { | ||
"at" : { "x" : 224, "y" : 160 } | ||
} | ||
} ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:f="http://xmlns.jcp.org/jsf/core" | ||
xmlns:h="http://xmlns.jcp.org/jsf/html" | ||
xmlns:ui="http://xmlns.jcp.org/jsf/facelets" | ||
xmlns:ic="http://ivyteam.ch/jsf/component" | ||
xmlns:p="http://primefaces.org/ui" | ||
xmlns:pe="http://primefaces.org/ui/extensions"> | ||
|
||
<!-- | ||
DESCRIPTION: | ||
This is the default template to use the freya-ivy theme as well as iFrames approach. | ||
PORTAL: | ||
If you are using the Axon Ivy Portal, you can pass several parameters to it to use some features (e.g. process chain). | ||
You'll find the list of parameters here: https://developer.axonivy.com/portal/10.0/doc/portal-developer-guide/components/layout-templates.html#components-layout-templates-iframe-task-template | ||
For further information about iframes and usage in Portal please refer to: https://developer.axonivy.com/portal/10.0/doc/portal-developer-guide/iframe/index.html | ||
BRANDING: | ||
If you want to brand your dialogs, please take a look at our documentation: https://developer.axonivy.com/doc/10.0/designer-guide/user-interface/branding/index.html | ||
STYLING: | ||
If you want to add custom styles, you can simply add your own .css file (e.g. at the location: "webContent/layouts/styles/style.css") | ||
and refence it below in the head part. | ||
--> | ||
|
||
<h:head> | ||
<f:attribute name="primefaces.THEME" value="#{ivyFreyaTheme.theme}" /> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title><ui:insert name="title">Ivy Html Dialog</ui:insert></title> | ||
<link rel="shortcut icon" href="#{resource['ivy-branding:favicon']}" /> | ||
<h:outputScript name="js/layout.js" library="#{ivyFreyaTheme.library}" /> | ||
<h:outputStylesheet name="#{ivyFreyaTheme.layout}" library="#{ivyFreyaTheme.library}" /> | ||
<h:outputStylesheet name="primeflex-2.min.css" library="primeflex" /> | ||
<h:outputStylesheet name="custom.css" library="ivy-branding" /> | ||
<!-- Optional Style or Script files: | ||
<h:outputStylesheet name="layouts/styles/style.css" /> | ||
--> | ||
</h:head> | ||
<h:body class="body-hd #{ivyFreyaTheme.mode}"> | ||
<ui:include src="/layouts/includes/progress-loader.xhtml" /> | ||
<div id="content" class="container frame"> | ||
<ui:insert name="content"> | ||
default content | ||
</ui:insert> | ||
</div> | ||
|
||
<ui:insert name="exception"> | ||
<ui:include src="/layouts/includes/exception.xhtml" /> | ||
</ui:insert> | ||
|
||
<!-- optional Portal parameters: | ||
<script> | ||
window. | ||
</script> | ||
--> | ||
|
||
</h:body> | ||
</html> |
Oops, something went wrong.