WeStandWithUkraine

60 Posts
ggl082
6 years ago
4
Topic

Hello,

   I have displayed a list from custom table (I use SQL Query and CCK storage for list result). Into the list displayed, I want to be able to modify field of a column (on one or more line) and save modification after. I have set Typo of field to JGrid, so the field can modified, but I can't save the modification. I have tried with different kind of button without success. Is a solution exist?

Thank you in advance for your help.

Gerard

Get a VIP membership
1279 Posts
Bucklash
6 years ago
1
Level 1

Hi

Try beforestore or afterstore ....

Grab the value, create update query using joomla sql syntax - ot just do as normal sql syntax.

alter-a-value-in-another-tables-params-data

Inserting,_Updating_and_Removing_data_using_JDatabase

resources/tutorials/create-content-dynamiclly-using-code

The above links should hint towards an answer...

60 Posts
ggl082
6 years ago
0
Level 2

Hi Bucklash,

Thank you very much for your quick answer. Nevertheless, after some tests, it seems than before and afterstore are not called. I think that I need to call a php script to update database according to modification, but I don't know how and where I can add call to this script.

Gérard

1279 Posts
Bucklash
6 years ago
1
Level 1

Hi

Yes sorry...

I just saw 'save data somewhere' and responded like that

If it's a list and you are using jGrid typo then I have less than no idea...

Hooefully others can assist

4229 Posts
Kadministrator
6 years ago
0
Level 2

JGrid uses ajax call to directly store new order to database, it does not use thsoe events. It seems it is coupled with article object, so I think it won't work work with anything else than standard seblod items

Get a VIP membership