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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 83,712
» Latest member: 8777vipbetcom
» Forum threads: 2,412
» Forum posts: 11,321

Full Statistics

Online Users
There are currently 521 online users.
» 2 Member(s) | 516 Guest(s)
Applebot, Bing, Google, on68casino1, xoilactvnaml

Latest Threads
OpenSSL and concurrent re...
Forum: Indy
Last Post: kbriggs
1 hour ago
» Replies: 0
» Views: 4
Projeto Intraweb
Forum: IntraWeb General Discussion
Last Post: vonirpereira
7 hours ago
» Replies: 0
» Views: 3
Intraweb + Lazarus
Forum: IntraWeb Dúvidas Gerais
Last Post: vonirpereira
7 hours ago
» Replies: 0
» Views: 3
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,208
TIWjQDBGrid erratic behav...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
07-01-2026, 12:04 AM
» Replies: 4
» Views: 586
CSS file not reloading af...
Forum: IntraWeb General Discussion
Last Post: Gustave
06-30-2026, 09:00 PM
» Replies: 0
» Views: 54
IW 16.2.0 Missing librari...
Forum: IntraWeb General Discussion
Last Post: Gregory_Twedt
06-24-2026, 04:40 AM
» Replies: 5
» Views: 757
VCL conversion
Forum: Delphi General Discussion
Last Post: tobenschain
06-20-2026, 05:00 AM
» Replies: 0
» Views: 130
TIWjQDBGrid changing UI
Forum: IntraWeb General Discussion
Last Post: BoostedCruiser
06-08-2026, 02:02 AM
» Replies: 36
» Views: 70,756
Access Violation When Val...
Forum: IntraWeb General Discussion
Last Post: Alexandre Machado
06-03-2026, 08:47 AM
» Replies: 2
» Views: 568

 
  Send email error
Posted by: sorinh - 03-07-2019, 09:33 AM - Forum: Indy - Replies (1)

Hello
 
I try to send an email using IdSMTP and IdMessage.
I define all the settings:
 
When I try to send to my email and define:
Msg.Recipients.EMailAddresses := 'myemail@zahav.net.il' its work ok
 
 When I try to send to my Gmail email and define:
Msg.Recipients.EMailAddresses := 'myemail@gmail.com'  
Its raise an error "Relaying not allowed"
 
Why?


Thanks, Sorin
 

Print this item

  github.com
Posted by: tobenschain - 03-07-2019, 07:29 AM - Forum: IntraWeb General Discussion - Replies (2)

How do I download a demo?

Print this item

  IW15 CPB XE7 64-bit platform
Posted by: denville - 03-05-2019, 03:54 PM - Forum: IntraWeb General Discussion - Replies (7)

Hi, I am updating some old projects to 64-bit versions.  To that end I have re-ibstalled my trusty C++ Builder XE7 Enterprise in a nice new Windows 7 64-bit PC (it has to be W7), and downloaded the latest IW 15.0.17, installed it (meticulously following the guide and tool for removing pre-existing stuff), and registered it with my licence.

All is well in 32-bit mode, I started regaining familiarity by the simplest possible project, that has just a button that changes caption when clicked.  Compiles and runs fine under 32-bit platform.

So I add 64-bit platform to the project, select same and completely re-build, which all went well until:

[ilink64 Error] Error: Unresolved external 'WinMain' referenced from C:\PROGRAM FILES (X86)\EMBARCADERO\STUDIO\15.0\LIB\WIN64\RELEASE\C0W64.O

Referring to something I found on-line, I ensured that Link with Dynamic RTL is UNCHECKED as is Link with Runtime Packages but still the same error.  Not sure what I have done wrong ?

Thanks
Denville.

Print this item

  Support of OpenSSL 1.1.*
Posted by: Progman - 03-05-2019, 03:54 PM - Forum: Indy - Replies (1)

Due to OpenSSL site 

Quote:Version 1.0.2 will be supported until 2019-12-31 (LTS).

There is not much time left until that date.
What are your plans on support OpenSSL 1.1.*?

