Skip to content

Set data issues #129

@artkinx

Description

@artkinx

I have been able to set up the plugin in my own custom interface but I am having issues loading the saved JSON data from sqlserver.
I have saved fine but on reloading the page, the setdata function doesn't work.

This is a sample of the JSON data as is from my db:

{
"operators": { "0": { "properties": { "title": "

                                        "DESK_OFFICER"
                                    
                                ",        "inputs": {          "input_0": {            "label": "Input 1"          }        },        "outputs": {          "output_0": {            "label": "Output 1"          }        }      },      "left": 200,      "top": 520    },    "1": {      "properties": {        "title": "

                                    
                                        
                                        "HOD"
                                    
                                ",        "inputs": {          "input_0": {            "label": "Input 1"          }        },        "outputs": {          "output_0": {            "label": "Output 1"          }        }      },      "left": 190,      "top": 230    },    "2": {      "properties": {        "title": "

                                    
                                        
                                        "ECTECH"
                                    
                                ",        "inputs": {          "input_0": {            "label": "Input 1"          }        },        "outputs": {          "output_0": {            "label": "Output 1"          }        }      },      "left": 190,      "top": 0    },    "3": {      "properties": {        "title": "

                                    
                                        
                                        "EVC"
                                    
                                ",        "inputs": {          "input_0": {            "label": "Input 1"          }        },        "outputs": {          "output_0": {            "label": "Output 1"          }        }      },      "left": 380,      "top": 80    },    "4": {      "properties": {        "title": "HOU"
                                    
                                ",        "inputs": {          "input_0": {            "label": "Input 1"          }        },        "outputs": {          "output_0": {            "label": "Output 1"          }        }      },      "left": 190,      "top": 380    }  },  "links": {    "0": {      "fromOperator": 2,      "fromConnector": "output_0",      "fromSubConnector": 0,      "toOperator": 3,      "toConnector": "input_0",      "toSubConnector": 0    },    "1": {      "fromOperator": 3,      "fromConnector": "output_0",      "fromSubConnector": 0,      "toOperator": 1,      "toConnector": "input_0",      "toSubConnector": 0    },    "2": {      "fromOperator": 4,      "fromConnector": "output_0",      "fromSubConnector": 0,      "toOperator": 0,      "toConnector": "input_0",      "toSubConnector": 0    },    "4": {      "fromOperator": 1,      "fromConnector": "output_0",      "fromSubConnector": 0,      "toOperator": 4,      "toConnector": "input_0",      "toSubConnector": 0    }  },  "operatorTypes": {}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions