# Is it possible to reuse views?

**URL:** <https://forum.kintone.dev/t/is-it-possible-to-reuse-views/66>\
**Category:** General\
**Created:** [April 17, 2017, 2:55am UTC](https://forum.kintone.dev/t/is-it-possible-to-reuse-views/66 "2017-04-17T02:55:28Z")\
**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:** [April 17, 2017, 2:55am UTC](https://forum.kintone.dev/t/is-it-possible-to-reuse-views/66/1 "2017-04-17T02:55:28Z")

</div>

Hi there:)

When I create 5~10 views,&nbsp;I would like to reuse some views because I just change only&nbsp;Filter and Sort.

My view has many fields so it takes a lot of time…

What should I do?

---

<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:** [April 18, 2017, 8:54am UTC](https://forum.kintone.dev/t/is-it-possible-to-reuse-views/66/2 "2017-04-18T08:54:43Z")

</div>

Hi Masa.

It’s the same account name.

In kintone, we have not functions to copy Views data.  
It would be a probable function we should have.

Refer to an example shown below to change View data.  
It would make you easier to have your expected applications.

Example:

(1)Make a view to copy and update it later.

(2)Obtain information(Fields information) in it(a view) by an API.

(3)Update a view made in (1) based on the information obtained in (2).

&nbsp; var body = {  
&nbsp;&nbsp;&nbsp; “app”: App ID,  
&nbsp;&nbsp;&nbsp; “views”: {  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; “\<View Name\>”: {  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; “index”: “0”,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; “type”: “\<View Type\>”,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; “name”: “\<View Name\>”,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; “fields”: [  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //Field codes in a view  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; “Record\_number”,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; “Text\_\_single\_line\_”  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ],  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; “sort”: “Record\_number asc”  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }  
&nbsp;&nbsp; }  
&nbsp; };

&nbsp; kintone.api(kintone.api.url(’/k/v1/preview/app/views’, true), ‘PUT’, body, function(resp) {  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // success  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; console.log(resp);  
&nbsp; });

(4)Update an application.  
&nbsp;&nbsp;&nbsp; var body = {  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; “apps”: [{“app”: 2810}],  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; “revert”: false  
&nbsp;&nbsp;&nbsp; };

&nbsp;&nbsp; kintone.api(kintone.api.url(’/k/v1/preview/app/deploy’, true), ‘POST’, body, function(resp) {  
&nbsp;&nbsp;&nbsp;&nbsp; // success  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; console.log(resp);  
&nbsp;&nbsp; });

We have explanation pages for details about API, listed below:  
\*CAUTION\*  
They are all in Japanese.

#To obtain settings in Views  
&nbsp; [https://cybozudev.zendesk.com/hc/ja/articles/204529784](https://cybozudev.zendesk.com/hc/ja/articles/204529784)

#To change settings in Views  
&nbsp; [https://cybozudev.zendesk.com/hc/ja/articles/204529794](https://cybozudev.zendesk.com/hc/ja/articles/204529794)

#To adopt application settings in a working system environment  
&nbsp; [https://cybozudev.zendesk.com/hc/ja/articles/204699420](https://cybozudev.zendesk.com/hc/ja/articles/204699420)

---

<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:** [April 18, 2017, 9:01am UTC](https://forum.kintone.dev/t/is-it-possible-to-reuse-views/66/3 "2017-04-18T09:01:13Z")

</div>

Oh, sorry.

Other than a procedure shown before, in this case,  
after you opened a purposed view, and set conditions to filter,  
&nbsp;then you can register a view by clicking the “save” button  
&nbsp;at the lower-right section in a screen.

---

<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:** [April 19, 2017, 12:44am UTC](https://forum.kintone.dev/t/is-it-possible-to-reuse-views/66/4 "2017-04-19T00:44:46Z")

</div>

Hi masa:)

\>after you opened a purposed view, and set conditions to filter,  
\>then you can register a view by clicking the “save” button  
\>at the lower-right section in a screen.

Oh second one looks easy for me!

but I can’t find “save” button in this screenshot…

What else can I do?

![](https://developer.kintone.io/hc/user_images/pFDH8yqfKxQGTSgWKfX_Iw.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:** [April 20, 2017, 5:18am UTC](https://forum.kintone.dev/t/is-it-possible-to-reuse-views/66/5 "2017-04-20T05:18:51Z")

</div>

This is an additional information.  
According to&nbsp;kintone specifications, the “Save” button could  
be shown for users with administrative privilege.

So, to show the “Save” button, start as a user with administrative privilege, or,  
give a current user the “Manage app” right in  
“Permissions for App” options.

---

<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:** [April 24, 2017, 6:24am UTC](https://forum.kintone.dev/t/is-it-possible-to-reuse-views/66/6 "2017-04-24T06:24:11Z")

</div>

I can find the “Save” button on the bottom!  
Thank you so much:)

![](https://developer.kintone.io/hc/user_images/We3pEy2icTRXkNRVvXYPEg.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:** [April 25, 2017, 12:11am UTC](https://forum.kintone.dev/t/is-it-possible-to-reuse-views/66/7 "2017-04-25T00:11:12Z")

</div>

You are welcome!
