Telerik Forums
Reporting Forum
0 answers
77 views

Is it possible to ignore case for JSON formatted web service data source results? So = Fields.Job_Title would pick up "job_Title": "General Labour"

Neil N
Top achievements
Rank 1
Iron
Veteran
Iron
 asked on 30 Sep 2022
0 answers
224 views

Say I have a list of object and I want a field to show one specific value from those objects.


public class Data
{
  public List<Obj> Objects { get; set;}
}

public class Obj
{
  public string Name { get; set;}
  public int Id { get; set;}
}

 

Data reportData = [

     {Name: abc, Id: 4 },

     {Name: def, Id: 5 }

]

I want to show the Name (in a textbox) where Id = 5. How do I do that?

 

I tried doing it with a user function where I pass the array but it throws an error when I try to cast object back to Obj class that (webservice.jsonObject can't be cast to Obj class). If I can't cast the object to Obj class, how am I supposed to filter it?

Miftaul
Top achievements
Rank 1
 asked on 12 May 2022
0 answers
57 views

Hello,

I have a problem with handlig error msg.

The report is using WebServiceDataSource. When it returns  500 response - the pdf is generated with just a information with status code.

But there is other data delivered in response, with property logRef for example. I want to show this property on generated pdf.

How can I achive that ?

Thank you

Top users last month
Patrick
Top achievements
Rank 1
Iron
Iron
Iron
MIS
Top achievements
Rank 1
Ross
Top achievements
Rank 1
Marcin
Top achievements
Rank 1
Iron
Iron
Sean
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?