Jump to content

SMARAM

uniGUI Subscriber
  • Posts

    50
  • Joined

  • Last visited

  • Days Won

    3

SMARAM last won the day on September 22 2019

SMARAM had the most liked content!

2 Followers

Profile Information

  • Gender
    Not Telling
  • Location
    Ribeirão Preto - Brazil

Recent Profile Visitors

1684 profile views

SMARAM's Achievements

Member

Member (2/4)

12

Reputation

  1. The same code in C++ Builder, if someone needs it. TStringList *lstSessions = new TStringList(); TUniGUISessions *S = UniServerModule()->SessionManager->Sessions; int nr = S->SessionList->Count; S->Lock(); // Using Lock on session manager should be used with extreme care. // We should keep this "Lock" active as short as we can. Session Manager stops working until lock is released. // Excessive use of lock/unlock or keeping the lock active for a long period will make uniGUI server slow/unresponsive. try { // Here we do a fast copy of list to another array for later use. for (int i=0; i<nr; i++) { TUniGUISession *U = (TUniGUISession*)S->SessionList->Items[i]; lst->Add("SessionId: " + U->SessionId); lst->Add("RemoteIP: " + U->RemoteIP); lst->Add("LastTimeStamp: " + U->LastTimeStamp); } } __finally { S->Unlock(); // ... and finally don't forget to release lock! }
  2. Hi Sherzod. Version:1.0.0.1416 When the unidbgrid has a column locked, this code doens't work UniSession.AddJS(UniDBGrid1.JSName + '.headerCt.move(1,5);' + UniDBGrid1.JSName + '.view.refresh();'); This error is displayed.. I was trying to find the error in the ext-all file and the error occurred here, because it is empty Without a locked column, this works normally.
  3. This doesn't work when dbgrid has a locked column. Any idea?
  4. Which language are you exporting? Is it not ansi characters?
  5. Hi, your problem is linking the file into your project. 1) Did you put the UExportExcel into uses of frmcontact? 2) Did you add UExportExcel into your project?
  6. hi

    please help me for this subject

     

    1. deljavan

      deljavan

      Problem resolved
      But the output is unclear
      If you want to provide utf8 help please

      ContactReportExcel.xls

  7. I already use ClientEvents but I would like to encapsulate my method. Which method ClientEvents is loaded? Is there a way to override it?
  8. JSAddListener('afterrender', GetJSInputMaskDate);
  9. Hi, I want to put a javascript encapsulate on a customDateTimePicker. function afterrender(sender, eOpts) { $("#"+sender.inputEl.id).inputmask("99/99/9999",{placeholder:"__/__/____"}); I'm trying to add the method on WebCreate but it give me error 'There is no Default JavaScript Object. [ : TUniSmDateTimePicker]'. If I put it in LoadCompleted, it doesn't work. Is there any other method to add the listener that could be encapsulate?
  10. Sherzod, did you try unzip the file?
  11. Can't download it too. File may be corrupted or deleted in server.
  12. I can't right now. This is the current version on my company.
  13. I found a solution that is not so elegant. 1) set dbgrid with Visible = false. 2) On UniDBGrid AfterLoad put this code: UniSession.AddJS('ajaxRequest(frameName.FramePanel,"UniDBGrid1",[])'); 3) On UniFrame AjaxEvent put this code: if (EventName = 'UniDBGrid1') then begin UniDBGrid1.Visible := true; end;
  14. I'm having the same problem. To reproduce the scenario, follow the steps below. My unigui version: 1.0.0.1416. 1) Create an empty project. 2) Put a UniSimplePanel with Align = alClient 3) Create an Unigui Frame 4) Put some simplepanels into the frame as Align = alTop and a unidbgrid below. 5) The dbgrid must be binded with a datasource and dataset to reproduce the scenario 6) Increase the height so that it will be greater than your screen 7) On FormCreate of MainForm, use the code below to create the frame. var Frame1: TUniFrame1; Frame1 = TUniFrame1.Create(Self); Frame1.Align := alClient; Frame1.Parent := UniSimplePanel1; 7) Run your code and see that your frame will be positioned on the dbgrid. Ps: It will only occurs when your dataset has result.
  15. Yes, I did. Thank you.
×
×
  • Create New...