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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 91,079
» Latest member: jun88cocom2
» Forum threads: 2,418
» Forum posts: 11,354

Full Statistics

Online Users
There are currently 874 online users.
» 7 Member(s) | 863 Guest(s)
Applebot, Bing, Google, Yandex, bongdatructuyenme, broasteezn, jun88cocom2, lakshitagupta, nohu90health2, ntojkuangmu, smithplasters

Latest Threads
VCL conversion
Forum: Delphi General Discussion
Last Post: marktuan
08-07-2026, 01:20 PM
» Replies: 0
» Views: 324
Looking for UI Design Tip...
Forum: Delphi General Discussion
Last Post: chrisjordon232
08-06-2026, 05:17 AM
» Replies: 0
» Views: 62
Simply convert PeerIp to ...
Forum: Indy
Last Post: DidierMenant
08-04-2026, 03:50 PM
» Replies: 2
» Views: 219
New CGDevTools build is a...
Forum: CGDevTools
Last Post: lfeliz
08-04-2026, 12:03 AM
» Replies: 2
» Views: 1,368
How to terminate HTTP Thr...
Forum: Indy
Last Post: rlebeau
08-02-2026, 04:21 PM
» Replies: 3
» Views: 268
IW 16.2.0 Missing librari...
Forum: IntraWeb General Discussion
Last Post: JuergenS
07-31-2026, 09:44 AM
» Replies: 6
» Views: 1,288
Datatables question
Forum: IntraWeb General Discussion
Last Post: Alexandre Machado
07-28-2026, 04:34 AM
» Replies: 2
» Views: 272
CSS file not reloading af...
Forum: IntraWeb General Discussion
Last Post: CharlieDunn
07-27-2026, 08:27 PM
» Replies: 1
» Views: 456
Intraweb components missi...
Forum: IntraWeb General Discussion
Last Post: valmeras
07-27-2026, 03:18 PM
» Replies: 3
» Views: 412
Image question on tiwjqdb...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
07-17-2026, 05:18 PM
» Replies: 6
» Views: 4,895

 
Exclamation Problem with SNMP
Posted by: STest6905 - 12-13-2023, 09:31 AM - Forum: Indy - Replies (5)

Hello.

I have a gasoline generator that has the ability to report its status via the SNMP protocol. If I use a third-party app, I can get a response from querying "1.3.6.1.2.1.1.1.0" and "1.3.6.1.4.1.28634.6.2551906584.2.8206" and it works well. When I tried to write it myself, I notice that the first request is successful but on the second one I get a "NoSuchName" error.

ps.
Windows 10 x64
RAD Studio XE6
Indy 10.6.0

Here is my simple code:

Code:
procedure TForm2.Button2Click(Sender: TObject);
var
  i: Integer;
begin
  SNMP.Host := '172.17.40.243';
  SNMP.Port := 161;
  SNMP.Community := 'public';
  SNMP.Query.Clear;
  SNMP.Query.Version := 0;

  try
    if not SNMP.Connected then
    begin
      SNMP.Connect;
      Memo1.Lines.Add('Connected');
    end
    else
      Memo1.Lines.Add('Already connected');
  except
    on E: Exception do
    begin
      Memo1.Lines.Add('Error on connect: ' + E.Message);
      Exit;
    end;
  end;

  try
    SNMP.Query.PDUType := PDUGetRequest;
    SNMP.Query.MIBAdd(Edit1.Text, '');
    if SNMP.SendQuery then
    begin
      Memo1.Lines.Add('Value received: ' + SNMP.Reply.Value[0]);
    end
    else
    begin
      Memo1.Lines.Add('Error: ' + IntToStr(SNMP.Reply.ErrorStatus));
    end;

    SNMP.Disconnect;
  except
    on E: Exception do
    begin
      Memo1.Lines.Add('Error: ' + E.Message);
    end;
  end;
end;

This also doesn't work:

Code:
procedure TForm2.Button5Click(Sender: TObject);
var
  SNMP: TIdSNMP;
  dn, PLevel, SRate: string;
  p: Extended;
