Hello
Is there a function (number_format) in liveCycle who can change a number style for exemple :
5000 => 5 000
50000 => 50 000 ...
In need to do it into a long String.
Thanks
Solved! Go to Solution.
Views
Replies
Total Likes
How about this?
A hidden numeric field (product) generates the formatted result.
// form1.page1.product::calculate - (FormCalc, client)
if (HasValue(multiplicand) & HasValue(multiplier)) then
$.rawValue = multiplicand * multiplier
else
$.rawValue = null
endif
// form1.page1.product_::calculate - (JavaScript, client)
if (form1.page1.product.isNull) {
this.rawValue = null;
}
else {
var productFormatted = product.formattedValue;
var comma = /\,/g;
this.rawValue = "The answer is " + productFormatted.replace(comma," ") + ".";
}
Steve
Views
Replies
Total Likes
The display of a text field or numeric field is not necessarily the way the value assigned to the object is stored. There are display patterns that can be used to differentiate the display from the value used in a operation.
Could you be more specific?
Steve
Hello
I need to write in textField the result of a calcul. But i want to write this result in with some text exemple :
var resultCalcul=3000 *10;
myfield.rawValue = "My text "+resultCalcul+" End of my result"; // i want ti write resultCalcul lick this 30 000
Thanks
Views
Replies
Total Likes
How about this?
A hidden numeric field (product) generates the formatted result.
// form1.page1.product::calculate - (FormCalc, client)
if (HasValue(multiplicand) & HasValue(multiplier)) then
$.rawValue = multiplicand * multiplier
else
$.rawValue = null
endif
// form1.page1.product_::calculate - (JavaScript, client)
if (form1.page1.product.isNull) {
this.rawValue = null;
}
else {
var productFormatted = product.formattedValue;
var comma = /\,/g;
this.rawValue = "The answer is " + productFormatted.replace(comma," ") + ".";
}
Steve
Views
Replies
Total Likes
Thanks
Views
Replies
Total Likes