Answered

How to transfer the contents of the table (entity) in the development of javascript widget?

Hello! I am developing a custom widget. I have a problem, I can not transfer the contents of the table (entity) as a list in Javascript.

My table has one field.

Json file that describes the structure of the widget as follows:

"properties": {"xpath":{"bas-type": "xpath-to-collection","caption": {"default": "Data Source", "languages": [ { "es": ""} ] },"required": true,"subproperties": {"xpath": {"bas-type": "xpath"},"relatedentity": {"bas-type": "entity"}}},"data": {"bas-type": "datalist","subproperties":{ "field": { "bas-type": "xpath-from-entity", "editor-parameters": { "entity": "<design:xpath:relatedentity>" },"caption": { "default": "Simple field", "languages": [ {"es": ""}] },"user-editable": "true","subproperties": {"xpath": { "bas-type": "xpath"}}},"field": { "bas-type": "xpath-from-entity", "editor-parameters": { "entity": "<design:xpath:relatedentity>" },"caption": { "default": "Simple field", "languages": [ {"es": ""}] },"user-editable": "true","subproperties": {"xpath": { "bas-type": "xpath"}}}}

..........................

}

"properties": [{ "name": "dataSource", "type": "list", "metavalue": "columns(<design:xpath:xpath>, 'Id', '<design:data:field:xpath>')"}

.......................................

]

In javascript try to receive data so:

getGenericControl: function () { //standard initialization var self = this,control = self.getControl(),properties = self.properties,extendedData = self.extendedData,mapContainer = document.createElement('div'), server, bindedXpathValue = properties.displayName, dataSource = properties.dataSource;

...................

}

But as a result do not get any data similar to an array or json object

photo
0

Dear Valera,

A member of our support team will contact you.

Best Regards

photo
0

Hello Juan,

I have the same problem. Please advise.

Thank you!

photo
0

Dear Valeriu,

We are pleased to inform that we have available Widgets Editor. If you require extended functionality in user interfaces or custom controls (such as: display a graph of statistics, using a Google map, integrate web cameras, scanners and other peripherals or anything not considered in included controls), you have the possibility to include in your forms Widgets to your Bizagi projects. Widgets Editor will help in creating and testing your own widgets.Note that creating custom controls require technical skills such as: Fundamentals of code development in JQuery and Javascript, be familiar with the notation JSON, HTML and CSS skills (preferably HTML5 and CSS3).Please follow these articles:

Best Regards