NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: rupertvz on May 22, 2013, 12:45:36 PM

Title: NetWebBrowse formula
Post by: rupertvz on May 22, 2013, 12:45:36 PM
Hi Guys,

I have an extremely long formula to use in a NetWebBrowse.  I am unable to truncate.
13 periods, and 4 x values for each period to show a total in a single column.

The Display field of the column automatically trims the formula.
Is there a way that I can embed code to calculate a total into a local variable to show in the NetWebBrowse?
Title: Re: NetWebBrowse formula
Post by: kevin plummer on May 22, 2013, 03:29:50 PM
Try this...

Create a local variable string, long enough to fit your formula + some more

Add it to the template where you are trying to put your formula

search your source code for this variable and the first embed before it add your formula to the local variable.

cheers,

kev
Title: Re: NetWebBrowse formula
Post by: Bruce on May 22, 2013, 09:25:42 PM
hi Rupert,

template fields have limits, so Kevin's idea is the right one.

cheers
Bruce
Title: Re: NetWebBrowse formula
Post by: rupertvz on May 23, 2013, 12:23:19 AM
Hi Kevin,

Thanks for your help ..

I created a local variable (string 2000)
Set the variable LOC:SOH = 'myexpression' (to store the full expression in the local variable)
But it didn't tally / show the total in the NetWebBrowse.

I then used the same embed point, and set the variable
LOC:SOH = myexpression
(basically adding the "value of the expression" into the local variable, instead of the formula itself)

This worked :-)

I am sure you meant that I should store the full expression in the local variable and not the value ... ?
Title: Re: NetWebBrowse formula
Post by: Bruce on May 23, 2013, 10:34:34 PM
no, he meant you should set the value - as you did.

cheers
Bruce