legacy-knowledge-base
公開されました Sep. 10, 2025

7.4でPortletPreferencesテーブルから設定を確認する方法

written-by

Alvaro Cabello Díaz

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • DXP 7.2では、PortletPreferencesテーブルでポートレットの設定を直接確認できましたが、DXP 7.4では異なります。

環境

  • DXP 7.4

解決

  • 7.4では新しいテーブルが追加されました:PortletPreferenceValueという新しいテーブルがあり、以前はPortletPreferencesテーブルのPreferencesカラムに存在していたすべての値が格納されています。
  • 以下のクエリでは、ポートレットID、plid、取得したい値の名前を知るだけで、このテーブルから任意の値を取得できます。
    SELECT * FROM PORTLETPREFERENCES
    JOIN PORTLETPREFERENCEVALUE ON PORTLETPREFERENCES.PORTLETPREFERENCESID = PORTLETPREFERENCEVALUE.PORTLETPREFERENCESID
    WHERE PORTLETPREFERENCES.PORTLETID = '${PORTLETID}'
    AND PORTLETPREFERENCES.PLID = ${PLID}
    AND PORTLETPREFERENCEVALUE.NAME = '${NAME}'

 

 

did-this-article-resolve-your-issue

legacy-knowledge-base