Print this item

  How To Get Value From JavaScript!
Posted by: ShaneStump - 03-03-2019, 01:07 AM - Forum: IntraWeb General Discussion - Replies (13)

Howdy All!

I have a third party javascript component that attaches itself to a an Input control (say TIWBSInput for example). The component will update the text value of attached input control if the user changes anything.

As soon as the Text field of the TIWBSInput field is updated, I need to update a few other variables. The SetText method is virtual and I have modified it to no avail.

None of the AsyncChange, etc get called of the TIWBSInput.

So here is my question: since the Text of the TIWBSInput is obviously getting updated, how can I get notified when it does?

Thanks in advance,

Shane

Print this item

  problem with post methos https - URGENT
Posted by: staff@ergosoft.it - 03-01-2019, 09:48 PM - Forum: Indy - Replies (2)

Hi,

I have this function 

function TFDMFE.EncodeFile(const FileName: string): AnsiString;
var
  stream: TMemoryStream;
begin
    stream := TMemoryStream.Create;
    try
      stream.LoadFromFile(filename);
      result := EncodeBase64(stream.Memory, stream.Size);
    finally
         FreeAndNil(stream);
    end;
end;

procedure TFDMFE.InviaFE(Autorizzazione, PercorsoFileXML, Credenziali, Dominio : string);
var
 lHTTP: TIdHTTP;
 lParamList: TStringList;
 Comando, RisultatoPost : string;
begin
   //************ COMANDO HTTP ********
   Comando := 'https://ws.fatturazioneelettronica.aruba.it/services/invoice/upload';
   //**********************************

   lParamList := TStringList.Create;

   Credenziali := '""';
   Dominio := '""';

   try
     lParamList.Add('"dataFile":"'+EncodeFile(PercorsoFileXML)+'"');
     lParamList.Add('"credential":'+Credenziali); // vuoti
     lParamList.Add('"domain":'+Dominio);     // vuoti

     lHTTP := TIdHTTP.Create;
     try
        lHTTP.IOHandler := TIdSSLIOHandlerSocketOpenSSL.Create(lHTTP);
        lHTTP.HandleRedirects := True;
        lHTTP.Request.CustomHeaders.FoldLines := False;
        lHTTP.Request.Accept := 'application/json';
        lHTTP.Request.CustomHeaders.Add('Authorization:Bearer ' + Autorizzazione);
        lHTTP.Request.ContentType := 'application/json';
        lHTTP.Request.CharSet := 'UTF-8';

         try
              RisultatoPost := lHTTP.Post(Comando, lParamList);
          except
            on E: EIdHTTPProtocolException do
            begin
                Memo1.Lines.Add(E.ErrorMessage);
            end;
          end;
     finally
       lHTTP.Free;
     end;

   finally
      lParamList.Free;
   end;
end;

I have this error:

{"timestamp":"2019-03-01T21:45:29.634+0000","status":400,"error":"Bad Request","message":"JSON parse error: Unexpected character ('%' (code 37)): expected a valid value (number, String, array, object, 'true', 'false' or 'null'); nested exception is com.fasterxml.jackson.core.JsonParseException: Unexpected character ('%' (code 37)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')\n at [Source: (PushbackInputStream); line: 1, column: 2]","path":"/core-trasmissione-rest-fattura/services/invoice/upload"}


THIS IS THE DOCUMENTATION:

7.1. Upload invoice

Code:
POST /services/invoice/upload

Questo metodo deve essere utilizzato dall’OE per effettuare l’invio di una fattura già nel formato XML secondo norme AGID, ma non ancora firmata digitalmente.
HTTP request
Code:
POST /services/invoice/upload HTTP/1.1
Accept: application/json
Authorization: Bearer NLOGDVXLVaF3tzmnVPkTwpkuh7dG0i09uSCcog3u+rE=
Content-Type: application/json;charset=UTF-8

{
 "dataFile" : "dGVzdA==",
 "credential" : "",
 "domain" : ""
}


I parametri [i]"domain" e "credential" rappresentano rispettivamente il dominio e le credenziali di firma automatica se possedute dall’utente, in caso contrario lasciare tali campi vuoti.[/i]

