| Welcome, Guest |
You have to register before you can post on our site.
|
| Online Users |
There are currently 1057 online users. » 0 Member(s) | 1054 Guest(s) Applebot, Bing, Google
|
| Latest Threads |
WebApplication.IP change ...
Forum: IntraWeb General Discussion
Last Post: MJS@mjs.us
09-11-2026, 09:49 PM
» Replies: 1
» Views: 162
|
Hook/callback to handle t...
Forum: IntraWeb General Discussion
Last Post: Lenfors
09-08-2026, 09:03 AM
» Replies: 0
» Views: 135
|
Reproducible IIS crash in...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
09-08-2026, 01:48 AM
» Replies: 0
» Views: 154
|
The packages IW16.xx inc...
Forum: IntraWeb General Discussion
Last Post: hsbelli
09-03-2026, 11:46 AM
» Replies: 2
» Views: 451
|
Redirection issues with F...
Forum: IntraWeb General Discussion
Last Post: magosk
08-31-2026, 10:03 AM
» Replies: 0
» Views: 225
|
Source Code
Forum: IntraWeb General Discussion
Last Post: magosk
08-31-2026, 08:11 AM
» Replies: 3
» Views: 622
|
TContenthandler requires ...
Forum: IntraWeb General Discussion
Last Post: valmeras
08-30-2026, 02:35 AM
» Replies: 0
» Views: 217
|
TIWjQDBGrid erratic behav...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
08-20-2026, 05:12 PM
» Replies: 8
» Views: 2,213
|
Change Language DataTable
Forum: IntraWeb General Discussion
Last Post: Rigoberto Mercedes
08-19-2026, 03:21 PM
» Replies: 1
» Views: 344
|
How to terminate HTTP Thr...
Forum: Indy
Last Post: rlebeau
08-14-2026, 08:01 AM
» Replies: 5
» Views: 971
|
|
|
IdHTTP corrections when proxy is used |
|
Posted by: NevTon - 04-29-2019, 01:17 PM - Forum: Indy
- Replies (7)
|
 |
Hi, when using TIdHTTP with proxy there is exception generated when authorization was needed.
Exception EIdHTTPProtocolException is fired with some params, but I think that this procedure contains some bugs:
1. you can not have exception and not discard content from response at the same time
2. it fills this exception with empty information for response text and third parameter as well
So my code fix proposition is as follows:
Code: function TIdHTTPProtocol.ProcessResponse(AIgnoreReplies: array of Int16): TIdHTTPWhatsNext;
var
LResponseCode, LResponseDigit: Integer;
procedure CheckException;
var
i: Integer;
LTempStream: TMemoryStream;
LOrigStream: TStream;
LRaiseException: Boolean;
LDiscardContent: Boolean;
LTempString: String;
begin
LRaiseException := True;
LDiscardContent := not (hoWantProtocolErrorContent in FHTTP.HTTPOptions);
if hoNoProtocolErrorException in FHTTP.HTTPOptions then begin
LRaiseException := False;
end
else if High(AIgnoreReplies) > -1 then begin
for i := Low(AIgnoreReplies) to High(AIgnoreReplies) do begin
if LResponseCode = AIgnoreReplies[i] then begin
LRaiseException := False;
LDiscardContent := not (hoWantProtocolErrorContent in FHTTP.HTTPOptions);
Break;
end;
end;
end;
LTempString := '';
LTempStream := Nil;
if {LRaiseException or} LDiscardContent then begin
LTempStream := TMemoryStream.Create;
LOrigStream := Response.ContentStream;
Response.ContentStream := LTempStream;
end else begin
LOrigStream := Nil;
end;
try
try
try
FHTTP.ReadResult(Request, Response);
except
on E: Exception do begin
FHTTP.Disconnect;
if not (E is EIdConnClosedGracefully) then begin
raise;
end;
end;
end;
if LRaiseException then begin
if LTempStream <> Nil then begin
LTempStream.Position := 0;
LTempString := ReadStringAsCharset(LTempStream, Response.CharSet);
end;
//
raise EIdHTTPProtocolException.CreateError(LResponseCode, Response.ResponseText, LTempString);
end;
finally
if {LRaiseException or} LDiscardContent then begin
Response.ContentStream := LOrigStream;
end;
end;
finally
if LDiscardContent then begin
LTempStream.Free;
end;
end;
end;
...
Thanks, NevTon.
|
|
|
| Error 404 Exception |
|
Posted by: intelmib - 04-27-2019, 08:20 PM - Forum: IntraWeb General Discussion
- Replies (2)
|
 |
