Skip to content
Lmame edited this page Dec 8, 2017 · 4 revisions

Sample-Library-Public

History:

  • Version:
  • 0.2, 2017/12/08, Converting the project to 17-11 and adding
  • 0.1, 2017/10/31, Initial release.
  • Author: Laurent Matheo.

What is this? :)

This repository hosts several source code example for Innovation Suite. You can request a free of charge development environment on the BMC Developer Portal (https://developers.bmc.com/site/global/home/index.gsp).

Videos...

Most if not all examples are explained in videos available on my Youtube channel:

Content:

Javascript View Components:

  • Custom Label (how to pass information to a View Component. The component is updated each time the value changes),
  • Display Associated data using Javascript framework,
  • Display data using Javascript framework,
  • Display a picture that is stored in an attachment of a record instance,
  • List of icons you can use for your view component (it is a view component with search capability),
  • Priority and VAT calculators. This one shows how to pass data to a view component as well data back from a view component each time a value changes,
  • Star System: Show how to pass and get information from a view component as well as showing how to display complex information in View * Designer (slider to select the number of stars, color picker, showing the stars in the canvas etc...),
  • Show how to use the "Refresh" Action to call a method in a View Component and insert the View Component into a record editor,
  • Calling a Custom Command and Custom Rest API using BMC OOTB resources objects,
  • Calling a Javascript Action from Javascript Code using "rxAction" method.

Javascript Actions:

  • Calling a javascript custom Action and using rxNotification to display messages popups,
  • Calling a Custom Java command using $http to get result from it,

Java Service:

  • Custom Java service that returns an Object that can be used in Rule or Process designers,

Java Rest API:

  • Custom Rest API,

Java Commands:

  • Custom Java commands delivered as examples,

Installation (using the zip file):

You can Just deploy the file "com.example.samplelibrary-1.0-SNAPSHOT.zip" on your development environment. https://docs.bmc.com/docs/innovationsuite/cloud/importing-the-export-packages-to-deploy-tailoring-changes-of-applications-747679337.html

Build and installation using the source code:

Please follow those steps:

To deploy:

Here are the steps:

  • Clone this repository,
  • Change the content of the parent "pom.xml" file to insert your credentials:
    <!-- START: Bundle specific configuration. Verify and Change as per environment -->
    <developerUserName>developer</developerUserName>
    <developerPassword>password</developerPassword>
    <!-- Server name with Jetty port. -->
    <webUrl>https://developerXXXX.innovate.bmc.com</webUrl>
    <!-- END: Bundle specific configuration.-->
  • Run the command "mvn clean install -Pdeploy" to deploy the application on your developer environment,

Disclaimer:

These samples are released by Laurent Matheo and are released "as is" as code samples. There is no warranty, liability or support on those examples.

Support:

Please find support on the Developer BMC Community if you have any questions or feel gree to use this git repo features (bug report etc...).

Links:

Most important:

I hope it helps :)