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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 98,731
» Latest member: TomSmithbb
» Forum threads: 2,426
» Forum posts: 11,371

Full Statistics

Online Users
There are currently 788 online users.
» 1 Member(s) | 783 Guest(s)
Applebot, Bing, Google, Yandex, TomSmithbb

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

 
  Setup IWGrid visibility in OnAsyncClick event
Posted by: brsoft - 09-07-2019, 09:27 AM - Forum: IntraWeb General Discussion - Replies (4)

Hi

Simple bug in IW15.1.4, but very annoying.
OnAsyncClick Event:
                        IWGrid1.visible: = not IWGrid1.visible;
... and the position of the Grid is moving!
(The position is correct for the OnClick event.)

Other components have no such error.

Error presentation:
http://95.140.46.153/gridvisibletest


Can you help me with this?


Best regards
brsoft

Code:
type
  TIWForm1 = class(TIWAppForm)
    IWGrid1: TIWGrid;
    IWButton1: TIWButton;
    IWButton2: TIWButton;
    procedure IWButton1AsyncClick(Sender: TObject; EventParams: TStringList);
    procedure IWButton2Click(Sender: TObject);
  public
  end;

implementation
{$R *.dfm}

procedure TIWForm1.IWButton1AsyncClick(Sender: TObject; EventParams: TStringList);
begin
IWGrid1.Visible:=not IWGrid1.Visible;
end;

procedure TIWForm1.IWButton2Click(Sender: TObject);
begin
IWGrid1.Visible:=not IWGrid1.Visible;
end;



Attached Files
.zip   gridvisibletest.zip (Size: 5.37 KB / Downloads: 0)
Print this item

  Delphi Rio 10.3.2 IW 14.2 Debugger Not Working?
Posted by: stephenwardhw - 09-06-2019, 11:58 PM - Forum: IntraWeb General Discussion - Replies (3)

I am new to IntraWeb and am trying it out for the first time.  However when I drop a breakpoint on the code in the Form unit it does not seem to trigger correctly.  Does Intraweb support the Delphi debugger?  If so does anyone have any suggestions that I may try to get that working.

Thanks in advance for any suggestions.

Print this item

  HttpSys and CGIRunner
Posted by: TonyNZ - 09-06-2019, 12:02 AM - Forum: IntraWeb General Discussion - Replies (4)

Has anyone else experienced a strange and frustrating issue with HttpSys / CGIRunner?

The setup (on Windows Server 2008 R2) is, in simple terms, the following:

ServerA calls CGIRunnerA when requested to produce a client/user's report.
ServerB calls CGIRunnerB when requested to produce a client/user's report.

Different exes. Different folders. Both running as services on port 80 using HttpSys.

Both run happily for days depending on the load. Then suddenly they both stop calling the respective CGIRunner exe. As far as I can tell it isn't a memory or CPU issue. If I watch Task Manger, I seems the exe isn't called / loaded. Stopping / starting just one of the servers fixes the issue for both.

The issue is most notable when the ServerB / CGIRunnerB combination is "live". The reason being that, even though ServerB may only have 20+ users, the reports being produced can be very big. Initially it seemed like an issue with ServerB but then by chance just as I got a client email about it not producing a report, I got a notification email about the same issue on ServerA. Stop / start only ServerB, and ServerA also came right! It is consistent. Nothing else on the Servers stop functioning. They remain fully responsive, except for this one function!

And yes... I am creating and freeing the CGIRunner (similar to the demos). I have tried with LogCommand enabled - no errors. Can't reproduce on my test environment - even with four different browsers open, simultaneously producing big reports. So not sure where to go from here.


Any ideas?

Print this item

  IW 15.1.5.RC7
Posted by: ShaneStump - 09-05-2019, 09:07 PM - Forum: IntraWeb General Discussion - Replies (27)

Howdy Alexandre!

I downloaded the latest interim version to test against my application and I am happy to report that most of my application is working.