procedure TIWServerController.IWServerControllerBaseConfig(Sender: TObject);
begin
TIWExceptionRenderer.RenderHTML(PARAM_EXCEPTION,'https://google.com.br');
End;
this way I treat the error by directing to the desirable URL.
my doubt is
which parameter to pass in "PARAM_EXCEPTION"?
|
|
|
| how to post to another server |
|
Posted by: amit.walters - 04-27-2019, 06:29 PM - Forum: IntraWeb General Discussion
- Replies (5)
|
 |
we have Firewall which gives option for external portal authentication.
for this I have created one Intraweb application. it shows one page for username an password, verifies it with data base and if found ok then
(required to post username and password to firewall for authorization and accounting.)
but because i don't know any option to post data by programming in Intraweb I am writing a html file with auto post to Firewall. this way it is working but I want to know
is their any way to post parameters to another server in my case firewall.
|
|
|
| SendFile with AsyncClick |
|
Posted by: matija - 04-26-2019, 03:03 PM - Forum: IntraWeb General Discussion
- Replies (2)
|
 |
This WebApplication.SendFile('C:\Temp\test.pdf',true,'',''); good work with Click.
I want it work with AsyncClick? With AsyncClick open my pdf in new tab. I do not want to do this!
Maybe solution replace with Javascript or other (thread)?
|
|
|
| Source installation of IW15 (D10.2.3) not working |
|
Posted by: Fulgan - 04-25-2019, 11:44 AM - Forum: IntraWeb General Discussion
- Replies (1)
|
 |
Hello,
I'm installing the latest version of IW 15 on a new machine and expisting programs fails to compile.
What I have done:
- Installed IW15 using the installer
- Ran the registration wizard
- Installed the components in the IDE
- Downloaded the IW15 source code and replace the "lib" sub-folder
- Removed reference to IW14 folders from the project
- Did a "clean" and then "build"
This is the message I have:
[dcc32 Fatal Error] IW.Common.RenderStream.pas(33): F2051 Unit IWServerSession was compiled with a different version of IWException.EInvalidAppID
IWServerSession source code is not provided so I can't just recompile it.
I used the files with the following names:
iw15.0.21.exe
IWSource15.0.9_20180724.zip
The source package file name is weird but I double-ckeched: it is the latest available for download (and my subscription does not expire until August).
I found the issue: IWSource15.0.9_20180724 is not the latest version but the download application does not order the files properly, only alphabetically. As a result, the files offered are unsorted.
Updating the the correct source code version sloved my problem.
|
|
|
| Intraweb session variables |
|
Posted by: msgopala - 04-24-2019, 07:22 PM - Forum: IntraWeb General Discussion
- Replies (3)
|
 |
Had some report crossover as far as fastreport and cache issues are concerned read a post that https://doc.atozed.com/en/iw14/develop/session/ to keep local variables to a minimum as they are common to all threads so moved over reporting variables to UserSession datamodule.
What is happening is if a user is printing a report, sometimes its right. Sometimes the report has data which was previously printed by a completely different client. The reports are exported using frxPDFExport component and saved on the server where my dll is hosted from.
Of course this didn't happen in the standalone and while we tested because we didnt have multiple external users accessing the application. The reports are first generated and exported and then sent via Webapplication.sendfile(path + filename). Filename changes everytime.
What I have tried : Rpt.free, Exportfilter.stream.free, moving variables to USersessionDM. Still continues to happen.
Report for John Doe prints correctly, Next while printing Jane Doe the report name says Jane Doe but data inside is of John Doe. How do I rectify this. My rpRpt.fr3 is stored on the server as well and how do I get it to to be specific to each session.
The print report proc is not in the UserSessionDM but on the main form.
Thanks for all your help.
|
|
|
| TIWTreeView - please help |
|
Posted by: denville - 04-24-2019, 05:12 PM - Forum: IntraWeb General Discussion
- Replies (10)
|
 |
