Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE
Highlighted
Super Contributor.. Andrew-Ruller Super Contributor..
Super Contributor..
1112 views

What is Best Practise for consumer portal CSA/MPP Dynamic dropdowns - JSP via DB vs JQuery via API

Hi all, 

First post so please be gentle. We have an implementation of CSA and OO as a service provider and therefore some of our offerings need to poll internal systems (eg: vcenter) for data to present to the customer in various subscription offerings in dynamic dropdowns.  I was hoping there would be a method for MPP to poll an API using Jquery AJAX in order to dynamically populate dropdowns and other form elements during the completion of a subscription.

An example use case would be as follows. An offering exists where a System health check can be performed against at target host. I would like a dynamic dropdown in realtime presented to the customer which listed all their VM's.

As above, being a service provider we have multiple tenants, and therefore would like to create an API call of sorts which retrievies a realtime list of all VM's associated with this tenant (specifically by polling vCenter directly). The client side api vis jquery call would have an associated auth token allowing the customer's browser to query the API.

An alternative method would be an OO job to populate a SQL database with a list of VM's but this would not be realtime and could put uneccessary load on vCenter with constant queries, especially as the number of tenant VM's increases.

If we are able to expose dynamic data via an API call this would open up options and the type of data that is available to the consumer portal for integration into various service offerings.

Any comments and feedback are welcome.

Thanks,

Andrew

 

Labels (2)
Tags (2)
0 Likes
4 Replies
Super Contributor.. Andrew-Ruller Super Contributor..
Super Contributor..

Re: What is Best Practise for consumer portal CSA/MPP Dynamic dropdowns - JSP via DB vs JQuery via A

Further information this is for CSA 4.6 using OO Central 10.51

0 Likes
Trusted Contributor.. kumiisc Trusted Contributor..
Trusted Contributor..

Re: What is Best Practise for consumer portal CSA/MPP Dynamic dropdowns - JSP via DB vs JQuery via A

CSA4.6 onwards it is advisable to use javascript based dynamic options rather using JSP's. Dynamic options using JPS's will be deprecated in future. 

CSA46 has published Dynamic options guide on the support portal. 

You can also get all those documents from https://hpln.hpe.com/product/hp-cloud-service-automation/resources/file-repository

Thanks

Kumar

Aladinos
Visitor.

Re: What is Best Practise for consumer portal CSA/MPP Dynamic dropdowns - JSP via DB vs JQuery via A

Hello,

The link is no more active, can you share the new location of repo files please ?

Thanks.

0 Likes
Visitor.. KolyaTLK
Visitor..

Re: What is Best Practise for consumer portal CSA/MPP Dynamic dropdowns - JSP via DB vs JQuery via A

Hello 

It's an intersting question.

We used a lot of js script to query decisional data in a custom database.

For example for a specific offer name and environnement we query the db to find the correct cluster and datastore on which we will provision a virtual machine.

But i have a question for this case. When a data is retrieved from a js  script. Is it possible to hide it for the end user in the formula ? in CSA 4.6.

For example i need to retrieve the info with a jsscript but i don't want the value to be visible for the end user that will order the virtual machine

It seems that it's not possible to hide it

Thanks for your help

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.