UItemplate to template node (string output)

hi all am trying to get the data from ui template node to template node(string output) , i have uitemplate node which has a initiallise button, if i press that button, rows (data) are displayed in dashboard , consisting of headers like ,Customer, Addressline1, Addresline2, Contact no, if i select these rows , the data in the row should come in string output

output now getting like this
^XA
~TA000
~JSN
^LT0
^MNW
^MTT
^PON
^PMN
^LH0,0
^JMA
^PR6,6
~SD15
^JUS
^LRN
^CI27
^PA0,1,1,0
^XZ
^XA
^MMT
^PW831
^LL1199
^LS0
^FT121,1130^A0B,51,51^FH^CI28^FDTO/FROM^FS^CI27
^FT236,1123^A0B,51,51^FH^CI28^FD^FS^CI27
^FT406,1123^A0B,51,51^FH^CI28^FD^FS^CI27
^FT523,1117^A0B,51,51^FH^CI28^FD^FS^CI27
^FT627,1123^A0B,51,51^FH^CI28^FD^FS^CI27
^FT703,1111^A0B,51,51^FH^CI28^FD^FS^CI27
^PQ,0,1,,,Y
^XZ

am expecting the output as like
^XA
~TA000
~JSN
^LT0
^MNW
^MTT
^PON
^PMN
^LH0,0
^JMA
^PR6,6
~SD15
^JUS
^LRN
^CI27
^PA0,1,1,0
^XZ
^XA
^MMT
^PW831
^LL1199
^LS0
^FT121,1130^A0B,51,51^FH^CI28^FDTO/FROM^FS^CI27
^FT236,1123^A0B,51,51^FH^CI28^FDPrem^FS^CI27
^FT406,1123^A0B,51,51^FH^CI28^FD123^FS^CI27
^FT523,1117^A0B,51,51^FH^CI28^FDfile10^FS^CI27
^FT627,1123^A0B,51,51^FH^CI28^FD345^FS^CI27
^FT703,1111^A0B,51,51^FH^CI28^FD^FS^CI27
^PQ,0,1,,,Y
^XZ

^XA
~TA000
~JSN
^LT0
^MNW
^MTT
^PON
^PMN
^LH0,0
^JMA
^PR6,6
~SD15
^JUS
^LRN
^CI27
^PA0,1,1,0
^XZ
^XA
^MMT
^PW831
^LL1199
^LS0
^FT121,1130^A0B,51,51^FH^CI28^FDTO/FROM^FS^CI27
^FT236,1123^A0B,51,51^FH^CI28^FDjaffer^FS^CI27
^FT406,1123^A0B,51,51^FH^CI28^FD23^FS^CI27
^FT523,1117^A0B,51,51^FH^CI28^FDfile20^FS^CI27
^FT627,1123^A0B,51,51^FH^CI28^FD1234^FS^CI27
^FT703,1111^A0B,51,51^FH^CI28^FD^FS^CI27
^PQ,0,1,,,Y
^XZ

Flows attached below , thanks in advance for guiding

