Jump to content

mhmda

uniGUI Subscriber
  • Posts

    1141
  • Joined

  • Last visited

  • Days Won

    157

Everything posted by mhmda

  1. No problem, change the code of sort event and grouping field at server as desired, it is working.
  2. We use something like ORM between unigui and DB when it comes to CRUD operations.
  3. Unigui = Powerful WebApps, you may use it as Rest server but it is not built for that, we use mORMot https://synopse.info/fossil/wiki?name=SQLite3+Frameworkhttps://synopse.info/fossil/wiki?name=SQLite3+Framework for creating our API for our WebApp that built using unigui.
  4. This is my best friend: https://docs.sencha.com/extjs/6.6.0/modern/Ext.html When I was at college we didn't learn HTML,CSS etc...only: assembler, c, c++ So I it's all self learning and reading many books :-)
  5. Many times I use custom text in group header, so server side doesn't give much options so I use client side: Ext.XTemplate. Example: config.groupingFeature = Ext.create('Ext.grid.feature.Grouping',{ groupHeaderTpl:new Ext.XTemplate('<table class="defaultfont defaultfontsize11"><tr>'+ '<td style="font-weight:bold;color:#e62b1e;">'+ '{[this.getGroupTitle(values.rows[0])]}</td><td>'+ '({[values.children.length]} pax.)</td></tr></table>', { getGroupTitle: function(values) { return values.data[3][0]; } }) }); config.features= [config.groupingFeature]; And the the result:
  6. Custom header for reports using HTML and converting it to image. it's flexible and powerful.
  7. We use this custom popup menu Extjs component taht we created:
  8. Well, I don't have hidden columns and 'ForceFit' is set to false.
  9. I have the same issue, when I assign a control as editor in column propertios then the roweditor draw wrong width!
  10. procedure TMainForm.UniButton2Click(Sender: TObject); var i:Integer; json:string; begin json:='{"Permissions":['; for i := 0 to untrvw.Items.Count-1 do begin if (not untrvw.Items[i].IsLeaf) and (untrvw.Items[i].Level=0) then begin if json='{"Permissions":[' then json:=json+TWebTreeNode(untrvw.Items[i]).ToJSON else json:=json+','+TWebTreeNode(untrvw.Items[i]).ToJSON; end; end; json:=json+']}'; UniMemo1.Text:=json; end;
  11. Well, it is not as easy as you think, if the site is static you may use jquery to get values. We use chromium component for delphi to send data and receive data from specific sites. It all depends on the page you load inside the iframe, and do not forget the url il loaded in the client side not in the server, for starting inspect the fields that you want to get and use jquery to get their values.
  12. https://www.sencha.com/products/themer/
  13. I didn't test it with Extsj 6.5
×
×
  • Create New...