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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 97,599
» Latest member: bongdanhacaipro
» Forum threads: 2,426
» Forum posts: 11,371

Full Statistics

Online Users
There are currently 1169 online users.
» 1 Member(s) | 1164 Guest(s)
Applebot, Bing, Google, Yandex, bongdanhacaipro

Latest Threads
WebApplication.IP change ...
Forum: IntraWeb General Discussion
Last Post: MJS@mjs.us
09-11-2026, 09:49 PM
» Replies: 1
» Views: 129
Hook/callback to handle t...
Forum: IntraWeb General Discussion
Last Post: Lenfors
09-08-2026, 09:03 AM
» Replies: 0
» Views: 121
Reproducible IIS crash in...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
09-08-2026, 01:48 AM
» Replies: 0
» Views: 135
The packages IW16.xx inc...
Forum: IntraWeb General Discussion
Last Post: hsbelli
09-03-2026, 11:46 AM
» Replies: 2
» Views: 423
Redirection issues with F...
Forum: IntraWeb General Discussion
Last Post: magosk
08-31-2026, 10:03 AM
» Replies: 0
» Views: 213
Source Code
Forum: IntraWeb General Discussion
Last Post: magosk
08-31-2026, 08:11 AM
» Replies: 3
» Views: 594
TContenthandler requires ...
Forum: IntraWeb General Discussion
Last Post: valmeras
08-30-2026, 02:35 AM
» Replies: 0
» Views: 204
TIWjQDBGrid erratic behav...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
08-20-2026, 05:12 PM
» Replies: 8
» Views: 2,179
Change Language DataTable
Forum: IntraWeb General Discussion
Last Post: Rigoberto Mercedes
08-19-2026, 03:21 PM
» Replies: 1
» Views: 338
How to terminate HTTP Thr...
Forum: Indy
Last Post: rlebeau
08-14-2026, 08:01 AM
» Replies: 5
» Views: 946

 
  IntraWeb and FastReports
Posted by: TonyNZ - 01-25-2019, 03:41 AM - Forum: IntraWeb General Discussion - Replies (12)

Delphi XEII
Intraweb 15.0.17
FastReport 14.14

Has anyone had any experience with FastReports and HttpSys (although IIS might exhibit the same issues)?

I've been running Intraweb 14.x as Indy SA servers. The UserSession contains the appropriate datasets and a TfrxReport component. Different reports are loaded at runtime. PDFs produced are saved to the UserCache and displayed. In the past that worked fine. I've upgraded to 15.x and also converted to using HttpSys and now get lots of errors such as blank PDFs (i.e. no data) or PDFs displaying data from a different UserSession. On that last one ... I checked that the pdf was in the appropriate user's cache (it was) and the session's query (dataset) contains the correct data. 

I've done much googling / checking both this and FastReport's forums. There is plenty of advice, such as "DO NOT leave ANY TfrxReport components on any form, frame or data module" (create / destroy them at runtime); EnableThreadSafe := true (didn't solve the problem); UseGlobalDataSetList := False (blank report); use threads.

Before I start writing a ton of code I just wondering if anyone else as struck similar issues and how they solved them.

Print this item

  AWS and Containers
Posted by: lfeliz - 01-24-2019, 10:48 PM - Forum: IntraWeb General Discussion - Replies (3)

Hello,

I am currently deploying an app on AWS, using 2 EC2 instances (VM's) and a Load balancer.  On each vm, I have 2 instances of my app running as a service.  Its overkill for my very small user base, but I expect it should easily handle 250+ users.  

I am next working on integrating some other AWS services(cloudfront and s3 ) before I look at containers and autoscaling on AWS.    Curious to know if anyone here has worked with containers running Windows in general and/or on AWS?

Cheers!

Print this item

  Stop the IdHTTP.Post stream upload without closing the connection
Posted by: vladimir - 01-24-2019, 07:16 PM - Forum: Indy - Replies (8)

Hi

Let's see if I can phrase my question well enough.
I use TIdHttp.Post (and Patch) requests to upload a source stream, like

Code:
fHTTP.Patch(URL, InputStream);

Is there some way to interrupt the uploading of the stream, as if the data has ended, but without raising exceptions and closing the connections?

I am migrating some Java code that deals with a tus server. And one of the methods seems to do exactly the above. It make a patch request, uploads a stream, but it also has the option to stop the upload. When it is stopped, the client stops uploading the stream, but afterwards still reads the response from the server over the same connection. That response contains information about the data uploaded.

Looking at the code I could not find a clever solution. The uploading of the stream is called by TIdCustomHTTP.ConnectToHost and handled inside TIdIOHandler.Write and WriteDirect. But I didn't see how it can be interrupted midway without raising an exception, which then closes the connection.

Using Delphi 10.1 with Indy that comes with it.

Thanks.

Print this item

  TIdCmdTCPServer customised Reply
Posted by: jollytall - 01-24-2019, 01:07 PM - Forum: Indy - Replies (2)

I try to implement a very simple set-up. An IdCmdTCPServer and an IdTCPClient. From the Client I send a Cmd and in the Reply I want to get a value from the server.
On the client side I have (properly built it Try..Except, etc, what I do not include here):

Code:
Log(IntToStr(IdTCPClient1.SendCmd('AAA 1',[200])));
Log(IdTCPClient1.LastCmdResult.DisplayName);

where Log is a procedure to display a string.

On the server side I have (again properly built around):

Code:
procedure TMyIdCmdTCPServer.OnCommandAAA(ASender: TIdCommand);
begin
  Log('Raw Line ' + ASender.RawLine);
  ASender.Reply.Text.Text := 'DT= ' + DateTimeToStr(Now);
end;

After connecting I send the comand from the client. What I get is "200 Welcome", what is obviously the default welcome message. If I send the Cmd again, from the same connect-disconnect session, then I get the proper DT= reply, with the Time of the PREVIOUS call. I can repeat it many times. So it is clear that the Reply.Text is set, but only after the Reply is sent to the client. At the second Cmd it sends the Reply set at the first Cmd, etc.

If I disconnect and connect again, then it forgets the set Reply and goes back to the Welcome message (this part I feel normal).

Similarly if I send an unknown command multiple times, the first Reply is still 200 Welcome and only the second gives the unknown command error.

What do I do wrong? How can I customise the Reply AFTER the Cmd is received (so i know what the question is) but BEFORE it is sent back to the client?

Print this item

  XSLT 2.0
Posted by: Mikael Nilsson - 01-22-2019, 01:38 PM - Forum: IntraWeb General Discussion - Replies (4)

Can I use XSLT 2.0 in Intraweb 14.x
if so how?

Print this item

  Httpsys application issues loading SSL
Posted by: bob9999 - 01-19-2019, 11:37 PM - Forum: IntraWeb General Discussion - Replies (7)

Hi there.  It became time to acquire a SSL certificate and then get my standalone httpsys application secured.  I looked into the demo that is provided on-line but that bombs with cannot find library or similar message.  I think this is from the 32 bit dll's being missing (libeay32 and ssleay32).

My application is 64 bit so I have the 64 bit versions of the above dll's in the same folder as my exe.  I also have the 3 certificate files in PEM format (key, cert and root) in the same folder.  My certificate is issued from https://www.digicert.com and is a RapidSSL certificate.

For my server controller, I mimicked the demo but have a blank password since apparently my files are not password protected.  SSLVersion is TLSv12 but I also tried SSLv3.  Port is 443 and non SSL is set to redirect so always in SSL.  SSL versions are all set to false like the demo.

My form is set to connection mode secure and I have the code "WebApplication.SwitchToSecure;" in the create form event for the main form of the application.

The app installs as a server just fine and starts.  When I try to load the site in SSL in firefox it reports an error:

Secure Connection Failed

The connection to the server was reset while the page was loading.

    The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
    Please contact the website owners to inform them of this problem.

From what I have read the system is rather automatic and just looks for the 3 certificate files and then uses the DLL's to load SSL.  I must be missing something simple here.  The only thing I can think of is my certificates have no header in them namely the bag information that I see in the demo equivalent files.

Any assistance would be welcome.  
Cheers.

Print this item

  ISAPI not included in your license with evaluation mode
Posted by: manderson9960 - 01-18-2019, 01:23 PM - Forum: IntraWeb General Discussion - Replies (16)

Greetings

I'm new to Intraweb, so I'm using the evaluation mode to do some testing.  I run delphi tokyo 10.2 on a windows 10 machine.  I create a simple isapi dll file and copy it to my IIS server (IIS 10 under windows server 12).  Every time I run it, I get the "ISAPI not included in your license" message.

I had performed the bundled uninstall on delphi.  I was under the assumption that evaluation mode would let me deploy to my server.  I am running under 127.0.0.1.

Could I still have some old intraweb files left over from the bundled version, or am I hitting another security nightmare from IIS?

Regards and thanks,

Mark

Print this item

  Detecting Mobile browser and orientation
Posted by: lfeliz - 01-17-2019, 08:30 PM - Forum: IntraWeb General Discussion - Replies (8)

Planning on set of mobile friendly screens for my app.

Need to detect mobile phones and tablets.

How to detect phone based browsers so I can show mobile phone login ?

Tablets are usually fine for full app in landscape.  Would be nice to be able to alert user to rotate into landscape.


I probably should have checked to see if there is a demo for this ..... 

Cheers!

Print this item

Bug IW 15.0.17 tempalte control tags with - inside attribute names.
Posted by: ebob42 - 01-15-2019, 03:34 PM - Forum: IntraWeb General Discussion - Replies (6)

IntraWeb 15 release notes mention: "Templates: Attributes are allowed inside template control tags". This means that the following works great:

{%IWEDIT1 placeholder="something"%}

This becomes the following (styles removed for readability):

<input CLASS="IWEDIT1CSS" ID="IWEDIT1" NAME="IWEDIT1" placeholder="Actie-ID" TabIndex="1" TYPE="TEXT" VALUE="IWEdit1">

However, if I add the following attribute inside a template control tag:


{%IWEDIT1 data-dom="test" placeholder="something"%}

Then the resulting HTML tag becomes as follows:

<input CLASS="IWEDIT1CSS" data="" ID="IWEDIT1" NAME="IWEDIT1" TabIndex="1" TYPE="TEXT" VALUE="IWEdit1">

It looks like everything after the - in data is removed, including the placeholder tag.

Is there a way to include attributes that contain a - character??

Thanks in advance!

Groetjes, Bob Swart

Print this item

  Application Menus
Posted by: lfeliz - 01-14-2019, 11:54 PM - Forum: IntraWeb General Discussion - No Replies

Hello,

In my application , I have used a Page header frame and a  left side Frame that contains my menu ribbon, placing them all forms for user to be able to navigate to the function they would like.  This has worked well for a few years, but lately I have had some issues issues using them.  I use the inline method to get them into the form, but I think there has to be a better way.  Its nice to maintain the menu frames, but as I get more users I get feed back to change menu structure. I look to improve the look and feel of my app, I wonder is there a better way? 

Currently I use a left side menu, may go back to think drop down menu or just drop menu from some forms and force user to close and go back to main form. 

Any suggestions?  I am going to look through the latest demos to see if there is something in there that I missed. 

Cheers!

Print this item