The earlier issue I reported about memory EAccessErrors was caused because apparently in IW 15.0.24->15.1 the destruction of objects (or at least child forms) of a form has changed! That is, I have a form that contains a couple of children IWAppForms and I was saving their some of their variables in my main form's deconstructor because usually they aren't destroyed until AFTER my destructor has run. Any how, once I noticed this, I was able to fix my issue.

The problem I haven't figured out that is causing me issues is RegisteredCallBack()s. I have  a class I wrote that encapsulates a bootstrap 4 progress stepper class. Since it is a non-visual class, I use a TDataModule. When I registered my callback, I use the function below:

void TSSBS4ProgressStepperDataModule::RegisterCallbacks(void)
{
// Add JS events
  SSStringListUniquePtr pJavaScript(new TSSStringList);
  pJavaScript->Add(L"function OnStepItemClick(event)");
  pJavaScript->Add(L"{");
  pJavaScript->Add(L"executeAjaxEvent(\"&ID=\"+event.currentTarget.id.toString(),null,\"" + UpperCase(Name) + L".OnStepItemClick\",false, null, false)");
pJavaScript->Add(L"}");

  Form->JavaScript->AddStrings(pJavaScript.get());

  Form->WebApplication->RegisterCallBack(UpperCase(Name) + L".OnStepItemClick",OnStepItemClick);
}


When I render the control that will call the above event, I use the following code line:

pHtmlList->AddEx ( L"<a href=\"#\" id=\"%d\" onclick=\"OnStepItemClick(event)\">%s</a>",nStepID,strCaption.c_str());

Any how, all works in IW versions 15.0.24 and previous.

I looked at the demos and don't see an updated example of how to do the new callbacks.

What am I missing?

Thanks,

Shane

Print this item

  15.1.4 + placeholders + IWEdit + async update
Posted by: MJS@mjs.us - 09-03-2019, 09:47 PM - Forum: IntraWeb General Discussion - Replies (4)

Added placeholders and they mostly work, but if I touch an IWEdit control through an async call such as enabling, disabling, or setting the text the placeholder then disappears.  If I update the control via a synchronous call the placeholder reappears and works until another async call updates the control.  This occurs with or without templates.

Print this item

  IWBootstrap 3.4.1 error
Posted by: pierobonf@contal.it - 09-03-2019, 07:31 AM - Forum: IntraWeb General Discussion - Replies (6)

Good morning,
I found two possible bootstrap errors in version 3.4.1.
I am using intraweb 15.1.4 and the bootstrap version 3.4.1 (IWBSLayoutMgr).
1)
I put an iwbsregion and an iwbstext with some text and set the visible property of the latter to false. I have a button where I call
IWBSText1.show to show it. The region is shown and also iwbstext but the text present in iwbstext is not shown. If I inspect with firebug the text is present is the css property visibility: hidden is always present although it called show on iwbstext. (i always call AsyncRefreshControl after show)
2)
I have an IWBSRegion and an iwbsinputform inside it.
I set the Visibility-xs and visibility-sm to bsgvHidden properties on the Object inspector. When I am in the xs or sm condition the iwbsinputform component is not hidden.

I enclose an example project so you can check for possible errors
P.S. (Also Css property and BSFormType are not decoded in html class when render)
P.S (Also IWBSRegion seems has the same problem when i call show method)

Thanks for your help
.zip   ExampleBootstrap3-4-1.zip (Size: 60.31 KB / Downloads: 8)

Print this item

  Variables IWError.html template
Posted by: ronaldobim - 09-02-2019, 12:31 PM - Forum: IntraWeb General Discussion - Replies (2)

I am trying to use the IWError.html template to customize the error page. What are all possible variables {% ..%} to use? I am having difficulty customizing the reset link and displaying error details.

Print this item

  IWCallBackFunc Bug IW 15.1.4
