[SMW-devel] [SF] the advanced usage of forms

2012-09-29 Thread Yury Katkov
Hi everyone!

I think I need something like 'values dependent on' but a little bit more
powerful for my Forms.
I've recently added 'values from query' parameter for the field tag in
Semantic Forms (maybe it will be approved), see here for the details [1]

What I need is the ability to create the fields like this one:

{{field|values from
query=[[Category:$1]][[Color::$2]][[Owner::+]]|substitute=Flowers[Genus],Flowers[Color]|input
type=listbox}}

This listbox will show the following list of possible values:
1) the possible values will be the names of the wikipages
2) all these wikipages will have an Owner property
3) there will be belong to a category that is stored in a field Genus of
the template Flowers
4) there will have the property Color and the color will be store in a
field called Color

My question to the users of SMW: Is anybody interested in such a feature?
My questions to SMW\SF developers:
1) is it possible to make semantic queries on the fly using AJAX+SMWAsk
API?
2) Our project really needs such a feature. If we program here, is it
likely to be merged with the core of Semantic Forms?


[1] https://bugzilla.wikimedia.org/show_bug.cgi?id=40629
-
Yury Katkov
--
How fast is your code?
3 out of 4 devs don\\\'t know how their code performs in production.
Find out how slow your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219672;13503038;z?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


Re: [SMW-devel] [SF] the advanced usage of forms

2012-09-29 Thread James HK
Hi,

See [1] which is an extension that generates option values from a
semantic query or parser function for a specified form field.

[1] 
http://www.mediawiki.org/wiki/Extension:SemanticFormsSelect#Query_And_Function_format

Cheers

On 9/30/12, Yury Katkov katkov.ju...@gmail.com wrote:
 Hi everyone!

 I think I need something like 'values dependent on' but a little bit more
 powerful for my Forms.
 I've recently added 'values from query' parameter for the field tag in
 Semantic Forms (maybe it will be approved), see here for the details [1]

 What I need is the ability to create the fields like this one:

 {{field|values from
 query=[[Category:$1]][[Color::$2]][[Owner::+]]|substitute=Flowers[Genus],Flowers[Color]|input
 type=listbox}}

 This listbox will show the following list of possible values:
 1) the possible values will be the names of the wikipages
 2) all these wikipages will have an Owner property
 3) there will be belong to a category that is stored in a field Genus of
 the template Flowers
 4) there will have the property Color and the color will be store in a
 field called Color

 My question to the users of SMW: Is anybody interested in such a feature?
 My questions to SMW\SF developers:
 1) is it possible to make semantic queries on the fly using AJAX+SMWAsk
 API?
 2) Our project really needs such a feature. If we program here, is it
 likely to be merged with the core of Semantic Forms?


 [1] https://bugzilla.wikimedia.org/show_bug.cgi?id=40629
 -
 Yury Katkov


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


Re: [SMW-devel] [SF] the advanced usage of forms

2012-09-29 Thread Yury Katkov
Hi James!

Example 3 in the documentationlooks very much like my case, thank you
so much!!! I'll try
it tomorrow, maybe it will suit me as a temporary decision. I don't
think that it uses ResourceLoader and am not sure that it is
compatible with the latest versions of MW/SMF/SF.

It also seems Jason Zhang can only use one value to substitute instead
of , is that right?

Anyway the existence of such extensions shows that more than me alone
need such a feature. Also I'll look at your AJAX calls and hopefully
will be able to answer to a question (1) to developers.

The question (2) to developers remains and also I'm open to discussion
about the syntax.

Cheers,
Yury


On Sun, Sep 30, 2012 at 4:22 AM, James HK jamesin.hongkon...@gmail.com wrote:
 Hi,

 See [1] which is an extension that generates option values from a
 semantic query or parser function for a specified form field.

 [1] 
 http://www.mediawiki.org/wiki/Extension:SemanticFormsSelect#Query_And_Function_format

 Cheers

 On 9/30/12, Yury Katkov katkov.ju...@gmail.com wrote:
 Hi everyone!

 I think I need something like 'values dependent on' but a little bit more
 powerful for my Forms.
 I've recently added 'values from query' parameter for the field tag in
 Semantic Forms (maybe it will be approved), see here for the details [1]

 What I need is the ability to create the fields like this one:

 {{field|values from
 query=[[Category:$1]][[Color::$2]][[Owner::+]]|substitute=Flowers[Genus],Flowers[Color]|input
 type=listbox}}

 This listbox will show the following list of possible values:
 1) the possible values will be the names of the wikipages
 2) all these wikipages will have an Owner property
 3) there will be belong to a category that is stored in a field Genus of
 the template Flowers
 4) there will have the property Color and the color will be store in a
 field called Color

 My question to the users of SMW: Is anybody interested in such a feature?
 My questions to SMW\SF developers:
 1) is it possible to make semantic queries on the fly using AJAX+SMWAsk
 API?
 2) Our project really needs such a feature. If we program here, is it
 likely to be merged with the core of Semantic Forms?


 [1] https://bugzilla.wikimedia.org/show_bug.cgi?id=40629
 -
 Yury Katkov


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel