def addSuggestedList(self, text, focussedField):
		"""
		This functions gets suggestions to be added for remote and keyboard both.
		"""
		focussedField.removeAllItems()
		items = []
		# Get suggestions from Database.
		if len(text) >= 1:
			items += SearchLogic.suggestSearch(text, focussedField.name)
		else:
			return False
		# Get suggestions from Jazzy.
		lastWord = text.split()[-1]
		if len(lastWord) >= 3:
			phonetic_items = self.getSuggestions(lastWord)
			for p in phonetic_items:
				q = str(p)
				if q not in items and len(q) >= len(lastWord):
					items.append(q)
		# Add suggestions to Drop Down list.
		focussedField.addItem(text)
		for item in items:
			if item != text:
				focussedField.addItem(item)
		focussedField.setPopupVisible(False)
		focussedField.setMaximumRowCount(8)
		focussedField.setPopupVisible(True)
		if len(items) == 0:
			return False
		else:
			return True
 def addSuggestedList(self, text, focussedField):
     items = []
     # Get suggestions from Database.
     if len(text) >= 3:
         items += SearchLogic.suggestSearch(text, focussedField.name)
     print(items)
     # Get suggestions from Jazzy.
     lastWord = text.split()[-1]
     if len(lastWord) >= 3:
         phonetic_items = self.getSuggestions(lastWord)
         print(phonetic_items)
         for p in phonetic_items:
             q = str(p)
             if q not in items and len(q) >= len(lastWord):
                 items.append(q)
                 # Add suggestions to Drop Down list.
     self.focussedField.addItem(text)
     for item in items:
         if item != text:
             self.focussedField.addItem(item)
     self.focussedField.setPopupVisible(False)
     self.focussedField.setMaximumRowCount(8)
     self.focussedField.setPopupVisible(True)
     if len(items) == 0:
         return False
     else:
         return True