フォーラム

ホーム » Liferay Portal » English » 3. Development

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
Alex Filia
Save json file in Liferay
2013/04/22 3:44
答え

Alex Filia

ランク: New Member

投稿: 24

参加年月日: 2013/04/15

最近の投稿

Hi all!emoticon I have JSONArray object than I need save as .json file on server. Of course I can call
1toJSONString()
and write to file. But what location of this file i should set to see that file in Documents and Media in Control Panel?
What is the best way to do this?
Joaquin Cabal
RE: Save json file in Liferay
2013/04/22 5:47
答え

Joaquin Cabal

ランク: Junior Member

投稿: 54

参加年月日: 2009/09/07

最近の投稿

Hi Alex,
Are you working on a portlet with this file?
If it is, you can crate a folder and then add the file with the DLFileEntryLocalServiceUtil service. You have to see the parameters you need to pass.

Hope this helps
Alex Filia
RE: Save json file in Liferay
2013/04/22 6:29
答え

Alex Filia

ランク: New Member

投稿: 24

参加年月日: 2013/04/15

最近の投稿

Joaquin Cabal:
Hi Alex,
Are you working on a portlet with this file?
If it is, you can crate a folder and then add the file with the DLFileEntryLocalServiceUtil service. You have to see the parameters you need to pass.

Hope this helps

The problem is I haven't request and I don't know how get repositoryId and folderId params for DLAppServiceUtil.addFileEntry(...)
How I can get default value of repositoryId and folderId?
Joaquin Cabal
RE: Save json file in Liferay
2013/04/23 8:38
答え

Joaquin Cabal

ランク: Junior Member

投稿: 54

参加年月日: 2009/09/07

最近の投稿

Hi Alex,
RepositoryId = scopeGroupId (in default liferay repository), and the folder you can obtein by name

Regards!