Jump to content

JamesC

Members
  • Posts

    10
  • Joined

  • Last visited

Everything posted by JamesC

  1. Referred to this link: http://unigui.com/doc/online_help/index.html?configuring-apache-configurati.htm Inserted one new line to httpd.conf: LoadModule uniapache_module "D:\Test\Project1.dll and then Apache can't start anymore. Checked error at command line (Windows 10) and got error message as below: C:\Apache24\bin\httpd -t Invalid command 'LoadModule\xc2\xa0uniapache_module\xc2\xa0"D:\\Test\\Project1.dll', perhaps misspelled or defined by a module not included in the server configuration Any mistakes about Apache configuration? Thanks. By the way, these three lines will not generate error from Apache syntax checking function. <Location /uniapp> SetHandler uniApache-handler </Location>
  2. Tried to move treenode in first level of a treeview, exception raised with ACCESS_VIOLATION message. Code is shown below and it can be run properly in VCL application (change variables from TUniTreeNode to TTreeNode). // Move up TreeNode in same level procedure TFrameMachineGroup.UniToolButton1Click(Sender: TObject); var tnSrc, tnDst: TUniTreeNode; begin tnSrc := UniTreeView1.Selected; tnDst := tnSrc.GetPrevSibling; if tnDst <> nil then tnSrc.MoveTo(tnDst, naInsert); tnSrc.Selected := True; end; This code can run properly for other nodes under first level. Any mistake in my code? Thanks. Testing with 1.90.0.1555 Trial.
  3. Thank you Sherzod. I will adjust it later.
  4. Thank you for your so quick reply. I am using 1.90.0.1530.
  5. I am currently using unimTabPanel instead of UniPageControl in mobile application. Tried to put this beforeInit function inside TabPanel or every individual TabSheet, tab position is always on top. Any advice? Thanks.
  6. I have the same issue for TUnimLineSeries. Create LineSeries in FormCreate event as below. procedure TMainmForm.UnimFormCreate(Sender: TObject); var k: Integer; begin with chtV006Group.SeriesList do for k := 0 to (Length(aryCouriers) - 1) do begin Insert(k, TUnimLineSeries.Create(chtV006Group)); TUnimLineSeries(Items[k]).Title := aryCouriers[k].FullName; end; end; And get error message: Project Project1.exe raised exception classs $C0000005 with message 'access violation at 0x0074af8c: read of address 0x00000444'. program pointer is pointed to this line when error happens: procedure TUniChartSeries.LoadCompleted; begin FID := (FParent as TUniCustomChart).GetNewId; end; version 1.90.0.1530. <update> Sherzod's codes works in my program. That must be something wrong with my codes. Can anyone give me advice? Found the issue: Parent property needs to be assigned. with chtV006Group.SeriesList do for k := 0 to (nCount - 1) do begin Insert(k, TUnimLineSeries.Create(chtV006Group)); TUnimLineSeries(Items[k]).Parent := chtV006Group; TUnimLineSeries(Items[k]).Title := aryCouriers[k].FullName; end; Thanks.
  7. I am trying to create ISAPI module with Apache, but get database connection error. [FireDAC][Phys][FB]-314. Cannot load vender library [fbclient.dll or fbembed.dll]. The specified module could not be found. fbclient.dll needs to be copied to folder \Apache24\bin Directory of C:\Apache24\htdocs 06/01/20 15:18 1,381,376 fbclient.dll 05/10/17 21:35 16,177 firebird.log 21/04/20 13:51 13,819 index.html 06/08/20 20:27 6,210,048 MobISAPI.dll Program code is shown below. If it is compiled as VCL Standalone program, it can be run properly. type TMainmForm = class(TUnimForm) tabMain: TUnimTabPanel; tabStock: TUnimTabSheet; dsrT001: TDataSource; dbgT001: TUnimDBGrid; btnTest: TUnimButton; FDMoniFlatFileClientLink1: TFDMoniFlatFileClientLink; guixWaitCursor: TFDGUIxWaitCursor; tblT001: TFDTable; dbcMain: TFDConnection; procedure UnimFormCreate(Sender: TObject); procedure btnTestClick(Sender: TObject); private { Private declarations } public { Public declarations } end; procedure TMainmForm.UnimFormCreate(Sender: TObject); begin with dbcMain.Params do begin Database := 'MYDBALIAS'; UserName := 'sysdba'; Password := 'xxxxxx'; end; dbcMain.Connected := True; with tblT001 do begin TableName := 'T001'; Active := True; end; end; My environment: Windows 7 Ultimate Delphi 10.2 uniGUI 1.90.0.1530 Trial Apache 2.4 Thanks. <Update> Did some more search in Google, I found the problem and solved this problem. To share with others: fbclient.dll needs to be copied to folder \Apache24\bin
  8. Hi, When I test unimDBListGrid, it can fine with limited fields. If the dataset has many fields and I would like to show them all in grid, how to make it possible to scroll datagrid horizontally? Thanks. ====> Update: Found the problem: I used DBListGrid instead of DBGrid, referring to sample: FMSoft\Framework\uniGUI\Demos\Touch\DBGrid Column Resize But still, is it possible to do the same thing for DBListGrid? Thanks.
  9. Thanks for @mhmda who has posted one topic as "DBGrid Clientside Sorting". URL: http://forums.unigui.com/index.php?/topic/6225-dbgrid-clientside-sorting/&amp;page=2&amp;tab=comments#comment-69592 Unfortunately, two screensnaps of code samples are disappeared for some reason. Can any one post them out again? Thanks.
  10. JamesC

    Sorting DBGrid

    @Sherzod Thanks for your information about GridColumnSort demo. I studied this example and am wondering: Where are those data records coming from? Refer to other demos, there is one command for data records: UniMainModule.LoadClientFromStream(ClientDataSet1,'biolife.cds'); Thanks.
×
×
  • Create New...