Jump to content

mhmda

uniGUI Subscriber
  • Posts

    1141
  • Joined

  • Last visited

  • Days Won

    157

Posts posted by mhmda

  1. Hi there,

    I check the file type and in some cases I need to delete the copied file but it uses by the unigui app.

    mFileUpload.TargetFolder :=  ServerModule.StartPath+'compsdata\';
    .....
    procedure TfrmAttachFiles.mFileUploadCompleted(Sender: TObject;
    ....
    DestName:=ExtractFileName(AStream.FileName);
    CopyFile(PChar(AStream.FileName), PChar(DestName), False);
    ....
    deletefile(ServerModule.StartPath+'compsdata\'+DestName);//file is used by other process (unigui app in this case)

     

    Any idea? 

  2. The Front-End is Extjs, which creating element in DOM, there is no static html,  your page is SAP (single application page), the framework has it's own layout engine to be cross-device, I don't see any need to use bootstrap. 

  3. I managed to solve it, in case someone need it:

    function celldblclick(sender, td, cellIndex, record, tr, rowIndex, e, eOpts)
    { 
     var el=e.target.parentElement;
     if($(el).hasClass("x-grid-td")&&!$(el).hasClass("x-grid-cell-special"))
     {
      sender.up('window').mask('loading...');
      ajaxRequest(sender.up('window'),'grdDblClick',['indx='+record.get('1')]);
     }
    }

     

    • Upvote 1
×
×
  • Create New...