Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
12441 มุมมอง

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.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
พ.ค. 18
4394
3
ส.ค. 22
3802
7
ส.ค. 18
5919
16
ธ.ค. 23
32936
naked domain set up แก้ไขแล้ว
3
ก.ค. 25
3887