powergov
-
Posts
167 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by powergov
-
-
-
not need testcase,you can put two unimpanel to your form test
-
-
-
I want to use unimtreemenu to display products,products maybe Dynamic change,and have more level!
How to do ,where is the demo?
Thanks!
-
The unipanel can set collpesd:true,but unimpanel have not
set unimpanel collpsed is very very need!
because,The mobile's screen is so small,for example ,put a memo in a unimpanel,if not need input ,I hope it display only title.
-
Hi,
Sorry, Can you clarify your question?
if my delphi form name is mainmform,my unimdblistgrid name is lst1
in lst1 unievents's beforeinit i write
function beforeInit(sender, config){config.itemTpl='<table style="width:100%;white-space: nowrap;vertical-align:middle;">'+'<tr>'+'<td >{0}</td>'+'<td >{1}<input type="button" id="btn1" name="btn1" value="ClickMe" onclick="myFunction()"></td>'+'<td >{2}</td>'+'</tr></table>'}How to write the CustomFiles in the ServerModule???====================function myFunction(){
ajaxRequest(??????.????,"ExcluirItem",[]);
}=======================my form name is mainmformmy unimdblistgrid name is lst1 -
how to know "MyForm.form" ? my unigui form's name?
example mainmform.listgrid1 ?
-
1424
and
.x-tool-type-disclosure:before {
font-size: 32px !important;
}not working
-
-
Based on this example I've put up a new customization, with several new features, and even with Floating Button, as soon as I can put more information and details
Hi,Georges Soares:
Can you share it ?
-
Hi
How to run mobile?
-
Hi,Delphi Developer ,
Can you test:
uni-mac too.
-
-
-
if have column A,column B,column C,When I modified column B or column C,I want to automatically write the current system time to column A, and I don't allow keyboard input. I will use the beforepost to set value to column A, but it will automatically set column A value to all the rows in the unidbtreegrid
-
procedure Tmd01.FDM_Shangpin_jiageBeforePost(DataSet: TDataSet);
var s :string;
begin
if md01.FDM_Shangpin_jiage.FieldByName('sonnum').AsInteger = 0 then
begin
s := 'Do nothing' ;
s := md01.FDM_Shangpin_jiage.FieldByName('typeid').AsString.Trim;
md01.FDC_OneUpdate_price.ParamByName('pm2').AsFloat := md01.FDM_Shangpin_jiage.FieldByName('PreSalePrice1').AsFloat ;
md01.FDC_OneUpdate_price.ParamByName('pm3').AsFloat := md01.FDM_Shangpin_jiage.FieldByName('PreSalePrice2').AsFloat ;
md01.FDC_OneUpdate_price.ParamByName('pm4').AsFloat := md01.FDM_Shangpin_jiage.FieldByName('PreSalePrice3').AsFloat ;
md01.FDC_OneUpdate_price.ParamByName('pm5').AsString := md01.FDQ_sysdate.FieldByName('实时').AsString.Trim + ' By ' + md01.username ;
md01.FDC_OneUpdate_price.ParamByName('pm1').AsString := s ;
md01.FDC_OneUpdate_price.Execute() ;
end;
end;
When I modified one record in unidntreegrid, I was hoping to execute a TFDCommand only for the current record,but TFDCommand run (the rows count in unidntreegrid) times,I think It should be traversal all records in unidntreegrid!
-
thank you very much
-
Hi,
How do you do it?!
Can you try to use this code after modification?:
UniSession.AddJS(UniDBGrid1.JSName + '.view.refresh();');
Hi,Delphi Developer,where are you ?
I need you help
-
Hi,
How do you do it?!
Can you try to use this code after modification?:
UniSession.AddJS(UniDBGrid1.JSName + '.view.refresh();');
Hi,
I try it,but unidbgrid not refresh,must repaint ??
md01.FDQ_jiageZB.edit;md01.FDQ_jiageZB.FieldByName('grp_par_parname').AsString := trim(UniComboBox1.Text);md01.FDQ_jiageZB.FieldByName('grp_parname').AsString := trim(UniComboBox2.Text) ;md01.FDQ_jiageZB.FieldByName('grp_name').AsString := trim(Uniedit1.Text);md01.FDQ_jiageZB.FieldByName('grp_price01').AsFloat := strtofloat(Uniedit2.Text) ;md01.FDQ_jiageZB.FieldByName('grp_price02').AsFloat := strtofloat(Uniedit3.Text) ;md01.FDQ_jiageZB.FieldByName('grp_price03').AsFloat := strtofloat(Uniedit4.Text) ;md01.FDQ_jiageZB.post ;//UniSession.AddJS(UniDBGrid2.JSName + '.view.beforeInit();');//UniSession.AddJS(UniDBGrid2.JSName + '.view.repaint();');UniSession.AddJS(UniDBGrid2.JSName + '.view.refresh();'); -
Hi,
Can you try to use this approach?, but of course with some "limitations" I think...
For example for "column=0":
1. UniDBGrid -> ClienEvent -> UniEvents -> function beforeInit:
function beforeInit(sender, config) { config.updateRowSpan = function() { var columns = sender.getColumns(), view = sender.getView(), store = sender.getStore(), rowCount = store.getCount(), column = columns[0], dataIndex = column.dataIndex, spanCell = null, spanCount = null; spanValue = null; for (var row = 0; row < rowCount; ++row) { var cell = view.getCellByPosition({ row: row, column: 0 }).dom, record = store.getAt(row), value = record.get(dataIndex); if (spanValue != value) { if (spanCell !== null) { spanCell.rowSpan = spanCount; } Ext.fly(cell).setStyle('display', ''); spanCell = cell; spanCount = 1; spanValue = value; } else { spanCount++; Ext.fly(cell).setStyle('display', 'none'); } } if (spanCell !== null) { spanCell.rowSpan = spanCount; } }; }
2. UniDBGrid -> ClienEvent -> UniEvents -> function afterCreate:
function afterCreate(sender) { sender.getView().on('refresh', sender.updateRowSpan, sender); }
Result:
Best regards.
Hi,Delphi Developer
if change dataset,for example:append record or delete record ,the unidbgrid is wrong!
There are more perfect way?
thank you
-
Hi,Delphi Developer
if change dataset,for example:append record or delete record ,the unidbgrid is wrong!
There are more perfect way?
thank you
-
I want to change the English on above image into Chinese
“Your browser ...",
where is the string?
-
Is it possible to build a unimdbtree or unimdbtreemenu?
in Feature Requests
Posted
Hi,If have unimdbtreemenu,we can create menu from database with "id","parid", This is a great help to us!