begin
  SNMP := TIdSNMP.Create(nil);
  try
    SNMP.Host := '172.17.40.243';
    SNMP.Community := 'public';
    SNMP.Query.Version := 6;

    SNMP.ReceiveTimeout := 3000;
    if SNMP.QuickSend('1.3.6.1.2.1.1.1.0', SNMP.Community, SNMP.Host, dn) then
      Memo1.Lines.Add(dn);
    if SNMP.QuickSend('1.3.6.1.4.1.28634.6.2551906584.2.8206',
SNMP.Community, SNMP.Host, SRate) then
      Memo1.Lines.Add(SRate);

    Memo1.Lines.Add('');
  finally
    SNMP.Free;
  end;
end;

In the first case, I have a positive result: (oid=1.3.6.1.2.1.1.1.0)
Code:
Connected
Value received: IB-Lite

In the second case I have an error:
Code:
Connected
Error: 2 (NoSuchName)

If I use a third-party program (MIBViewer), everything works fine:
Code:
Send snmp get request to 172.17.40.243:161
.1.3.6.1.2.1.1.1.0 (not in loaded mib files) --> IB-Lite

Send snmp get request to 172.17.40.243:161
.1.3.6.1.4.1.28634.6.2551906584.2.8213.0 (not in loaded mib files) --> 261

Can anyone tell me what the problem is? I will be very grateful for the information

Print this item

  Iw datetime component
Posted by: joelcc - 12-12-2023, 08:50 PM - Forum: IntraWeb General Discussion - Replies (7)

I am trying to move away from iw3rd party components.

Does anyone know if Iw has a component for date and time?

Print this item

  IW 15.5.3 is out
Posted by: Alexandre Machado - 12-12-2023, 09:16 AM - Forum: IntraWeb General Discussion - Replies (6)

Hi guys,

new update is available: https://www.atozed.com/2023/12/intraweb-15-5-3/

This update contains an important fix for the 15.5 branch.

Enjoy!  Big Grin

Print this item

  How can I set HTMLLanguage per session or form?
Posted by: magosk - 12-11-2023, 10:14 AM - Forum: IntraWeb General Discussion - Replies (11)

Hi, we have IntraWeb applications where we update various UI texts (e.g. TIWLabel.Caption) based on an account language setting for customers of our system, using our own code in base form(s) and helper components, and this in itself is no problem and has been in place since the first version of our applications many years ago. However, the web pages generated by IntraWeb always has a <html lang="en"> element which is incorrect for our customers that use non-English application languages. Previously this was not much of an issue in practice, but with some recent auto-translate features in modern browsers (e.g. Edge) we have seen some weird effects, where not only fixed texts but also some of those coming from the customer's own data have been modified in the browser compared to their actual values in the HTML page in question. Therefore I would like to set a correspondent of the server controller global property HTMLLanguage per session or form, or find a workaround that allows me to adjust the <html lang="en"> element of the generated web page in a more direct way.

So far my searches with AI, Google and in this forum for this have been fruitless. As an experiment, I tried to change ServerController.HTMLLanguage in the BeforeRender event (although I knew this would not be a preferred solution (and probably not thread safe)) but this turned out not to be possible at all (the property setter threw an exception due to being locked in this event). Would be very grateful for feedback on this issue. Currently using IW version 15.2.49 in production.

Best regards

Magnus Oskarsson

Print this item

  Http.sys application prompt HttpSendHttpResponse failed
Posted by: lmengyew - 12-09-2023, 02:19 AM - Forum: IntraWeb General Discussion - Replies (3)

Hello guys,

I'm using Delphi 11 and IntraWeb 15.4.0. I encountered an issue when Http.sys application calling WebApplication.TerminateAndRedirect which prompts the error "A call to HttpSendHttpResponse (0) failed: The parameter is incorrect", what am I missing? 

I have attached a sample project for your reference. Please kindly assist. Thank you.



Attached Files Thumbnail(s)
       

