Fábio Matte Posted July 3, 2018 Share Posted July 3, 2018 Is it possible to make a MultiDetail list with Unigui Mobile similar to what we do with the listview dynamicappearance of FMX? Link to comment Share on other sites More sharing options...
mhmda Posted July 4, 2018 Share Posted July 4, 2018 Use tpl with <table> tag. Link to comment Share on other sites More sharing options...
Fábio Matte Posted July 4, 2018 Author Share Posted July 4, 2018 Use tpl with <table> tag. You can give me an example of how to use it, because I could not understand very well how to use tpl with the <table> tag. Link to comment Share on other sites More sharing options...
epos4u Posted July 4, 2018 Share Posted July 4, 2018 +1 Link to comment Share on other sites More sharing options...
asapltda Posted September 21, 2018 Share Posted September 21, 2018 +1 What is TPL? Thank you Link to comment Share on other sites More sharing options...
Sherzod Posted September 21, 2018 Share Posted September 21, 2018 https://docs.sencha.com/extjs/6.5.3/modern/Ext.XTemplate.html Link to comment Share on other sites More sharing options...
asapltda Posted September 29, 2018 Share Posted September 29, 2018 Hello, can you post an example in delphi + unigui Thank you Link to comment Share on other sites More sharing options...
FFREDIANELLI Posted October 2, 2018 Share Posted October 2, 2018 no examples ? Link to comment Share on other sites More sharing options...
asapltda Posted October 3, 2018 Share Posted October 3, 2018 On 7/3/2018 at 8:23 AM, Fábio Matte said: Is it possible to make a MultiDetail list with Unigui Mobile similar to what we do with the listview dynamicappearance of FMX? As I simulate the requirement: 1. I have the html unit that receives text parameters and returns html 2. I add the html to the UnimList 1 ---------------------------------------------------------- // RETORNA CADENA EN FORMATO HTML unit HTML_COLOR; interface uses SysUtils ; var w_retorno : boolean; function Get_Html(p_string, p_color:string; P_size:integer):string; // function Get_Html(P_title; p_valor, p_color:string; P_size:integer):string; implementation // http://www.w3schools.com/html/html_colornames.asp // RED , GREEN, AQUA, BLACK, BLUE, YELLOW , ORANGE, ORANGERED , MAGENTA..... // w_s1:= HTML_COLOR.Get_Html (ClientDataSet1.FieldByName('NIT').AsString, 'blue', 2) ; // w_s2:= HTML_COLOR.Get_Html (ClientDataSet1.FieldByName('NOMBRE').AsString , 'black', 3) ; // w_s3T:= HTML_COLOR.Get_Html ('Direccion:', 'blue', 1) ; function Get_Html(p_string, p_color:string; P_size:integer):string; const K_negrita = '<b> %s </b>' ; K_FONT1 = '<font size= "%d" color = " %s" >' ; K_FONT2 = '</font>'; // <font size="6"> This is some text!</font> var w_html :string; begin // NEGRITA if uppercase(p_color) = 'NEGRITAS' then begin w_html := K_negrita ; w_html := format(w_html, [ p_STRING]); result:= w_html ; exit; end; // COLORES HTML w_html := K_FONT1 ; w_html := format(w_html, [P_SIZE, p_color ]); result:= w_html + p_string + K_FONT2 ; end; end. --------------------------------------- 2-----add the html to the UnimList----------- // pedidos = DATASET while not PEDIDOS.Eof DO begin W_STR := 'Pedido ' + PEDIDOS.FieldByName('NOPEDIDO').AsString ; // + '<br>'; w_nopedido := HTML_COLOR.Get_Html ( W_STR, 'BLACK', 2) ; W_STR := ' Ped.Cliente:' + PEDIDOS.FieldByName('PEDIDOCLIENTE').AsString + '<br>'; W_PEDIDOCLIENTE := HTML_COLOR.Get_Html ( W_STR, 'red', 4) ; W_STR := 'Despachar A:' + PEDIDOS.FieldByName('CLIENTESHP').AsString ; w_clienteshp := HTML_COLOR.Get_Html ( W_STR, 'BLACK', 2) ; W_STR := PEDIDOS.FieldByName('DCLIENTESHP').AsString ; W_DCLIENTESHP := HTML_COLOR.Get_Html ( W_STR, 'blue', 2) ; UnimList1.Items.Add(W_STR); PEDIDOS.Next; end; PEDIDOS.Close; Link to comment Share on other sites More sharing options...
asapltda Posted October 22, 2018 Share Posted October 22, 2018 On 7/3/2018 at 8:23 AM, Fábio Matte said: Is it possible to make a MultiDetail list with Unigui Mobile similar to what we do with the listview dynamicappearance of FMX? Link to comment Share on other sites More sharing options...
x11 Posted August 13, 2020 Share Posted August 13, 2020 how display an image? 1 Link to comment Share on other sites More sharing options...
Rafael P Posted January 11, 2021 Share Posted January 11, 2021 On 8/13/2020 at 9:55 AM, x11 said: how display an image? Someone has discovered how to attach some images? Link to comment Share on other sites More sharing options...
asapltda Posted February 25, 2021 Share Posted February 25, 2021 Can TPL be used in unidbgrid ? or something like that on the desktop Link to comment Share on other sites More sharing options...
mhmda Posted February 25, 2021 Share Posted February 25, 2021 YES Link to comment Share on other sites More sharing options...
x11 Posted February 25, 2021 Share Posted February 25, 2021 how? example? Link to comment Share on other sites More sharing options...
asapltda Posted February 26, 2021 Share Posted February 26, 2021 Can TPL be used in unidbgrid ? or something like that on the desktop? Thank you for your response, it is possible to have a small example where you show the data in 2 or more rows , Thank you again Link to comment Share on other sites More sharing options...
mhmda Posted March 3, 2021 Share Posted March 3, 2021 Here you go: http://forums.unigui.com/index.php?/topic/16317-how-to-use-xtemplate-inside-dbgrid/ Link to comment Share on other sites More sharing options...
Recommended Posts