Forums

How to use SEARCH?

bkgraf 30 Apr, 2019
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?

bkgraf 30 Apr, 2019
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.

Max_admin 06 May, 2019
Under the "Read data" function there is an area for configuring the search settings.

Best regards
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
murilolule 31 Jul, 2019
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.
Fredolino 31 Jul, 2019
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}
murilolule 31 Jul, 2019
Can you send me the backup from this form/view?
murilolule 31 Jul, 2019
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?
shahabpk 07 Aug, 2019
Hi Fredolino
I followed you step by step but stuck after "Click" step

Click
field_search
Link
name: remove_button
event: view etc ...


Can you elaborate or format the steps a little bit more ?
This topic is locked and no more replies can be posted.