Jump to content

Sencha templates


SIRE Software

Recommended Posts

Hello, i'am testing the framework on DelphiXE7 to know if it can give me the service level of my actual web application. 

My actual web application is built to operate at the client side at all (javascript code and some 3rd party libraries like kendo library) this application makes calls to my server application and it operates pretty good.

Now i think that if i use uniGUI, the web applications development process will be faster but, there are some functionalities that i don't want to lose for example, in my actual web application i have some templates into the grid columns like a button or an image just in the same cell of the value of the column, i wonder if is there some way to implement this kind of templates or how i can reach this functionality?  

This just one example of some  "special" things that i am using and basically the templates usage is what i need to implement in other sencha components too. 

thanks in advance.

Link to comment
Share on other sites

1 minute ago, Victor Dominguez said:

Hello, i'am testing the framework on DelphiXE7 to know if it can give me the service level of my actual web application. 

Hello,

Which edition of UniGUI are you using!?

 

2 minutes ago, Victor Dominguez said:

Now i think that if i use uniGUI, the web applications development process will be faster but, there are some functionalities that i don't want to lose for example, in my actual web application i have some templates into the grid columns like a button or an image just in the same cell of the value of the column, i wonder if is there some way to implement this kind of templates or how i can reach this functionality?  

Any example of what you mean.

Link to comment
Share on other sites

7 minutes ago, Sherzod said:

Hello,

Which edition of UniGUI are you using!?

 

Any example of what you mean.

We're using the trial version (FMSoft_uniGUI_Complete_Professional_1.90.0.1541_Trial) for now, but we are really considerating on getting a UniGUI licence but first, we want to make sure  that SenchaJS components covers  most of our needs.

Example:

 https://ibb.co/4WmyV7Z

Link to comment
Share on other sites

On 2/6/2021 at 12:53 PM, Victor Dominguez said:

We're using the trial version (FMSoft_uniGUI_Complete_Professional_1.90.0.1541_Trial) for now, but we are really considerating on getting a UniGUI licence but first, we want to make sure  that SenchaJS components covers  most of our needs.

Example:

 https://ibb.co/4WmyV7Z

I guess the example's URL is not working - here  is another one https://postimg.cc/t1BVjVnt

Link to comment
Share on other sites

It's possible and quite easy to implement. Here is an example which I copied from my code

 

procedure Tfrmkrediislemleri.adsoyadGetText(Sender: TField; var Text: string;   DisplayText: Boolean);
begin
    Text :=  '<img height="16", width="16", src="files/images/'
    + 'user16.png" /> '+ krediislemleri.FieldByName('adsoyad').AsString;
end;

 

procedure Tfrmkrediislemleri.UniDBGrid2DrawColumnCell(Sender: TObject; ACol,
  ARow: Integer; Column: TUniDBGridColumn; Attribs: TUniCellAttribs);
begin
if Column.FieldName = 'adsoyad' then
  Column.Field.OnGetText := adsoyadGetText;

end;

It seems like this:

image.png.609273330c9b53595723ee89333c8d97.png

  • Like 1
Link to comment
Share on other sites

2 hours ago, emin said:

It's possible and quite easy to implement. Here is an example which I copied from my code

 

procedure Tfrmkrediislemleri.adsoyadGetText(Sender: TField; var Text: string;   DisplayText: Boolean);
begin
    Text :=  '<img height="16", width="16", src="files/images/'
    + 'user16.png" /> '+ krediislemleri.FieldByName('adsoyad').AsString;
end;

 

procedure Tfrmkrediislemleri.UniDBGrid2DrawColumnCell(Sender: TObject; ACol,
  ARow: Integer; Column: TUniDBGridColumn; Attribs: TUniCellAttribs);
begin
if Column.FieldName = 'adsoyad' then
  Column.Field.OnGetText := adsoyadGetText;

end;

It seems like this:

image.png.609273330c9b53595723ee89333c8d97.png

4 hours ago, Hayri ASLAN said:

Thank you so much! 

Following  that line i would try to add a button in a column ! 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...