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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 84,194
» Latest member: 111jlcom
» Forum threads: 2,412
» Forum posts: 11,326

Full Statistics

Online Users
There are currently 410 online users.
» 2 Member(s) | 403 Guest(s)
Applebot, Bing, Facebook, Google, Yandex, 111jlcom, b29skin

Latest Threads
OpenSSL and concurrent re...
Forum: Indy
Last Post: kbriggs
Yesterday, 02:41 PM
» Replies: 5
» Views: 92
Projeto Intraweb
Forum: IntraWeb General Discussion
Last Post: vonirpereira
07-03-2026, 06:51 PM
» Replies: 0
» Views: 56
Intraweb + Lazarus
Forum: IntraWeb Dúvidas Gerais
Last Post: vonirpereira
07-03-2026, 06:35 PM
» Replies: 0
» Views: 27
Image question on tiwjqdb...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
07-01-2026, 12:19 AM
» Replies: 4
» Views: 4,249
TIWjQDBGrid erratic behav...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
07-01-2026, 12:04 AM
» Replies: 4
» Views: 612
CSS file not reloading af...
Forum: IntraWeb General Discussion
Last Post: Gustave
06-30-2026, 09:00 PM
» Replies: 0
» Views: 79
IW 16.2.0 Missing librari...
Forum: IntraWeb General Discussion
Last Post: Gregory_Twedt
06-24-2026, 04:40 AM
» Replies: 5
» Views: 776
VCL conversion
Forum: Delphi General Discussion
Last Post: tobenschain
06-20-2026, 05:00 AM
» Replies: 0
» Views: 141
TIWjQDBGrid changing UI
Forum: IntraWeb General Discussion
Last Post: BoostedCruiser
06-08-2026, 02:02 AM
» Replies: 36
» Views: 70,877
Access Violation When Val...
Forum: IntraWeb General Discussion
Last Post: Alexandre Machado
06-03-2026, 08:47 AM
» Replies: 2
» Views: 575

 
  Mainform update on return from subform ?
Posted by: SorenJensen - 08-03-2019, 07:19 AM - Forum: IntraWeb General Discussion - Replies (10)

Hi,

I have an iwlabel on my mainform, showing contents from a usersession var, which is modified during the life of a subform called from mainform. When releasing the subform and returning to  the mainform, I would like to see the new value in the label.

Is it possible to update just the label (like iwlabel.update) or is the only solution to reload the mainform ? And if mainform has to be reloaded, what is the best way to do that ? Clicking a hidden button with DoSubmitValidation set to true ?

Regards
Soren

Print this item

  Content path for SA HTTPSYS service
Posted by: SorenJensen - 08-02-2019, 12:56 PM - Forum: IntraWeb General Discussion - Replies (6)

Hi,

I would want to use an imagebuttom on my form, and as far as I understand, the images shown on the button, depending on the button's state, are to be placed in the contents path.

When installing a SA as a service, is the contents path then the same path as the executable ?

Regards
Soren

Print this item

  OnClick or OnAsyncClick ?
Posted by: SorenJensen - 08-02-2019, 12:43 PM - Forum: IntraWeb General Discussion - Replies (3)

Hi,

Could anyone tell me the difference between the two ?

And when would you use the one or the other ?

Regards
Soren

Print this item

  IW 15.1.2 download issue
Posted by: SorenJensen - 08-02-2019, 04:21 AM - Forum: IntraWeb General Discussion - Replies (3)

Hi Alexandre,

I see from the tread about IW 15.1.2 is out, that you have a number of issues to solve, so this might not be the most urgent:

When installing the IW 15.1.2, and selecting the "Install IWBootstrap Demos and Resources", the installer downloads 1,91mb out of 9,15mb and then halts with the message "Sorry, the files could not be downloaded. Click Retry.... or cancel...."

Retry do not solve it.

NB! I am running the install as administrator and my viruscheck is off.

Regards
Soren

Print this item

  IW 15.1.x+ gSessions.Execute Q&A
Posted by: DanBarclay - 08-01-2019, 07:45 PM - Forum: IntraWeb General Discussion - Replies (2)

Finally upgrading to 15.1.2, I've got some questions (based on some assumptions) about dealing with session lists.

One thing I do occasionally is rip through the sessions to gather status information, including some app specific data from UserSession.

Questions regarding gSessions.Execute(): 
1.  Is it safe to read data from UserSession?  (form xx:=TIWUserSession(LSession.Data).MyValue)
2.  Is it safe to write data to UserSession?  (form TIWUserSession(LSession.Data).MyFlag:=true)
3.  Do I need to lock the session, or does the gSessions.Execute() lock before calling the procedure?

