Automatic Periodic Table Import – what happens if…

[ad_1]

Hi!

Thanks for your question!

No, the table will not be deleted in TablePress! However, depending on what is returned by the URL then, instead of the file, it is possible that “garbage” data might be imported (like a “404 Not found” error file), if an import is scheduled for a time when the file does not exist. Therefore, when deleting the source file permanently, I recommend to also deactivate/pause the automatic periodic import of that file in TablePress. If you only remove the file temporarily, e.g. to replace it, this won’t be a problem, as the updated file will then be imported when the import is triggered the next time, according to its configured schedule.

Best wishes,
Tobias

Ok, little bit background: I have an 3d-cad software that includes small plug-in to export product structure data (basicly bill of materials) to e.g. csv, xls and upload it to server where my WP is. I would like to show that data inside WP- pages, with some kind of structure/categories similar to cad. So it’s imported to sheet, without interaction (automated scheduled import).

Problem is that data gets updates (revisions) and data in one sheet should also be updated (cell data updated, row deleted/added etc.). So it’s kind of lightweight PDM (or DMS if you have links to files as well in your sheet). Please, consider adding something like this to Tablepress, it would be great for many small companies that can’t afford expensive systems.

br, Markku

Hi,

thanks for your explanation! So does this mean that you want a table to be deleted in TablePress if a file is deleted? Or am I misinterpreting this?

The idea of the “Automatic Periodic Table Import” feature is to relieve the user of the tedious repetitive boring task of manually having to import a table file. It can’t really do anything beyond that, because it can not make guesses. And even if it would delete the table in TablePress, there would still be the Shortcode or block that embeds that table on a WordPress page or in a post.

So, to proceed, it might make sense for you to test if your workflow works with the normal manual import. If yes, you can then automate it with the “Automatic Periodic Table Import” feature module.

Best wishes,
Tobias

“does this mean that you want a table to be deleted in TablePress if a file is deleted?”

Probably not, but it might be a good idea to move it to another folder so that Tablepress does not have to read it every scheduled time. With cad, we use “item numbers” that are unique. Item number could be used in filename and Tablepress would check that if the item is new -> import to new table, if it has been imported earlier -> modify existing table. So Tablepress should monitor folder instead of one file. To delete, there is probably several ways, maybe add something to filename to mark that item to be deleted from the WP side. Just ideas, there might be better ways too 🙂 Shortcode/page should be handled somehow too…there as well, item number could be use to make it easier

  • This reply was modified 11 hours, 55 minutes ago by sloworks.
  • This reply was modified 11 hours, 37 minutes ago by sloworks.

Hi,

thanks for this suggestion! To be honest, these feels very special to your custom use case already, and it’s beyond what TablePress can do, as a general-purpose table plugin. So, I’m afraid that this is not something that I can directly integrate into the plugin. Sorry.

Best wishes,
Tobias

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer