Jump to content

carrera

uniGUI Subscriber
  • Posts

    34
  • Joined

  • Last visited

Posts posted by carrera

  1. It looked as if in the app the connection to the database displayed the right data but

    the FastReport connector remained on the previous connection (???) .

    Hi adragan,

    Yes it is. database display the right result, but not for fast report.

    I will try your solution.

     

    thank you

  2. hi,

     i got a weird case, when user export data to pdf (fast report) sometimes data display incorrectly, ex.the money display 0.00 on the whole page

    but after restart IIS everything go back to normal. i've checked  Unigui log or IIS log not found any errors.

     

     

    ***************

    Environment

    ***************

    Unigui 1.0.0.1399

    Delphi Tokyo 10.2

    Database Firebird

    Fast Report 5.x

    IIS 6 Windows Server 2003

  3. Hi,
    I need to perform default key action before focusing to the next unidbgrid column (change enter key to tab key)
    because sometimes data is not posted to database
    for now i use the code :

    function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts)
    {
      columns[i].editor = {
          selectOnFocus: true,
          xtype: 'numberfield'
          ,minValue: 0
          ,allowBlank : false
          ,groupable : false
          };
    .... 
    if (columns[i].getEditor()) {
          columns[i].getEditor().on('specialkey', function (field, e) 
          {   
             if (e.getKey() == 13)
             {
              // perform default key action, force update current edit value 
              // before focusing to the next column
              e.keyCode = e.TAB;
                return e.keyCode;
    .....
    }
    

    Environment
    Windows 10
    Delphi Tokyo
    Unigui 1.0.0.1399
    Google Chrome 59.0.3071.115

     

    Thank you

  4. Hi,

    Let's say i have 3 columns in UniDBGrid

     

    Row No | ColA | ColB

     1             111      +

     2             222     +

     3             333     -

    ........

     

    if cursor point on row that ColA Value = '222', i need to disable UniDBGrid key press

    I Think ExtJS Event can handle this, but not sure how do i call js function

    function keypress(e, t, eOpts)
    {
        var me = MainForm.UniDBGrid1;
        // not sure how to get dbgrid value in JS
        // ex. if  Dataset.fieldByName('ColA').AsString = '222' then 
        //        Key := #0
    }
    

    Thank you

  5. Hello,

     I see TUniServerModule has "BlockedIPList" Property but i don't know how to set value to filter specific ip range.

    ex. if i want to allow only IP: 111.222.*.* (ip begin with 111.222) to access my site

    how should i have to set in BlockedIPList property ?

     

    Thank you

  6. Hi,

     I need to trap Enter Key in UniDBGrid for Refreshing Calculate Field

    when user press enter in cell editor, cursor will focus to the next column and calculate field value will be changed (refresh)

     

    i use  

    TForm........UniDBGrid.OnKeyDown

       if Key = VK_RETURN then <-- it doesn't work, cannot trap enter key

           RefreshDataset;

     

     

     

    Thank you

     

    Environment

    Delphi XE7

    UniGui 0.99.80.1214

  7. Hello,

      I try to lock all columns in group but not success :wacko:  (may be Javascript can help In this situation ?)

     

    Step to test:

     1. open Demos\Desktop\GridColumnLocking

     2. in Column Editor set GroupHeader = "test group" for 3 Columns (these columns already locked)

         - CustNo

         - Company

         - Contact

     

    when running, the column does not locked

     

     

    tested Environment

    Delphi XE7

    UniGui Trial 0.99.50.1195

    Google Chrome 45.0.2454.85

    post-3353-0-58339400-1442404934_thumb.jpg

    post-3353-0-17454900-1442404938_thumb.jpg

×
×
  • Create New...