251 Posts
Viktor Iwan
8 years ago
8
Topic

Hello guys, i just bought SQL Pack, installed, and i don't see any changes in Field List.. anybody can explain ? there's no documentation for this field plugin..

Thanks

Get a Book for SEBLOD
4229 Posts
Kadministrator
8 years ago
0
Level 1

Hi,

after you install this pack you get new field Processing->SQL query. You can use this one e.g. in content view to show some related value.

You will also get a new live value option Processing->SQL query and new restriction option (same name).

For any of this options you need to write sql query that will execute and seblod will use its result as value.

251 Posts
Viktor Iwan
8 years ago
0
Level 2

Ah that clear things a lot... thanks.... hope you include the link to this guide at product's description page as well for future reference

157 Posts
Hableur
8 years ago
4
Level 1

Hello,

with this plugin, is it possible to set the value of a field with using the value of an other field in the same form ?

For exemple : incrementing Field 2 based on a value from Field1

Field 1 value = id

Field 2 value= SELECT (val+1) FROM my_table WHERE id=Field1 value ?

Thanks

4229 Posts
Kadministrator
8 years ago
3
Level 2

Please read manual mentioned above, what you need is explained at the end in blue box.

157 Posts
Hableur
8 years ago
2
Level 3

Thanks, I'd read it before, what I need to be sure is the system is working not only in a list but also in a form.

4229 Posts
Kadministrator
8 years ago
1
Level 4

I'm sorry, I missed it is a form, in the forms it indeed does not work. You can only use sql plugin as live value or restriction on the form and vlaues from fields does not work in live value plugin.

157 Posts
Hableur
8 years ago
0
Level 5

Thanks, i's an important thing to know. So, I'll find an other solution.

Get a VIP membership