Skip to Content

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:

 

 

/wp-content/uploads/2016/09/2016_09_05_17_07_14_1029811.png

 

 

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’:

 

 

 

/wp-content/uploads/2016/09/2016_09_05_16_45_49_1029855.png

 

 

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’.

 

 

/wp-content/uploads/2016/09/2016_09_05_16_46_59_1029860.png

 

 

After creation, we see all the screens created in the Project Explorer.

 

/wp-content/uploads/2016/09/2016_09_05_17_00_56_1029854.png

 

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’.

 

 

/wp-content/uploads/2016/09/2016_09_05_17_01_15_1029861.png

 

 

The UI designer will open in a new window and should look like this be default:

 

 

/wp-content/uploads/2016/09/2016_09_05_17_02_01_1029862.png

 

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:

 

/wp-content/uploads/2016/09/2016_09_05_17_23_41_1029863.png

 

After this change, select ‘Save and Activate’ from the menu icons:

 

/wp-content/uploads/2016/09/2016_09_05_17_25_05_1029865.png

 

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.

 

/wp-content/uploads/2016/09/2016_09_05_18_23_55_1029905.png

 

If you click on ‘New’ you should see the Create Screen opening:

 

/wp-content/uploads/2016/09/2016_09_05_18_25_18_1029906.png

 

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.

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply