Jump to content

Sherzod

Moderators
  • Posts

    19654
  • Joined

  • Last visited

  • Days Won

    634

Everything posted by Sherzod

  1. Hi, Immediately run the code or warn the user: UniMainModule -> BackButtonAction = bbaWarnUser
  2. Hello, Maybe you can try something like this... // 'FIRST', 'PRIOR', 'NEXT', // 'LAST', 'INSERT', 'DELETE', 'EDIT', 'POST', 'CANCEL', 'REFRESH', 'APPLYUPDATES', 'CANCELUPDATES' procedure TMainForm.UniFormReady(Sender: TObject); var btnName: string; btnHint: string; begin btnName := 'FIRST'; //uni_dbn_xxx btnHint := 'First'; UniSession.AddJS('Ext.ComponentQuery.query("[uname=uni_dbn_'+ btnName +']").forEach(function(el){el.setTooltip("'+ btnHint +'")});'); btnName := 'PRIOR'; //uni_dbn_xxx btnHint := 'Prior'; UniSession.AddJS('Ext.ComponentQuery.query("[uname=uni_dbn_'+ btnName +']").forEach(function(el){el.setTooltip("'+ btnHint +'")});'); //... end;
  3. Hello, By default the FireDAC application works in auto-commit mode, where a transaction is automatically started by FireDAC when it is required, and is committed on the successful command execution or rolled back on a failure.... http://docwiki.embarcadero.com/RADStudio/Rio/en/Managing_Transactions_(FireDAC)
  4. Also you can try to use only this config, without CSS: with TUniPanel.Create(Self) do begin ... JSInterface.JSConfig('titlePosition', [1]); ... end;
  5. Hi, What code is not executed, can you clarify?
  6. ... ClientEvents.ExtEvents.Clear; ClientEvents.ExtEvents.Add ('afterrender=function afterrender(sender, eOpts){this.addCls("my-panel");}'); ...
  7. Hello, Which error do you get? Did you assign a name to the component?
  8. UniHTMLMemo -> ShowToolbar = False (BorderStyle = ubsNone)
  9. Hello, JSCode for example: MainForm.UniHTMLMemo1.iframeEl.dom.contentDocument.documentElement.scrollHeight
  10. Hello, Which edition and build of UniGUI are you using?!
  11. Hi, First of all, can you please open a ticket in support portal as feature request? http://jira.fmsoft.net/servicedesk/customer/portal/4 And, can you tell me how do you add nodes to the treeview, designtime or runtime? Can you provide part of your code or a simple testcase?!
  12. Hi Erich, Sorry, what type of app? Can you explain in more details? Can you make a simple testcase for reproduce?!
  13. private { Private declarations } FInputType: string; procedure TMainForm.UniComboBox1TriggerEvent(Sender: TUniCustomComboBox; AButtonId: Integer); begin if AButtonId = 0 then begin // Вам нужна переменная, которая будет хранить пред.значение if FInputType = 'password' then begin Sender.JSInterface.JSCall('inputEl.el.dom.setAttribute', ['type', 'text']); FInputType := 'text'; end else begin Sender.JSInterface.JSCall('inputEl.el.dom.setAttribute', ['type', 'password']); FInputType := 'password' end; end; end; procedure TMainForm.UniFormCreate(Sender: TObject); begin UniComboBox1.JSInterface.JSConfig('inputType', ['password']); FInputType := 'password' end; Может как-то так...
  14. Пожалуйста, можете уточнить?
  15. http://jira.fmsoft.net/servicedesk/customer/portal/4
  16. Добрый день, procedure TMainForm.UniFormCreate(Sender: TObject); begin UniComboBox1.JSInterface.JSConfig('inputType', ['password']); end; ?
  17. Hello, Are you using frames?
  18. Hello, You can try this approach... UniChart -> ClientEvents -> ExtEvents -> function beforerender: function beforerender(sender, eOpts) { //for the first series for example sender.chart.series[0].setCurve({ type: 'cardinal', tension: 1 }); }
×
×
  • Create New...