Skip to main content
misakib0705
May 28, 2024
Question

About some data not being displayed on the site(サイト上で一部のデータが表示されない件について)

  • May 28, 2024
  • 7 replies
  • 0 views

Hello everyone, I have a question for you.
I am experiencing an issue where some data is not being displayed on a site that is currently under development, and I would appreciate any hints on how to resolve the issue.

I recently added a new field to one of my master DBs.
We also re-mapped the record types and performed record sync.
We're also adding new fields to CDT and republishing the datastore.

Based on the above, I performed the process of passing a CDT to the rule input of a certain interface and displaying it. The relevant description is
ri!○○CDT[recordType!○○.field.××××]

It is displayed normally on the editing screen, but it is not displayed on the site. When transitioning to the relevant screen on the site, a process model is running behind the scenes, and process variables are passed to the form.
This process variable's CDT is querying the record type.
To check if the query is incorrect, I run the same query on a temporary interface, and all values are successfully retrieved.

Summary
・Can be displayed on the interface editing screen
・Can also be obtained as a process variable
・Can be displayed even if rule input is specified for the page before transition
・Some parts cannot be displayed only when transitioning to the corresponding page via the site

It becomes. Please let me know if there are any omissions in my steps.
Also, if you know the solution, I would appreciate it if you could let me know.

Thank you.

ーーーー

こんにちは、皆さんに質問があります。
開発中のサイトで、一部のデータが表示されない事象が発生しており解決のヒントをいただきたく存じます。

最近、あるマスタDBに新しいフィールドを追加しました。
レコードタイプも再度マッピングし、レコード同期を行いました。
CDTにも新しいフィールドを追加し、データストアを再公開しています。

上記を踏まえ、あるインターフェースのルール入力にCDTを渡して表示する処理を行いました。該当の記述は
 ri!○○CDT[recordType!○○.field.××××]

編集画面上では正常に表示されていますが、サイト上では表示されない状態です。サイトで該当画面へ遷移する際、裏でプロセスモデルが動いており、フォームにはプロセス変数を渡しています。
このプロセス変数のCDTはレコードタイプをクエリしています。
クエリの間違いを確認するため、テンポラリーのインターフェース上で同一のクエリを実行したところ、正常にすべての値が取得されます。

まとめると
・インターフェースの編集画面で表示が可能
・プロセス変数でも取得が可能
・遷移前のページのルール入力を指定した場合も表示が可能
・サイト経由で該当のページへ遷移した場合のみ一部表示不可

となります。私の手順に抜けがあればご指摘いただきたいです。
また、解決策をご存じの方は誠に恐れ入りますがご教示いただけますと幸いです。

よろしくお願いいたします。

7 replies

davidj137213
Brainy
May 28, 2024

Hi, do you see any errors in the log files? It doesn't make sense, because you should see the same information... maybe in the logs you can find a clue...

misakib0705
May 28, 2024

Thank you for your comment!
I haven't seen the log file yet, I'll take a look!
Are there any points to check?

*After posting, I also tried the following:
- Change the DB data type from TEXT to VARCHAR (unify the existing one)
・Set the DB structure from NONE to NULL (unify the existing structure)
・Download the CDT XSD file, correct the description that differs from the existing field, and increase the version.
・Republish the datastore
・Check variables and rule input on the screen before transitioning to the relevant site page

As of now, we have not found a solution yet...
Thank you.

コメントくださりありがとうございます!
ログファイルはまだ見たことがありません、見てみます!
確認のポイントなどはありますでしょうか?

※投稿後、以下のことも試しました。
・DBのデータ型をTEXT→ VARCHARに直す(既存に統一する)
・DBの構造をNONE→NULLに設定する(既存に統一する)
・CDTのXSDファイルをダウンロードして既存フィールドと異なる記述を修正し、バージョンを上げる
・データストアを再公開する
・該当のサイトページに遷移する前の画面の変数やルール入力を確認する

現時点ではまだ解決に至っておりません、、、
よろしくお願いいたします。

davidj137213
Brainy
May 28, 2024

Do you have nested cdt's? how did you create them?

misakib0705
July 11, 2024

Hello, thank you for your continued support.

It's been a while, but I'm letting you know that this issue is now displayable.

What I did

- Add a text field to the screen (screen 2) immediately before the transition to the screen where the field is not displayed (screen 3)

- Display the data you want to display on screen 3 in the text field added to screen 2

- Hide the field added to screen 2

The above steps solved the problem of the field not displaying on screen 3. I'm not sure why this process is necessary only for fields added to the database later, but I hope this will be helpful to anyone who has the same problem.

Below is an example of the code added to screen 2.

Thank you for your cooperation.

I look forward to your continued support.

ーーー

a!textField(
 label: "remarks",
 labelPosition: "JUSTIFIED",
 value: a!defaultValue(
  ri!record['recordType!○○.fields.remarks'],
  "–"
  ),
 readOnly: true,
 showWhen: false,
 saveInto: {},
 refreshAfter: "UNFOCUS",
 validations: {}
)

ーーー

こんにちは、いつもお世話になっております。
少し時間が空いてしまいましたが、こちらの件は表示可能な状態になったため、お知らせいたします。

実施したこと
・項目が表示されない画面(画面3)へ遷移する直前の画面(画面2)へテキスト項目を追加する
・画面2に追加したテキスト項目に、画面3で表示したいデータを表示させる
・画面2に追加した項目を非表示にする


上記の手順で、画面3に表示されない項目の問題が解消しました。DBに後から追加した項目だけでこの処理が必要な理由はよくわかっておりませんが、同じ問題を抱えた方のご参考になれれば幸甚です。
画面2に追加した記述例を以下に記載します。
ご協力くださりありがとうございました。
引き続きよろしくお願いいたします。