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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 84,607
» Latest member: sunwin86gbnet
» Forum threads: 2,413
» Forum posts: 11,327

Full Statistics

Online Users
There are currently 568 online users.
» 3 Member(s) | 561 Guest(s)
Applebot, Bing, Google, Yandex, hotslicespielen, manclubaeorg, sunwin86gbnet

Latest Threads
Need Help Integrating Mic...
Forum: IntraWeb General Discussion
Last Post: capheny
Yesterday, 06:43 AM
» Replies: 0
» Views: 34
OpenSSL and concurrent re...
Forum: Indy
Last Post: kbriggs
07-05-2026, 02:41 PM
» Replies: 5
» Views: 173
Projeto Intraweb
Forum: IntraWeb General Discussion
Last Post: vonirpereira
07-03-2026, 06:51 PM
» Replies: 0
» Views: 98
Intraweb + Lazarus
Forum: IntraWeb Dúvidas Gerais
Last Post: vonirpereira
07-03-2026, 06:35 PM
» Replies: 0
» Views: 55
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,282
TIWjQDBGrid erratic behav...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
07-01-2026, 12:04 AM
» Replies: 4
» Views: 635
CSS file not reloading af...
Forum: IntraWeb General Discussion
Last Post: Gustave
06-30-2026, 09:00 PM
» Replies: 0
» Views: 108
IW 16.2.0 Missing librari...
Forum: IntraWeb General Discussion
Last Post: Gregory_Twedt
06-24-2026, 04:40 AM
» Replies: 5
» Views: 805
VCL conversion
Forum: Delphi General Discussion
Last Post: tobenschain
06-20-2026, 05:00 AM
» Replies: 0
» Views: 146
TIWjQDBGrid changing UI
Forum: IntraWeb General Discussion
Last Post: BoostedCruiser
06-08-2026, 02:02 AM
» Replies: 36
» Views: 70,989

 
  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

  Indy SMTP Server TLS Change Certificates while Active?
Posted by: vbgamer45 - 08-23-2019, 08:47 PM - Forum: Indy - Replies (1)

Running Indy 10.6.2.0

It seems like I can’t change the certificate files after setting
IdSMTPServer1->Active = true;

I have my test certificate loaded before that call and that domain works fine but when I try to do after that does not reload/work


What I am trying do is add STARTTLS support based on bound IP then find the right domain certificate based on the IP to load.

Trying doing this in IdSMTPServer1Connect(TIdContext *AContext)
Where I find the AContext->Connection->Socket->Binding->IP; 

Which I hoped would then allow me to load the certificate file that was needed used the following:

Code:
IdServerIOHandlerSSLOpenSSL1->SSLOptions->CertFile = aSystemDrive + "\\cert\\" + asBannerDomain + "-chain.pem";
IdServerIOHandlerSSLOpenSSL1->SSLOptions->KeyFile = aSystemDrive + "\\cert\\" + asBannerDomain + "-key.pem";

Added logging to IdSMTPServerOnBeforeCommandHandler
And the CertFile and KeyFile were still set correctly. It seems like the certificates were not reloaded.

Been using https://www.checktls.com to test with as well.

Print this item

  Ajax server error with cell phones
Posted by: bob9999 - 08-22-2019, 06:59 PM - Forum: IntraWeb General Discussion - Replies (18)

Hi there.  I have a weird issue that appears to occur when a cell phone has an networking bandwidth issue.  When the phone is on a home wi-fi network with great signal or cell tower all is fine and my application works perfectly.  I managed once to get the ajax server error when I pressed a function before the other request was completed like if the error occurred on the original request.  My client is getting the issue pretty much all the time on the road on his iPhone with Chrome.

In the server controller I have:

AllowMultipleSessionsPerUser = True
AuthBeforeNewSession = false
RestartExpiredSession = false
UseAjaxNotify = true
AjaxErrorMode = emAlert

I can trim my app more so then less bandwidth is required but there is still risk with these mobile devices.  Is there anyway to turn off the ajax errors so then if the user is continuously clicking the old requests just die or if there is an ajax error nothing is displayed to user and all just appears to be slow?

Any other ideas would be appreciated.  

Cheers!

Print this item

  15.1.4: IWClassesFix was compiled with a different version ...
Posted by: Fulgan - 08-22-2019, 11:59 AM - Forum: IntraWeb General Discussion - Replies (5)

After updating IW to 15.1.4 (from a previoulsy working version 15.x) I have this message when trying to compile any IW application in Delphi 10.2.3:

[dcc32 Fatal Error] IWApplication.pas(410): F2051 Unit IWClassesFix was compiled with a different version of IWApplication.TIWApplication

I'm using Delphi 10.2 Version 25.0.29899.2631

Print this item