Forum


Calc Builder Support

Calc Builder support
Forums
Public write access is disabled. Please login

value inline vat not in User data log 03.11.2013 22:35

In the userdata log is see colums for the vars of type inline but they are empty

bug?

title vat = var

Edited by moon_1209 - 03.11.2013 22:36

Re: value inline vat not in User data log 04.11.2013 13:17

Hi,
inline results should not be included at stats log, which should show only input fields, we'll remove that type of columns for next version. If you want to see at your stats log any calculated, intermediate or final result, you can add this line to your code section:


$this->addToStats("fieldname","fieldvalue");


for ex:


$this->addToStats("MYINLINE",$myinline);


and a new column will be created at your log with that title and value. This will work for any variable, you dont need to create inline fields to store values.

Hope this helps, regards
Moonsoft Team
www.moonsoft.es

Re: value inline vat not in User data log 04.11.2013 13:27

Great now I can put a date/time of the calc in the log
and a sesion id so I can see all the (re)calculations of a single user in time


How do you create the idrequest value?


Ps how can I prevent values to be add to the stat, the current stat has in my calculation with 40 radio (yes/no) buttons a lot of suff i don't need

Edited by moon_1209 - 04.11.2013 13:30

PPS

can i use this
$this->addToStats("MYINLINE",$myinline);

in:
joomla\components\com_calcbuilder\views\calcbuilder\tmpl\pdf.php

Edited by moon_1209 - 04.11.2013 13:35

Re: value inline vat not in User data log 04.11.2013 13:37

Hi,
sorry but you can't remove columns from the stats, they are coded to include always all input fields of the form.

About the idrequest, its database created (autoincrement).

Regards
Moonsoft Team
www.moonsoft.es

Re: value inline vat not in User data log 04.11.2013 13:40

Hi,
just noticed your last question. That function is intended to be used only at the code section, where it shares the scope with the model class, while the php you're refering to it's located on another layer, it will surely not work from there.

Regards
Moonsoft Team
www.moonsoft.es

Re: value inline vat not in User data log 04.11.2013 15:30


About the idrequest, its database created (autoincrement).


$time=time();

foreach ($_vars as $_var) {

$_result=array();

$_result['idobj']=$utility->id;

$_result['idrequest']=$time;



So I don't have to put in date and time just decode idrequest

Re: value inline vat not in User data log 04.11.2013 15:46

Ok, thought you're refering to the inner id at db which creating the counter. That way you can get the timestamp instead.

Regards
Moonsoft Team
www.moonsoft.es
Are you satisfied with our products/services/support?
Please help us to keep improving, add a review at  joomla extensions site and  magento connect

Our clients' feedback