| Welcome, Guest |
You have to register before you can post on our site.
|
| Online Users |
There are currently 391 online users. » 2 Member(s) | 385 Guest(s) Applebot, Bing, Google, Yandex, Alexandre Machado, z188nycom
|
|
|
| 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!
-
|
|
|
| How does session timeout work? |
|
Posted by: msgopala - 04-22-2019, 01:51 PM - Forum: IntraWeb General Discussion
- Replies (9)
|
 |
I have my Main.pas property Keep alive property checked
The Timeout in the server controller is set to 10.
Even after 10 minutes the Main page does not show a session expired message.
Could someone explain how this process works? do I need to program for a page redirect to a custom session time out page ?
Thanks
|
|
|
| [REQUEST] Add a way to create partitions |
|
Posted by: ad2017 - 04-22-2019, 11:17 AM - Forum: COSMOS
- Replies (1)
|
 |
Hey, I wanted to test my OS on a virtual machine (not debugging), but I didn't know that COSMOS isn't able to create partitions. It would be really useful if it could, as you could install it on a brand new drive.
I really hope this will become a thing. Thanks.
|
|
|
| TIdFTP with HTTP Proxy issue [Delphi 10.2/Indy 10.6.2.5366] |
|
Posted by: chinaid - 04-22-2019, 08:22 AM - Forum: Indy
- Replies (1)
|
 |
//init TIdFTP
f := TIdFTP.Create(self);
f.Passive := true;
//init Proxy
cProxy := TIdConnectThroughHttpProxy.Create();
cProxy.Host := '123.123.123.123';
cProxy.Port := '3128';
cProxy.Enabled := true;
//init IOHandler
LHandler := TIdIOHandlerSocket.Create();
LHandler.TransparentProxy := cProxy;
f.IOHandler := LHandler;
//ftp server
f.host := 'ftp.server.com';
f.username = 'root';
f.Password := 'abcd1234';
after f.Connect will get an error: "Abstract Error", if does not use proxy it works fine.
for sure, the proxy server/ftp server are both working fine.
sorry, I am not good at Indy, I have checked many documents/websites and made this code, but it looks not working for me, does someone can share some advise or document to me, thanks in advance.
|
|
|
|