# responseRowFn 사용 문의

**URL:** <https://ask.selectfromuser.com/t/responserowfn/474>\
**Category:** 자유게시판\
**Tags:** responsefn\
**Created:** [8월 18, 2025, 4:34오전 UTC](https://ask.selectfromuser.com/t/responserowfn/474 "2025-08-18T04:34:22Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![austin](https://avatars.discourse-cdn.com/v4/letter/a/77aa72/32.png) [@austin](https://ask.selectfromuser.com/u/austin)\
**Post date:** [8월 18, 2025, 4:34오전 UTC](https://ask.selectfromuser.com/t/responserowfn/474/1 "2025-08-18T04:34:23Z")

</div>

안녕하세요. API 응답값 중 원하는 데이터만 표시하기 위해 responseRowFn 파라미터를 사용하려고 합니다.

현재 API를 POST로 요청하고 있는데, 해당 기능은 API GET유형일 때만 사용 가능한가요?

아래 API 응답값 중 message, execution\_id, execution\_version만 빼서 화면에 표시하고 싶은데, 방법 문의드립니다!

```auto
[
  {
    "success": true,
    "message": "배정이 성공적으로 완료되었습니다.",
    "execution_id": 779530798,
    "execution_version": 5,
    "assignments": [
      {
        "member_keeper_id": 886,
        "assigned_ticket_count": 5,
        "assigned_ticket_ids": [
          4639016,
          4639017,
          4639018,
          4639019,
          4639020
        ]
      }
    ],
    "penalty_dict": {
      "penalty_total": 3,
      "penalty_room_size": 0,
      "penalty_floor": 3,
      "penalty_task_count": 0
    }
  }
]

```

---

<div class="post-metadata">

**Author:** ![hbkim](https://yyz2.discourse-cdn.com/flex032/user_avatar/ask.selectfromuser.com/hbkim/32/23_2.png) [@hbkim](https://ask.selectfromuser.com/u/hbkim)\
**Post date:** [8월 19, 2025, 4:18오전 UTC](https://ask.selectfromuser.com/t/responserowfn/474/2 "2025-08-19T04:18:57Z")

</div>

안녕하세요.

[showResult 기능](https://docs.selectfromuser.com/guide/api-crud#%E1%84%8B%E1%85%B3%E1%86%BC%E1%84%83%E1%85%A1%E1%86%B8%E1%84%80%E1%85%A7%E1%86%AF%E1%84%80%E1%85%AA-%E1%84%8E%E1%85%A5%E1%84%85%E1%85%B5)을 사용하시면 좋을것 같습니다.

관련 추가 예제: [Axios post로 이미지 업로드후 response 활용](https://ask.selectfromuser.com/t/axios-post-response/145)

추가로 궁금하신점은 문의주시기 바랍니다.

감사합니다.

---

<div class="post-metadata">

**Author:** ![austin](https://avatars.discourse-cdn.com/v4/letter/a/77aa72/32.png) [@austin](https://ask.selectfromuser.com/u/austin)\
**Post date:** [8월 19, 2025, 4:51오전 UTC](https://ask.selectfromuser.com/t/responserowfn/474/3 "2025-08-19T04:51:56Z")

</div>

showResult: table로 했을 때 아래와 같이 뜨면 커스텀이 어렵나요?

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/selectfromuser/original/1X/3f67abc7c4f5a2864741bc01a161ad3db61b90ac.png)

---

<div class="post-metadata">

**Author:** ![hbkim](https://yyz2.discourse-cdn.com/flex032/user_avatar/ask.selectfromuser.com/hbkim/32/23_2.png) [@hbkim](https://ask.selectfromuser.com/u/hbkim)\
**Post date:** [8월 19, 2025, 6:10오전 UTC](https://ask.selectfromuser.com/t/responserowfn/474/4 "2025-08-19T06:10:30Z")

</div>

> [@Axios post로 이미지 업로드후 response 활용](https://ask.selectfromuser.com/t/axios-post-response/145):
>
> 셀렉트어드민의 http 블록을 통해 이미지를 업로드하고 응답을 즉시 사용하고 싶을때 방법입니다. showResult: table 을 통해 api response를 테이블 형태로 바꿔보세요. 필요시 showResultTemplate 으로 커스텀 가능합니다. 관련하여 궁금하신 사항은 문의주시면 안내드리겠습니다. 감사합니다. showResult: table 예제 이미지 showResultTemplate 커스텀 예제 이미지 예제 YAML 코드 blocks: - type: http axios: method: POST url: https://api.selectfromuser.com/sample-api/upload headers: Content-Type: multipart/form-data params: - key: title valu…

해당 글에 예제코드와 같이 적용 가능합니다.

---

<div class="post-metadata">

**Author:** ![austin](https://avatars.discourse-cdn.com/v4/letter/a/77aa72/32.png) [@austin](https://ask.selectfromuser.com/u/austin)\
**Post date:** [8월 19, 2025, 6:15오전 UTC](https://ask.selectfromuser.com/t/responserowfn/474/5 "2025-08-19T06:15:58Z")

</div>

table과 template을 혼용해서 사용하라는 말씀이신가요? ..

이미지 업로드와는 아무 상관이 없는데.. 항목에 object\_url과 같이 특정 키값이 나와야 하는데 0으로만 나오는 경우는 어떻게 해야될지 모르겠습니다.

---

<div class="post-metadata">

**Author:** ![hbkim](https://yyz2.discourse-cdn.com/flex032/user_avatar/ask.selectfromuser.com/hbkim/32/23_2.png) [@hbkim](https://ask.selectfromuser.com/u/hbkim)\
**Post date:** [8월 19, 2025, 6:25오전 UTC](https://ask.selectfromuser.com/t/responserowfn/474/6 "2025-08-19T06:25:20Z")

</div>

POST 사용시 응답을 처리하는 예제로 봐주시면 될것 같습니다.

YAML 코드를 첨부해주시면 더 확인해보겠습니다.

---

<div class="post-metadata">

**Author:** ![hbkim](https://yyz2.discourse-cdn.com/flex032/user_avatar/ask.selectfromuser.com/hbkim/32/23_2.png) [@hbkim](https://ask.selectfromuser.com/u/hbkim)\
**Post date:** [8월 19, 2025, 6:43오전 UTC](https://ask.selectfromuser.com/t/responserowfn/474/7 "2025-08-19T06:43:24Z")

</div>

rowsPath에 대한것도 함께 살펴보시면 도움이 되실것 같습니다.

> **[API 예제 | SelectAdmin](https://docs.selectfromuser.com/guide/api-example#rowspath-responsefn)**
>
> selectfromuser.com

---

<div class="post-metadata">

**Author:** ![austin](https://avatars.discourse-cdn.com/v4/letter/a/77aa72/32.png) [@austin](https://ask.selectfromuser.com/u/austin)\
**Post date:** [8월 20, 2025, 6:48오전 UTC](https://ask.selectfromuser.com/t/responserowfn/474/8 "2025-08-20T06:48:59Z")

</div>

```auto
modals:
        # 모델 실행 
        - path: execute/:create_at/:branch_code
          header: false
          height: 70%
          width: 800px
          name: 배정AI 모델을 실행합니다.
          blocks:
            - type: http
              reloadAfterSubmit: true
              formOptions:
                firstLabelWidth: 10px
              confirmText: 배정AI 모델을 실행하시겠습니까?
              toast: 실행 완료.
              toastOptions:
                - type: success
                - position: top-center
                - duration: 1000
              resource:
              axios: 
                method: POST
                url: https://task-keeper.11h.kr/v1/request/assignment
                timeout: 60000
                data: >
                  {
                      "create_at" : "{{create_at}}",
                      "branch_code" : "{{branch_code}}",
                      "custom_request": "{{custom_request}}"
                  }
                headers: >
                  {
                    "api-key": "{{APP_ASSIGNMENT_X_API_KEY}}",
                    "Content-Type": "application/json",
                    "Accept": "application/json"
                  }
              params:
                - key: APP_ASSIGNMENT_X_API_KEY
                  valueFromEnv: APP_ASSIGNMENT_X_API_KEY
                - key: create_at
                  valueFromRow: true
                - key: branch_code
                  valueFromRow: true
                - key: custom_request
                  group: 1
                  label: 사용자 요청
                  help: 요청 예시 - 재실클리닝은 eee 키퍼에게만 배정해줘. www 키퍼는 17층에 배정해줘 ... 
                  type: textarea
                  placeholder: 키퍼에게 특정 티켓을 배정하고 싶은 경우 조건을 입력해 주세요.
                  defaultValueFn: |
                    return ''
              # showResult: false # 응답결과 끄기
              showResult: table # 테이블로 표현

```

모달 안에서 API요청했을 때의 결과입니다. 파싱 방법 문의드립니다.

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/selectfromuser/original/1X/1655cf2e70e2eabca2c9d4383239bc7acc9e577f.png)

---

<div class="post-metadata">

**Author:** ![hbkim](https://yyz2.discourse-cdn.com/flex032/user_avatar/ask.selectfromuser.com/hbkim/32/23_2.png) [@hbkim](https://ask.selectfromuser.com/u/hbkim)\
**Post date:** [8월 20, 2025, 9:49오전 UTC](https://ask.selectfromuser.com/t/responserowfn/474/9 "2025-08-20T09:49:23Z")

</div>

세부사항 공유해주셔서 감사합니다!

기술팀 확인 내용 안내드립니다.

showResult: table 부분에 데이터가 object가 아닌 array인 경우 첫번째 값을 표시하도록 패치되었습니다.

추가로 도움이 필요하시다면 말씀해주세요.

---

<div class="post-metadata">

**Author:** ![austin](https://avatars.discourse-cdn.com/v4/letter/a/77aa72/32.png) [@austin](https://ask.selectfromuser.com/u/austin)\
**Post date:** [8월 21, 2025, 2:57오전 UTC](https://ask.selectfromuser.com/t/responserowfn/474/10 "2025-08-21T02:57:40Z")

</div>

혹시 패치된걸까요?  
말씀주신 것처럼 패치가 된거면 array[0] 기준으로 항목에 key, 값에 value가 들어간다는거죠?

---

<div class="post-metadata">

**Author:** ![hbkim](https://yyz2.discourse-cdn.com/flex032/user_avatar/ask.selectfromuser.com/hbkim/32/23_2.png) [@hbkim](https://ask.selectfromuser.com/u/hbkim)\
**Post date:** [8월 21, 2025, 5:35오전 UTC](https://ask.selectfromuser.com/t/responserowfn/474/11 "2025-08-21T05:35:23Z")

</div>

네 맞습니다.

추가로 처음에 공유해주신 json에서 message, execution\_id, execution\_version 만 보여주고 싶으신 경우  
아래와 같이 columns 기능으로 조절하실 수 있습니다.

```yaml
showResult: table
columns:
  success:
    hidden: true
  message:
    label: 메시지
  execution_id:
    label: 실행아이디
  execution_version:
    label: 실행버전
  assignements:
    hidden: true
  penallty_dict:
    hidden: true

```

---

<div class="post-metadata">

**Author:** ![austin](https://avatars.discourse-cdn.com/v4/letter/a/77aa72/32.png) [@austin](https://ask.selectfromuser.com/u/austin)\
**Post date:** [8월 21, 2025, 10:05오전 UTC](https://ask.selectfromuser.com/t/responserowfn/474/12 "2025-08-21T10:05:01Z")

</div>

처음에 테이블이 제대로 뜨다가 다시 기존처럼 변경됩니다. 확인 부탁드립니다!

---

<div class="post-metadata">

**Author:** ![hbkim](https://yyz2.discourse-cdn.com/flex032/user_avatar/ask.selectfromuser.com/hbkim/32/23_2.png) [@hbkim](https://ask.selectfromuser.com/u/hbkim)\
**Post date:** [8월 21, 2025, 10:22오전 UTC](https://ask.selectfromuser.com/t/responserowfn/474/13 "2025-08-21T10:22:21Z")

</div>

관련 이슈 확인되어 픽스되었습니다. 리포트 주셔서 감사합니다!
