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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 99,616
» Latest member: 98winfootball2
» Forum threads: 2,426
» Forum posts: 11,373

Full Statistics

Online Users
There are currently 961 online users.
» 0 Member(s) | 957 Guest(s)
Applebot, Bing, Google, Yandex

Latest Threads
Reproducible IIS crash in...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
09-21-2026, 05:33 PM
» Replies: 1
» Views: 359
WebApplication.IP change ...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
09-21-2026, 05:31 PM
» Replies: 2
» Views: 400
Hook/callback to handle t...
Forum: IntraWeb General Discussion
Last Post: Lenfors
09-08-2026, 09:03 AM
» Replies: 0
» Views: 303
The packages IW16.xx inc...
Forum: IntraWeb General Discussion
Last Post: hsbelli
09-03-2026, 11:46 AM
» Replies: 2
» Views: 649
Redirection issues with F...
Forum: IntraWeb General Discussion
Last Post: magosk
08-31-2026, 10:03 AM
» Replies: 0
» Views: 377
Source Code
Forum: IntraWeb General Discussion
Last Post: magosk
08-31-2026, 08:11 AM
» Replies: 3
» Views: 819
TContenthandler requires ...
Forum: IntraWeb General Discussion
Last Post: valmeras
08-30-2026, 02:35 AM
» Replies: 0
» Views: 334
TIWjQDBGrid erratic behav...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
08-20-2026, 05:12 PM
» Replies: 8
» Views: 2,518
Change Language DataTable
Forum: IntraWeb General Discussion
Last Post: Rigoberto Mercedes
08-19-2026, 03:21 PM
» Replies: 1
» Views: 496
How to terminate HTTP Thr...
Forum: Indy
Last Post: rlebeau
08-14-2026, 08:01 AM
» Replies: 5
» Views: 1,209

 
  How to change a button color ?
Posted by: SorenJensen - 03-05-2020, 07:26 AM - Forum: IntraWeb General Discussion - Replies (8)

Hi Guys,

On my form I have a button that, when clicked, will search for rows in a table and show them in a grid. I want to notify the user the button click has been registered and that the application is performing the action. If the action takes longer than 500 ms, and no visual sign says the button is pressed, the user will try again, and again, and..

My client is using Edge browser and that's a company wide decision I can't change. Unlike IE, buttons in Edge do not visually change when clicked. No 3D effect. In Edge nothing happens at all, that is, there is no sign telling the user the button has been clicked. NB! It might be a setting somewhere in Edge prohibiting this behavior and if it is, and you know how to change that, please let me know. I've used a lot of time with my friend Google to try to find out, so far without luck.

Anyway, to bypass this Edge shortage, I've decided to let my button change color when clicked. The idea is to change it as soon as the user clicks it, and leave the color for the duration of the action, but absolutely none of the attempts to get the button to change color at anytime, have been successful.

I use the OnClick event of the button, not the OnAsyncClick event.

If you have an idea of how to do this, or a proposal for another approach, please let me know.

Regards
Soren

Print this item

  Unit InCustomTCPServer was compiled with a different version of InTCPConnection.TInTC
Posted by: Frans Bougie - 03-04-2020, 08:49 PM - Forum: IntraWeb General Discussion - Replies (8)

I'm using Delphi2009, installed IntraWeb 12.2.37 and iw12tmsd2009p.zip (TMS Intraweb comp. pack pro V5.8.0.0)

As I compile my app, I get the following message

[DCC Fatal Error] EngenixWebPortal.dpr(13): F2051 Unit InCustomTCPServer was compiled with a different version of InTCPConnection.TInTCPConnection

Any suggestions hwo to fix this?

Print this item

  Getting started with IW 15.1.15 and Bootstrap.
Posted by: AllenNolandDIA - 03-04-2020, 06:25 PM - Forum: IntraWeb General Discussion - Replies (7)

I have used intraweb in the past but want to use the bootstrap features.  I am struggling to find any IW 15 examples on getting started with bootstrap.  I can't even find where the Ultimate edition I just purchased put the demo or sample applications.  All the youtube that I've found is either 2 or 3 years old or talks about IW 17.  

Thanks in advance!

IW 15.1.15 with Delphi 10.3 update 3

Print this item

  Putting text in a string var in a newly created form before showing it ?
Posted by: SorenJensen - 03-04-2020, 06:13 AM - Forum: IntraWeb General Discussion - Replies (5)

Hi all,

This might just be a trivial question I should know the answer to , but I do not seem to find the right way of doing it.

I want to create a new form when pressing a button (in the OnClick), move values from the creating form, onto the created form, before showing it.

So what I would do is:

