콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
12580 화면

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
5월 18
4512
3
8월 22
4100
7
8월 18
6139
16
12월 23
33200
naked domain set up 해결 완료
3
7월 25
4354