on Kelas doctype i successfully create linked doctype to Siswa doctype, like this picture below:
My question is, how to make same Linked Document but from Siswa Doctype to Kelas Doctype, so i can click what Kelas is Siswa linked too, i try like this picture below:
But when i click Kelas (on connection bar on Siswa Doctype), its redirect too Kelas Doctype with filter nama equals too siswa name, that must be nama equals too kelas from Siswa Doctype field is the correct
That’s good example, from that example
Lead have Linked Document to Special Lead, and its work.
But my true question is, how to make Linked Document from Special Lead to Lead, not from Lead to Special Lead. So i know what Lead that Special Lead is Linked.
from frappe import _
def get_data():
return {
"fieldname": "kelas", # Nama field default di dokumen Kelas
"non_standard_fieldnames": {
# Mendefinisikan koneksi non-standar, karena filter harus berdasarkan siswa.kelas
"Kelas": "kelas"
},
"transactions": [
{
"label": _("Kelas"),
"items": ["Kelas"] # Dokumen Kelas yang terkait
},
]
}