I’m creating a Script Report in Frappe/ERPNext where I have a Link field (for example, supplier from the Supplier doctype).
In standard forms, when we select a supplier, Frappe automatically shows the Supplier Name (the title field) instead of the Supplier ID — because the Supplier doctype has a title field set as supplier_name.
However, in my custom Script Report, it only shows the Supplier ID (e.g., SUP-0001).
I want to show the Supplier Name (the title field) in my report, similar to how it’s displayed in link fields.
Can someone please guide me on:
Is there a built-in function in Frappe that resolves a linked record’s title field automatically?
Can you share the part of your script where you wanna have the Supplier Name?
Probably the easiest would be another column with the supplier_name value. Otherwise you could totally use the supplier_name directly in your existing column, but would loose the link connection. Therefore you would have to use a html link to open the supplier, when clicking on the name.
However, I don’t want to add a new column in the report and don’t want to use a SQL JOIN in my query.
Is there any way in Frappe to show the linked document’s title (like how link fields automatically show the title field in forms) directly in a Script Report without adding extra joins or columns?
I’m working on a Script Report in Frappe. I want to display the linked document’s title (for example, Supplier Name from Supplier Master), but I don’t want to: