Astrolab
-
Posts
26 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by Astrolab
-
-
Yes i am using unitimer
please provider some example with firedac,mssql query unidbgrid and unitimer
-
-
firedac, mssql, unidbgrid it show some time error:
UniDBGRID - not enough avaible timers -
UG Professionals 1.10.0.1469
-
Litle more info:
Last version 1.10.0.1471 but error fired also in before versions.
firedac,mssql,int column.
i have try with unidbedit and unidbnumber component but without success .
Strange thing that i have other forms with integer field from other tables and it works god.
Again with release building it is good, but in debug fired above error.
-
it throws this error only in debug mode.
-
Delphi DBNavigator has onClick Event why uniDBNavigtor does not have
-
UNIGUI commercial proffesional version 1.0.0.1425.
Where is click Event in UNIDBNavigator?
-
it is apache 2x
-
this is isapi log
ocs_unigui.dll: 000008A4: 01:59:02 []:>--------------------------------------------------------------<
ocs_unigui.dll: 000008A4: 01:59:02 []:Starting Server. Module Handle: 000000000A610000ocs_unigui.dll: 000008A4: 01:59:02 [TUniServerModule]:Server First Init.ocs_unigui.dll: 000008A4: 01:59:02 [TUniServerModule]:Erasing Cache Folder...ocs_unigui.dll: 000008A4: 01:59:02 [TUniServerModule]:Cache Folder Erased. <1> Files deleted.ocs_unigui.dll: 000008A4: 01:59:02 []:Server Started. Module Handle: 000000000A610000ocs_unigui.dll: 000008A4: 01:59:02 [HttpExtensionProc[127.0.0.1]]:EListError : Failed to delete tab at index 0 : Addr: $0A7889DA -
professional 1.0.01425
app working good when working as standalone
but when i change it to isapi dll
fire this exception:
Failed to delete tab at index 0
-
yes i can
and test it
it working
thank you
-
When i change application type from standalone to Isapi module
i get this exception:
An Exception has occured in application:
Failed to delete tab at index 0
standalone app works.
here is dpr:
//{$define UNIGUI_VCL} // Comment out this line to turn this project into an ISAPI module
{$ifndef UNIGUI_VCL}
library
{$else}
program
{$endif}
myApp;
uses
uniGUIISAPI,
Forms,
ServerModule in 'ServerModule.pas' {UniServerModule: TUniGUIServerModule},
MainModule in 'MainModule.pas' {UniMainModule: TUniGUIMainModule},
Main in 'Main.pas' {MainForm: TUniForm}
// here goes my others units
;
{$R *.res}
{$ifndef UNIGUI_VCL}
exports
GetExtensionVersion,
HttpExtensionProc,
TerminateExtension;
{$endif}
begin
{$ifdef UNIGUI_VCL}
ReportMemoryLeaksOnShutdown := True;
Application.Initialize;
TUniServerModule.Create(Application);
Application.Run;
{$endif}
end.
-
object MainForm: TMainForm
Left = 0
Top = 0
ClientHeight = 270
ClientWidth = 635
Caption = 'MainForm'
OldCreateOrder = False
MonitoredKeys.Keys = <>
PixelsPerInch = 96
TextHeight = 13
object UniHTMLFrame1: TUniHTMLFrame
Left = 0
Top = 0
Width = 635
Height = 270
Hint = ''
HTML.Strings = (
'<!DOCTYPE html>'
'<html>'
'<head>'
'<style>'
'.center_it {'
' text-align:center;'
'}'
'</style>'
'</head>'
''
'<body class='#39'center_it'#39'>'
'<br><b>Center it test</b></br>'
'</body>'
''
'<html>')
Align = alClient
Anchors = [akLeft, akTop, akRight, akBottom]
ExplicitLeft = 200
ExplicitTop = 88
ExplicitWidth = 256
ExplicitHeight = 128
end
end
-
i have added my email
-
professional edition
i am programmer in Systek GMBH
-
I put html content in unihtmlframe.html property
and align are to left instead of center.
it is are profesional edition
-
1425
-
i have try with <center> tags
and with adding style in body.
this example working in https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_center_test
<!DOCTYPE html><html><head><style>.center_it {text-align:center;}</style></head><body class='center_it'><br><B>some text</B></br><body></html> -
Thanks for reply, I solved!
I put libMysql.dll in c:\xampp\apache\bin\
but is it a huge dll, it takes about 5.5MB, it is just a one grid on form!
-
When I make standalone server application it works correctly, but in isapi module error occurs:
Project1: 000008FC: 10:59:03:Exception : None of the dynamic libraries can be found: libmysql51.dll, libmysql50.dll, libmysql.dll
-
Have you tried anything and are you getting an error or?
Thanks for reply,
In browser I Get error 500,
in log file I Have:
Project1: 00000C70: 13:23:23:Exception : None of the dynamic libraries can be found: libmysql51.dll, libmysql50.dll, libmysql.dll
I am not sure if there are any special considerations for the apache server. In theory any database components should work.
It is Zeus database components!
-
How to connect to mysql in isapi module,apachi configuration,
What to change in httpd.cnf,
what component to use , can we use zeus database controls.
Regards!
-
next code works with tUniImage component,but i want do it with tUniDbImage.
procedure TMainForm.UniDBGrid1CellClick(Column: TUniDBGridColumn);
var
JpegImage: TJPEGImage;
BlobStream: TStream;
begin
with UniServerModule do begin
if (not UniQuery1.FieldByName('picture').IsNull) then
begin
BlobStream := UniQuery1.CreateBlobStream(UniQuery1.FieldByName('picture'),bmRead);
JpegImage := TJPEGImage.Create;
try
JpegImage.LoadFromStream(BlobStream);
UniImage1.Picture.Assign(JpegImage);
UniImage1.Visible := True;
finally
JpegImage.Free;
BlobStream.Free;
end;
end
else
UniImage1.Visible := False;
end;
end;
UniDBGrid and PopUpMenu
in General
Posted
I have UniDBGRid and UnipopUpMenu on the form. In grid I am calling popUpMenu by onContextClick
procedure CellContextClick(Column: TUniDBGridColumn; X, Y: Integer);
var g:tuniDBGrid;
begin
copyPopUp.Popup(x,y);
g:=tuniDBGrid(Column.Grid);
copyPopUp.Popup (X, Y, g);
end;
In popUpMenu i have one menu item. How can i get a grid when i click on that menuItem.
In delphi DBGRid and popUpMenu i get it by popUpMenu.getParentComponent ,
how i can get it in UniGui.