متى أحتاج لاستخدام $toReal داخل مسار الحقول في Entity Flow؟

Viewed 0

داخل تعريف الـ Entity Flow، عند كتابة مسار للوصول لحقل في ملف رئيسي مُشار إليه من خلال حقل مرجعي (مثل حقل "بناءً على" / From Document)، متى أحتاج إلى استخدام الكلمة $toReal ضمن المسار، ومتى يكفي استخدام النقطة . فقط؟


Originally posted at https://answers.namasoft.com/question/63/ on 2018-06-27.

1 Answers

Inside an Entity Flow path:

  • If the field you want to reach belongs to a master file that is referenced through a generic reference field (for example From Document, which can point to several different entity types), you must use $toReal in the path to cast the generic reference to the actual target entity before continuing.
  • If the field is reached through a regular (typed) reference field, just use the dot . to navigate to it — no $toReal is needed.

In short: use $toReal only when crossing a generic reference; use . everywhere else.


Originally posted at https://answers.namasoft.com/question/63/ on 2018-06-27.