1. Fabrik 3.5.2 is now available to download. Read the blog for highlights about this release.

    As always, please back up your site prior to updating and if possible test in a dev environment first.

    Also, our 3.5.1 package file was hacked, the effected dates were 1/15/2017 - 1/17/2017. If during those days you downloaded the 3.5.1 package file from the JED or our site download page, please re-install the package with a fresh copy or upgrade to Fabrik 3.5.2. Github downloads were not effected.

Fabrik Calc Plugin - Store value in DB?

Discussion in 'Plugins' started by nbradshaw, Jun 4, 2009.

  1. nbradshaw

    nbradshaw Member

    Level: Professional
    I am using the Fabrik Calc plugin to calculate two other elements:

    $totalucount = ({DC_Inventory_Tool_Main___HighRU} - {DC_Inventory_Tool_Main___LowRU} + 1); return $totalucount;

    This works great - however - I would really like it to store the value in the DB, so that I can do my own reporting on these values.

    Is there another way to accomplish this?

    Also - I enabled the SUM for this element (fabrik calc) and it is not calculating (only showing "SUM: ") - possibly because the values are not in the db as well?

    Many thanks!
     
  2. cheesegrits

    cheesegrits Support Gopher Staff Member

    Level: Supporter
    I'll have a look.

    It *should* store the result of the calc regardless of 'only calc on save' setting, when the form is saved.

    What version of Fabrik are you running? You sig says 2.0.3b, which was about a thousand SVN revisions ago ...

    -- hugh
     

Share This Page