# kintoneモバイルアプリの一覧画面の固定について

**URL:** <https://community.cybozu.dev/t/topic/6861>\
**Category:** kintone 開発相談\
**Created:** [2020 年 11 月 27 日午前 7:46 UTC](https://community.cybozu.dev/t/topic/6861 "2020-11-27T07:46:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Legacy\_Account2387](https://avatars.discourse-cdn.com/v4/letter/l/e8c25b/32.png) [@Legacy\_Account2387](https://community.cybozu.dev/u/Legacy_Account2387)\
**Post date:** [2020 年 11 月 27 日午前 7:46 UTC](https://community.cybozu.dev/t/topic/6861/1 "2020-11-27T07:46:48Z")

</div>

お世話になっております

現在一覧画面の列固定をPCにて適用させており、モバイルアプリにも適用させたいのですが、下記コードを入れたところ動作しません、またエラーチェックもしましたがエラーは出ておりませんでした、

動作させるためにはどうすればよいのか、ご教授いただければ幸いです。よろしくお願いいたします！

コードについては下記を参考にして編集致しました[https://developer.cybozu.io/hc/ja/community/posts/115017537323](https://developer.cybozu.io/hc/ja/community/posts/115017537323)

```
(function() {
'use strict';
kintone.events.on('mobile.app.record.index.show', function() {
var table = document.querySelector('.recordlist-gaia');
table.setAttribute("_fixedhead", "rows:3; cols:4");
//table.innerHTML = table.innerHTML.replace('<thead>', '<tr>').replace('</thead>', '</tr>');
FixedMidashi.create();
});
}());

```

&nbsp;

---

<div class="post-metadata">

**Author:** ![Legacy\_Account1293](https://avatars.discourse-cdn.com/v4/letter/l/bbce88/32.png) [@Legacy\_Account1293](https://community.cybozu.dev/u/Legacy_Account1293)\
**Post date:** [2020 年 11 月 27 日午前 9:34 UTC](https://community.cybozu.dev/t/topic/6861/2 "2020-11-27T09:34:01Z")

</div>

FixedMidashiをダウンロードしていないため動作確認していませんが、以下のように変更したらいかがでしょうか。  
recordlist-gaiaはPC用のクラスですので、モバイル用で対応するクラスはgaia-mobile-v2-app-index-recordlist-tableになっていると思います。

var table = document.querySelector(‘.recordlist-gaia’);  
↓  
var table = document.querySelector(‘.gaia-mobile-v2-app-index-recordlist-table’);

---

<div class="post-metadata">

**Author:** ![Legacy\_Account2387](https://avatars.discourse-cdn.com/v4/letter/l/e8c25b/32.png) [@Legacy\_Account2387](https://community.cybozu.dev/u/Legacy_Account2387)\
**Post date:** [2020 年 12 月 1 日午前 9:05 UTC](https://community.cybozu.dev/t/topic/6861/3 "2020-12-01T09:05:17Z")

</div>

Ryoji様

ご返信ありがとうございます。

ご連絡遅れ申し訳ございません！

上記事項をご教授頂いたコードに変更してみましたが、うまく動作しませんでした。

また、エラーコード等も出ておりません、自分でも何が原因か見つけられずにいます、ご返信いただければ幸いです。よろしくお願いいたします。

```
(function() {
'use strict';
kintone.events.on('mobile.app.record.index.show', function() {
var table = document.querySelector('.gaia-mobile-v2-app-index-recordlist-table');
table.setAttribute("_fixedhead", "rows:3; cols:4");
//table.innerHTML = table.innerHTML.replace('<thead>', '<tr>').replace('</thead>', '</tr>');
FixedMidashi.create();
});
}());

```

---

<div class="post-metadata">

**Author:** ![Legacy\_Account1293](https://avatars.discourse-cdn.com/v4/letter/l/bbce88/32.png) [@Legacy\_Account1293](https://community.cybozu.dev/u/Legacy_Account1293)\
**Post date:** [2020 年 12 月 4 日午前 6:07 UTC](https://community.cybozu.dev/t/topic/6861/4 "2020-12-04T06:07:48Z")

</div>

mistes様

FixedMidashiは外部のライブラリのため、これ以上はわかりかねます。  
お力になれず申し訳ありません。
