Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 90,551
» Latest member: kqbd3io
» Forum threads: 2,418
» Forum posts: 11,354

Full Statistics

Online Users
There are currently 896 online users.
» 2 Member(s) | 889 Guest(s)
Applebot, Bing, Facebook, Google, Yandex, fly88netcomm1, kqbd3io

Latest Threads
Looking for UI Design Tip...
Forum: Delphi General Discussion
Last Post: chrisjordon232
08-06-2026, 05:17 AM
» Replies: 0
» Views: 33
Simply convert PeerIp to ...
Forum: Indy
Last Post: DidierMenant
08-04-2026, 03:50 PM
» Replies: 2
» Views: 192
New CGDevTools build is a...
Forum: CGDevTools
Last Post: lfeliz
08-04-2026, 12:03 AM
» Replies: 2
» Views: 1,353
How to terminate HTTP Thr...
Forum: Indy
Last Post: rlebeau
08-02-2026, 04:21 PM
» Replies: 3
» Views: 224
IW 16.2.0 Missing librari...
Forum: IntraWeb General Discussion
Last Post: JuergenS
07-31-2026, 09:44 AM
» Replies: 6
» Views: 1,248
Datatables question
Forum: IntraWeb General Discussion
Last Post: Alexandre Machado
07-28-2026, 04:34 AM
» Replies: 2
» Views: 235
CSS file not reloading af...
Forum: IntraWeb General Discussion
Last Post: CharlieDunn
07-27-2026, 08:27 PM
» Replies: 1
» Views: 400
Intraweb components missi...
Forum: IntraWeb General Discussion
Last Post: valmeras
07-27-2026, 03:18 PM
» Replies: 3
» Views: 387
Image question on tiwjqdb...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
07-17-2026, 05:18 PM
» Replies: 6
» Views: 4,875
IW 16.1.9 Invalid propert...
Forum: IntraWeb General Discussion
Last Post: Blanca80
07-17-2026, 08:06 AM
» Replies: 7
» Views: 2,395

 
  create grid columns at run time
Posted by: mazluta - 07-17-2020, 11:08 AM - Forum: IntraWeb General Discussion - Replies (18)

very simple project.

add 2 columns to grid.
refresh / invalidate / render - nothing help.......

if i will do something like that in the VCL framework it would work....

any body have idea? is it always like this in intraweb?
is there any full documentation for any new components?
dose the demos are relevant to version 15.xxx ++

dose the demo for madexception working? in version 15.xxx

dose atozed have to respect some one how bought there components?

==========================
this is the same project with VCL ehlib components
==========================

procedure TForm12.Button1Click(Sender: TObject);
begin
  DBGridEh1.Columns.Add;
  DBGridEh1.Columns[0].Title.Caption := 'code';
  DBGridEh1.Columns[0].Visible := true;;
  DBGridEh1.Columns.Add;
  DBGridEh1.Columns[1].Title.Caption := 'name';
  DBGridEh1.Columns[1].Visible := true;;
end;

===========================
this is the code in intraweb
===========================
unit Unit1;

interface

uses
  Classes, SysUtils, IWAppForm, IWApplication, IWColor, IWTypes, IWCompButton,
  Vcl.Controls, IWVCLBaseControl, IWBaseControl, IWBaseHTMLControl, IWControl,
  IWjQGrid, Vcl.Forms, IWVCLBaseContainer, IWContainer, IWHTMLContainer,
  IWHTML40Container, IWRegion, IWCompLabel;

type
  TIWForm1 = class(TIWAppForm)
    IWRegion1: TIWRegion;
    IWjQGrid1: TIWjQGrid;
    IWButton1: TIWButton;
    IWLabel1: TIWLabel;
    procedure IWButton1Click(Sender: TObject);
  public
  end;

implementation

{$R *.dfm}


