How to use the search?
Hello, I need to know how to use the SEARCH option correctly.
In the VIEW tab, I added the SEARCH element, but I do not know how its configuration is.
Could someone explain to me how it works?
Hello, I need to know how to use the SEARCH option correctly.
In the VIEW tab, I added the SEARCH element, but I do not know how its configuration is.
Could someone explain to me how it works?
I forgot to mention that I have relations in the tables with foreign keys.
Example: I want to look for the department (can you list it in a dorpdown?) To which a natural reserve belongs.
See that the RESERVANATURAL table has a foreign key from the MUNICIPIO table and that the MUNICIPIO table has a foreign key from the DEPARTMENTO table.
Example: I want to look for the department (can you list it in a dorpdown?) To which a natural reserve belongs.
See that the RESERVANATURAL table has a foreign key from the MUNICIPIO table and that the MUNICIPIO table has a foreign key from the DEPARTMENTO table.
Under the "Read data" function there is an area for configuring the search settings.
Best regards
Best regards
Hello Admin!
Could you be a little more specific in using this "search" tool?
I am putting together a view where I need to read the fields of a table and return what was typed in the "search" field, but I don't understand how to do it with the orientation passed here and in the chronoconectivity manual there is nothing either.
Could you be a little more specific in using this "search" tool?
I am putting together a view where I need to read the fields of a table and return what was typed in the "search" field, but I don't understand how to do it with the orientation passed here and in the chronoconectivity manual there is nothing either.
check this:
http://www.chronoengine.com/forums/posts/t105003
and my inspiration from the link is this:
i have a search with Dropdown:
create Form area name "search".
Data provider: {var:read_table}
Submit event: view
Form ID search
Content:
<div class="table_search">
<div class="table-row">
<div class="table-cell">
{view:field_search}
</div>
<div class="table-cell">
{view:button_filter}
</div>
<div class="table-cell">
{view:remove_button}
</div>
</div>
</div>
the dropdownfield name, name, ID: "field_search"
options:
-
{var:read_table}
button
name: button_search
type submit
name, ID: keywords
Events:
Click
field_search
Link
name: remove_button
event: view
Functions:
name:read_table
type: return an array...
Where condition:
field_name LIKE %{data:dropdownfieldname}% Continue
fields to retrieve:
Model.fieldname
under Events view:
<div>
{fn:read_search}
{var:read_table}
{view:search}
</div>
{fn:check_search_fieldname}
{fn:read_beobs}
{view:search_list}
http://www.chronoengine.com/forums/posts/t105003
and my inspiration from the link is this:
i have a search with Dropdown:
create Form area name "search".
Data provider: {var:read_table}
Submit event: view
Form ID search
Content:
<div class="table_search">
<div class="table-row">
<div class="table-cell">
{view:field_search}
</div>
<div class="table-cell">
{view:button_filter}
</div>
<div class="table-cell">
{view:remove_button}
</div>
</div>
</div>
the dropdownfield name, name, ID: "field_search"
options:
-
{var:read_table}
button
name: button_search
type submit
name, ID: keywords
Events:
Click
field_search
Link
name: remove_button
event: view
Functions:
name:read_table
type: return an array...
Where condition:
field_name LIKE %{data:dropdownfieldname}% Continue
fields to retrieve:
Model.fieldname
under Events view:
<div>
{fn:read_search}
{var:read_table}
{view:search}
</div>
{fn:check_search_fieldname}
{fn:read_beobs}
{view:search_list}
Can you send me the backup from this form/view?
I cannot identify the "search" element of chronoconectivity in this example.
I'd like to use "search" instead of "dropdown" and from it and the button included there, do the search in read_data.
Knowing this, how do I configure the read_data function?
How do I bring the parameters of the "serach" widget?
How do I pass data to the table that will be displayed in the view?
If possible, could you send me the backup file of this example please?
I'd like to use "search" instead of "dropdown" and from it and the button included there, do the search in read_data.
Knowing this, how do I configure the read_data function?
How do I bring the parameters of the "serach" widget?
How do I pass data to the table that will be displayed in the view?
If possible, could you send me the backup file of this example please?
This topic is locked and no more replies can be posted.