Custom function

Stimulsoft Reports.JS discussion
Post Reply
sivaw38382
Posts: 6
Joined: Mon Jun 13, 2022 7:55 am

Custom function

Post by sivaw38382 »

Hi everyone.

I need do a pointed list in the text component with a simple array (eg. ["apple","banana","pineapple"]) and an array of objects (eg. [{"name":"Rick"}, {"name":"Sophia"}, {"name": "Hanna"}]) from DataSource. I cant use different components because i dont use anchor.
How can i do that? (i tried to search it but i didnt found)

Thank you in advance.
Lech Kulikowski
Posts: 6243
Joined: Tue Mar 20, 2018 5:34 am

Re: Custom function

Post by Lech Kulikowski »

Hello,

Sorry, maybe we did not exactly understand your task. Could you explain your issue in more detail?

Thank you.
sivaw38382
Posts: 6
Joined: Mon Jun 13, 2022 7:55 am

Re: Custom function

Post by sivaw38382 »

In a text component i want to do a pointend list based on an array like this ["apple","banana","pineapple"] and like this [{"name":"Rick"}, {"name":"Sophia"}, {"name": "Hanna"}], how can i do that?
Lech Kulikowski
Posts: 6243
Joined: Tue Mar 20, 2018 5:34 am

Re: Custom function

Post by Lech Kulikowski »

Hello,

How that data is present in the data source? Could you send us test data for analysis?

Thank you.
sivaw38382
Posts: 6
Joined: Mon Jun 13, 2022 7:55 am

Re: Custom function

Post by sivaw38382 »

Hi, this is my datasource, i want to show in a Text Component (and only in this component, i cant use a different one) a pointed list of root_BillingBand and root_Privacy.Cd like this examples:

root_BillingBand:
  • 1
  • 3
  • 9
root_Privacy.Cd:
  • a
  • c
  • e
  • f
Attachments
example_data_source.json
(1008 Bytes) Downloaded 91 times
Lech Kulikowski
Posts: 6243
Joined: Tue Mar 20, 2018 5:34 am

Re: Custom function

Post by Lech Kulikowski »

Hello,

You can use the following function to join all values from the data source:
{Func.EngineHelper.JoinColumnContent(datasourcename, "columnname", "delimiter")}

Or add your own function.

Thank you.
Post Reply