I am using this template:
two problems that I have:
first: I need to pass the XData formed URL so that the Picture can be retrieved:
procedure TFormMain.WebDBResponsiveGridGruposItemGetFieldValue(Sender: TObject;
Index: Integer; AFieldName: string; var AValue: string);
begin
if AFieldName = 'Picture' then
begin
XDataWebDataSetGrupos.MoveBy(Index);
AValue := XDataWebConnection.URL + '/' +
string(TJSObject(XDataWebDataSetGrupos.CurrentData)['Imagem@xdata.proxy']);
console.log('Picture '+avalue);
end;
end;
However it never gets on the if... debuging show up only "nome" and "descricao".
I believe the "Picture" should be fired so that I could give it the URL right?
second:
I dont find a way to control the lenght of "Descricao"
I have tried this:
and the text content just cross over everything ...
thank you !