I do know that this kind of procedure works (see snip below), just converting from the SessionList demo, but:

Code:
gSessions.Execute(LSessionList[i],
        procedure(aSession: TObject)
        var
          LSession: TIWApplication absolute aSession;
        begin
          LSession.Lock;

          try
            xx:=TIWUserSession(LSession.Data).MyValue;
             // etc
          finally
            LSession.Unlock;    
          end;
        end;);

Is this kind of cross session (UserSession access) safe?
Is the session.lock redundant? 

I finally got back to work on some IW stuff so am upgrading, but my source access isn't turned on yet so I don't know what's behind the .execute curtain.

Thanks,

Dan

Print this item

  WebApplication.SendFile question
Posted by: Toni Santa - 07-31-2019, 03:50 PM - Forum: IntraWeb General Discussion - Replies (3)

Hi, 
putting the code in a buttons AsyncClick-event the 4 parameter with the filename is ignored. This can be reproduced with the DownloadFromCache sample project. 

Code:
procedure TIWForm23.btnDownloadAsyncClick(Sender: TObject;
  EventParams: TStringList);
begin
  WebApplication.SendFile(gSC.CacheDir + FFileName, True, FContentType, 'SampleFile.txt');
end;

In mine real time app I've code where after a SendFile in the browser appears the hourglass and hangs when the same code is executed from the click-event, but works fine from the AsyncClick-event. But the AsyncClick has above problem ignoring the filename.
IW15.1.0 Evaluation, Delphi Rio 10.3.1
Thx
Toni

Print this item

  IW 15.1.2 is out
Posted by: Alexandre Machado - 07-31-2019, 09:44 AM - Forum: IntraWeb General Discussion - Replies (20)

Hi guys!

There is a new update for IW 15, version 15.1.2.

This version includes the new IntraWeb Bootstrap 4 Framework* and also several important bug fixes.

Here is it: https://www.atozed.com/2019/07/intraweb-15-1-2/


* IWBS4 was IW users Loren Szendre and Shane Stump for IW 15.0, based on existing IWBS3 framework. Is is also open source, as previous version.
We updated the library to become compatible with latest IW 15.1 branch and included it in our standard setup. 
Thanks, guys!


Enjoy!  Smile

Print this item

  TIWURLWindow question
Posted by: Toni Santa - 07-31-2019, 09:41 AM - Forum: IntraWeb General Discussion - Replies (3)

Hi, I'm using the TIWURLWindow-control to show the contents of a PDF file with following code found in your examples

Code:
procedure TfrmMain.SendPdfStreamToURLWindow(const aPDFFile, aUserFilename: string);
var
  xURL: string;
  xFileStream: TFileStream;
begin
  uwAnteprima.URI := '';
  xFileStream := TFileStream.Create(aPDFFile, fmOpenRead);
  try
    xURL := TIWAppCache.StreamToCacheFile(Self, xFileStream, TIWMimeTypes.GetAsString(mtPDF), ctOneTime);
    uwAnteprima.URI := xURL;
  finally
    xFileStream.Free;
  end;
end;
All works fine. Now the pdf-viewer (f.e. in Edge or Chrome) has a "download"-button. Clicking it, the browser shows a "cryptic" name. Is there a way to force the cache-filename with the name of my choice (original name or somewhat stored in my underlying database)?
thanks and best regards
Toni Santa

Print this item

  15.1.1 WebApplication.RunParams.Values issue
Posted by: zsleo - 07-31-2019, 01:19 AM - Forum: IntraWeb General Discussion - Replies (1)

I rebuilt an app as stand alone and the WebApplication.RunParams.Values that was working for years is now not parsed unless I set ShowStartParams = True.

If ShowStartParams = False then WebApplication.RunParams.Values.Text = null string.

Help to fix this please...

I have also tried by as HTTP SYS

TIA

Print this item

  General question
Posted by: msgopala - 07-30-2019, 02:16 PM - Forum: IntraWeb General Discussion - Replies (3)

Sorry to be posting this here but I am at a loss. How do I prevent brute force attack .

Problem:

After going live with my IW dll we have had insane amount of ping requests t non-existant folders and files. We are a very small shop and I have tried changing IP bindings, blocking IP and IP ranges on the server firewall and IIS. Pings have reduced but still there. The failed request trace logs show IPs from China, Brazil, Russia etc.

IIS goes down after repeated pings and our intraweb dlls stop working when users are logged in. 

I appreciate any advice I can get. 

Sorry about posting this here.

Print this item