Jump to content

Edson Marcelo

Members
  • Posts

    3
  • Joined

  • Last visited

Edson Marcelo's Achievements

Newbie

Newbie (1/4)

0

Reputation

  1. Hello Guys, I would like to know if it is possible to do this: when calling the function TFuncoes.Prompt, even with the EnableSynchronousOperations property equal to true, the execution is passing to the last line of the function. Sorry for my ignorance, but am I doing something wrong? this is my function: class function TFuncoes.Prompt (txt: string): string; var return: string; begin return: = ''; uniGUIDialogs.Prompt (txt, '', mtInformation, mbOKCancel, procedure (Sender: TComponent; AResult: integer; AText: string) begin if AResult = mrOK then begin return: = AText; end; end); Result: = return; end;
  2. Hello Guys, help please: I have the following scenario: - Firebird - Table with 1 million records, for example. - if, I select * from table, 1 million records will be loaded on the server - on the client, UniDBGrid, using pagination, will paginate, by default, 25 records per page. In this scenario, the customer will browse the data normally. But before displaying the first 25 records in this table, the server loaded 1 million records. I want to relieve the server by optimizing the query: example: for example with pagesize = 10 First 10 records (page 1) SELECT FIRST 10 SKIP 0 * FROM TABLE +10 records (page 2) SELECT FIRST 10 SKIP 10 * FROM TABLE +10 records (page 3) SELECT FIRST 10 SKIP 20 * FROM TABLE doing this way unburden the server. In UniDBGrid I can already do the first part, that is, page 1 is ok. I used the onRecordCount event to set the total number of records in the table (1 million). And he creates the pages as expected. The problem is when I press to go to the next page. What event would you use, in this case to be able to get the current page so I can redo the query for bring more records. To do this, you would need to capture the current page number of the UniDBGrid. Does anyone know how to do this? In short, I need to do the paging manually. sorry for the text size, but it is to be as clear as possible.
  3. Hello, I uninstalled Unigui and installed the FMSoft_uniGUI_Complete_Professional_1.90.0.1546 version and everything went well with the installation. But when compiling my application I am giving error with some units missing, for example: uniStrUtils.pas and uniGUIApplication.pas. I searched the installation folder and found only the DCUs for these units. What should I do? tks.
×
×
  • Create New...