Question

Button In mobile

HI All

i want create button in the mobile. the button can create print data to pdf

any one have best practice for this ?

Like 0

Like

7 comments

Hello Indar,



Yes, you can achieve it through development. 

In that case you should create button and setup printable.

Also, check "PrintReportUtilities" it may be helpful for your purposes.

However, if you need to export pdf instead of printing reports, it`s up to you how it will be implemented.



How to add button in mobile app:

https://community.bpmonline.com/articles/how-add-button-edit-page-mobil…



Setup printable:

https://academy.bpmonline.com/documents/administration/7-13/ms-word-pri…



Best regards,

Alex

where i can put code for button,

because when i create new section in the mobile is just create 3 Module 

would you please give some sample or documentation for this ? how to call printable in the button mobile



thanks lot

Hello Indar,



You should put the code for a button exactly in code of the page where you want it to be displayed. You can check how printable works in web version, just check how print button is realized.

In that case you may need client code debugging, so check the links below.



Debug mobile: https://academy.bpmonline.com/documents/technic-sdkmob/7-12/mobile-appl…



Debug client code: https://academy.bpmonline.com/documents/technic-sdk/7-13/client-code-de…



Best regards,

Alex

HI I try put code like this :



[

    {

        "operation": "insert",

        "name": "settings",

        "values": {

            "entitySchemaName": "UsrFAP",

            "details": [],

            "columnSets": [],

            "localizableStrings": {

                "SocialMessageDetailCaptionUsrFAP_caption": "Feed",

                "primaryColumnSetUsrFAP_caption": "General information",

                "OpenPrimaryContactButtonCaption": "Tambah Ibu"

            },

            "settingsType": "RecordPage",

            "operation": "insert"

        }

    },

    {

        "operation": "insert",

        "name": "SocialMessageDetailV2StandardDetail",

        "values": {

            "caption": "SocialMessageDetailCaptionUsrFAP_caption",

            "entitySchemaName": "SocialMessage",

            "showForVisibleModule": true,

            "filter": {

                "detailColumn": "EntityId",

                "masterColumn": "Id"

            },

            "operation": "insert"

        },

        "parentName": "settings",

        "propertyName": "details",

        "index": 0

    },

    {

        "operation": "insert",

        "name": "primaryColumnSet",

        "values": {

            "items": [],

            "rows": 1,

            "entitySchemaName": "UsrFAP",

            "caption": "primaryColumnSetUsrFAP_caption",

            "position": 0,

            "operation": "insert"

        },

        "parentName": "settings",

        "propertyName": "columnSets",

        "index": 0

    },

    {

        "operation": "insert",

        "name": "67dd4d65-782b-4697-8182-c4a5c8e59c1a",

        "values": {

            "row": 0,

            "content": "Name",

            "columnName": "UsrName",

            "dataValueType": 1,

            "operation": "insert"

        },

        "parentName": "primaryColumnSet",

        "propertyName": "items",

        "index": 0

    }

]

Ext.define("Terrasoft.configuration.UsrFAP", {

    config: {

       refreshButton: {

            id: "usr_order_refresh_btn",

            cls: "x-button-primary-blue",

            text: "Tambahkan Ibu"

        }

    },

    showRefreshButton: function (isShow) {

        var navigationPanel = this.getNavigationPanel(); /*компонент в котором нужно отобразить контрол*/

        var refreshButton = this.getRefreshButton();

        if (isShow) {

            this._refreshButton = navigationPanel.addButton(refreshButton);

        } else {

            navigationPanel.removeButton(refreshButton);

        }

        return this._refreshButton;

    }

});

Ext.define("Terrasoft.configuration.UsrFAP", {

    initializeView: function (view) {

        this.callParent(arguments);

        var btn = view.showRefreshButton(true);

        btn.on("tap", this.onRefreshButtonTap, this);

    },

    onRefreshButtonTap: function() {

        /* сабж */

    }

}); 



But button not showing in the page

Would you help me

indar wiguna,

Please find how to add a button to the mobile application in the article by the link below. 

https://community.bpmonline.com/articles/adding-custom-user-action-mobi…

Unfortunately, we don't have examples that show how to generate printable reports in the mobile application. 

Eugene Podkovka,

The link which u shared displays access denied. Could you please help. I have a requirement to create button in mobile application Account Edit section. Thanks in advance.

 

Show all comments