Jump to content

PetrB

uniGUI Subscriber
  • Posts

    11
  • Joined

  • Last visited

PetrB's Achievements

Newbie

Newbie (1/4)

0

Reputation

  1. Yes. I have it installed it only on one computer (where is Delphi too) and running my program only on this computer in Delphi Enviroment. On this computer a develop app too.
  2. Hi all, I have test version of UniGui installed in my Delphi 10.2 Enterprise. I did make a small application for testing and learning of UniGui using. It was working (limited by 3 minutes and other test version limits). I did not run it for a couple of days. When I try it today, I have problem. I run it in Delphi, run MS Edge browser with localhost:8077 like usual but the reply is only Loading... without some other reaction. I've read some articles about bad installation. I thing it's not my case . I did use it for a month without problems and not install/uninstall/delete libraries and other things from Delphi and components. Could you give some advice me for repair it? Thank you Petr
  3. In code for creating buttons I did make a couple of attempts to find correct syntax but without success. Pb
  4. In TDetailUctuFrame (there is situated Grid and frame is hosted by TMainForm) procedure TDetailUctuFrame.UniFrameAjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); begin //Breakpoint here, to catch Event inherited; // end;
  5. The code used for buttons creating is in first post of this articel. Buttons are created but I can't catch the pressing of it.
  6. What do you mean test case? I could send you my code but it's connected to my Oracle DB.
  7. This text is in start of my application HTML code <link rel=stylesheet href="/uni-1.0.0.1421/css/uni-ext.css" /> <link rel=stylesheet href="/ext-4.2.5.1763/resources/css/ext-all.css" /> <script src="/ext-4.2.5.1763/ext-all.js"></script> <script src="/uni-1.0.0.1421/ext-unicommon-min.js"></script> <script src="/uni-1.0.0.1421/ext-sync-min.js"></script> <script src="/ext-4.2.5.1763/locale/ext-lang-cs.js"></script> <script type="text/javascript">
  8. I did download last (this weekend) demo version from server. Where should I find the version? Pb
  9. I did use code from this articel, but the catch of click is not working for me. Could you give me some advice how to construct Ajax calling to catch it in Frame inside of MainWindow? Thank you PetrB
  10. Hi, what do you mean? If I use this code above, my three buttons are created. I have on my frame code for AjaxEvent catch procedure TDetailUctuFrame.UniFrameAjaxEvent(Sender : TComponent;eventname: String;Params : TUniStrings); Begin //here is a breakpoint inherited; End; the breakpoint catch situation, : Sender=TabulkaKaret (the DBGrid) EventName=data Sender=TabulkaKaret EventName=load Sender=TabulkaKaret EventName=load Sender=TabulkaKaret EventName=load Sender=TabulkaKaret EventName=load I have three records in my table. But when I press one of new buttons, there is no action in this routine. I need to put some code "somewhere" to make service with those buttons. PetrB
  11. Hi all, I start play with this powerfull enviroment to Before-buy try. I try customize TUniDBGrid a bit for my needs. I did found some piece of code to add button in line with refresh and paginal buttons on DBGrid footer. I use this code in TabulkaKaret:TUniDBGrid.ClickEvents.UniEvents.Ext.toolbar.Paging[pagingBar].afterCreate function pagingBar.afterCreate(sender) { sender.add([ { xtype: 'button', icon: 'files/images/navigate_plus.png', tooltip: 'Přidej řádek', handler: function() { ajaxRequest( MainForm.DetailUctuFrame,'addRow', ["slctd="+MainForm.DetailUctuFrame.TabulkaKaret.getSelectionModel().getCount()] ); } }, { xtype: 'button', icon: 'files/images/navigate_edit.png', tooltip: 'Oprav řádek', handler: function() { ajaxRequest( DetailUctuFrame.window,'edRow', ["slctd="+TabulkaKaret.getSelectionModel().getCount()] ); } }, { xtype: 'button', icon: 'files/images/navigate_minus.png', tooltip: 'Zruš aktuální řádek', handler: function() { ajaxRequest(MainForm.window, 'delRow', ["slctd="+DetailUctuFrame.TabulkaKaret.getSelectionModel().getCount()]); } } ]); The creating is working fine, I have 3 new buttons on position where I exactly want to have it. The problem is, that I'm not to able catch click on those buttons. I have main form called MainForm:TMainForm.. The TabulkaKaret.TUniDBGrid is situated on DetailUctuFrame:TDetailUctuFrame. My ajaxRequests are bad, but I don't know, how to write a correct syntax. Could you help me, please. Best regards Petr
×
×
  • Create New...