TOPIC:

action using the state list plugin "action plugins (trash) 9 months 2 weeks ago #252657

  • Topic Author
  • DAVIDPL
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 119
  • Thanks: 0
Hello

I would like to perform an action using the state list plugin "action plugins (trash).

It consists of changing the value of the "Estado" field in the table: "Deportistas" with Value "No ", or "Si" or "empty" to -> "If selected" when executing the button set.

campos relacionados:


Contentbuilder Views : Deportistas seleccion
fields: seleccion = "Si " , "No", " empty"
fields: ID


Tabla deportistas:
field: ID
field: seleccion = "Si" "No" "empty"



Code original plugins (trash):

$db->setQuery("Update #__content As content, #__contentbuilder_articles As article Set content.state = -2 Where article.form_id = ".intval($form_id)." And article.record_id = ".$db->Quote($record_id)." And content.id = article.article_id");
$db->query();



New code plugins (trash):

$db->setQuery("Update #__deportistas As content, #__contentbuilder_list_records As State Set = "Si" Where xx.form_id = ".intval($form_id)." And x??x.record_id = ".$db->Quote($record_id)." And content.id = ??");
$db->query();

Saludos

Please Log in or Create an account to join the conversation.

action using the state list plugin "action plugins (trash) 9 months 1 week ago #252695

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 7381
  • Karma: 3
  • Thanks: 529
Hi,

based on original plugins(trash), use something like this:
$db->setQuery("Update #__deportistas As content, #__contentbuilder_list_records As records Set content.state = "Si" 
Where records.form_id = ".intval($form_id)." And 
records.record_id = ".$db->Quote($record_id)." And content.id = records.article_id");
$db->query();

Hope this helps

Regards,
Tihana

Please Log in or Create an account to join the conversation.

action using the state list plugin "action plugins (trash) 9 months 1 week ago #252718

  • Topic Author
  • DAVIDPL
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 119
  • Thanks: 0
Hello

To carry out the test with the code I would like to add a new complement (plugins), called "seleccion"
copying the content of "Untrash", and then the view state that gives me the ability to select it.

Is this possible to do ?

Cheers

Please Log in or Create an account to join the conversation.

action using the state list plugin "action plugins (trash) 9 months 1 week ago #252720

  • Topic Author
  • DAVIDPL
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 119
  • Thanks: 0
Esta página no funcionawww.judomurcia.es no puede procesar esta solicitud en este momento.
HTTP ERROR 500

$db->setQuery("Update #__deportistas As content, #__contentbuilder_list_records As records Set content.state = "Si"
Where records.form_id = ".intval($form_id)." And
records.record_id = ".$db->Quote($record_id)." And content.id = records.article_id");
$db->query();

records.article_id, .............. lo he cambiado por .... records.records_id

Pero tampoco funciona....

Tendria que cambiar algo de código en resto de plugings... ???

Please Log in or Create an account to join the conversation.

action using the state list plugin "action plugins (trash) 9 months 1 week ago #252730

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 7381
  • Karma: 3
  • Thanks: 529
Hi,

1)

Hello

To carry out the test with the code I would like to add a new complement (plugins), called "seleccion"
copying the content of "Untrash", and then the view state that gives me the ability to select it.

Is this possible to do ?

Cheers

Unfortunately no

2) #__contentbuilder_list_records in this table is not State, State is stored in table #__contentbuilder_list_states (you can find it in phpmyadmin)

I hope that this help to you

Regards,
Tihana

Please Log in or Create an account to join the conversation.

action using the state list plugin "action plugins (trash) 9 months 1 week ago #252760

  • Topic Author
  • DAVIDPL
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 119
  • Thanks: 0
HelloThis code does not work, you could send the file trash.php, with the code already incorporated, maybe I have it wrongly enteredIs it also necessary to modify the trash.xlm file?$ db-> setQuery ("Update
Attachments:

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Moderators: ForumSupport
Time to create page: 0.051 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!