My Products
Help
omelhus
PARTNER

Setting sortSequenceNo on formElement

by omelhus

Hey,

 

Would it be possible to open up for setting the sortSequenceNo on formElement? Inserting rectangles using the forms editor becomes kind of weird...

 

omelhus_0-1728495983810.png

 

I know I could use the insertAtRow, but I still won't be able to alter the sort seqence afterwards.

 

Can't possibly see the issue with allowing me to set the sort sequence.

 

- Ole

 

1 REPLY 1
omelhus
PARTNER

by omelhus

I've now tried with insertAtRow as well, and now I'm getting Error: You are not authorised to edit primary keys.

 

mutation CreateFormElement($customerNo: Int!, $create: FormElement_Insert_Input!, $insertAtRow: FilterExpression_FormElement, $insertPosition: InsertPosition) {
  useCustomer(no: $customerNo) {
    formElement_create(
      values: [$create]
      insertAtRow: $insertAtRow
      insertPosition: $insertPosition
    ) {
      affectedRows
    }
  }
}

 {
    "customerNo": 1182082,
    "insertAtRow": {
      "formType": {
        "_eq": 6
      },
      "formNo": {
        "_eq": 11
      },
      "lineNo": {
        "_eq": 2
      }
    },
    "insertPosition": "BEFORE",
    "create": {
      "formType": 6,
      "formNo": 11,
      "x": 4000,
      "y": 1500,
      "dx": 7500,
      "dy": 500,
      "textOrParameters": "New Element",
      "justification": 1,
      "elementType": 1,
      "fontSize": 10
    }
  }