Posted by: omarperezh - 08-28-2019, 06:06 PM - Forum: IntraWeb General Discussion - Replies (1)

IW is trying to clear an uncreated object, Add Lines commented below //OPH20190826 Prevent Bug


unit IWCallBackFunc;
//OPH20190826 Prevent Bug

interface

...

implementation

...

procedure TIWCallBacks.Invoke(ACallbackRec: TIWCallbackRec);
var
  LResult: string;
  LHandled: Boolean;
  LForm: TIWForm;
  LSession: TIWApplicationAccess;
begin
  LSession := TIWApplicationAccess(FSession);
  if not Assigned(LSession) or not Assigned(LSession.ActiveForm) then begin
    Exit;
  end;

  LForm := TIWForm(LSession.ActiveForm);
  try
    //Pass a copy of all Request params to the Callback.
    if not Assigned(FEventParams) then begin
      FEventParams := TIWStringList.Create;
    end;
    FEventParams.AddStrings(LForm.Params, False);
    if Assigned(ACallbackRec.Method) then begin
      ACallbackRec.Method(FEventParams);
    end else if Assigned(ACallbackRec.Proc) then begin
      LResult := '';
      LHandled := False;
      ACallbackRec.Proc(FEventParams, LResult, LHandled);
      if LHandled then begin    // user code handles the response
        LSession.CallBackResponse.SendResponse := False;
        Exit;
      end;
      if LResult <> '' then begin
        // Write result to response as is
        LSession.CallBackResponse.AddRawText(LResult);
      end;
    end;
    if LForm.SendAJAXNotification then begin
      LSession.CallBackResponse.AddJavaScriptToExecute(LForm.GetIWAJAXNotificationJSCode);
    end;
  finally
    if Assigned(FEventParams) then //OPH20190826 Prevent Bug
      FEventParams.Clear;
  end;
end;

...

Print this item

  sending event email
Posted by: ccMcBride - 08-27-2019, 02:33 PM - Forum: Indy - Replies (14)

using delphi 10 seattle,
my email is setup like so:

Code:
      dmEmail.emMessage.ContentType := 'text/calendar;method=REQUEST';
      with tIDText.Create(dmEMail.emMessage.Messageparts) do
      begin
         ContentType := 'text/calendar;method=REQUEST';
//         parentPart := 0;
         Body.Text := eventText.Text;
      end;
      with TIdAttachmentFile.Create(dmEmail.emMessage.MessageParts, fName) do
      begin
         ContentDisposition := 'attachment';
         ContentType := 'text/calendar;method=REQUEST';
         ExtraHeaders.Values['Content-ID'] := ExtractFileName(fName);
         ContentID := ExtractFileName(fName);
         Filename := ExtractFilename(fName);
//           parentPart := 1;
      end
where fName is a .ics file that I am attempting to send.
currently, the contents of the ics file is:
Code:
BEGIN:VCALENDAR
VERSION:2.0
METHOD:REQUEST
BEGIN:VEVENT
ORGANIZER;CN=Connie M.:MAILTO:[real code has a valid email address here]
DTSTART:20190827T220000Z
DTEND:20190827T230000Z
TRANSP:OPAQUE
SEQUENCE:0
UID:185
DTSTAMP:20190827T071800Z
DESCRIPTION:3 pm my time
SUMMARY:Event on 27th
PRIORITY:2
BEGIN:VALARM
TRIGGER:-PT15M
ACTION:DISPLAY
DESCRIPTION:Reminder
END:VALARM
END:VEVENT
END:VCALENDAR

my mail.txt (saving the message to file) is this:

Code:
Subject: Event on 27th
To: [real code has a valid email address here, which is different that the organizer address above]
Content-Type: text/calendar; method=REQUEST; charset=us-ascii; boundary="AZF7QdS9INFRk=_YwrBAXh6TL7aANRhj0D"
MIME-Version: 1.0
Date: Tue, 27 Aug 2019 07:18:42 -0700