[
    {
        "id": "acf08db3907b6fdf",
        "type": "tab",
        "label": "Flow 4",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "855fe5dc122b5be3",
        "type": "group",
        "z": "acf08db3907b6fdf",
        "style": {
            "stroke": "#999999",
            "stroke-opacity": "1",
            "fill": "none",
            "fill-opacity": "1",
            "label": true,
            "label-position": "nw",
            "color": "#a4a4a4"
        },
        "nodes": [
            "1175d76221348d2c",
            "27f09b8371eb55c4",
            "650e7e6e0ddcba6d",
            "b9ea233e4f32688c",
            "5cb032713a7ef529"
        ],
        "x": 74,
        "y": 59,
        "w": 732,
        "h": 322
    },
    {
        "id": "1175d76221348d2c",
        "type": "change",
        "z": "acf08db3907b6fdf",
        "g": "855fe5dc122b5be3",
        "name": "Add Headers",
        "rules": [
            {
                "t": "set",
                "p": "headers",
                "pt": "msg",
                "to": "[{\"title\":\"Icon\",\"value\":\"icon\"},{\"title\":\"Customer\",\"value\":\"Customer\",\"sortable\":true},{\"title\":\"Addressline1\",\"value\":\"Addressline1\",\"sortable\":true},{\"title\":\"Addressline2\",\"value\":\"Addressline2\",\"sortable\":true},{\"title\":\"Contactno\",\"value\":\"Contactno\",\"sortable\":true}]",
                "tot": "json"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 230,
        "y": 260,
        "wires": [
            [
                "5cb032713a7ef529"
            ]
        ]
    },
    {
        "id": "27f09b8371eb55c4",
        "type": "ui-button",
        "z": "acf08db3907b6fdf",
        "g": "855fe5dc122b5be3",
        "group": "cc94b242cf03a701",
        "name": "",
        "label": "initialliseall",
        "order": 0,
        "width": 0,
        "height": 0,
        "passthru": false,
        "tooltip": "",
        "color": "",
        "bgcolor": "",
        "className": "",
        "icon": "",
        "payload": "[{\"Customer\":\"Prem\",\"Addressline1\":123,\"Addressline2\":\"file10\",\"Contactno\":345},{\"Customer\":\"Jaffer\",\"Addressline1\":23,\"Addressline2\":\"file20\",\"Contactno\":1234}]",
        "payloadType": "json",
        "topic": "topic",
        "topicType": "msg",
        "x": 170,
        "y": 100,
        "wires": [
            [
                "1175d76221348d2c"
            ]
        ]
    },
    {
        "id": "650e7e6e0ddcba6d",
        "type": "template",
        "z": "acf08db3907b6fdf",
        "g": "855fe5dc122b5be3",
        "name": "",
        "field": "payload",
        "fieldType": "msg",
        "format": "handlebars",
        "syntax": "mustache",
        "template": "^XA\n~TA000\n~JSN\n^LT0\n^MNW\n^MTT\n^PON\n^PMN\n^LH0,0\n^JMA\n^PR6,6\n~SD15\n^JUS\n^LRN\n^CI27\n^PA0,1,1,0\n^XZ\n^XA\n^MMT\n^PW831\n^LL1199\n^LS0\n^FT121,1130^A0B,51,51^FH\\^CI28^FDTO/FROM^FS^CI27\n^FT236,1123^A0B,51,51^FH\\^CI28^FD{{{payload.Customer}}}^FS^CI27\n^FT406,1123^A0B,51,51^FH\\^CI28^FD{{{payload.Addressline1}}}^FS^CI27\n^FT523,1117^A0B,51,51^FH\\^CI28^FD{{{payload.Addressline2}}}^FS^CI27\n^FT627,1123^A0B,51,51^FH\\^CI28^FD{{{payload.Contactno}}}^FS^CI27\n^FT703,1111^A0B,51,51^FH\\^CI28^FD{{{payload.mob}}}^FS^CI27\n^PQ{{{payload.PQ}}},0,1,,,Y\n^XZ",
        "output": "str",
        "x": 500,
        "y": 300,
        "wires": [
            [
                "b9ea233e4f32688c"
            ]
        ]
    },
    {
        "id": "b9ea233e4f32688c",
        "type": "debug",
        "z": "acf08db3907b6fdf",
        "g": "855fe5dc122b5be3",
        "name": "debug 2491",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 690,
        "y": 340,
        "wires": []
    },
    {
        "id": "5cb032713a7ef529",
        "type": "ui-template",
        "z": "acf08db3907b6fdf",
        "g": "855fe5dc122b5be3",
        "group": "cc94b242cf03a701",
        "page": "",
        "ui": "",
        "name": "File Explorer",
        "order": 2,
        "width": "5",
        "height": "6",
        "head": "",
        "format": "<template>\n    <!-- Provide an input text box to search the content -->\n    <v-text-field v-model=\"search\" label=\"Search\" prepend-inner-icon=\"mdi-magnify\" single-line variant=\"outlined\"\n        hide-details></v-text-field>\n    <v-data-table \n      v-model:search=\"search\" \n      :items=\"msg?.payload\" \n      :headers=\"msg?.headers\"\n      v-model=\"selected\"\n      item-selectable=\"selectable\"\n      select-strategy=\"all\"\n      show-select    \n      return-object\n    >\n\n      <template v-slot:item.icon=\"{ item }\">\n        <v-icon :icon=\"item.icon\"></v-icon>\n      </template>\n      <template v-slot:item.fname=\"{ item }\">\n        <v-chip variant=\"tonal\" :color=\"item.chipcolor\" @click=\"send({topic: 'clicked', payload: item})\">{{ item.fname }}</v-chip>\n      </template>\n      <template v-slot:item.stat.size_text=\"{ item }\">\n        <div class=\"text-right\">{{ item.stat.size_text }}</div>\n      </template>\n\n    </v-data-table>\n</template>\n\n<script>\n    export default {\n    data () {\n      return {\n        selected: [],\n        search: ''\n      }\n    },\n    watch: {\n        selected: function () {\n          this.send({ payload: this.selected});\n        },\n        msg: function () {\n          this.selected = [];\n          this.search = '';\n        }\n    },\n    methods: {\n        // add a function to determine the color of the progress bar given the row's item\n\n    }\n  }\n</script>",
        "storeOutMessages": true,
        "passthru": false,
        "resendOnRefresh": true,
        "templateScope": "local",
        "className": "",
        "x": 390,
        "y": 200,
        "wires": [
            [
                "650e7e6e0ddcba6d"
            ]
        ]
    },
    {
        "id": "cc94b242cf03a701",
        "type": "ui-group",
        "name": "Group Name",
        "page": "44faa6a888d95f12",
        "width": "6",
        "height": "1",
        "order": -1,
        "showTitle": true,
        "className": "",
        "visible": "true",
        "disabled": "false"
    },
    {
        "id": "44faa6a888d95f12",
        "type": "ui-page",
        "name": "templatetest",
        "ui": "cb79bc4520925e32",
        "path": "/page4",
        "icon": "home",
        "layout": "grid",
        "theme": "904b59e4de2fc40a",
        "order": -1,
        "className": "",
        "visible": "true",
        "disabled": "false"
    },
    {
        "id": "cb79bc4520925e32",
        "type": "ui-base",
        "name": "templatetest1",
        "path": "/dashboard",
        "includeClientData": true,
        "acceptsClientConfig": [
            "ui-notification",
            "ui-control"
        ],
        "showPathInSidebar": false
    },
    {
        "id": "904b59e4de2fc40a",
        "type": "ui-theme",
        "name": "Basic Blue Theme",
        "colors": {
            "surface": "#4d58ff",
            "primary": "#0094ce",
            "bgPage": "#eeeeee",
            "groupBg": "#ffffff",
            "groupOutline": "#cccccc"
        },
        "sizes": {
            "pagePadding": "12px",
            "groupGap": "12px",
            "groupBorderRadius": "4px",
            "widgetGap": "12px"
        }
    }
]


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.