TIWForm1.Button1.OnClick(sender....
begin
  TIWForm2.create(self);
  TIWForm2.value1 := 'test';
  TIWForrm2.Show
end;

In Iwform2 I have vaue1 defined as a string in the public section of the form. IDE accepts the code, but compiler rejects with

TIWForm2.value1 := 'test';  Error: Method identifier expected... ".value1" should be a method and
TIWForm2.Show;  Error: this form of method call only allowed for class methods or constructor.

Is this not possible in IW or what Am I doing wrong ?

Regards
Soren

Print this item

  Indy HTTP client- Need help on Overwriting HTTP method
Posted by: happyzj - 03-04-2020, 04:39 AM - Forum: Indy - Replies (4)

Hi, I used to built a Upnp control point using indy 10.5.9.4967.  Wtih Upnp event subscribe, I overwrite the HTTP method with following code and it works:
form1.myhttp.HTTPMethod := 'SUBSCRIBE';
......
form1.myhttp.Get(URL);

With Indy 10.6.1.518, I find idHTTP client doesn't have property "HTTPMethod" anymore and I tried following two property which doesn't work:
myhttp.Request.Method := 'SUBSCRIBE';
myhttp.Request.MethodOverride := 'SUBSCRIBE';

Can someone help me out?  thank you!

Print this item

  IntraWeb and Apache
Posted by: jimmy11 - 03-04-2020, 12:44 AM - Forum: IntraWeb General Discussion - Replies (3)

Hi Guys,

We are running IntraWeb 14 and IIS and just recently decided to switch on Apache httpd.
After that we have notice some windows exception and access violation.
Is there any special setup we need to do for Apache? or any changes needed on the code?

Thanks in advance

Print this item

  TIWCheckBox problem
Posted by: geremiah - 03-02-2020, 05:09 PM - Forum: IntraWeb General Discussion - Replies (3)

After the 15.1.15 upgrade, testing the checked value of a TIWCheckBox in the OnAsyncChange or OnAsyncClick or OnChange events it return always true.
Before this upgrade the value was managed correctly.
Best Regards.
Giovanni P.

Print this item

  AV's and Parameters not found...
Posted by: SorenJensen - 03-02-2020, 12:14 PM - Forum: IntraWeb General Discussion - Replies (3)

Hi All,

Again I have a multiuser issue. This time it is in a Web service, wrapped in a TService Shell, and installed as a HTTP.SYS program on a server.

The problems show-up when more than one client at a time, and ONLY when more than one client, do the same operations. 

The client is a Windows 32 program, running on individual users PC's all within the Company domain, accessing data in a SQL table on a MS SQL server, also within the Company domain. There are several webservice calls in one operation, to read or write various data from and to the SQL table.

As there are no ServerController unit (or UserSession unit) I have not been able to set the "ComInitialization" property, nor am I calling CoInitialize and CoUnInitialize anywhere in the Win32 program, or in the Webservice. Could that be the reason, and if, how do I correct it ?

Also, trying to add CoInitialize and CoUnInitialize as calls in the Win32 program, before and after each Webservice call, I can't compile the program. Compiler says "Undeclared identifier". Which unit are the co-calls defined in ?

I hope someone can help. As it is now, these problems are showstoppers.

Regards
Soren

Print this item

  another multi-user "see each other data" problem
Posted by: karolm - 03-01-2020, 02:01 PM - Forum: IntraWeb General Discussion - No Replies

So i have created a desktop test app, before moving to intraweb, with SQlite and dbExpress and opened two copies of the app. I have one SQLConnection and two SQLQuery.
SQLQuery1.SQL:=insert into topics(da,topic) values(1,'1')
SQLQuery2.SQL:=insert into topics(da,topic) values(2,'2')

there is a suspicious
var
  Form1: TForm1; in the interface part, which I do not know how to remove

In form.oncreate
SQLConnection1.Connected:=true

The first copy runs the first code


Code:
procedure TForm1.Button2Click(Sender: TObject);
var
   tr: TTransactionDesc;
   finished: boolean;
begin
  try
    SQLQuery2.SQLConnection:=SQLConnection1;
    SQLConnection1.StartTransaction(tr);
    SQLQuery2.ExecSQL;
    sleep(4000);
    SQLConnection1.Commit(tr);
    finished:= true;
    SQLQuery2.SQLConnection:=nil
  except
    SQLConnection1.Rollback(tr);
    finished:= false;
  end;
  if finished
  then
    showmessage('OK')
  else
    ShowMessage('NOT OK');
end;


and the second copy runs the second code

Code:
procedure TForm1.Button3Click(Sender: TObject);
var
  tr: TTransactionDesc;
  finished: boolean;
begin
  repeat
    try
      SQLQuery3.SQLConnection:=SQLConnection1;
      SQLConnection1.StartTransaction(tr);
      SQLQuery3.ExecSQL;
      SQLConnection1.Commit(tr);
      finished:= true;
      SQLQuery3.SQLConnection:=nil;
      memo1.Lines.Add('OK')
    except
      sleep(400);
      SQLConnection1.Rollback(tr);
      finished:= false;
      memo1.Lines.Add('NOT OK')
    end;
  until finished;
  memo1.Lines.Add('END')
end;

When I run the codes one after another I get all right two records inserted into the database, but when I start the second code  before the first transaction finishes, I get both OK messages but there appears only one record inserted in the database. The second transaction waits normally until the first finishes.

Print this item

  Download file ? how to..
Posted by: SorenJensen - 02-29-2020, 11:24 AM - Forum: IntraWeb General Discussion - Replies (5)

Hi All,

I'm a bit confused with the options available and hope someone will enlighten me and help me to understand how to accomplish the following:

My user has selected a number of rows in a table, and each row contains the name of an associated PDF file, saved in a public folder on the server. The user do have access to the folder, and can pick the files with file explorer or similar. And the user running the Webservice (http.sys) aslo have access to the folder.

I want to help the user getting the files of the public folder, into a folder on his workstation. What is the best way to I do that ?

Also a it will be more than one file to get, I want to avoid being asked any action for each file, and only be asked for a folder name for all the files at once. Is that possible ?

Thanks in advance for any help I can get

Regards
Soren

Print this item