intersystems-community / DeepSeeWeb

Renderer for DeepSee Dashboards in Browser with MDX2JSON as a Serverside and JS web-client
MIT License
18 stars 13 forks source link

Designer mode #121

Open evshvarov opened 5 years ago

evshvarov commented 5 years ago

Add Widget Delete Widget Edit widget

On edit widget: implement all the features: Source, Type, Controls

Lena-Ev commented 1 year ago
Lena-Ev commented 1 year ago

@jakcpto back end for designer mode { "_class":'%DeepSee.Dashboard.Definition',"Timestamp":'2023-05-01 20:03:49.499',"ReadOnly":0,"name":'Basic Dashboard Demo',"folder":null,"folderName":'',"fullName":'Basic Dashboard Demo.dashboard',"documentName":'Basic Dashboard Demo.dashboard.DFI',"title":'',"description":'',"keywords":'Patients',"owner":'',"shared":true,"public":true,"locked":false,"resource":'',"timeCreated":'2012-07-09 17:18:48.454',"timeModified":'2023-05-01 20:03:49.499',"createdBy":'',"category":'',"bookCover":'{background: {style:\'background-color:white;opacity:0.45;\',src:\'covers/14489721_s.jpg\',imageStyle:\'width:134px;height:190px;\'},header: {text:\'$type\'},title: {text:\'$title\',style:\'font-weight: bold;color:rgb(255, 255, 255);left:12.5px;left:12.5px;width:107.5px;\'},image: {style:\'display: none;\',src:\'deepsee/ds2_layers2_44.png\',imageStyle:\'width:64px;height:64px;\'},footer: {text:\'$owner\'}}',"scheme":'',"worklistCount":2,"widgets":[{ "_class":'%DeepSee.Dashboard.Widget',"name":'Widget12',"key":3392667105,"type":'pivot',"subtype":'barChart',"subtypeClass":'barChart',"title":'Patient Counts & Allergy Counts',"dataSource":'Use in Dashboards/Patient Counts & Allergy Counts.pivot',"localDataSource":'',"resetDataSource":false,"dataLink":'',"drillDownDataSource":'',"top":'',"left":'',"width":'',"height":'',"sidebarContent":'',"showSidebar":false,"sidebarWidth":'',"controls":[{ "_class":'%DeepSee.Dashboard.Control',"name":'',"controlKey":759340700,"action":'applyFilter',"target":'',"targetProperty":'[HomeD].[H1].[ZIP]',"location":'dashboard',"type":'auto',"controlClass":'',"timeout":'',"label":'Home ZIP Code',"title":'',"value":'',"valueRequired":false,"text":'',"size":'',"readOnly":false,"valueList":'',"displayList":'',"activeWhen":'',"actionDisplay":'Применить Фильтр',"typeDisplay":'Авто',"locationDisplay":'Инструментальная панель',"targetPropertyDisplay":'',"activeWhenDisplay":'Всегда'} ,{ "_class":'%DeepSee.Dashboard.Control',"name":'',"controlKey":129811541,"action":'applyFilter',"target":'',"targetProperty":'[PatGrpD].[H1].[Patient Group]',"location":'dashboard',"type":'radioSet',"controlClass":'',"timeout":'',"label":'Patient Group',"title":'',"value":'',"valueRequired":false,"text":'',"size":'',"readOnly":false,"valueList":'',"displayList":'',"activeWhen":'',"actionDisplay":'Применить Фильтр',"typeDisplay":'Радио',"locationDisplay":'Инструментальная панель',"targetPropertyDisplay":'',"activeWhenDisplay":'Всегда'} ,{ "_class":'%DeepSee.Dashboard.Control',"name":'',"controlKey":638676797,"action":'applyFilter',"target":'*',"targetProperty":'[DiagD].[H1].[Diagnoses]',"location":'dashboard',"type":'auto',"controlClass":'',"timeout":'',"label":'Diagnoses',"title":'',"value":'',"valueRequired":false,"text":'',"size":'',"readOnly":false,"valueList":'',"displayList":'',"activeWhen":'',"actionDisplay":'Применить Фильтр',"typeDisplay":'Авто',"locationDisplay":'Инструментальная панель',"targetPropertyDisplay":'',"activeWhenDisplay":'Всегда'} ,{ "_class":'%DeepSee.Dashboard.Control',"name":'',"controlKey":262108389,"action":'showListing',"target":'',"targetProperty":'',"location":'widget',"type":'auto',"controlClass":'',"timeout":'',"label":'',"title":'',"value":'',"valueRequired":false,"text":'',"size":'',"readOnly":false,"valueList":'',"displayList":'',"activeWhen":'',"actionDisplay":'Показать список',"typeDisplay":'Авто',"locationDisplay":'Виджет',"targetPropertyDisplay":'',"activeWhenDisplay":'Всегда'} ,{ "_class":'%DeepSee.Dashboard.Control',"name":'',"controlKey":511983880,"action":'viewDashboard',"target":'',"targetProperty":'Bug/ClickFilter.dashboard',"location":'widget',"type":'auto',"controlClass":'',"timeout":'',"label":'Click Filter Dashboard',"title":'',"value":'',"valueRequired":false,"text":'',"size":'',"readOnly":false,"valueList":'',"displayList":'',"activeWhen":'',"actionDisplay":'Просмотреть панель',"typeDisplay":'Авто',"locationDisplay":'Виджет',"targetPropertyDisplay":'',"activeWhenDisplay":'Всегда'} ],"dataProperties":[],"properties":{ "XgridLines":0,"YgridLines":0,"analyzer":1,"chartToggle":'table'

Lena-Ev commented 1 year ago

Image

Lena-Ev commented 1 year ago

https://github.com/intersystems-community/isc-dev/blob/72480f0f576566a6ae36da72c12be8fb4a280686/src/dev/bi.cls#L156 https://github.com/psteiwer/AnalyzeThis/tree/master/AnalyzeThis

Lena-Ev commented 1 year ago
Frisle commented 1 year ago

(back) check why the type of the widget in Zen does not match the type in DSW, if the widget was created in DSW @gnibeda The issue is a small typo in type names: (comboChart is the right one)

Screenshot 2023-05-23 172553 Screenshot 2023-05-23 172531

gnibeda commented 1 year ago

DSW operates only lowercase types. There is no list of case-sensitive types on FE side. Can you make it work with lowercase?

Frisle commented 1 year ago

@gnibeda in older version of DSW there is camel case types. This is v3.1.90 currently installed locally Screenshot 2023-05-25 094516

I can not change how ZEN process them.

How hard it is for you to change them?

Lena-Ev commented 1 year ago

@gnibeda make a structure for backend

Lena-Ev commented 11 months ago

Waiting for answer from Carmen about API