Hi Everyone,
I have to show the all instructors in website.So i have created a check box field in instructor.And i have created a child table in website settings in that i have a link field instructor when the checkbox is checked in the instructor it must show all the checked instructors and i dont want to see the unchecked instructors in the childtable link field instructors in website settings.
def get_employee_details(instructor_id):
teams = frappe.db.sql("""select tabInstructor.name,tabInstructor.instructor_name,tabEmployee.image,
tabEmployee.designation,tabEmployee.company_email,tabEmployee.cell_number from tabEmployee
right join tabInstructor on tabEmployee.employee=tabInstructor.employee where tabInstructor.show_in_website = 1 and tabInstructor.name = '{}'""".format(instructor_id),as_dict=True)
return teams
I am looking something same like this. I create a field Program(link) to Program. In the Dropdown all the programs are shown. I want to show only that program which the login Instructor enrolled.