CalcBuilder Forum

Calculator Help - populating sum into another form(rsform)

Usuario moon_512 2012-05-30 23:28:10

Goal: to grab the calculated total sum("total square feet"), and populating that onto another form(RSform) on another page automatically.

Step 1: My client wants his calculator to look exactly like this:$oGridControllerW&UserForm=SpaceCalculator.ascx&AppModule=ConnectPopups/SpaceCalculator&PostBack=true&WaitPage=true&Title=Space%20Calculator&WaitTitle=Processing%20Your%20Request

Step 2: He wants the total rentable square feet to calculate then automatically grab the information and shove it onto a survey on a totally different page>>> This will make it user friendly for a customer. The survey is actually an RSform, totally different software, but i'm sure the php code is the same in the background right?

Is this possible? Please help.

Moonsoft support 2012-05-31 10:40:07

we've checked your example page, and it is a calculator that you could build with calcbuilder. About passing values to another component, you could use different approaches, the right one will depend on how data could be recovered on the destination. Here are the ones we can think of, you should contact your support of rsforms to find out how you can recover and handle this data, if possible.

1.- Store values at user session. Place at the calculator code section the code to store your value(s)

$session = JFactory::getSession();
$session->set('myresult1', 'value1');
$session->set('myresult2', 'value2');

2.- Create a link with url variables to be printed as result of calculator.

$result="html Link with ?param1=value1¶m2=value2...";

3.- Store your values at database. Place at the calculator code section the query needed to populate destination tables:

$db =& JFactory::getDBO();
$query = "/* some valid sql string */";
$result = $db->query();

Hope this helps, regards

Edited by MSTeam - 31.05.2012 10:42

Usuario moon_512 2012-05-31 18:30:10

Great, just let me know how much and I'll happily give you access to my clients website.

Moonsoft support 2012-06-01 10:32:45

Ok, sent an email with the details.
Thank you very much, regards

Support/development 40 hours

With the peace of mind of having a professional team at your service (20% discount)

Buy now!

Perfect for small code changes or to correct any bug at your site

Buy now!