Retrieve all fields used in the template

Stimulsoft Reports.JS discussion
Post Reply
fabien
Posts: 23
Joined: Thu Jul 15, 2021 9:07 am

Retrieve all fields used in the template

Post by fabien »

Hi,

Is there a way to retrieve fields used in the template ?

Code: Select all

"Pages": {
    "0": {
      "Ident": "StiPage",
      "Name": "Page1",
      "Guid": "1eca9e4964a1738efdfe870ccd380453",
      "Interaction": {
        "Ident": "StiInteraction"
      },
      "Border": ";;2;;;;;solid:Black",
      "Brush": "solid:",
      "Components": {
        "0": {
          "Ident": "StiDataBand",
          "Name": "DataBand2",
          "ClientRectangle": "0,0.4,19,1.4",
          "Interaction": {
            "Ident": "StiBandInteraction"
          },
          "Border": ";;;;;;;solid:Black",
          "Brush": "solid:",
          "Components": {
            "0": {
              "Ident": "StiText",
              "Name": "Text4",
              "ClientRectangle": "4.9,0.4,9.2,0.6",
              "Interaction": {
                "Ident": "StiInteraction"
              },
              "Text": {
                "Value": "{piece.[b]piece_num[/b]}"
              },
              "HorAlignment": "Center",
              "Font": ";16;;",
              "Border": ";;;;;;;solid:Black",
              "Brush": "solid:",
              "TextBrush": "solid:Black"
            }
          },
          "DataSourceName": "piece"
For example, "piece_num" in this piece of template, but this also applies to expressions, sort...
this could be used to reduce the amount of data when producing the data file.
is there a javascript method ?

Thanks,

Fabien.
Lech Kulikowski
Posts: 6238
Joined: Tue Mar 20, 2018 5:34 am

Re: Retrieve all fields used in the template

Post by Lech Kulikowski »

Hello,

Unfortunately, in the JS version, there is no such method.

Thank you.
Post Reply