× Lab CT Version, news, test results, new features request and suggestions

Question CT LAB ver 7.20

  • Sternas Stefanos
  • Sternas Stefanos's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
1 week 1 day ago #14824 by Sternas Stefanos
Replied by Sternas Stefanos on topic CT LAB ver 7.20
1) Just replace
/usr/local/codetyphon/typhon/components/pl_Synapse/source/synaser.pas

with new from .zip file

2) Yes Embedded Form Designer NOT supported on MacOS yet

PilotLogic Architect and Core Programmer
Attachments:

Please Log in or Create an account to join the conversation.

More
1 week 22 hours ago #14825 by Dean Qin
Replied by Dean Qin on topic CT LAB ver 7.20
thanks, compiled, but cannot run because unversioned libcrypto.dylib exception

I modified ssl_openssl_lib.pas of Synapse -- add a version to crypto & ssl filename, works fine now.

Please Log in or Create an account to join the conversation.

More
1 week 20 hours ago #14826 by Gyula Kampfner
Replied by Gyula Kampfner on topic CT LAB ver 7.20
Hi,
the following code doesn't work in CodeTyphon, it spits out an error 'Connection to portal.1nce.com:443 failed', but it does work in Lazarus. The ssl libraries are installed, and I can connect to https websites except for this one. I tried debugging the fphttpclient unit, and the exception fires at line 624, which is FSocket.Connect; in TFPCustomHTTPClient.ConnectToServer procedure. I'm stuck here. Any suggestion how to fix this?
procedure TForm1.Button1Click(Sender: TObject);
var
  SMSGTW: TFPHTTPClient;
  s,authStringEnc: String;
begin
  SMSGTW:=TFPHTTPClient.Create(nil);

  s:='username:password';
  authStringEnc:=EncodeStringBase64(s);

  SMSGTW.AddHeader('Accept', 'application/json');
  SMSGTW.AddHeader('Content-Type', 'application/x-www-form-urlencoded');
  SMSGTW.AddHeader('Authorization',  'Basic '+authStringEnc);

  try
     s:=SMSGTW.FormPost('https://portal.1nce.com/management-api/oauth/token','grant_type=client_credentials');
     Log.Append(s);
     ShowMessage(s);
  except
     on E: Exception do
        ShowMessage(E.Message);
     else raise;
  end;

  SMSGTW.Free;
end;

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
1 week 17 hours ago #14827 by Sternas Stefanos
Replied by Sternas Stefanos on topic CT LAB ver 7.20
Please Sir
give us a sample project with the problem
Your OS and CT ver ?

PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

More
1 week 16 hours ago #14828 by Gyula Kampfner
Replied by Gyula Kampfner on topic CT LAB ver 7.20
Windows 10 64 bit, ct 7.1. I'm out of office now so i cannot send a project now, but what i sent is the problematic part. Just run it from a button click event. Thank you :)

Please Log in or Create an account to join the conversation.

More
5 days 14 hours ago #14831 by Gyula Kampfner
Replied by Gyula Kampfner on topic CT LAB ver 7.20
Here is my sample project:

File Attachment:

File Name: fphttp.zip
File Size:536 KB
Attachments:

Please Log in or Create an account to join the conversation.

More
5 days 1 hour ago - 5 days 1 hour ago #14832 by Matis A.
Replied by Matis A. on topic CT LAB ver 7.20
Thanks Sir
all work OK here

We just copy from C:\codetyphon\binRuntimes\i386-win32\ folder
to your executable folder
the libraries:
libeay32.dll
libssl.dll
ssleay32.dll

CodeTyphon has the correct Runtimes Libraries at codetyphon\binRuntimes


PilotLogic Core Programmer
Attachments:
Last edit: 5 days 1 hour ago by Matis A..

Please Log in or Create an account to join the conversation.

More
4 days 22 hours ago #14833 by Gyula Kampfner
Replied by Gyula Kampfner on topic CT LAB ver 7.20
Thanks, it works :)

Please Log in or Create an account to join the conversation.

More
3 days 4 hours ago #14837 by Fernando
Replied by Fernando on topic CT LAB ver 7.20
Hi,
I got a strange problem with pl-fpspreadsheet. Please see the attached project, compile and run. Click on the button at the top left. A child window with a TsSpreadsheetGrid opens.
Write something on cell A1, then press Enter; the text disappears. Then press enter again (this time should be in cell A2), the test appears there.
Apparently, in a main window this problem does not happen.

Windows 10 x64
Typhon 7.2 r2006190435 FPC 3.3.1 r2006190435 Platform : x86_64-win64-win32/win64
Attachments:

Please Log in or Create an account to join the conversation.

More
2 days 14 hours ago #14839 by Matis A.
Replied by Matis A. on topic CT LAB ver 7.20
I think it's TsSpreadsheetGrid problem
we will try to solve this

PilotLogic Core Programmer

Please Log in or Create an account to join the conversation.

More
2 days 12 hours ago #14840 by Fernando
Replied by Fernando on topic CT LAB ver 7.20
Thank you! The TsSpreadsheetGrid demos work well, but these are "normal" windows; this is why I think it may be related to the grid being in a child window.

Please Log in or Create an account to join the conversation.