Support Article
SmartInfo not rendered on text hover with negative number format
SA-38340
Summary
Smart Info is not rendered on hovering over a cell in repeating grid layout ,when Negative format is configured as “Minus Sign + Style ref”
Error Messages
Not Applicable
Steps to Reproduce
- Add property with negative number value in a section rule with Formatted Text control.
- Format negative number with Negative Number + Minus Sign in Presentation tab.
- Configure On Hover Smart Info on the formatted text control.
- Run case and hover on the negative number.
Root Cause
A defect in Pegasystems’ code or rules :-
If text is configured with negative number format, then a new Span element is generated with negativeformat style class.Parent of Span element has onhover event.
Span element generated for Negative number does not have data-hover attribute. At run time processBehavior API is called(set on immediate parent element), it checks for parameter that is the data-hover attribute. From current element it checks if data-hover has "..." value or not .Based on the number of dots, it traverses back to the parent element where actual smartInfo hover event is configured.Since it is not finding any data-hover in current element, API failing and smartinfo does not show up.
Resolution
Perform the following local-change:
Add below script in non-auto section and keep that section in section where issue coming.
<script>
setTimeout(function(){
$(".NegativeNumber").attr("data-hover",".");
},0);
</script>
Published June 9, 2017 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.