KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Datatable Display Issue: Dynamic Column #2600

Closed FIMM opened this topic on on Feb 28, 2022 - 1 comments

FIMM commented on Feb 28, 2022

My Array is like below:

Array (

[0] => Array
    (
        [DIST_NAME] => BANK MUAMALAT 1
        [dataArray] => Array
            (
                [0] => Array
                    (
                        [year] => 2021
                        [total] => 8
                    )

                [1] => Array
                    (
                        [year] => 2022
                        [total] => 5
                    )

            )

    )

[1] => Array
    (
        [DIST_NAME] => PUBLIC BANK
        [dataArray] => Array
            (
                [0] => Array
                    (
                        [year] => 2021
                        [total] => 2
                    )

            )

    )

[2] => Array
    (
        [DIST_NAME] => KFT INVESTMENT FUNDS BERHAD
        [dataArray] => Array
            (
                [0] => Array
                    (
                        [year] => 2021
                        [total] => 2
                    )

            )

    )

[3] => Array
    (
        [DIST_NAME] => MAYBAN SECURITY SDN BHD
        [dataArray] => Array
            (
                [0] => Array
                    (
                        [year] => 2021
                        [total] => 2
                    )

            )

    )

[4] => Array
    (
        [DIST_NAME] => PTBK UNIT TRUST BERHAD
        [dataArray] => Array
            (
                [0] => Array
                    (
                        [year] => 2021
                        [total] => 2
                    )

            )

    )

[5] => Array
    (
        [DIST_NAME] => AMINVESTMENT GLOBAL BANK BERHAD

        [dataArray] => Array
            (
                [0] => Array
                    (
                        [year] => 2021
                        [total] => 3
                    )

            )

    )

[6] => Array
    (
        [DIST_NAME] => EON FINANCE INVESTMENT BERHAD

        [dataArray] => Array
            (
                [0] => Array
                    (
                        [year] => 2021
                        [total] => 2
                    )

            )

    )

[7] => Array
    (
        [DIST_NAME] => ENG JIA SECURITIES SDN BHD
        [dataArray] => Array
            (
                [0] => Array
                    (
                        [year] => 2021
                        [total] => 2
                    )

            )

    )

[8] => Array
    (
        [DIST_NAME] => PENGURUSAN BERSAMA KUMIPA BERHAD

        [dataArray] => Array
            (
                [0] => Array
                    (
                        [year] => 2021
                        [total] => 3
                    )

            )

    )

[9] => Array
    (
        [DIST_NAME] => AFFIN HWANG ASSET MANAGEMENT BERHAD
        [dataArray] => Array
            (
                [0] => Array
                    (
                        [year] => 2021
                        [total] => 2
                    )

            )

    )

[10] => Array
    (
        [DIST_NAME] => PHILLIP MUTUAL BERHAD
        [dataArray] => Array
            (
                [0] => Array
                    (
                        [year] => 2021
                        [total] => 2
                    )

                [1] => Array
                    (
                        [year] => 2022
                        [total] => 2
                    )

            )

    )

[11] => Array
    (
        [DIST_NAME] => BANK COMCRADE SDN BHD
        [dataArray] => Array
            (
                [0] => Array
                    (
                        [year] => 2021
                        [total] => 3
                    )

            )

    )

[12] => Array
    (
        [DIST_NAME] => SYARIKAT MAJU JAYA FINANCE SDN BHD
        [dataArray] => Array
            (
                [0] => Array
                    (
                        [year] => 2021
                        [total] => 5
                    )

            )

    )

) I want to show table Like below example :

Please help me. Thanks

FIMM commented on Feb 28, 2022

Please give me one example like that.

Thanks

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
None yet

None