This is a multi-part message in MIME format

--AZF7QdS9INFRk=_YwrBAXh6TL7aANRhj0D
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline



--AZF7QdS9INFRk=_YwrBAXh6TL7aANRhj0D
Content-Type: text/calendar;method=REQUEST
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

BEGIN:VCALENDAR
VERSION:2.0
METHOD:REQUEST
BEGIN:VEVENT
ORGANIZER;CN=3DConnie M.:MAILTO:[weird that organizer name changed to start with 3D, but otherwise, same valie email address]
DTSTART:20190827T220000Z
DTEND:20190827T230000Z
TRANSP:OPAQUE
SEQUENCE:0
UID:185
DTSTAMP:20190827T071800Z
DESCRIPTION:3 pm my time
SUMMARY:Event on 27th
PRIORITY:2
BEGIN:VALARM
TRIGGER:-PT15M
ACTION:DISPLAY
DESCRIPTION:Reminder
END:VALARM
END:VEVENT
END:VCALENDAR

--AZF7QdS9INFRk=_YwrBAXh6TL7aANRhj0D
Content-Type: text/calendar;method=REQUEST;
    name="Event185.ics"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
    filename="Event185.ics"
Content-ID: Event185.ics
Content-ID: Event185.ics

QkVHSU46VkNBTEVOREFSDQpWRVJTSU9OOjIuMA0KTUVUSE9EOlJFUVVFU1QNCkJFR0lOOlZFVkVO
VA0KT1JHQU5JWkVSO0NOPUNvbm5pZSBNLjpNQUlMVE86Q29ubmllbUBwcm92YW50YWdlc29mdHdh
cmUuY29tDQpEVFNUQVJUOjIwMTkwODI3VDIyMDAwMFoNCkRURU5EOjIwMTkwODI3VDIzMDAwMFoN
ClRSQU5TUDpPUEFRVUUNClNFUVVFTkNFOjANClVJRDoxODUNCkRUU1RBTVA6MjAxOTA4MjdUMDcx
ODAwWg0KREVTQ1JJUFRJT046MyBwbSBteSB0aW1lDQpTVU1NQVJZOkV2ZW50IG9uIDI3dGgNClBS
SU9SSVRZOjINCkJFR0lOOlZBTEFSTQ0KVFJJR0dFUjotUFQxNU0NCkFDVElPTjpESVNQTEFZDQpE
RVNDUklQVElPTjpSZW1pbmRlcg0KRU5EOlZBTEFSTQ0KRU5EOlZFVkVOVA0KRU5EOlZDQUxFTkRB
Ug0K

--AZF7QdS9INFRk=_YwrBAXh6TL7aANRhj0D--

.

what I am getting in return :

 raised exception class EIdSMTPReplyError with message 'STOREDRV.submission.excetption : invalid recipentsException;
failed to process message due to a permanent exception with mesage.  Amessage can't be sent because it contains no recipients.  InvalidRecipientsException a message can't be sent because it contains no recipients. 


since I DO have a recipient, I'm not sure why I am getting this message.

what I am trying to do :
send an email with an event invite, with the 'accept/decline' stuff in the email.

so far, the most I have accomplished is only getting the ics file as an attachment.

it is VERY possible the ics file is incorrect (this is my first time attempting this)
any ideas what I am missing?

Print this item

  IW 17 Status?
Posted by: ShaneStump - 08-25-2019, 06:12 PM - Forum: IntraWeb 17 - Replies (7)

Howdy K!

Any update on IW 17?

Also couple of quick questions:

1) Will the IW 15.x Bootstrap libraries be compatible with IW 17 pages?

2) What new features will be available in the first release to allow better session monitoring? 

3) Will IW 17 still allow loading / unloading of ISAPI dlls without having to stop/restart IIS?

Thanks in advance and looking forward to IW 17.

Shane

Print this item