Skip to main content


 

Symptoms

 


String '$0' gets visually converted to '{1}' in List View's text box display control.
 

 

Diagnoses

 


Seems to be an issue with the functions that convert the data to text and then create HTML to display on the list view.
 

 

Resolution

Workaround:
The following jQuery script replaces '{1}' with '$0' on the List View (on the local display only, no backend data is changed).

Steps:
- Create an invisible, literal Data Label, and add an expression to it with the following text:

<script>
    $.each($('spancclass=runtime-list-item]'), function(index, element) {
        $(element).text($(element).text().replace('{1}', '$0'));
    });
</script>

- Create a new (unbound) rule named '$0 Fix' with the following actions:
    - Transfer data: Check the literal Data Label but leave the input blank
    - Transfer data: Check the literal Data Label and drag in the jQuery Expression
    
- Use the 'execute another rule' action to execute the '$0 Fix' rule on the last line of the following rules (if they exist):
   'When the View executed List item changed'
   'When the View executed List item added'
   'When the View executed Initialize'
   'When Save ToolBar Button is Clicked'
   'When Refresh List ToolBar Button is Clicked'

 

 



 
Be the first to reply!

Reply