> <mailto:sql-mvc-talk+unsub...@googlegroups.com>.
> > <mailto:sql-mvc-talk+unsub...@googlegroups.com <javascript:>>.
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/sql-mvc-talk/73179537-cba9-4ca4-9865-9bb73eb91a8d%40googlegroups.com
> <https://groups.google.com/d/msgid/sql-mvc-talk/73179537-cba9-4ca4-9865-9bb73eb91a8d%40googlegroups.com>
>
> >
> <https://groups.google.com/d/msgid/sql-mvc-talk/73179537-cba9-4ca4-9865-9bb73eb91a8d%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/msgid/sql-mvc-talk/73179537-cba9-4ca4-9865-9bb73eb91a8d%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
> > For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "sql-mvc-talk" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to sql-mvc-talk...@googlegroups.com
> <mailto:sql-mvc-talk+unsub...@googlegroups.com>.
> > <mailto:sql-mvc-talk+unsub...@googlegroups.com <javascript:>>.
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/sql-mvc-talk/73179537-cba9-4ca4-9865-9bb73eb91a8d%40googlegroups.com
> <https://groups.google.com/d/msgid/sql-mvc-talk/73179537-cba9-4ca4-9865-9bb73eb91a8d%40googlegroups.com>
>
> >
> <https://groups.google.com/d/msgid/sql-mvc-talk/73179537-cba9-4ca4-9865-9bb73eb91a8d%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/msgid/sql-mvc-talk/73179537-cba9-4ca4-9865-9bb73eb91a8d%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
> > For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "sql-mvc-talk" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to sql-mvc-talk...@googlegroups.com
> <mailto:sql-mvc-talk+unsub...@googlegroups.com>.
<#:model
--:{regex:"regex:/varchar/i",autosave:yes}
CREATE TABLE TODO_MVC --:{as:"Table"}
(
REF VARCHAR(40), --:{as:"pk"}
NAME VARCHAR(100), --:{as:"Text",size:40,title:"todo",onupdate:"owner=session.id"}
OWNER VARCHAR(40), --:{Type:"Hide"}
STATUS VARCHAR(10) default '' --:{Type:"Pick",List:"Ticked"}
);
/>
> > > <mailto:sql-mvc-talk+unsub...@googlegroups.com
> <javascript:> <javascript:>>.
> > > To view this discussion on the web visit
> > >
> >
> https://groups.google.com/d/msgid/sql-mvc-talk/73179537-cba9-4ca4-9865-9bb73eb91a8d%40googlegroups.com
> <https://groups.google.com/d/msgid/sql-mvc-talk/73179537-cba9-4ca4-9865-9bb73eb91a8d%40googlegroups.com>
>
> >
> <https://groups.google.com/d/msgid/sql-mvc-talk/73179537-cba9-4ca4-9865-9bb73eb91a8d%40googlegroups.com
> <https://groups.google.com/d/msgid/sql-mvc-talk/73179537-cba9-4ca4-9865-9bb73eb91a8d%40googlegroups.com>>
>
> >
> > >
> >
> <https://groups.google.com/d/msgid/sql-mvc-talk/73179537-cba9-4ca4-9865-9bb73eb91a8d%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/msgid/sql-mvc-talk/73179537-cba9-4ca4-9865-9bb73eb91a8d%40googlegroups.com?utm_medium=email&utm_source=footer>
>
> >
> <https://groups.google.com/d/msgid/sql-mvc-talk/73179537-cba9-4ca4-9865-9bb73eb91a8d%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/msgid/sql-mvc-talk/73179537-cba9-4ca4-9865-9bb73eb91a8d%40googlegroups.com?utm_medium=email&utm_source=footer>>>.
>
> >
> > > For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>
> > <https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>>.
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "sql-mvc-talk" group.
> > To unsubscribe from this group and stop receiving emails from it,
> send
> > an email to sql-mvc-talk...@googlegroups.com <javascript:>
> > <mailto:sql-mvc-talk+unsub...@googlegroups.com <javascript:>>.
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/sql-mvc-talk/c7e7e72f-7d8b-49d1-9d03-3f6186c7ab0c%40googlegroups.com
> <https://groups.google.com/d/msgid/sql-mvc-talk/c7e7e72f-7d8b-49d1-9d03-3f6186c7ab0c%40googlegroups.com>
>
> >
> <https://groups.google.com/d/msgid/sql-mvc-talk/c7e7e72f-7d8b-49d1-9d03-3f6186c7ab0c%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/msgid/sql-mvc-talk/c7e7e72f-7d8b-49d1-9d03-3f6186c7ab0c%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
> > For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "sql-mvc-talk" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to sql-mvc-talk...@googlegroups.com
> <mailto:sql-mvc-talk+unsub...@googlegroups.com>.
<#:model CREATE TABLE TODO_MVC (REF VARCHAR(40), NAME VARCHAR(100), OWNER VARCHAR(40), STATUS VARCHAR(10) default ''); />
> > > > <mailto:sql-mvc-talk+unsub...@googlegroups.com
> > > <mailto:sql-mvc-talk+unsub...@googlegroups.com
> <javascript:> <javascript:>>.
> > > To view this discussion on the web visit
> > >
> >
> https://groups.google.com/d/msgid/sql-mvc-talk/c7e7e72f-7d8b-49d1-9d03-3f6186c7ab0c%40googlegroups.com
> <https://groups.google.com/d/msgid/sql-mvc-talk/c7e7e72f-7d8b-49d1-9d03-3f6186c7ab0c%40googlegroups.com>
>
> >
> <https://groups.google.com/d/msgid/sql-mvc-talk/c7e7e72f-7d8b-49d1-9d03-3f6186c7ab0c%40googlegroups.com
> <https://groups.google.com/d/msgid/sql-mvc-talk/c7e7e72f-7d8b-49d1-9d03-3f6186c7ab0c%40googlegroups.com>>
>
> >
> > >
> >
> <https://groups.google.com/d/msgid/sql-mvc-talk/c7e7e72f-7d8b-49d1-9d03-3f6186c7ab0c%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/msgid/sql-mvc-talk/c7e7e72f-7d8b-49d1-9d03-3f6186c7ab0c%40googlegroups.com?utm_medium=email&utm_source=footer>
>
> >
> <https://groups.google.com/d/msgid/sql-mvc-talk/c7e7e72f-7d8b-49d1-9d03-3f6186c7ab0c%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/msgid/sql-mvc-talk/c7e7e72f-7d8b-49d1-9d03-3f6186c7ab0c%40googlegroups.com?utm_medium=email&utm_source=footer>>>.
>
> >
> > > For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>
> > <https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>>.
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "sql-mvc-talk" group.
> > To unsubscribe from this group and stop receiving emails from it,
> send
> > an email to sql-mvc-talk...@googlegroups.com <javascript:>
> > <mailto:sql-mvc-talk+unsub...@googlegroups.com <javascript:>>.
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/sql-mvc-talk/49f52509-754e-4ceb-a2ca-064e7d6ef29c%40googlegroups.com
> <https://groups.google.com/d/msgid/sql-mvc-talk/49f52509-754e-4ceb-a2ca-064e7d6ef29c%40googlegroups.com>
>
> >
> <https://groups.google.com/d/msgid/sql-mvc-talk/49f52509-754e-4ceb-a2ca-064e7d6ef29c%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/msgid/sql-mvc-talk/49f52509-754e-4ceb-a2ca-064e7d6ef29c%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
> > For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "sql-mvc-talk" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to sql-mvc-talk...@googlegroups.com
> <mailto:sql-mvc-talk+unsub...@googlegroups.com>.
Hi Zubair, No,
The Qualia is in Javascript Object Literal Notation (JSOL) a relaxed
version of JSON, but we still call it JSON for convenience, as JSOL also
has another meaning which can be confusing if you google for it.
The Qualia is placed in the comments, they direct the front end of the
application.
A detailed step by step example:
I presume you know JavaScript and mustache Logic-less templates.
(I have adjusted/removed a few implementation details for brevity’s sake)
Staring with:
<#:model
--:{regex:"regex:/varchar/i",autosave:yes}
CREATE TABLE TODO_MVC --:{as:"Table"}
(
REF VARCHAR(40), --:{as:"pk"}
NAME VARCHAR(100),
--:{as:"Text",size:40,title:"todo",onupdate:"owner=session.id"}
OWNER VARCHAR(40), --:{Type:"Hide"}
STATUS VARCHAR(10) default '' --:{Type:"Pick",List:"Ticked"}
);
/>
<#:table
Select --:{from:"TODO_MVC",autoinsert:"top",tablestyle:"Todo"}
STATUS, --:{Action:"Edit"}
NAME, --:{Action:"Edit","placeholder":"What needs to be done"}
REF --:{Action:"View",Type:"Hide"}
From TODO_MVC
where (owner=session.id and ( (my.todo_type='' and status!='3' )
or( status='' and my.todo_type='1')or(status='1' and my.todo_type='2')))
/>
Ignore the html escape, now we have:
--:{regex:"regex:/varchar/i",autosave:yes}
CREATE TABLE TODO_MVC --:{as:"Table"}
(
REF VARCHAR(40), --:{as:"pk"}
NAME VARCHAR(100),
--:{as:"Text",size:40,title:"todo",onupdate:"owner=session.id"}
OWNER VARCHAR(40), --:{Type:"Hide"}
STATUS VARCHAR(10) default '' --:{Type:"Pick",List:"Ticked"}
);
Select --:{from:"TODO_MVC",autoinsert:"top",tablestyle:"Todo"}
STATUS, --:{Action:"Edit"}
NAME, --:{Action:"Edit","placeholder":"What needs to be done"}
REF --:{Action:"View",Type:"Hide"}
From TODO_MVC
where (owner=session.id and ( (my.todo_type='' and status!='3' )
or( status='' and my.todo_type='1')or(status='1' and my.todo_type='2')))
Ignore the SQL comments, now we have:
CREATE TABLE TODO_MVC
(
REF VARCHAR(40),
NAME VARCHAR(100),
OWNER VARCHAR(40),
STATUS VARCHAR(10) default ''
);
Select
STATUS,
NAME,
REF
From TODO_MVC
where (owner=session.id and ( (my.todo_type='' and status!='3' )
or( status='' and my.todo_type='1')or(status='1' and my.todo_type='2')))
This is a plain create statement and a select statement, the select
statement formed into the stored procedure to concatenate the rows into
a JSON object something like this:
tfid=90000000;first=' '; res=res||',"t9":[';
<#:model
--:{regex:"regex:/varchar/i",autosave:yes}
CREATE TABLE TODO_MVC --:{as:"Table"}
(
REF VARCHAR(40), --:{as:"pk"}
NAME VARCHAR(100),
--:{as:"Text",size:40,title:"todo",onupdate:"owner=session.id"}
OWNER VARCHAR(40), --:{Type:"Hide"}
STATUS VARCHAR(10) default '' --:{Type:"Pick",List:"Ticked"}
);
/>
> <http://session.id>"}