Request headers
Name
Description

Code:
Authorization

Provisioner access token

Request fields
Path
Type
Description

Code:
dataFile

Code:
String

Dati allegato in formato encoded Base64

Code:
credential

Code:
String

Credenziali firma

Code:
domain

Code:
String

Domain firma

HTTP response
Code:
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 105

{
 "errorCode" : "",
 "errorDescription" : "",
 "uploadFileName" : "IT01490810845_uxjhl.xml.p7m"
}

Response fields
Path
Type
Description

Code:
uploadFileName

Code:
String

Nome file fattura (inviato a SdI) restituito dal ws

Code:
errorCode

Code:
String

Eventuale codice di errore

Code:
errorDescription

Code:
String

Eventuale descrizione errore



thanks

Print this item

  2 Intraweb installations
Posted by: neo1667 - 03-01-2019, 07:27 AM - Forum: IntraWeb General Discussion - Replies (1)

Hello,

Is it possible to have 2 instalations of Intraweb in the same computer without problem, conflict :

- 1 Intraweb 14 with Delphi Tokyo
- 1 Intraweb 15 with Delphi 10.3.1

they are two ultimate versions of Intraweb. The goal is to migrate from Delphi Tokyo to Delphi 10.3.1.

thank you for your help

Regards,
Dany

Print this item

  IWCL_HookEvent in IWCommon.js correct?
Posted by: jeroen.rottink - 02-28-2019, 06:09 PM - Forum: IntraWeb General Discussion - Replies (5)

This function is called internally by IW to attach an event handler to an object. For example an onclick event.
If the html already declares an onclick event listener for that object, IWCL_HookEvent moves this original event handler to an internal structure (array[]) and adds the new one.
This way they both get called I presumed but that didn't work.
Debugging the code I am not sure if following is ok.

Code:
   IWCL_HookEvent: function(eventName, eventHandler) {
       var i = IW.Events.findByName(eventName);
       logMessage("IWCL_HookEvent(): eventName = " + eventName);
       if (this.IEEventHandlers[i] == null) {
           this.IEEventHandlers[i] = [];
           var xEventName = "on" + eventName;
           if (this[xEventName] != null) {
               this.IEEventHandlers[0] = this[xEventName]       // <<-- replace with this.IEEventHandlers[i][0] = this[xEventName]  ?????
           }
           this[xEventName] = IW.Events.IWEventHandler;
       }

Print this item

  Bootstrap IW DatePicker
Posted by: ShaneStump - 02-28-2019, 05:50 PM - Forum: IntraWeb General Discussion - No Replies

Howdy All!

Has anyone using the bootstrap with IW 15 figured out how to set the valid date range of input control when it is set to date?

I find many examples around web but it seems everyone has a 'different' date picker they are using with bootstrap.

** Update **

I just realized the input control was using an HTML 5 control so I added the min/max properties.

Thanks in advance,

Shane

Print this item

  Sample 10.3 POP3 code moving from Indy 9 on D7
Posted by: jackmason@mindspring.com - 02-27-2019, 07:47 PM - Forum: Indy - Replies (4)

Converted our D7 & Indy 9 application to Studio 10.3 & Indy 10 with one exception:   POP3 email processing.  Under Indy 9, our code worked as we wished.  Moving to Indy 10 apparently requires an additional module which we have yet to identify.

The following identifiers become 'undeclared idenitifier":

 [            if (EmailMsg.MessageParts.Items[Jdx] is TIdAttachment) then


              if EmailMsg.MessageParts.Items[Jdx] is TIdText then

              pnlAttachments.visible := true;
              li := lvMessageParts.Items.Add;
              li.ImageIndex := 8;
              li.Caption := TIdAttachment(Msg.MessageParts.Items[Jdx]).Filename;
              li.SubItems.Add(TIdAttachment(Msg.MessageParts.Items[Jdx]).ContentType);
]

We greatly appreciate the Indy Project it has been a great assistance to us since the release of Indy9.

Jack

Print this item