Marketcircle    Forums  Hop To Forum Categories  Extending Daylite  Hop To Forums  Creating HUD Widgets    Performing simple maths
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Apprentice
Posted
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.
 
Posts: 2 | Registered: August 09, 2007Reply With QuoteEdit or Delete MessageReport This Post
Pro
Picture of Andrew Migliore
Posted Hide Post
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.


Andrew Migliore
Lurker Films
http://www.lurkerfilms.com
 
Posts: 129 | Location: Portland, OR | Registered: August 15, 2007Reply With QuoteEdit or Delete MessageReport This Post
Pro
Picture of Andrew Migliore
Posted Hide Post
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,


Andrew Migliore
Lurker Films
http://www.lurkerfilms.com
 
Posts: 129 | Location: Portland, OR | Registered: August 15, 2007Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

Marketcircle    Forums  Hop To Forum Categories  Extending Daylite  Hop To Forums  Creating HUD Widgets    Performing simple maths

© Copyright 2006 Marketcircle Inc. All rights reserved.