# Copy data detail show to index show.

**URL:** <https://forum.kintone.dev/t/copy-data-detail-show-to-index-show/357>\
**Category:** General\
**Created:** [October 31, 2020, 4:34am UTC](https://forum.kintone.dev/t/copy-data-detail-show-to-index-show/357 "2020-10-31T04:34:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![legacy\_user](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/legacy_user/32/25_2.png) [@legacy\_user](https://forum.kintone.dev/u/legacy_user)\
**Post date:** [October 31, 2020, 4:34am UTC](https://forum.kintone.dev/t/copy-data-detail-show-to-index-show/357/1 "2020-10-31T04:34:03Z")

</div>

i did customize my code to total money each of the month(details show). so i want to copy this value (9 month) paste in index show on this records.

below picture:

9月: 300000 ![](https://developer.kintone.io/hc/user_images/0sNRHc8c8lZ3OGAsqyiW2g.png) ![](https://developer.kintone.io/hc/user_images/KzJ8r9Ua9pYXqcMEo9YCTg.png)

---

<div class="post-metadata">

**Author:** ![legacy\_user](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/legacy_user/32/25_2.png) [@legacy\_user](https://forum.kintone.dev/u/legacy_user)\
**Post date:** [October 31, 2020, 4:34am UTC](https://forum.kintone.dev/t/copy-data-detail-show-to-index-show/357/2 "2020-10-31T04:34:47Z")

</div>

thanks all, and have a nice day.

i need to copy the value of&nbsp; 9month(detail show)&nbsp; &nbsp;move to index show( number rows(6), and another rows copy and move value same!

---

<div class="post-metadata">

**Author:** ![legacy\_user](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/legacy_user/32/25_2.png) [@legacy\_user](https://forum.kintone.dev/u/legacy_user)\
**Post date:** [October 31, 2020, 11:20am UTC](https://forum.kintone.dev/t/copy-data-detail-show-to-index-show/357/3 "2020-10-31T11:20:59Z")

</div>

Hi NDC

Please could you share the code you are using now, and the community can help you based on that.

---

<div class="post-metadata">

**Author:** ![legacy\_user](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/legacy_user/32/25_2.png) [@legacy\_user](https://forum.kintone.dev/u/legacy_user)\
**Post date:** [October 31, 2020, 12:47pm UTC](https://forum.kintone.dev/t/copy-data-detail-show-to-index-show/357/4 "2020-10-31T12:47:03Z")

</div>

hi William Sayama,

tks your quickly support,

(function () {

“use strict”;

//In index page

kintone.events.on(‘app.record.index.show’, function (event) {

vargetData9MonthIndex = kintone.app.getFieldElements(‘m9\_total’);

// Automatic run detail page and get value of 9month add to 9month of index show

kintone.events.on(‘app.record.detail.show’, function (event) {

varpostData9MonthDetail = kintone.app.getFieldElements(‘m9\_total’).value;

getData9MonthIndex.textContent = postData9MonthDetail;

});

});

})();

---

<div class="post-metadata">

**Author:** ![legacy\_user](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/legacy_user/32/25_2.png) [@legacy\_user](https://forum.kintone.dev/u/legacy_user)\
**Post date:** [November 1, 2020, 8:46am UTC](https://forum.kintone.dev/t/copy-data-detail-show-to-index-show/357/5 "2020-11-01T08:46:01Z")

</div>

Done, tks Dev team…

---

<div class="post-metadata">

**Author:** ![legacy\_user](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/legacy_user/32/25_2.png) [@legacy\_user](https://forum.kintone.dev/u/legacy_user)\
**Post date:** [November 1, 2020, 10:54am UTC](https://forum.kintone.dev/t/copy-data-detail-show-to-index-show/357/6 "2020-11-01T10:54:08Z")

</div>

Hi NDC, would you mind sharing with the community on how you solved it? Thanks!

---

<div class="post-metadata">

**Author:** ![legacy\_user](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/legacy_user/32/25_2.png) [@legacy\_user](https://forum.kintone.dev/u/legacy_user)\
**Post date:** [November 4, 2020, 12:38am UTC](https://forum.kintone.dev/t/copy-data-detail-show-to-index-show/357/7 "2020-11-04T00:38:07Z")

</div>

Hi William Sayama,

Because i can not do it, so i am remove this function. and do it another way.

&nbsp;
