Enabling C4C Utility Web Service Call to IS-U (ERP) – Part 1
We have so far covered the creation of a web service in IS-U and then later the configuration required in PI. This section is about enabling the call using the SDK for C4C, called Cloud Application Studio.
The assumption is that you have already downloaded the SDK and have a development user. If this is new to you, then have a look at at this blog, where Jens Limbach gives an execellent overview of the SDK as well as many detailed tips.
This blog will also be broken down in a few parts:
Part 1 – Covering creating the Business Object and Screens used. If you have worked with the C4C SDK before you can skip this.
Part 2 – Here we will implement the callof the web service.
This is the last step where we will implement the call of the web service.
Again the implementation is done simple. We create a Business Object in C4C to hold the data, including the ability to store the ID’s coming back from IS-U.
In C4C I created the following Business Object:
|1||Created 2 messages, one for error and the other to write back the id’s of Premise and Connection Object to the user.|
|2||ID for Data Creation, is just to hold a key for every time I called the service. The Premise ID and Connection Object ID will be returned from IS-U and the remainder of the fields are values that the user can enter for the creation in C4C|
Then I created a set of standard views based on the Business Object – Right Click on the Business Object and then select ‘Create Screens’:
For this test I used the option of generating screens with Object Based Navigation. We need to provide a short id for the screens and then just select ‘Create’.
After creation, we see all the screens created in the Project Explorer.
The 2 screens we will focus on here is the OWL (Overview Screen) and the QA (Screen used for creation of new record).
First we will make a small change to the OWL screen. In order to do this we open the UI designer, by right clicking on the OWL screen and select ‘Open in UI Designer’.
The UI designer will open in a new window and should look like this be default:
If you do not see the above view, then make sure that the ‘Properties’ tab is selected – see the red arrow with a blue #1. On this properties screen we will make one small change – go to the line ‘Use Integrated Toolbar’ and change this from ‘false’ to ‘true’. This will move the ‘Edit’ and ‘Save’ buttons to the top right – wich is on line with the design in most screens in C4C today.
After the change:
After this change, select ‘Save and Activate’ from the menu icons:
With this we are able to test the UI. Leave the UI designer and go back to the Project Explorer. From here right click on the OWL object and select ‘Preview Screen’. This will start a new browser session and you will be asked to logon to C4C before the view is displayed.
If you click on ‘New’ you should see the Create Screen opening:
So without anything else, we have the basics for creating the data. At this point there is no call of the web service, this will be covered in PART 2.