#1 2013-12-08 16:54:31

warleyalex
Member
From: Sete Lagoas-MG, Brasil
Registered: 2013-01-20
Posts: 250

Obscenities with mORMot and SmartMS

Hi everyone!
I have been playing with Smart Mobile Studio and mORMot server. It's a DBgrid with images in SmartMS.
test
http://youtu.be/D5kAah0uC2g

but I have to fix some issues when authentication is set.
for example in SmarMS form, i have:

DBGrid1.url := "http://localhost:8080/root/SampleRecord/?Select=*";

but i would like something like:

DBGrid1.url := GetURISignature("http://localhost:8080/root/SampleRecord/?Select=*");

Unfortunately I can not call function GETURISignature.

Can anyone shed some light on how this can be done?

Note:
------
I realized that in mormotclient.pas there's
  TmORMotClient=class
    ...
protected
    function TmORMotClient.GetURISignature(AURI: string): string;
-----

Offline

#2 2013-12-08 18:17:15

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,603
Website

Re: Obscenities with mORMot and SmartMS

Take a look at http://synopse.info/forum/viewtopic.php?id=1066 for some SMS client code.

BTW, what is the grid component you are using?
It is called a TDBGrid, but I can't find any such component in my current SMS 1.1.2 version.
smile

Could you please publish your source code?

Offline

#3 2013-12-08 20:52:06

chapa
Member
Registered: 2012-04-30
Posts: 117

Re: Obscenities with mORMot and SmartMS

It was fun explaining my wife what mORMot is all about watching the demo at Sunday family's dinner time.
Now, my 4 and 5 years girls have more clear idea about the work at the office during daytime smile ...

Offline

#4 2013-12-09 00:12:38

warleyalex
Member
From: Sete Lagoas-MG, Brasil
Registered: 2013-01-20
Posts: 250

Re: Obscenities with mORMot and SmartMS

ab wrote:

Could you please publish your source code?

Indeed DBGrid is not a native component, I just wrap a pascal class to mimic a JS library.

https://www.dropbox.com/s/sx7y91r3ea9q4 … mormot.rar
¹authentication is not set.

Offline

#5 2013-12-09 10:26:58

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,603
Website

Re: Obscenities with mORMot and SmartMS

Thanks for the feedback.

I'll take a look at the sources.

I had a report from some other users:

It was fun explaining my wife what mORMot is all about watching the demo at Sunday family's dinner time. Now, my 4 and 5 years girls have more clear idea about the work at the office during daytime smile ...

In fact, pictures are outside this forum's rules - see http://synopse.info/forum/misc.php?action=rules
sad

But it will increase our Google rank for sure!

Offline

Board footer

Powered by FluxBB