.zip   d28.IW-Httpsys-Https.zip (Size: 8.07 KB / Downloads: 1)
Print this item

  New demo has been published
Posted by: Alexandre Machado - 12-07-2023, 06:56 AM - Forum: IntraWeb General Discussion - No Replies

New demo showing how to send a message to all existing sessions at once, using the IWMonitor component:

https://github.com/Atozed/IntraWeb/tree/...endMessage

enjoy  Big Grin

Print this item

  Compatibilidade Delphi 7
Posted by: liperflores - 12-05-2023, 05:27 PM - Forum: IntraWeb Dúvidas Gerais - No Replies

Fala pessoal,
estou com uma dúvida que talvez já tenham respondido mas não consegui encontrar no forum.
A versão 15 do IntraWeb é compatível com o Delphi 7?

Desde já agradeço!

Print this item

  Integration of the scanner into the IntraWeb application.
Posted by: Сергей Александрович - 12-05-2023, 12:43 PM - Forum: IntraWeb General Discussion - Replies (3)

Task: To embed a QR code scanner in the IntraWeb application.

We do it according to the recommendations https://blog.minhazav.dev/research/html5-qrcode


1. Enable the JavaScript script directly using
<script src="html5-qrcode.min.js"></script>

To do this, write in the JavaScript property in the project form: src ="html5-qrcode.min.js "


2. Further in the recommendation it is written :

[2] Add an empty div to the place where you want to place the qr code scanner
<<div style="width: 500px" id="header"></div>

How do I do this in IntraWeb?

Print this item

Lightbulb How Intraweb server handler webhook from payment gateway
Posted by: baxing - 12-05-2023, 04:02 AM - Forum: IntraWeb General Discussion - Replies (4)

Hello,

I neet to use IntraWeb Web Application to support customer payments through the website. By use the Payment Gateway service by connecting via API(JSON) which has a sequence diagram as shown in the picture.

[Image: sequence-diagram-of-payment.jpg]
There will be 2 steps where the Payment Gateway will respond to create payment (charge.create) and finalize payment (charge.complete) with a Webhook (with POST requests) to the Server (from the picture that has been highlighted in yellow color).

1. I would like to know how to make this WebApp Server developed with IntraWeb able to accept this Webhook. The Webhook must be set up on the Payment Gateway side, such as url path of my site https://mydomain.com/handlerwebhook.

2. And if we assume that the payment has arrived chage.complete This will be a success or a failure. Now in the Client Browser, the customer may or may not close the Browser tab. which if it is not closed yet. How can I send the payment status to that client?(Server send communicate to specific client) For example, it may show a message box that the payment has been completed or the payment failed due to...

Thank you

Print this item

  Making IW Sessions persistent among servers or in a database
Posted by: ebob42 - 12-04-2023, 06:38 PM - Forum: IntraWeb General Discussion - Replies (2)

Hi all,

Short story: is there anyone who has experience with persisting IntraWeb sessions on different server machines? 

Long story: we have an IntraWeb ISAPI application which is deployed on multiple servers, using a load balancer (and cookies) to distribute the users over the didferent server machines. Normally, this works great. However, when one of the servers goes down, the users have to restart their session on another server. We wonder if it's possible to store the server information (IntraWeb forms, data modules), the User Session information, etc. and to restart a new session at another server re-creating everything that was alive in the original server right before the crash. 

This would mean storing everything in the user session (as well as the formlist and details) in a database for example, and reading it when needed. Hopefully, not often.

Although this certainly sounds doable, I wonder if people have tried this before, and/or have strong doubts about the feasibility of this endavour.  Note that we still plan to continue using the load balancer, so the sessions will be redirected to the correct server most of the time, it's just that we want to have a failover mechanism so people can continue their work (perhaps after a few seconds of reloading/recreating everyting).

And yes, preventing the crash (or "ping timeout" in our case) should be the best solution, but if never hurts to have a failover option in the first place.

Thanks in advance for any comments, hints or feedback.

Groetjes, Bob Swart

Print this item