We appreciate you taking the time to vote and add your suggestions to make our products awesome! Your request will be submitted to the community for review and inclusion into the backlog.

We recommend reviewing what is submitted before posting, in case your idea has already been submitted by another community member. If it has been submitted, vote for that existing feature request (by clicking the up arrow) to increase its opportunity of being added to Cireson solutions.

For more information around feature requests in the Cireson Community click here.

Fully Documented JavaScript API for the Cireson Portal

Adrian_PaechAdrian_Paech Customer Advanced IT Monkey ✭✭✭

It would be "really" nice to have access to a fully documented JavaScript API from Cireson for the portal. 
Otherwise it’s almost impossible to customise without assistance from Cireson :-/.
I think a lot of customers would appreciate this.

As an example, this would include...
All the possible functions, methods and properties available for configuring cusom.js and other customisable .js config files.

For Example... what are all of the sub functions under "formTasks"? What are its related child methods, and parameters..
Also, with formObj, I understand there are a couple of different methods available e.g. "boundReady", and "boundChange"
What other methods of formObj exist, and what are their methods and properties. It goes on an on.

I understand this is a huge piece of work, and it may take away "some" need for third party customisations away from Cireson and other vendors, but in the end it should provide more of an "openSource" approach to the Cireson portal, which would only increase your userbase, provide more publically available extensions and customisations to the product (which improves the product overall) and ultimately results in further profits for Cireson anyway.
Just my 2 cents.

29 votes

Submitted · Last Updated

Comments

  • Nicholas_VelichNicholas_Velich Cireson Consultant Ninja IT Monkey ✭✭✭✭
    Hi Adrian,

    I'd love to see more documentation as well-- examples in particular. Understanding how/when custom code executes is the first step towards making a customization, and this is initially illustrated through some knowledge articles. Many of these articles are simple and do not require the API, but are an essential starting point:

    https://support.cireson.com/KnowledgeBase/View/52#/
    https://support.cireson.com/KnowledgeBase/View/1188#/
    https://support.cireson.com/KnowledgeBase/View/1195#/
    https://support.cireson.com/KnowledgeBase/View/1166#/

    As far as the API itself is concerned, there are some resources already available that come built into any Cireson Portal installation. You can find these as an admin by clicking in the top-right, and selecting "API Documentation."



    This page has a list of all the public API calls available. Additionally, there is a .docx file on this page that has several API examples. 

    So how do you pair the API documentation + API examples with some JavaScript to make a complex customization? In my opinion, the best way to learn this stuff is by example, and there are many examples which use the API on the downloads page.

    The Convert IR to PR might be a good place to start, as this customization uses 3 different API calls:
    1. GetTemplates
    2. CreateProjectionByTemplate
    3. Commit
    All other API calls follow a similar format, and are called via the parameters specified on the API Documentation page. Browse through the other examples on the downloads page, and if you have any questions about a specific call, just throw the question out to the community.

    Thanks,
    Nick
  • Adrian_PaechAdrian_Paech Customer Advanced IT Monkey ✭✭✭

    Hey Nick,

    I was already aware of the API Link on the portal, but this is more geared towards the REST API, which does not really help much with JS.

    Also the examples are great (from the downloads page), and they have definitely helped me, but this only provides a very small subset of what is possible with the portal.

    I really feel a comprehensive API would be much more beneficial than a few examples.

    Cheers,

    Adrian

  • Conner_WoodConner_Wood Customer Advanced IT Monkey ✭✭✭
    I agree with a detailed list of information.  I am unfamiliar with the Cireson javascript structure which makes trying to figure out any code extremely difficult.

    Currently I've added this to the custom.js file:
    $(document).ready(function () {
    	console.log(session);
    	console.log(app);
    });
    
    Then using Chrome I go to the Portal and then open up the DevTools using "Ctrl + Shift + I" or "F12" or even right clicking the page and going Inspect Element.

    Then going to the console tab you can view the objects and expand them to see what's inside.



    I figure it's worth mentioning as it's very intimidating looking at the JavaScript code in CiresonPortal\Scripts

  • Ryan_Kennedy1Ryan_Kennedy1 Customer IT Monkey ✭
    Is there any update to this feature request? It would be really good to have. The API Documentation on the portal doesn't even list all of the API calls you can do .. For example, it doesn't list :  /Dashboard/GetDashboardQueryData?query=

    This one I only know about due to the Change Calendar script on the commnuity site.. What other API calls are missing from the documentation?
  • Ryan_Kennedy1Ryan_Kennedy1 Customer IT Monkey ✭
    @Tony_Collett - this is what I was talking about the other day ..
    Another one that is missing : /Search/GetObjectHistory?id= 
Sign In or Register to comment.