Jump to content
uniGUI Discussion Forums

zhyhero

uniGUI Subscriber
  • Content Count

    55
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by zhyhero

  1. I am testing something in scene of dynamic create Frame/Form . As a rule, in one From or Form , we can call jscode ajaxRequest(sender,"method",[{Params}] ); , and respond to delphi procedure AjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); . sender ==> Ext.getCmp("id"), id ==> sender.id (jscode) . id of Frame ==> frame.FormRegion.JsId; (pascalcode) . if we pass id of target Frame to source Form , then we can call target frame's method by begin self.unisession.addjs('ajaxRequest(Ext.getCmp("id"),"Method",[{params}])'); end; in source Form . same thing with Frame and Frame. id of Form ,I can't get , (but we have form.show(callbackproc) and form.showmodal(callbackproc) ). So, how to get the JsId of a UniForm ?
  2. zhyhero

    [question] how to get the JsId of a UniForm ?

    thank you, Sherzod . I will try this .
  3. zhyhero

    Using NGINX with Unigui

    probably proxy_redirect off;
  4. zhyhero

    pass values dbgrid to frame rowexpand

    rowexpand aframe:=taframe. create(container); aframe. x:=2019; aframe. aprocedure(2019); rowcontrol:=aframe;
  5. hello. I want to make checkboxes disable , readonly or invisable in red box area, checkbox is set column.checkboxfield.enabled=true. Any idea?
  6. Temporary,I do this with DBTreeGird and DBGrid.
  7. zhyhero

    invalid session or session timeout default page

    Sorry, ignore this
  8. testcase -> CheckBoxesInDbTreeGrid.zip new img
  9. I have a ActionColumn (Unidbgrid) with 3 Buttons (Id 0,1,2). When meet the condition 1 ,Button 0 and Button 1 show ,Button 2 hide. When meet the condition 2, Button 0 and Button 2 hide,Button 1 show. when meet the condition 3, Button 0 and Button 1 hide, Button 2,show. What can I do ?
  10. 19001504 Project Demo "Grid - ActionColumn" *There 55 records in dataset. Set UniDBGrid.Options.dgDontShowSelected:=true; this is the reason. and dgRowNumbers=true ,only for show RecNo ,not the reason click pervpage nextpage button then.......
  11. zhyhero

    DBLookupComboBox set value

    unidblookupcombobox1.keyvalue:=unidblookupcombobox1.listsource.dataset.fieldbyname(unidblookupcombobox1.keyfield). value
  12. zhyhero

    RowWidget - "Argument out of range"

    Another problem, RowWidget at last page may not work well. 19001504 Project Demo "Grid RowWidget" *There are 55 records in Dataset. UniDBGrid.WebOptions.Paged:=True; PageSize:=10; PageSize:=11;
  13. Project Demo "Grid - RowWidget" 1.Set WebOptions.Paged=True. 2.Expand 2 or more RowWidget. 3.Switch Page Got a "Argument out of range" error message
  14. zhyhero

    RowWidget - "Argument out of range"

    Reported http://jira.fmsoft.net/servicedesk/customer/portal/4/FSD-1413
  15. zhyhero

    RowWidget

    Hi Hayri, can I control when to create the RowConrol ( or Container) for purpose ? something like procedure TMainForm.UniDBGrid1RowExpand(Sender: TUniCustomDBGrid;const RowId: Integer; var RowControl: TControl; Container: TUniContainer); begin if someflag=true then begin RowControl:=TSomeUniControl.Create(Container); end else begin nothing Created; end; end;
  16. I want to use another image(font awesome) to replace datetimepicker's trigger button's defalut icon (or image), Any idea? ======UniServerModule.CustomCss======= .x-form-date-trigger{ position:relative; background-image:url("../images/form/trigger-dot-bg.png") !important; background-repeat: repeat; display:table-cell; padding-top: 1px; line-height: 1.5; border: 1px double #C0C0C0 !important; } .x-form-date-trigger:before{ font-family: FontAwesome; content: "\f073";color:navy; } .x-form-arrow-trigger{ position:relative; background-image:url("../images/form/trigger-dot-bg.png") !important; background-repeat: repeat; display:table-cell; padding-top: 1px; line-height: 1.5; border: 1px double #C0C0C0 !important; } .x-form-arrow-trigger:before{ font-family: FontAwesome; content: "\f063";color:navy; }
  17. I‘m waiting for the answer too.................................
  18. zhyhero

    Any idea about ActionColumn Button hide or show ?

    One ActionColumn Button When meet the condition 1 ,Button image or iconcls =A When meet the condition 2, Button image or iconcls =B when meet the condition 3, Button image or iconcls =C (Blank image or something).......
  19. zhyhero

    Any idea about ActionColumn Button hide or show ?

    Sorry, I didn't say it clearly. My question should look like this image.
  20. zhyhero

    Any idea about ActionColumn Button hide or show ?

    Thank you ,Sherzod ! It's worked.
  21. zhyhero

    Any idea about ActionColumn Button hide or show ?

    Yes , of course . And another question ,can i change buttons imageindex or iconcls dynamically ?
  22. zhyhero

    Some UniDBLookupComboBox questions

    At first ,I don't know how to explain this accurately (or exactly ) . I use five UniDBLookupComboBoxs as 'level' selectors , and link datasources to their 'linksource' property(with 'ListFiled' and 'Keyfield'). And Set 'MasterSource','MasterFields','IndexFieldNames' with FDMemTables (Is this called data 'cascade connection' ? ). The UniDBGrid Show some data with level infomation. Three FDMemTables (lv1-lv5) groups have same data. So if i click one row on the UniDBGrid, these Unidblookupcomboboxs will show level infomations according to currunt row's data(Id,id id....) of unidbgrid. And then get some confusing things. First, with some row data (id,id,id....),unidblookupcombobox show nothing (with style csDropDownList and csSimple). Second, 'Keyvalue:=xxx' pass wrong data to dataset ,not every time. (This is my wrong with data record 25 ,correct it ) Third, each Unidblookupcombobox's style( I test csDropDown,csDropDownList and csSimple) get diffrent effect . At end ,i hope someone may know what I say......... Here is s testcase. testcase reupload here aDemo.rar
  23. zhyhero

    Some UniDBLookupComboBox questions

    I replace FDMemTable to ClientDataSet, and get same effect. With style =csDropDown , record.no=24, Data( 2,3,6,12,24 ) trans to Lv1(2),Lv2(3),Lv3(6),Lv4(12),Lv5(24) when record.no=25,Data( 2,3,7,13,25 ) trans to Lv1(2),Lv2(3),Lv3(6),Lv4(12),Lv5(24) , something happened.
  24. UniDbGrid was setup with null columns ,and roweditor is true. when the 1st time click the button to load data,roweditor showed correct, from the 2nd time load data ,roweditor shows wrong like the picture. and adoquery(with a sql ) shows same effect (2nd time load data). What was i missed? (test with 1.0.0.1424 and 1.0.2.1442) test demo dbgridretest.zip
×