| Author |
Message |
|
|
|
Thanks a lot. I do it ASAP.
|
 |
|
|
I Know that IE8 is not in the Supported Browsers list.
Anyway, Here is my problem : On IE8, if I use a dynamic graphic (vertical level feg) It is always displayed empty.
Any idea about was going wrong?
|
 |
|
|
Hi,
Just asked an employee to make a french translation.
when I put this file in mango and make it usable, I've got trouble with french chars : é à ...
If the letter is in a DataPoint , no problem.
It it is in the translation file I get an ? ...
I think it as something to deal with Tomcat conf but not sure.
Using tomcat6 / java 1.6 OpenJDK / fedora 11
locales are fr_FR.UTF-8
|
 |
|
|
Well I finally did it via CustomView ...
Things were easier once I realize that code I can add between <view:scriptPoint> and </view:scriptPoint> was the code for the
function(value, time) and should be in javascript.
So my code looks like that :
in a js file the declaration of my function.
in the jsp :
Code:
<h3>Roof n° 1 <img id="scripted" src="images/hourglass.png"/>
<SPAN id="sperreur" style="color: red"></SPAN>
<view:scriptPoint xid="DP_DP_999973">
if (value == "0") {
$("scripted").src = "graphics/BlinkingLights/light_green.gif";
binaryValue = true;
}
else {
$("scripted").src = "graphics/BlinkingLights/light_red.gif";
$("scripted").title = getErrorString(parseInt(value)) ;
$("sperreur").innerHTML = getErrorString(parseInt(value)) ;
binaryValue = false;
}
</view:scriptPoint>
</h3>
|
 |
|
|
Did not find the clue for using textrenderer.
Is there any exemple , doc ?
I guess that if I define a text renderer I'll be able to use it several times and that's exactly the point.
the other thing is that my points are from a modbus datasource... I'll have to create Meta-Points.
|
 |
|
|
Got some datapoints for retrieving error codes ( int
Wish to offer a view with errors in plain text.
thought about using customview with a function let's say
String V(int code , String lang)
and in viewpoint something like :
if(value == "0") image = greenflag
else
image = redflag
out.println(V(value.parseInt() , lang));
but got an error saying that my function does not exist.
where/how can I declare my function?
on another hand,
Is there any way to declare 'transformation scripts' on datapoints in mango. Let's say ScriptA.
and then custom Datapoint as the result of applying ScriptA on another datapoint.
something like MetaDatasource or pointslink , but with the same script for all points.
No copy/Paste
|
 |
|
|
Found a rxtx lock unable error...
Solved it by adding tomcat user to corresponding group.
And a reboot was mandatory ...
[Solved]
|
 |
|
|
Re oppenning my old thread
My distros : fedora 11 and Fedora 12
Java : OpenJDK
I guess I'll have some questions soon about serial ports.
I can access /dev/ttyS0 with tomcat user on the console but no serial port is present in the list on mango.
RXTX and others jars seem to be on the right place.
Is there any easy way to test it ?
Any configuration hint ?
|
 |
|
|
Hi there,
Just tried to install the last version on a new *nix machine.
I got a last trouble I did not success resolving yet maybe someone could help me :
the Help links don't works , when people click on the question mark, they get the div, qith "loading..." title and then a browser error message withou any explanation. WEB-INF/dox/[lang] files are here with the correct rights access
here are some troubles I resolved and their solution:
on tomcat launch mango try to get a write acces on several files :
-derby.log createTables.log -> looks like they try to write it on the lancher home directory with the tomcat launcher rights. for my installation it was on /root/ with user tomcat:tomcat rights
Solutions : giving right access on the directory to tomcat user / launching tomcat as root / making a hack on source code so that these files are in the usual mango log folder.
mango default log and DB folders did not suit my installation ... you'll find and manage to change the paths in log4j.xml and env.properties files you'll find in [mango]/WEB-INF/classes/
some troubles sending mails : a usual tomcat javamail trouble , mango com with its mail.jar but if there is any other mail.jar/javamail.jar/smtp.jar in tomcat's classpath sending mail migth be bogus - everything become OK when others are removed.
some trouble with i18n -> when your locale is not English mango looks strange : ???login.userId??? for exemple , there a thread here explaining where to configure i18n .
|
 |
|
|