|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
|
Apprentice |
Hi!
In the widget template I've got this: <h1>Project <$model.projectID$> </h1> Now, I'd like to perform some simple math on that projectID, like dividing with 100. How is that done? I tried <$model.projectID * 2 $> but it crashed daylite. |
||
|
|
Pro |
My quess is one of two things (not really knowing the scripting language).
Perhaps model.projectID is not a number but an object and therefore no '*' operator has been defined for it. So if you can convert projectID into a number perhaps that would work. Not sure how that would work though. |
|||
|
|
Pro |
I tried nesting this without luck as well.
Add=<$<$num$> + 1$><br /> <$identify num=<$num$>+1$> Add=<$num$><br /> I don't think the MiscKit supports these kinds of operations. Market Circle or anyone? [I think you will have to do what was done in the FTP widget and use javascript for any post processing. Try filtering the data set first using the miscKit, store the results in a javascript array and then use javascript to process each record.] This message has been edited. Last edited by: Andrew Migliore, |
|||
|
| Previous Topic | Next Topic | powered by eve community |
| Please Wait. Your request is being processed... |
|

