Question

Make client module visible with option

Hi Community, how are you?

 I created a Client Module according this documentation: https://academy.bpmonline.com/documents/technic-sdk/7-13/client-modules

I can visualize my page through: [Application URL]/[Configuration Number]/NUI/ViewModule.aspx#[Module name]

Now my goal is to create an option as section into any workplace to access this Client Module? Is this possible? The idea is to use security. An alternative is to add this option into the system designer for example something similar as SQL Console.

As an additional data, my page is not linked to any object.

Thank you!

Regards

Like 0

Like

2 comments

Please create a new section via section wizard. Then override the method init(). Please find the example below

define("UsrTestSection1Section", [], function() {

    return {

        entitySchemaName: "UsrTestSection",

        details: /**SCHEMA_DETAILS*/{}/**SCHEMA_DETAILS*/,

        diff: /**SCHEMA_DIFF*/[]/**SCHEMA_DIFF*/,

        methods: {

            init: function(){

                this.sandbox.publish("PushHistoryState", {hash: "#SqlConsoleModule"});

                this.hideBodyMask();

            }

        }

    };

});

 

The code above redirects to the following url "http://localhost:9451/0/Nui/ViewModule.aspx#SqlConsoleModule". Please feel free to change hash according to your url.

 

Alina Kazmirchuk,

Thank you Alina! That's what I needed. It worked perfectly.

Show all comments