Pass data from parent interface to a children ones

Certified Associate Developer

I'm creating a new interface object to display several pie charts. The data for the charts is stored in a local variables in the parent interface object which references my children interfaces. In terms of performance, what is the most efficient method to access the data required for the pie charts? Create a rule input on the children interfaces and pass the local variables data from the parent interface or query the data separately in the child interface to avoid passing it from the parent interface?

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Associate Developer

    Hi  ,

    Firstly It is not a best practice to display multiple Pie charts in a single interface: Pie Charts.

    Use the charts wisely as described: Chart Types

    If the pie charts are using the same data and different filters, It is recommended to only write the filters in local variables and pass them into child interfaces rule inputs.

    I wont recommend you to query the whole record data into local variable in parent interface and pass into the child interfaces.

    You can directly use Record Type as Data source or other according to your use-case.

    Hope this helps you!!!

Reply
  • 0
    Certified Associate Developer

    Hi  ,

    Firstly It is not a best practice to display multiple Pie charts in a single interface: Pie Charts.

    Use the charts wisely as described: Chart Types

    If the pie charts are using the same data and different filters, It is recommended to only write the filters in local variables and pass them into child interfaces rule inputs.

    I wont recommend you to query the whole record data into local variable in parent interface and pass into the child interfaces.

    You can directly use Record Type as Data source or other according to your use-case.

    Hope this helps you!!!

Children
No Data