Feat(SQL, UI): 1. Perfected architecture for modular Search functionality across heirarchical Get Many and Calc Stored Procedures that allows text search filtering on different fields as well as by record Id with control over how the filters are applied. \n 2. Updated User Calc and Get Many Stored Procedures with new Search functionality. \n 3. Improved styles on Dog Command Link page.
This commit is contained in:
@@ -29,6 +29,7 @@ from typing import ClassVar
|
||||
class Model_View_Dog_Dog_Command_Link(Model_View_Dog_Base):
|
||||
FLAG_HAND_SIGNAL_DESCRIPTION: ClassVar[str] = Dog_Command_Link.FLAG_HAND_SIGNAL_DESCRIPTION
|
||||
filter_dogs: list = None
|
||||
filter_command_categories: list = None
|
||||
filter_commands: list = None
|
||||
dog_command_links: list = None
|
||||
form_filters: Filters_Dog_Command_Link = None
|
||||
@@ -48,9 +49,11 @@ class Model_View_Dog_Dog_Command_Link(Model_View_Dog_Base):
|
||||
self.filter_dogs, errors = datastore.get_many_dog(parameters_filter_dog)
|
||||
|
||||
parameters_filter_command = Parameters_Command.get_default()
|
||||
self.filter_commands, errors = datastore.get_many_command(parameters_filter_command)
|
||||
self.filter_command_categories, self.filter_commands, errors = datastore.get_many_command(parameters_filter_command)
|
||||
|
||||
Helper_App.console_log(f'Form filters: {self.form_filters}')
|
||||
parameters_filter_dog_command_link = Parameters_Dog_Command_Link.from_form_filters_dog_command_link(self.form_filters)
|
||||
Helper_App.console_log(f'Query args: {parameters_filter_dog_command_link}')
|
||||
self.dog_command_links, errors = datastore.get_many_dog_command_link(parameters_filter_dog_command_link)
|
||||
|
||||
# Helper_App.console_log(f'dogs: {self.filter_dogs}')
|
||||
@@ -58,6 +61,7 @@ class Model_View_Dog_Dog_Command_Link(Model_View_Dog_Base):
|
||||
# Helper_App.console_log(f'links: {self.dog_command_links}')
|
||||
|
||||
self.form_filters.id_dog.choices += [(str(dog.id_dog), dog.name) for dog in self.filter_dogs]
|
||||
self.form_filters.id_command_category.choices += [(str(command_category.id_command_category), command_category.name) for command_category in self.filter_command_categories]
|
||||
self.form_filters.id_command.choices += [(str(command.id_command), command.name) for command in self.filter_commands]
|
||||
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user