This topic contains 5 replies, has 0 voices, and was last updated by HarriVayrynen 7 years, 10 months ago.

  • Author
    Posts
  • #1355

    HarriVayrynen

    Hi!

    I tried to build HTML Portlet, where is little bit layout, different colours, fontsizes etc. It works nicely. Thanks for .css support. But now I wonder is it possible to get values dynamically from NS suite. Then I could show dynamic information with these nice HTML portlets. Thanks for any information (information from HTML type portlet’s limits is also welcome).

    Simple HTML Portlet is like this (sample from help file)

    /** *@NApiVersion 2.x *@NScriptType Portlet */ define([],

    function() {

    function render(params) {

    params.portlet.title = ‘My Portlet’;

    var content = ‘

    Hello!!!

    ‘; params.portlet.html = content; }

    return { render: render }; });
    This is a cached copy. Click here to see the original post.

  • #1356

    JCirocco

    Not sure if this helps but Marty just posted this to his blog…

    http://blog.prolecto.com/2017/01/01/…-to-wordpress/

  • #1357

    HarriVayrynen

    Thank you John. Marty gives again great information to all of us, but this article is not helping with html portlet

  • #1358

    chanarbon

    HarriVayrynen

    My suggestion on this would may depend on what information you want to use. You can use search module or record module’s lookupFields() to retrieve information and dynamically construct an HTML string using the values from the recrod data using either search module or record module.

  • #1359

    j.j

    to answer your question, yes it can be dynamic, you need to add a client script to make it responsive, we have a portlet which displays graphs based on selection of drop down fields in real time. this all is through a portlet script.

  • #1360

    HarriVayrynen

    Thanks for Christian (chanarbon) lookupFields() works. With that function it is easy to get values from records (with given parameters). But little bit harder is to use saved search with these portlets. Has someone script to share where is very basic saved search usage. (Simples case might be saved search where is group by with sum search, which gives only one value).

You must be logged in to reply to this topic.