주 컨텐츠로 이동
Adaptive Planning
최종 업데이트: 2023-06-23
참조: 모델링 및 큐브 시트 정의 JSON API의 열 재정렬

참조: 모델링 및 큐브 시트 정의 JSON API의 열 재정렬

다음에 대해서만 사용가능
/definition
쿼리 매개변수
reorderColumns
true입니다.

요청 예

요청 URI:
HTTPS://api.adaptiveplanning.com/api/rest/modeling/<version>/<tenant>/sheet/modeled/definition/?name=APIColumnsReorderTwo1660598383&reorderColumns=true
요청 본문 생성
본문 업데이트 요청
예상 결과
{ "properties": { "prefix": "APIColumnsReorderTwo1660598383" }, "columns": [ { "properties": { "name": "Level", "type": "LEVEL" } }, { "properties": { "name": "TextOne", "code": "TextOne", "type": "TEXT" } }, { "properties": { "name": "TextTwo", "code": "TextTwo", "type": "TEXT" } }, { "properties": { "name": "TextThree", "code": "TextThree", "type": "TEXT" } }, { "properties": { "name": "TextFour", "code": "TextFour", "type": "TEXT" } }, { "properties": { "name": "TextFive", "code": "TextFive", "type": "TEXT" } } ] }
{ "properties": { "prefix": "APIColumnsReorderTwo1660598383" }, "columns": [ { "properties": { "name": "TextFour", "code": "TextFour", "type": "TEXT" } }, { "properties": { "name": "TextSix", "code": "TextSix", "type": "TEXT" } }, { "properties": { "name": "TextThree", "code": "TextThree", "type": "TEXT" } }, { "properties": { "name": "TextSeven", "code": "TextSeven", "type": "TEXT" } }, { "properties": { "name": "TextEight", "code": "TextEight", "type": "TEXT" } }, { "properties": { "name": "TextOne", "code": "TextOne", "type": "TEXT" } } ] }
조건
reorderColumns
이전
false
, 열 목록을 업데이트한 후에는 다음과 같은 순서가 필요했을 것입니다.
  • Level
  • TextOne
  • TextTwo
  • Text3
  • TextFour
  • TextFive
  • TextSix
  • TextSeven
  • TextEight
사용
reorderColumns
다음으로 설정
true
, 대신 다음과 같이 순서를 지정합니다.
  • Level
  • TextTwo
  • TextFour
  • TextSix
  • Text3
  • TextSeven
  • TextEight
  • TextOne
  • TextFive
  • 열 재정렬 플래그는 신규 시트를 생성하거나 기존 시트를 업데이트할 때 켤 수 있습니다.
  • 일반적으로 재정렬 알고리즘은 API 요청의 열 순서에 우선순위를 둡니다. 그러나 모호성이 있거나 요청에 의해 언급되지 않은 열을 처리하는 경우 알고리즘은 열이 시트에 이미 있는 열의 순서에 우선순위를 둡니다.
  • 재정렬 알고리즘은 열을 앞으로 이동하지 않고 뒤로 이동합니다. 두 열이 자리(C, B)를 바꾸는 경우, 실제로 알고리즘은 C를 B 앞으로 이동하는 것이 아니라 B를 C 뒤로 이동합니다. 이는 B와 C 사이에 요청에 언급되지 않은 기존 열이 있는 경우에 중요합니다.