| Welcome, Guest |
You have to register before you can post on our site.
|
| Latest Threads |
WebApplication.IP change ...
Forum: IntraWeb General Discussion
Last Post: MJS@mjs.us
09-11-2026, 09:49 PM
» Replies: 1
» Views: 207
|
Hook/callback to handle t...
Forum: IntraWeb General Discussion
Last Post: Lenfors
09-08-2026, 09:03 AM
» Replies: 0
» Views: 165
|
Reproducible IIS crash in...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
09-08-2026, 01:48 AM
» Replies: 0
» Views: 178
|
The packages IW16.xx inc...
Forum: IntraWeb General Discussion
Last Post: hsbelli
09-03-2026, 11:46 AM
» Replies: 2
» Views: 485
|
Redirection issues with F...
Forum: IntraWeb General Discussion
Last Post: magosk
08-31-2026, 10:03 AM
» Replies: 0
» Views: 248
|
Source Code
Forum: IntraWeb General Discussion
Last Post: magosk
08-31-2026, 08:11 AM
» Replies: 3
» Views: 652
|
TContenthandler requires ...
Forum: IntraWeb General Discussion
Last Post: valmeras
08-30-2026, 02:35 AM
» Replies: 0
» Views: 230
|
TIWjQDBGrid erratic behav...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
08-20-2026, 05:12 PM
» Replies: 8
» Views: 2,254
|
Change Language DataTable
Forum: IntraWeb General Discussion
Last Post: Rigoberto Mercedes
08-19-2026, 03:21 PM
» Replies: 1
» Views: 367
|
How to terminate HTTP Thr...
Forum: Indy
Last Post: rlebeau
08-14-2026, 08:01 AM
» Replies: 5
» Views: 989
|
|
|
Creating and showing PDF |
|
Posted by: David1 - 06-14-2022, 03:39 PM - Forum: IntraWeb General Discussion
- Replies (2)
|
 |
Hello,
I am using IW 15.2.57 and Delphi 11.1.
I would like to show a dinamically created pdf after a user select an invoice in a TIWjQDBGrid.
To create the pdf I am using the export feature of Fast-Report reporting tool.
I am using the following code:
Code: var AppPath: string := WebApplication.ApplicationPath;
var CacheFileName: string := TIWAppCache.NewTempFileName();
QryDeliveries.Close;
QryOrder.Close;
QryOrder.ParamByName('OrderNo').AsString := FSelectedOrderNo;
QryOrder.Open;
QryDeliveries.Open();
Report.EngineOptions.EnableThreadSafe := True;
Report.EngineOptions.DestroyForms := False;
Report.LoadFromFile(Format('%sreports\Spedizioni.fr3', [AppPath]));
try
Report.PrepareReport;
PDFExport.FileName := CacheFileName;
Report.Export(PDFExport);
finally
Report.Clear;
end;
var Url: string := TIWAppCache.AddFileToCache(GGetWebApplicationThreadVar(), CacheFileName, 'application/pdf', ctOneTime);
WebApplication.NewWindow(Url);
At the beginning selecting different invoice the pdf is correctly shown but after some selection the pdf report the same invoice without correctly update the invoice data basing on the selected invoice.
What I am doing wrong?
Thank you,
Davide
|
|
|
| New interesting demo available |
|
Posted by: Alexandre Machado - 06-11-2022, 01:12 AM - Forum: IntraWeb General Discussion
- Replies (28)
|
 |
Hi guys,
Recently I've been asked on how to enable the back button in an IntraWeb app and have it working as it was an HTML web site. I came up with this demo that I've just published showing how to accomplish that (it requires some bits released on IW 15.2.57):
https://github.com/Atozed/IntraWeb/tree/...ltiPageApp
Key points:
- The application works as a Multi-page application, MPA (opposed to SPA, Single Page Application). MPA have multiple URLs (e.g http://yourdomain/newcustomer http://yourdomain/checkout, etc). On the contrary, traditional SPAs have a single URL
- One key difference between MPA and SPA is how they respond to the back button. In general, hitting the back button when in a SPA application will take you to another page, outside the scope of the application. On the other hand, MPAs respond correctly to back and forward buttons and will take you to the previous or next page in the browser history, inside the application scope. Also, URLs of a MPA app can be bookmarked
- This application makes use of content handlers to handle the URL addresses of the application. Each form has its own URL.
- There is no special code required other than the creation of the content handlers and setting a single property in the ServerController
- Everything should just work as expected. Have a look at the comments in the source code as it contains some important information on how to switch between forms and how to create the content handlers
Enjoy!
|
|
|
| HTTPSys Authenticatiom |
|
Posted by: PaulWeem - 06-09-2022, 02:45 PM - Forum: IntraWeb General Discussion
- Replies (2)
|
 |
Hi all,
I am running an internal only application in HTTPSys and would like to authenticate users through Active Directory (Windows Integrated).
But what I try, the reported user is always "SYSTEM" (the user with which the service is started).
Is there a possibility to add Windows Integrated Authentication (like in IIS) to HTTPSys?
Delphi 11.1 with IW 15.2.26.
Cheers, Paul
|
|
|
| IWFileUploader issue with text that contains apostrophes |
|
Posted by: Mikhael - 06-06-2022, 10:44 AM - Forum: IntraWeb General Discussion
- Replies (8)
|
 |
Hello,
I have a problem with the IWFileUploader when I change one of the fields of TextStrings with a text that contains an apostrophe.
eg: IWFileUploader6->TextStrings->MultipleFileDropNotAllowedText = "Qu'un seul fichier !";
I still get an hourglass, the page comes up but becomes unresponsive.
I tried with \' and other combinations, but it doesn't work.
This happens when changing in the IDE or programmatically.
How to solve this?
Thanks in advance.
|
|
|
| Unexpected page changes with button click |
|
Posted by: chuck.lucas@fisglobal.com - 05-31-2022, 01:54 PM - Forum: IntraWeb General Discussion
- Replies (11)
|
 |
I am currently using Delphi 10.1 Berlin with IntraWeb 14.2.3...
I am trying to "update" an ancient application (written in IntraWeb 4) and have hit a problem.
When the page with tabs initially renders, it looks perfect. If a button is pressed (or something that actually causes the page to post), then the "tab section" of the page becomes "garbled". Looking at the HTML/CSS source BEFORE and AFTER the button click shows portions of the CSS missing (such as width information).
Is there something I can do (besides upgrade, which is not an option) to resolve this?
Thanx,
Chuck
|
|
|
|