Question

I am unable to get the website (<iframe tage is not working>)(Developing an advanced marketplace application)

Hi, 

I am trying to display website in bpm'online but below  code is not working.

 

define("tsaWebData1Page", [], function() {
    return {
        entitySchemaName: "tsaWebData",
        details: /**SCHEMA_DETAILS*/{}/**SCHEMA_DETAILS*/,
        diff: /**SCHEMA_DIFF*/[
            // Web-page name.
            {
                "operation": "insert",
                "name": "tsaName",
                "values": {
                    "layout": {
                        "colSpan": 24,
                        "rowSpan": 1,
                        "column": 0,
                        "row": 0,
                        "layoutName": "ProfileContainer"
                    },
                    "bindTo": "tsaName"
                },
                "parentName": "ProfileContainer",
                "propertyName": "items",
                "index": 0
            },
            //link to Web-page statistics.
            {
                "operation": "insert",
                "name": "tsaURL",
                "values": {
                    "layout": {
                        "colSpan": 24,
                        "rowSpan": 1,
                        "column": 0,
                        "row": 0,
                        "layoutName": "Header"
                    },
                    "labelConfig": {},
                    "enabled": true,
                    "readonly": true,
                    "bindTo": "tsaURL"
                },
                "parentName": "Header",
                "propertyName": "items",
                "index": 0
            },
            // tab.
            {
                "operation": "insert",
                "name": "TabData",
                "values": {
                    "caption": "Web-данные",
                    "items": []
                },
                "parentName": "Tabs",
                "propertyName": "tabs",
                "index": 0
            },
            // Add URL button.
            {
                "operation": "insert",
                "parentName": "ProfileContainer",
                "propertyName": "items",
                "name": "AddUrlButton",
                "values": {
                    "layout": {
                        "colSpan": 24,
                        "rowSpan": 1,
                        "column": 0,
                        "row": 1
                    },
                    "itemType": Terrasoft.ViewItemType.BUTTON,
                    "caption": {"bindTo": "Resources.Strings.AddUrlButtonCaption"},
                    "click": {"bindTo": "addUrl"},
                    "style": Terrasoft.controls.ButtonEnums.style.BLUE
                }
            },
            //Container with iframe.
            {
                "operation": "insert",
                "name": "IFrameStat",
                "parentName": "TabData",
                "propertyName": "items",
                "values": {
                    "id": "testiframe",
                    "itemType": Terrasoft.ViewItemType.CONTAINER,
                    "selectors": {"wrapEl": "#stat-iframe"},
                    "layout": { "colSpan": 24, "rowSpan": 1, "column": 0, "row": 0 },
                    "html": "",
                    "afterrerender": {
                        "bindTo": "addUrl"
                    }
                }
            }
        ]/**SCHEMA_DIFF*/,
        methods: {
            // data loading handler.
            onEntityInitialized: function() {
                
                this.callParent(arguments);
                
                this.addUrl();
            },
            
            addUrl: function() {
                
                var iframe = Ext.get("stat-iframe");
                if (!iframe) {
                    window.console.error("Tab with iframe not found");
                    return;
                }
                /
                var siteName = this.get("tsaName");
                if (!siteName) {
                    window.console.error("Site name is not set");
                    return;
                }
                
                var url = "https://www.similarweb.com/website/" + siteName;
                
                this.set("tsaURL", url);
                
                iframe.dom.src = url;
            }
        },
        rules: {}
    };
});

 

PLEASE REFER LINK :https://academy.bpmonline.com/documents/technic-sdkmp/7-11/developing-a…

 

Like 0

Like

1 comments

Hello,

Unfortunately, bpm'online doesn't support iFrame technologies. Try to find another way to accomplish your task and feel free to contact us for the further assistance if needed. 

Lisa

Show all comments