Jump to content

patmap

Members
  • Posts

    263
  • Joined

  • Last visited

  • Days Won

    12

Posts posted by patmap

  1. Main key in new architecture is that you don't need to create or use any of the individual ExtPascal components anymore.

    What you will do is using new uniGUI functions to add Ext JS events and config parameters to an uniGUI control.

     

    I will convert your UniXGridView to demonstrate this.

     

    Thanks

     

    Hi, Mr. Farshad

     

    Thank you so much. I'm waiting for your converting.

    This is a very good training for me.

     

    Thanks again

     

    Best Regards

  2. Hi Mr. Farshad

     

    Thank you so much for your working, 

    But my main problem is multiple classes in one component. if you see UniXExtClasses.pas and UniXGridView.pas units (BufferedGrid component) 

    I've made lots of different classes like TExtObjectList, TXExtGridRowSelectionModel, TXExtGridCellSelectionModel., ....

    I want to create these classes and save it in variables, and use them,

    Please, If is possible convert this two unit (BufferedGrid components) and then i can be lean and convert other components,

    Thanks for your help

     

    Best Regards

  3. In long term it is a good thing. We can have a component system regardless of Extpascal and Ext JS versions.

    It shouldn't be that hard. Look at  Custom Component demos to see how new system is working.

     

    Hi Mr. farshad

     

    This is good news, but how we can create a some objects like GridPanel. For this, we must be create multi jsclass like:

     

    Ext.data.StoreExt.grid.Panel in one custom control.

     

    Can you add a sample for GridPanel with some event like row select ?

     

    http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.grid.Panel

     

    Thanks

  4. Hi,

     

    Put this code on UniDBGrid->ClieantEvents->onAfterRender

     

     

    function OnAfterrender(sender)
    {
           var a = Ext.query("button[data-qtip=Refresh]"); 
            for(var x=0;x < a.length;x++)
            {
               a[x].style.display="none";            
            } 
    } 

     

    Regards

  5. Hi,

     

    put  midas.dll  in the project  directory

     

    Hi perjanbr,

     

    When you add MidasLib to uses list no need add midas.dll to project folder. in this case midas library embedded to your exe.

     

    Regards

  6. Hi,

     

    Probably one of path not correct.(check ExtJS path).

     

    Check this url path is correct and viewable:

     

    http ://localhost:8077/ext-4.1.1a/ext-all.js
    http ://localhost:8077/ext-4.1.1a/uni/ext-unigui-min.js
    

     

    Regards

  7. Thanks!

     

    I install this components in XE2,But I run all the demo ,the browser always show hints:loading...

    and can not run it!

     

    My UniGUI Verson is 0.93.0.995!

     

    How can i resolve this problem?

     

    Hi,

     

    Set :

      ServerModule->ExtJSVersion = '4.1.1a' ;

     ServerModule->ExtRoot = 'Your Full ExtJS Path Or [ext]\' ;

     

    Regards

  8. Thank you patmap , شكرا

     

    it's work , but i have another problem,

     

    I used the "onbeforeunload function" to confirm Exit,

     

     

     
    window.onbeforeunload = function{
     retrun "Are you sure you want to leave My system? The system will Terminate!";
    }
     

     where i can put the code

       ajaxRequest(sender, 'SessionClosed', [] );

     

    Thank you

     

     

    Hi,

     

    Browsers act different in this case and you cant hope to do in all browser

    you can add this code Instead of the previous code:

     

      window.onunload = function() {
          ajaxRequest(sender, 'SessionClosed', [] );
      };
      
      window.onbeforeunload = function() {          
         return "Click Leave this page to Session Closed.";
      };
    

     

     

    But this code run on FF and dont run on Google chrome.

     

    There are not %100 safe solution for confirming !

     

    Regards

  9. Hi, All

     

    It's work just when MainFormDisplayMode  = mfWindow !!!

     

    it's not work with MainFormDisplayMode  = mfPage !!!

     

     

    How can I implement it on MainFormDisplayMode  = mfPage ? :(

     

     

    Thanx

    Maher

     

    Hi,

    No problem,

    Put this code in :

    MainForm->ClientEvents->ExtEvents->1-Ext.form.formPanel->onBeforeRender 

    See picture

     

    post-224-0-72240500-1363357926_thumb.png

     

    Regards

  10. Hi,

     

    You must be download ExtJS 4.2 and copy it in UniGUI folder and rename folder to ext-4.2.0

    Then Set ServerModule.ExtJSVersion := '4.2.0';

    And Set ServerModule.ExtRoot := 'f:\Programs\LibXE3\uniGUI\ext-4.2.0\'; // You must change this line to your path

     

    then set uniMainModule->'neptune'

     

    I test it and work fine.

     

    Regards

    • Upvote 1
  11. Hi,

     

    Put this code in MainForm->ExtEvents->OnBeforerender :

      window.onbeforeunload = function() {
             ajaxRequest(sender, 'SessionClosed', [] );
             alert("Session Closed"); // You can remove this line. only for test
      };
    

     

    And put this code on MainForm->OnAjaxEvent :

     

      If SameText( EventName, 'SessionClosed' ) Then
      Begin
        UniSession.Terminate( );
        UniSession.UniApplication.Terminate( );
      End;
    

     

    Work on FF, Chrome, IE

     

    Regards

    • Upvote 5
  12. Hi,

     

    This RSS Javascript code use ActiveX for XML reading:

    xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
     

     

    and Google Chrome dose not support any Microsoft ActiveX.

     

    you may search another source code.

     

    Regards

×
×
  • Create New...