W7/64 C++ Builder XE7 (update 1) 32-bit build New IntraWeb Application
Latest IW (.20) brand new license and support update, carefully installed in virgin W7 / XE7 re-installation, unbundle tool used prior to upgrade.
Please see my earlier post just a few back for more info.
I am left with the original TreeView problem - nothing about it seems to work. This is the code in its entirety...
static TIWTreeViewItem *tnp, *snp;
void __fastcall TIWForm1::IWButton2AsyncClick(TObject *Sender, TStringList *EventParams)
///////////////////////////////////////////////////////////////////////////////////////
{
tnp = LogTreeView->Items->Add( NULL );
tnp->Caption = "First Node";
snp = LogTreeView->Items->Add( tnp );
snp->Caption = "First Sub Node";
tnp->Expanded = false;
}
void __fastcall TIWForm1::LogTreeViewTreeItemClick(TObject *Sender, TIWTreeViewItem *ATreeViewItem)
//////////////////////////////////////////////////////////////////////////////////////////////////
{
String us = ATreeViewItem->Caption;
us = us;
}
Just as before, the TV displays expanded with the + and - ineffective, and (double) clicking on one or t'other fails to fire the Click event. I have tried setting AsyncMode (default True) to both T and F, and setting DoServerSidePlusMinus (default True) set both T and F. I added the following code with no success:
void __fastcall TIWForm1::LogTreeViewPlusMinus(TObject *aSender, bool aIsPlus)
/////////////////////////////////////////////////////////////////////////////
{
tnp->Expanded = aIsPlus;
}
Please, what have I missed ?
Denville.
|
|
|
| Bootstrap for dummies? |
|
Posted by: cpstevenc - 04-24-2019, 02:37 PM - Forum: IntraWeb General Discussion
- Replies (3)
|
 |
I am way behind in the times as our older IW app just works. So finally into looking into things. Last time I had to dig into our IW app, bootstrap didnt exist for IW.
Anyways, using latest IW 15.0.20 and Tokyo 10.2.1
Is there any bootstrap demo/example programs?
Any write ups on what you are suppose to do and not do? I've searched around and found bits here and there from IW 14.. the guy on github who started it for IW 14 few years ago.
Basically is there anywhere that tells me, step by step, what to do to an app to enable BS and drop in BS controls and render?
I've been fighting it since last night and can't figure out what I am missing.
Disable Jquery render.
Drop a bslayoutmgr on form.
Drop a bsregion and set to container
Drop a bsbutton in said region.
Never renders as BS visual object. Just pops up as a regular button.
I compiled the demo from https://github.com/kattunga/IWBootstrapFramework
The MemoHtml Demo works... but I have zero clue why and what I am not doing.
My hopes was being able to mix and match IW Controls / IWBS Controls while using an HTML Template.
Which might be doable, but I can't wrap my head around this right now to fully understand what the exact steps are for things to work.
|
|
|
| Tabela |
|
Posted by: Eziooh - 04-24-2019, 09:33 AM - Forum: IntraWeb Dúvidas Gerais
- Replies (4)
|
 |
Olá!
Tenho uma tabela para fazer no intraweb 10 e essa tabela irá ter em volta de 26 espaços, como posso fazer para mudar todos esses espaços, usando o tab? Tem como unir 2 células?
|
|
|
| Cookie Demo needed |
|
Posted by: cpstevenc - 04-24-2019, 02:42 AM - Forum: IntraWeb General Discussion
- Replies (4)
|
 |
Is there any cookie usage demos? There isn't one in the Github download of demos.
Using Tokyo 10.2.1
IW 15.0.20
Stand Alone Server
TIWStandAloneServer being used to have a custom server form.
AllowMultipleSessionsPerUser = TRUE
For our VCL / FMX Mobile App... gotta supply 4 values to login in to the service.
Two of them can be restored back from a cookie when you come back to page at a later date/time... the other two values have to be put in.
I am not 100% sure the proper usages of
WebApplication.Response.Cookies.AddCookie
and
webapplication.Request.CookieFields.Values
of when I should be using these... And for the addCookie, what kind of parameters I should be using for PATH and such as I don't want it
tied to a the random generated session path/id.
Thanks!
-
|
|
|
|