Skip to content
This repository has been archived by the owner on Sep 30, 2019. It is now read-only.

Slow listing in GridView #14

Open
kaitorecca opened this issue Oct 8, 2018 · 0 comments
Open

Slow listing in GridView #14

kaitorecca opened this issue Oct 8, 2018 · 0 comments

Comments

@kaitorecca
Copy link

Hi all,

I very sastisfy with the title_links about friendly of field. However, there a problem with Gridview (Report view) when listing the field, the client will try to translate all the title field which lead to the massive request to server. The code for this is at js script at

frappe.form.formatters.Link = function (value, docfield, options, doc) {
	var doctype = docfield._options || docfield.options,
		title;
	var original_value = value;

	if (value) {
		frappe.call({
			'async': false,
			'method': 'title_links.routes.search_title',
			'args': {
				doctype: doctype,
				name: value
			},
			callback: function (res) {
				if (!res.exc) {
					title = res.message[1];
				}
			}
		});
	}

How can we limit this code only for form view only. not for other

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant