Jump to content

maher

uniGUI Subscriber
  • Posts

    116
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by maher

  1. Hello...

     

     

    with UniDBGrid1, UniDBGrid1.JSInterface do
      begin
        DataSource.DataSet.First;
        while not DataSource.DataSet.Eof do
        begin
          JSCode('if ('+ JSName +'.findPlugin("rowwidget").recordsExpanded['+ DataSource.DataSet.RecNo.ToString +']) {'+ JSName +'.findPlugin("rowwidget").toggleRow('+ (DataSource.DataSet.RecNo-1).ToString +', '+ JSName +'.getStore().data.items['+ (DataSource.DataSet.RecNo-1).ToString +'])};');
          DataSource.DataSet.Next;
        end;
      end;

     

  2. Hello,

    1 - We use this code   to Expand /Collapse Raw Widget

    while not qrySrv.Eof do

    begin

      with grdSrv, JSInterface do

       begin

         JSCall('getPlugin().toggleRow',[qrySrv.RecNo-1, JSStatement(JSName+'.getStore().data.items['+IntToStr(qrySrv.RecNo-1)+']')])

       end;

      qrySrv.Next;

    end;

     

    But this code will Expand a collapsed row  and Collapse expanded row  !!!

     

    How I can Expand all rows / Collapse all rows , I mean how I can check the if the row is Expanded/Collapsed

     

    Like

     

    while not qrySrv.Eof do

    begin

      with grdSrv, JSInterface do

       begin

        if (RowIsExpand  and OpIsCollapse***) or  (RowIsCollapse and OpIsExpand***)   then

         JSCall('getPlugin().toggleRow',[qrySrv.RecNo-1, JSStatement(JSName+'.getStore().data.items['+IntToStr(qrySrv.RecNo-1)+']')])

       end;

      qrySrv.Next;

    end;

     

     

    TAHNX

     


  3. procedure TUniMainModule.GoMainMenu;
    var
    I:integer;
    begin
    // Close all forms but not the mainForm.

    for I := UniSession.FormsList.Count-1 downto 0 do
    begin
    try
    if(TUniForm(UniSession.FormsList.Items[I]).Name <> 'MainForm') then
    TUniForm(UniSession.FormsList.Items[I]).Close;

    finally

    end;

    end;

     

  4. Hi,

    In log file an error :

     

    The system try to find a files

     

    ...... [HandleFileRequest]:File not found: ...\root\apple-touch-icon.png

     

     

    but we did not use this file. 

     

     

     

×
×
  • Create New...