Jump to content

Pier

uniGUI Subscriber
  • Posts

    37
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Pier's Achievements

Newbie

Newbie (1/4)

3

Reputation

  1. Hi everybody! Has someone dealt with the problem of having "repeated events", e.g. and event that repeats each Monday a 9am for 5 weeks? How did you do it? Thanks, Pier
  2. Hi everybody. Is this the way to create calendars programmatically? (I want to define my own colors for the different calendars) calitem:TUniCalendarItem; calname: String; UniCalendarPanel1.Calendars.ClearAndResetID; n:=1; while not CalendariFDQuery.Eof do begin calname:=CalendariFDQuery.FieldByName('sval').asString; calitem:=UniCalendarPanel1.Calendars.Add; calitem.DefaultColor:=False; calitem.Title:=calname; calitem.Color:=UtilUnit.IndexToColor(n); CalendariFDQuery.Next; n:=n+1; end;
  3. What do you want to achieve exactly? In my case Everything lives in frames which are created at runtime and I change their size when the browser window changes size with: procedure TMainForm.UniFormAjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); var i,j:integer; tabSheet:TUniTabSheet; begin if SameText(EventName, 'resize') then begin for i := 0 to UniPageControl1.PageCount-1 do begin tabsheet:=UniPageControl1.Pages[i]; for j := 0 to tabsheet.ControlCount-1 do begin if tabsheet.Controls[j] is TUniFrame then begin (tabsheet.Controls[j] as TUniFrame).Width:=tabsheet.Width; (tabsheet.Controls[j] as TUniFrame).Height:=tabsheet.Height; end; end; end; end; end; ...but maybe your scenario is different
  4. I use ISAPI with Apache Win Server 2019, no problem.
  5. Forget it, found it. Do it in UniFrameReady.
  6. yes it works! have you also managed to have the filter bar hidden when the uniDBGrid is shown for the first time?
  7. What I find most hard is to replicate all functionalities of cxGrid which I heavily used in my VCL applications
  8. Hi! In the attached sample project I have three tables: names: id,name roles:id,role namesroles: id,nameid,roleid,thename,therole (these are of type fkLookup) and three unidbgrids to CRUD the data everything is ok with the two lookups but one thing fails whatever I try to do: when I update/insert/delete an entry in names the corresponding dropdown in in the namesroles grid is not updated... any ideas? as you can see in TDataModule1.FDQuery1AfterPost I tried to open/close all involved DataSets, change indices (any many more things I deleted meanwhile) withou success... test_unigui_3.zip test_unigui_3.zip
  9. Pier

    dblookupcombobox

    I confirm that the dropdown is not refreshed when the data in the listsource is updated (or a new row is added)
  10. Pier

    uniDBGrid Summary

    It seems to me that once filtering is applied the associated dataset does not scroll correctly. Can you confirm? (the afterscroll event is fired but but the row has not changed)
  11. can you please post your final code?
  12. Can you please provide an example?
  13. If I use the method suggested by Sherzod, after applying the filter the grid does not update the dataset by issuing scroll events. Am I missing something?
  14. in the end I solved the problem with an anonymous callback procedure and thanks to closures I used the DataSet available in the BeforeDelete and BeforePost events (hope it doesn't leak, I will check)
  15. Thanks for the help but this is not what is needed in my case. I want a single function to handle all datasets not just one (like MyDataSet1 in your example). The problem is that the Sender is the MainForm and not the DataSet which called the MessageDlg which then invoked the callback...
×
×
  • Create New...