Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
iwbs4checkbox
#1
I have a problem with iwbs4checkbox not working properly.  

If I compile and run as a standalone program it works as expected.

If I compile and run as a service, the checkbox works visually and an OnAsyncClick Event fires properly but the "checked" property it never changes.

Currently using Windows 11, Delphi 12.3, IW 16.1.4 (Also tried 15.5.5)

procedure TIWNaturesOwnSeed.ApprovedCheckBoxAsyncClick(Sender: TObject;
  EventParams: TStringList);
begin
If ApprovedCheckBox.Checked
  then fApproved:=True
  else fApproved:=False;  ***** Always false if compiled as a service****
end;
Reply
#2
I'll try to recreate this and get back to you ASAP
Reply
#3
(10-05-2025, 11:23 PM)Alexandre Machado Wrote: I'll try to recreate this and get back to you ASAP

While Trying to recreate it, I cannot bet a BS4Button to work at all.  If I remove a BS4Button from my project, the checkbox works properly, add the button either at design time or runtime and the checkbox event never fires.  See attached very simple project.


Attached Files
.zip   BS4Button.zip (Size: 76.13 KB / Downloads: 1)
Reply
#4
I am stuck and looking for an update on this.

Thanks
Reply
#5
I'm working on this today.

There were a few other tickets that I had to resolve before this (and release IW 16.1.7)
Reply
#6
Hello there,

I can confirm that the issue exists. I'm working on a solution.

I'll keep you informed.

Kind regards,
Reply
#7
Hello there,

happens that I was too hasty in this...

The example works, as long as you add all the required files to the wwwroot folder.

Here's the working example, including all the required files. These files are in the IntraWeb installation folder, subfolder: Source\iwbootstrap4\redist\wwwroot.  Please notice that Bootstrap components expect to find them inside the iwbs subfolder, so your actual folder structure must be:

Code:
YourServer.exe
  |
  |______ wwwroot
             |
             |_______iwbs
                       |
                       |_____ all the files here

https://downloads.atozed.com/intraweb/te...4Button.7z

Please let me know if it works for you

Cheers
Reply
#8
You can also try this in your ServerController.OnConfig event:

Code:
uses
  IWBS4Global;

procedure TIWServerController.IWServerControllerBaseConfig(Sender: TObject);
begin
  IWBS4LibSetCDNS;
end;

In this case it will retrieve all the required files from a CDN on the internet and it should work.

Cheers,
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)