• Resolved yehudagefen

    (@yehudagefen)


    Greetings:

    Probably a suggestion for an enhancement…

    I have a table with a number of cells that contain calls to code snippets. The code is mostly date dependent and relies on the system date to create database queries. All works splendidly!

    I would like to create a new cloned table. The user that maintains the site can enter future data in the input form (elsewhere) and then view the resulting table. The user would click a control marked ‘preview’, be presented with a date-picker control and view the table with data for the selected date. The question: How to have the date travel from date-picker, to the table and finally the short-code that fires the code snippet. BTW, the short-codes in the cells accept arguments.

    Many thanks!
    Yehuda Gefen

    • This topic was modified 8 years, 2 months ago by yehudagefen.
    • This topic was modified 8 years, 2 months ago by yehudagefen.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    That’s a good question and depends on the specific environment and implementation. Your best bet probably is to use a global variable here, which the Shortcode handler functions then read.

    Regards,
    Tobias

    Thread Starter yehudagefen

    (@yehudagefen)

    Hello Tobias,

    Thanks for the prompt reply! No trouble at all. I had guessed that global vars was the only recourse but utilizing them makes one feel so naughty, right?

    Thanks for the great product.

    Cheers,
    Yehuda

    • This reply was modified 8 years, 2 months ago by yehudagefen.
    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    yeah, they are not super-cool, but I think they work here. You could also look into implementing your Shortcode handlers and other logic in a PHP class and then share data via class member properties.

    Regards,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Passing Information to a Table’ is closed to new replies.