procedure TIWForm1.IWButton1Click(Sender: TObject);
begin
  IWjQGrid1.Columns.Add;
  TjQGridColumn(IWjQGrid1.Columns[0]).Title := 'code';
  TjQGridColumn(IWjQGrid1.Columns[0]).Visible := True;
  IWjQGrid1.Columns.Add;
  TjQGridColumn(IWjQGrid1.Columns[1]).Title := 'name';
  TjQGridColumn(IWjQGrid1.Columns[1]).Visible := True;


  IWjQGrid1.DoRefreshControl := true;
  IWjQGrid1.Refresh;
  IWjQGrid1.Invalidate;

  Self.AsyncRenderComponent(IWRegion1);

  IWLabel1.Caption := ' there are ' + IntToStr(IWjQGrid1.Columns.Count) + ' columns';

end;

initialization
  TIWForm1.SetAsMainForm;

end.



Attached Files Thumbnail(s)
       

.zip   Project1.zip (Size: 54.34 KB / Downloads: 4)
Print this item

  IntraWeb and WebRTC
Posted by: TPiotr - 07-16-2020, 03:35 PM - Forum: IntraWeb General Discussion - Replies (1)

Hi,

Can anyone recommend a stable and safe solution for implementing WebRTC in IntraWeb applications ?
It is important that the IntraWeb application authorizes connections and manages WebRTC server connections.

Seems simple:

First machine has an public IP address (Computer in the company):
Server WWW (IntraWeb) + Server WebRTC + Client WebRTC
It can be as one application. It will be much easier and safer to communicate inside the application.

Second machine inside the NAT network (Employee's computer):
Only client WebRTC (Web browser)

Maybe there are some solution WebRTC server/client components ?

Best Regards
Piotr

Print this item

  bug in FillRealTabOrders
Posted by: mazluta - 07-16-2020, 12:02 PM - Forum: IntraWeb General Discussion - Replies (6)

hi think there is bug in - the list is not maintained correctly and some of the obj in the list don't exists 
so - the render crash

------------------------------------  this is my bypass

procedure TIWForm.FillRealTabOrders;

  procedure FillList(AContainer: TIWContainer; AList: TIWListBase);
  var
    i: Integer;
    LCurrent: TObject;
    LTabOrderInterface: IIWTabOrder;
  begin
    for i := 0 to AContainer.TabOrderList.Count - 1 do
    begin
      Try //Yossi
        LCurrent := TObject(AContainer.TabOrderList[i]);
        if Assigned(LCurrent) then //yossi
        begin
        if LCurrent is TIWContainer then
        begin
          FillList(TIWContainer(LCurrent), AList);
        end
        else
        begin
          LTabOrderInterface := TabOrderInterface(LCurrent);
          if LTabOrderInterface <> nil then begin
            if LTabOrderInterface.HasTabOrder then begin
            AList.Add(LCurrent);
            end;
          end;
        end;
        end;
      Except //yossi
        on e: exception do
        begin
          Try
            logFileAppend('Error on  TabOrder FillList : I= ' + IntToStr(I) + ' Message= ' + e.Message);
          Except;
          End;
        end;
      End;
    end;
  end;

begin
  FRealTabOrderList := TIWListBase.Create;
  FillList(Self, FRealTabOrderList);
end;

Print this item

  not working in iframe
Posted by: fatersoft - 07-16-2020, 05:04 AM - Forum: IntraWeb General Discussion - Replies (2)

hi
The program built with Intraweb does not work properly in iframe
in 15.2
but in 15.1 is true

Print this item

  Allow only active sessions access to a THandlers?
Posted by: ioan - 07-15-2020, 09:12 PM - Forum: IntraWeb General Discussion - Replies (4)

I'm trying to implement Server-side datatables.  
In my template I have something like this:

Code:
<script type="text/javascript" class="init">
$(document).ready(function() {
$('#UTCDRTABLE').DataTable( {
                    "serverSide": true,
                    "processing": true,
                    "ajax": "GetSomeData",
                    "order": [[ 1, "desc" ]]
                });
} );
</script>

... and in the ServerController I registered a THandlers like this:

Code:
with THandlers.Add('', 'GetSomeData', TContentGetSomeData.Create) do
begin
  CanStartSession := true
  RequiresSessionStart := false;
end;

... and I want only users that already have an active session (logged in) to access https://myip/GetSomeData and if the user is not logged in, to be redirected to the login page (main page). 
The way is set up now, as in the code above, everyone can try to GetSomeData and any combinations of true of false I tried for CanStartSession,  RequiresSessionStart doesn't get me the result I need. Actually, if I change anything on how I declare the THandlers.Add, I never get to TContentGetSomeData.Execute

What am I doing wrong and is this the way to do it?

Print this item

  in jQGrid Demo Project
Posted by: mazluta - 07-15-2020, 09:05 PM - Forum: IntraWeb General Discussion - Replies (5)

from where exactly the grid take the Theme to use?

how come the header title become red?

much more - if i use select * from big table (large record) and use just one field - the iwjqDbgrid - crash

if i use 2 or more dbgrid on the form - all the form crash. and we are talking on 1 form in one project....

it's look IWjQDbGrid have some bugs....

Print this item

  runtime build iwjqDbGrid columns
Posted by: mazluta - 07-15-2020, 03:21 PM - Forum: IntraWeb General Discussion - Replies (4)

hi
i tried buid columns in a grid at run time.

begin
  IWjQDBGrid2.ClearGridData;
  IWjQDBGrid2.Columns.Clear;
  with IWjQDBGrid2.Columns do
  begin
    Add;
    TjQGridDBColumn(IWjQDBGrid2.Columns[0]).FieldName := 'Client_Code';
    TjQGridDBColumn(IWjQDBGrid2.Columns[0]).Title    := 'Code';
    TjQGridDBColumn(IWjQDBGrid2.Columns[0]).Visible  := True;
  end;

  with IWjQDBGrid2.Columns do
  begin
    Add;
    TjQGridDBColumn(IWjQDBGrid2.Columns[1]).FieldName := 'Client_Name';
    TjQGridDBColumn(IWjQDBGrid2.Columns[1]).Title    := 'Name';
    TjQGridDBColumn(IWjQDBGrid2.Columns[1]).Visible  := True;
  end;
  FDQuery1.Open;

  IWjQDBGrid2.RefreshData;
  IWjQDBGrid2.ShowColumn('Column0');
  IWjQDBGrid2.ShowColumn('Column1');


i see there are 2 columns in the grid.
but idont see the data...

any idea?

Print this item

Question is Intraweb Application safe
Posted by: amit.walters - 07-14-2020, 05:14 PM - Forum: IntraWeb General Discussion - Replies (3)

Sir
I develop Application for My University in Intraweb 15. One of my programmer friend said to me that your application uses too much java script and because of these java script your application is not safe. is it ture? I am not using any java script of my own. Every thing is created by Intraweb.

Print this item

  Problem with IWDBGrid Async refresh
Posted by: Comograma - 07-14-2020, 10:25 AM - Forum: IntraWeb General Discussion - Replies (32)

Until v15.2, when I did a IWDBGrid.Refresh, the grid would refresh properly and the regions where the IWDBGrid resides in would refresh and resize properly.
From v15.2 and even with v15.2.6, this isn't update correctly.
I attatched 2 images to explain what's happening.
What has changed that is provoque this behaviour and how to achieve the correct result like before?

Print this item

  Where to place dbxmss.dll
Posted by: oliver - 07-13-2020, 08:04 PM - Forum: IntraWeb General Discussion - Replies (10)

I am using a TSQLConnection component to access SQLServer 2014 with Delphi 10.2 and Intraweb 14.2.7. 

Its a 32 bits app. It works fine with IIS on my development server.

However, when installed on a production server (IIS 10.0. xxx and Windows Server 2019), i get the message "Impossible to load dbxmss.dll (ErrorCode 126)." 

Where should i place dbxmss.dll on the production server to make it work ? 

Thanks for your support.

Print this item