Skip to content

Replies

0
Daniel van Cann
Daniel van Cann answered on Jan 16, 2013 9:00 AM

Hello Rob,

We have a similar problem, how can we solve this issue?

I know I'm missing a namespace but when I add it using this method:

<add namespace="http:\\schemas.infragistics.com\xaml\reports" />

I get a compilation error

Regards,

Daniel van Cann

0
Daniel van Cann
Daniel van Cann answered on Aug 7, 2012 7:39 PM

Hi Martin,

Tanx for the tip to use the TR element. this works fine but again as soon as i try to Use the column value if get nothing, I did what you said and checked the console and indeed I got an Syntax error:

  1. Uncaught SyntaxError: Unexpected token { jquery.tmpl.js:314
  1. jQuery.extend.templatejquery.tmpl.js:181
  2. $.widget._generateRowTemplateig.ui.min.js:1
  3. $.widget._renderRecordsig.ui.min.js:1
  4. $.widget._renderDataig.ui.min.js:1
  5. $.ig.DataSource.$.ig.DataSource.Class.extend._invokeCallbackig.ui.min.js:1
  6. $.ig.DataSource.$.ig.DataSource.Class.extend.dataBindig.ui.min.js:1
  7. $.widget.dataBindig.ui.min.js:1
  8. $.widget._createig.ui.min.js:1
  9. b.Widget._createWidgetjquery-ui.min.js:21
  10. $.widget._createWidgetig.ui.min.js:1
  11. b.widget.b.(anonymous function).(anonymous function)jquery-ui.min.js:19
  12. b.widget.bridge.b.fn.(anonymous function)jquery-ui.min.js:20
  13. b.widget.bridge.b.fn.(anonymous function)jquery-ui.min.js:20
  14. (anonymous function)OverView:69

I used the following 2 statements the first did work but the second didn't show anything 

"<tr {{if 0 == '0'}} class='rowCriticalAttention'{{/if}} >  <td>  ${NO001_ID} </td></tr>"

"<tr {{if ${NotificationStatus} == '0'}} class='rowCriticalAttention'{{/if}} >  <td>  ${NO001_ID} </td></tr>"

Do you have any idea what the problem can be?

Best regards,

Daniël van Cann

0
Daniel van Cann
Daniel van Cann answered on Aug 2, 2012 10:54 AM

I just tried this:

 .RowTemplate("<tr><td> {{if 0 == 0}}<span class='rowCriticalAttention'>${NO001_ID}</span> {{else}} ${NO001_ID} {{/if}}" + "</td></tr>") _

and it also worked so the problem is in if part

{{if parseInt(${NotificationStatus}) == 0}}

something in this code is wrong but i can't figure out what the problem is

First I thought maybe the parse went wrong so i tried:

Integer.Parse

CInt()

parseInt,

but none of them worked, any idea?

Bert regards,

Daniel van Cann

0
Daniel van Cann
Daniel van Cann answered on Aug 2, 2012 10:12 AM

I tried this:

 .RowTemplate("<tr><td> <span class='rowCriticalAttention'>${NO001_ID}</span> " + "</td></tr>") _

and it worked but only the text backgroud color is set, I don't know if that is normal?

than I tried this:

"<tr><td> {{if parseInt(${NotificationStatus}) == 0}}<span class='rowCriticalAttention'>${NO001_ID}</span> {{else}} ${NO001_ID} {{/if}}" + "</td></tr>") _

and nothing happend, only the header and column names where shown.

Best regards,

Daniel van Cann

0
Daniel van Cann
Daniel van Cann answered on Jul 31, 2012 10:19 AM

The sorting I fixed, many thanks. 

the Conditional Row Template is a good example but there is no .vbhtml file availible, and my gues is that I have a smal syntax error in my row template code

i've tried multiple syntaxes but can't get it to work, this is my latest version, maybe anyone knows what i'm doing wrong?


.RowTemplate("<tr><td> {{if parseInt(${NotificationStatus}) == 0}}" +
"<span class='criticalAttention'>${NO001_ID}</span>" +
"{{elseif parseInt(${NotificationStatus}) == 1 || parseInt(${NotificationStatus}) == 2 }}" +
"<span class='attention'>${NO001_ID}</span>" +
"{{else}} ${NO001_ID}{{/if}}" + "</td>" +
"<td>{{if parseInt(${NotificationStatus}) == 0}}" +
"<span class='criticalAttention'>${NotificationName}</span>" +
"{{elseif parseInt(${NotificationStatus}) == 1 || parseInt(${NotificationStatus}) == 2}}" +
"<span class='attention'>${NotificationName}</span>" +
"{{else}} ${NotificationName}{{/if}}" + "</td>" +
"<td>{{if parseInt(${NotificationStatus}) == 0}}" +
"<span class='criticalAttention'>${NotificationDescription}</span>" +
"{{elseif parseInt(${NotificationStatus}) == 1 || parseInt(${NotificationStatus}) == 2}}" +
"<span class='attention'>${NotificationDescription}</span>" +
"{{else}} ${NotificationDescription}{{/if}}" + "</td>" +
"<td>{{if parseInt(${NotificationStatus}) == 0}}" +
"<span class='criticalAttention'>${NotificationStatus}</span>" +
"{{elseif parseInt(${NotificationStatus}) == 1 || parseInt(${NotificationStatus}) == 2}}" +
"<span class='attention'>${NotificationStatus}</span>" +
"{{else}} ${NotificationStatus}{{/if}}" + "</td>" +
"<td>{{if parseInt(${NotificationStatus}) == 0}}" +
"<span class='criticalAttention'>${NotificationTime}</span>" +
"{{elseif parseInt(${NotificationStatus}) == 1 || parseInt(${NotificationStatus}) == 2}}" +
"<span class='attention'>${NotificationTime}</span>" +
"{{else}} ${NotificationTime}{{/if}}" + "</td></tr>") _