In this , FF RFQ is a link field and other fields such as POL, POD, INCOTERM are fetched from (FF RFQ-2) which is fine before creating. These 3 fields are virtual fields.
If I understood correctly, you were trying to fetch from virtual field, which is not possible.
Virtual fields are designed to display values, fetched from some other source, and values are never stored in or for virtual field; you need to fetch these values again from the same data source.
Try creating one Doctype Named Test-1 and then have one docField Test
Create another Doctype Test-2 and have one link field of Test-1 to reference Doctype Test-1 and have one more field ‘Test-2’ . Make it Read-Only, Virtual and Fetch from Test-1.Test field (All this can be done from Desk UI)
Now create one document in Test-1. Then go to Test-2. It will Fetch details. You can save it. But after refreshing its not showing
When I am saying Fetch From, I mean the Desk UI configuration like this
Have you tried refreshing and revisiting the DocType again?
When I am creating it shows correct, but as soon as I revisit or refresh it, it shows empty field in me.
I have the same problem: virtual fields don’t show the data after being saved. I’m new in frappe (new in programming too) and I can not figure it out how to solve it with your solution. Could you explain a little bit more or is there any other solution?
Thanks,