CalcBuilder Forum

value inline vat not in User data log

User moon_1209 2013-11-03 22:35:34

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

Moonsoft support 2013-11-04 13:17:02

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

User moon_1209 2013-11-04 13:27:23

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

Moonsoft support 2013-11-04 13:37:19

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 support 2013-11-04 13:40:05

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

User moon_1209 2013-11-04 15:30:40


About the idrequest, its database created (autoincrement).


$time=time();

foreach ($_vars as $_var) {

$_result=array();

$_result=$utility->id;

$_result=$time;



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

Moonsoft support 2013-11-04 15:46:19

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

Regards

...
List Manager

Build different lists for your site

Buy now!
...
CalcBuilder

Create dynamic calculators

Buy now!