I wish to present list of inventory items for stock check. When user keys in stock on hand, inventory record updates. In addition, I want to add a stock check record to the inventory adjustments table.
I have Wpcodebox (snippets util). I can write the code to add new record, just don't know how to capture the wpdatatable update on server side and piggy back it.
It seems to me it is the same goal - but you gave more details here, regarding that you use Wpcodebox (snippets util) .
If that is the case, for future reference, please don't open multiple tickets with the same topic, as it wastes your and our time trying to either find a response twice (if, for example, my colleague responded on another ticket already) or inform you that the ticket has been submitted more than once.
We go through tickets in the order in which they are received and/or responded to, so creating multiple tickets will only increase our queue, it will not speed anything up. We try to be as fast as possible, so thank you for your patience.
If you have any questions or concerns about another topic, please feel free to open a new ticket, and we'll gladly help you out.
Thank you for your understanding.
-
But if this ticket is actually about something else - my apologies, and please correct me if so.
wpdatatables_filter_frontend_formdata( $formData, $tableId )this filter is applied to the data sent from the front-end editable table. $formData contains the keys and values that will be inserted or updated in the table. $table_id is the table identifier from the MySQL table (wp_wpdatatables).
I wish to present list of inventory items for stock check. When user keys in stock on hand, inventory record updates. In addition, I want to add a stock check record to the inventory adjustments table.
I have Wpcodebox (snippets util). I can write the code to add new record, just don't know how to capture the wpdatatable update on server side and piggy back it.
Thanks,
David
Hi, David
Sorry for delayed response time on your other ticket.
Can you please confirm if this is the same query as you asked on the other ticket https://tmsplugins.ticksy.com/ticket/3085953 ?
It seems to me it is the same goal - but you gave more details here, regarding that you use Wpcodebox (snippets util) .
If that is the case, for future reference, please don't open multiple tickets with the same topic, as it wastes your and our time trying to either find a response twice (if, for example, my colleague responded on another ticket already) or inform you that the ticket has been submitted more than once.
We go through tickets in the order in which they are received and/or responded to, so creating multiple tickets will only increase our queue, it will not speed anything up. We try to be as fast as possible, so thank you for your patience.
If you have any questions or concerns about another topic, please feel free to open a new ticket, and we'll gladly help you out.
Thank you for your understanding.
-
But if this ticket is actually about something else - my apologies, and please correct me if so.
Thank you.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hi, David
Sorry about the delay
- The devs advised, there is a hook you can use to to capture the wpdatatable update:
wpdatatables_after_frontent_edit_row( $formdata, $rowId, $tableId )
- This action is executed after editing action is applied.
$formdata is the array of keys and values for editing.
$rowId is the ID field of the row in MySQL table that was edited.
- This is triggered when an entry is edited from the front end.
Please let us know if this helps to achieve your goal.
Thank you
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hi Guys, yes, I already sussed that one, but thanks.
BTW: from your docs
--------------------------------------------------------------------
wpdatatables_filter_frontend_formdata( $formData, $tableId )this filter is applied to the data sent from the front-end editable table. $formData contains the keys and values that will be inserted or updated in the table. $table_id is the table identifier from the MySQL table (wp_wpdatatables).---------------------------------------------------------------------------
This seems to be incorrect: only one arg is being passed ($formData).
Thanks again..
David
Hi, David
My sincerest apology for all the waiting time.
I've passed this feedback to our developers, they will check what you pointed out , that only one arg is being passed ($formData).
Thank you for pointing that out, we are making sure to double-check it.
I will report back once the devs advised again.
- I'm just not sure if i understood -
Did you successfully achieve your goal now -
and we should just check to make the correction on the Documentaion for that particular hook ?
Or you still need assistance to resolve this?
Please correct me if i misunderstood. Thank you
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hi, David
The devs have checked again, and they confirm that this hook does indeed accept two arguments, as written in the Documentation.
The first is array $formData that contains the data from the Edit modal;
and the second one is the $tableId , which is the actual table ID.
If you still have any issue, you could send us your function,
so that they can inspect it, and we will do our best to advise.
Thank you
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables