This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

perseus.lonten
perseus.lonten

Hey Everyone,

I am trying to make a plugin . The plugin's list has a column is calling Status. This column default "NEW" when i have never click it on that record. When i click that record it turns the "OLD". I have a coloumns on my database its calling "status".

I added that in my config_list.yaml ->recordOnClick: 'update_item(:id)'

I added that in my _list_toolbar.htm -> http://kopy.io/EOjh2

I added that in my products.php (controllers) -> http://kopy.io/1HMJ1

It doesnt work. $recordId is not get that record id in my list. I dont understand why. I have no error but it doesnt update my status coloumn. That function works when example : recordId = 1.

Thanks For Help.

Last updated

1-1 of 1

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.