This topic contains 5 replies, has 0 voices, and was last updated by HarriVayrynen 7 years, 10 months ago.
-
AuthorPosts
-
January 3, 2017 at 12:17 pm #1355
HarriVayrynenHi!
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. -
January 3, 2017 at 1:29 pm #1356
JCiroccoNot sure if this helps but Marty just posted this to his blog…
http://blog.prolecto.com/2017/01/01/…-to-wordpress/
-
January 3, 2017 at 2:54 pm #1357
HarriVayrynenThank you John. Marty gives again great information to all of us, but this article is not helping with html portlet
-
January 3, 2017 at 5:59 pm #1358
chanarbonHarriVayrynen
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.
-
January 4, 2017 at 2:37 am #1359
j.jto 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.
-
January 4, 2017 at 10:25 am #1360
HarriVayrynenThanks 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).
-
AuthorPosts
You must be logged in to reply to this topic.