تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
12478 أدوات العرض

I have a need wherein I need to access values that are in another model (table) from a view which is tied to a different model (table).

For example I have a model called metals.metals and another model called chemical.properties.

Now when a view tied to chemical.properties is loaded based on some condition I need to access value of a field (column) that is in metals.metals as using domain attribute in field.

I have been trying to do this for two days now but without any success.

Please guide me as to how to achieve this.

TIA

I forgot to mention that chemical.properties view will opened from metal.metal view and when this view is opened I need to read the currently loaded values in metal.metal view which I think we should be able to read values that are currently load in the view using for example something like this metal.metal.id. But this is not working. :(

الصورة الرمزية
إهمال
أفضل إجابة

Add to chemical.properties related field that point to field from metals.metals. After it you can use new field in XML form.

الصورة الرمزية
إهمال
أفضل إجابة

I think you should define a related field in chemical.properties model to refer to metals.metals field.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
مايو 18
4428
3
أغسطس 22
3837
7
أغسطس 18
5970
16
ديسمبر 23
32984
naked domain set up تم الحل
3
يوليو 25
3968