I am having trouble in fetching a full_name when I select attendee’s email.id while creating meeting module.
my code is below:
Is it right code?
I follow the instructions and code in tutorial video
what should I do now?
I am having trouble in fetching a full_name when I select attendee’s email.id while creating meeting module.
my code is below:
Any error message while saving? your code seems okay except the last line. Replace it with following one and check
attendee.full_name = " ".join(filter(None, [user.first_name, user.middle_name, user.last_name]))
I changed that last line as u said.
But it is still not fetching name.
On console it is showing following error:
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help http://xhr.spec.whatwg.org/
add frappe.msgprint()
or print statement and check what you get in user.
Check whether the user is available in your application or not.
You can use the get_fullname method instead to get the user’s full name
e.g.
from frappe.utils import get_fullname fullname = get_fullname(user="abc@gmail.com")
Thanks, Makarand
still not fetching name
what to do now?
where to write this statement
fullname = get_fullname(user="abc@gmail.com")
in validate(self): method?
e.g.
Thnquu.
problem is solved.