Legacy Knowledge Base
公開されました Jun. 30, 2025

フィールド参照の編集値がデータベースに保存されない。

Written By

Irene Fender Soler

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

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

問題

  • フォームを作成し、例えばテキスト・フィールドを追加し、その事前設定でフィールド参照フィールドを変更した場合、フォームを公開した後、参照フィールドの新しい値がdabataseで変更されていることに気づくでしょう。

  • また、フォームを公開してソースコードを調べると、フィールド参照の元の値 (Option12345678) が見つかります。

Environment

  • DXP 7.4

解決策

  • フォームにフィールドを追加すると、それに関連する3つの値があります:
    • レーベル。
    • フィールド・リファレンスは、元々バリューと同じである。
    • 値.
  • ラベルとフィールド参照は変更できるが、値は一定である。
  • その理由は、データベースがDXPのニーズに合わせてモデル化されているからだ。 もしそこにフィールド参照を追加したら、フィールド参照が変更されるたびに、このテーブルの行を更新する必要がある。
  • フィールド名は不変で、一定の識別子が必要なこの種のユースケースのために作られた。





Did this article resolve your issue ?

Legacy Knowledge Base