Usages

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

  • License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

  • A useable Userview Menu plugin must extends org.joget.apps.userview.model.UserviewMenu abstract class.

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

Abstract Class

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.


org.joget.apps.userview.model.UserviewMenu

  • Under wflow-core module

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

  • Extended org.joget.plugin.base.ExtDefaultPlugin. Please refer to Plugin Base Abstract Class and Interface.

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

  • Implemented org.joget.plugin.property.model.PropertyEditable. Please refer to Plugin Base Abstract Class and Interface.

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

  • A base abstract class to develop a Userview Menu plugin. 

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

Field Detail

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.


Constants

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

REDIRECT_URL_PROPERTY
public static final java.lang.String REDIRECT_URL_PROPERTY = "userviewRedirectUrl";

Property key to set a url for redirection.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

REDIRECT_PARENT_PROPERTY
public static final java.lang.String REDIRECT_PARENT_PROPERTY = "userviewRedirectParent";

Property key to set the redirection target to parent window. The property expecting "true" or "false" as value.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

ALERT_MESSAGE_PROPERTY
public static final java.lang.String ALERT_MESSAGE_PROPERTY = "userviewAlertMessage";

Property key to set a alert message to show when a page loaded.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

Method Detail

Abstract Methods
getCategory
public abstract java.lang.String getCategory()

Category to be displayed in Userview Builder palette 

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

getIcon
public abstract java.lang.String getIcon()

Icon path to be displayed in Userview Builder palette

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

getRenderPage
public abstract java.lang.String getRenderPage()

Get render HTML template for UI

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

isHomePageSupported
public abstract boolean isHomePageSupported()

Used to determine this menu item can used as home page or not.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

getDecoratedMenu
public abstract java.lang.String getDecoratedMenu()

Get Decorated menu HTML for rendering.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

Overridable Methods
getMenu
public java.lang.String getMenu()

Get menu html for rendering. It will call getDecoratedMenu method to retrieve the menu HTML. If empty value is return, a default menu HTML will be generated based on getURL method and "label" property.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

getJspPage
public java.lang.String getJspPage()

Get path of JSP file to render the HTML template. If this value is not NULL, value returned by getRenderPage will be ignored.

It is used to use the system predefined template for rendering. Options are as following:

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

- userview/plugin/datalist.jsp

- userview/plugin/form.jsp

- userview/plugin/runProcess.jsp

- userview/plugin/unauthorized.jsp

Utility Methods
getUrl
public java.lang.String getUrl()

Gets URL of this menu

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

setUrl
public void setUrl(java.lang.String url)

Sets URL of this menu

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

getKey
public java.lang.String getKey()

Gets userview key of this menu

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

setKey
public void setKey(java.lang.String key)

Sets userview key of this menu

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

getRequestParameters
public java.util.Map getRequestParameters()

Gets request parameters

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

setRequestParameters
public void setRequestParameters(java.util.Map requestParameters)

Sets request parameters

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

getRequestParameter
public java.lang.Object getRequestParameter(java.lang.String requestParameter)

Convenience method to get a parameter value

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

getRequestParameterString
public java.lang.String getRequestParameterString(java.lang.String requestParameter)

Convenience method to get a parameter String value.

Return Empty string instead of NULL.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

getReadyJspPage
public java.lang.String getReadyJspPage()

Used by the system to retrieve the JSP file page to avoid the logic to run again. It will called the getJspPage method once to initial the value.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

getReadyRenderPage
public java.lang.String getReadyRenderPage()

Used by the system to retrieve the HTML template to avoid the logic to run again. It will called the getRenderPage method once to initial the value.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

getUserview
public org.joget.apps.userview.model.Userview getUserview()

Gets the userview which this menu is belongs to.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

setUserview
public void setUserview(org.joget.apps.userview.model.Userview userview)

Sets the userview which this menu is belongs to.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

setRedirectUrl
public void setRedirectUrl(java.lang.String redirectUrl)

Set this property to force the userview to redirect to a specific URL.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

setRedirectUrl
public void setRedirectUrl(java.lang.String redirectUrl, boolean redirectToParent)

Set this property to force the userview to redirect to a specific URL with option to redirect in the parent window.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

setAlertMessage
public void setAlertMessage(java.lang.String message)

Set this property to display an alert message/prompt.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

Plugin Properties Options

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

  • Please refer to Plugin Properties Options for more information.

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

Mandatory Property

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.


id

  • All Userview Menu Plugin must has this property appear in the Properties Options JSON. 

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

  • This is used by the system to store the dynamic generated UUID.

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

    {
        name : 'id',
        label : 'ID',
        type : 'hidden'
    }

customId

  • All Userview Menu Plugin must has this property appear in the Properties Options JSON. 

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

  • This is used for admin user to key in a desired menu id.

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

    {
        name : 'customId',
        label : '@@userview.datalistmenu.customId@@',
        type : 'textfield',
        regex_validation : '^[a-zA-Z0-9_]+$',
        validation_message : '@@userview.datalistmenu.invalidId@@'
    }

label

  • All Userview Menu Plugin must has this property appear in the Properties Options JSON. 

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

  • This is used for admin user to key in a display label for the menu.

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

    {
        name : 'label',
        label : '@@userview.datalistmenu.label@@',
        type : 'textfield',
        required : 'True',
        value : 'List'
    }

Userview Menu Plugin Template Sample

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.


Following is a sample menu template of a HTML Page menu element. It is constructed using FreeMarker syntax. This template will be used and returned by getRenderPage method.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

    public String getRenderPage() {
        PluginManager pluginManager = (PluginManager) AppUtil.getApplicationContext().getBean("pluginManager");

        Map dataModel = new HashMap();
        dataModel.put("element", this);
    
        return pluginManager.getPluginFreeMarkerTemplate(dataModel, getClassName(), "/templates/htmlPageMenu.ftl", null);
    }
<div class="ui-html">
    ${element.properties.content!}
</div>

Explanations

    • There are no specify format need to follow.

      License Error

      The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

    • Please take note that your html template need to disable all user action when it is in preview mode. You decide it is preview mode or not by following code:
"true".equals(getRequestParameterString("isPreview")

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.


Tutorials

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

Related Community Plugins

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

  • List Menu
    org.joget.apps.userview.lib.DataListMenu (wflow-core)
  • Form Menu
    org.joget.apps.userview.lib.FormMenu (wflow-core)
  • HTML Page
    org.joget.apps.userview.lib.HtmlPage (wflow-core)
  • Inbox
    org.joget.apps.userview.lib.InboxMenu (wflow-core)
  • Link
    org.joget.apps.userview.lib.Link (wflow-core)
  • Run Process
    org.joget.apps.userview.lib.RunProcess (wflow-core)
  • No labels