Rafael Marques
Posts: 0
Joined: Thu Aug 14, 2014 12:00 am

HOW TO SORT A LIST FOR A STRING IN THE DATABASE

When I click button at the restaurant, I want to appear only companies from class restaurant.

When I click the button pharmacies, I want to appear only companies category pharmacy.

How to make that happen?

I want to continue using only one gallery in the database.
I'm all companies of all categories in a single gallery, and a string that separates each category.
can help me?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

HOW TO SORT A LIST FOR A STRING IN THE DATABASE

Hi Rafael,

Please check this doc, it may be helpful:
http://devcenter.appery.io/documentat...

Rafael Marques
Posts: 0
Joined: Thu Aug 14, 2014 12:00 am

HOW TO SORT A LIST FOR A STRING IN THE DATABASE

can you help me? I read the tutorial, and not get it right.

Parameter that I can use?

Another question:

In my case, I have several categories of buttons.

I'll have to create one page for restaurants, one chemist, one hospital, one for stores?

Or I can create a single page and if I click on Restaurants, load the list of restaurants? if I click the pharmacies, load the list of pharmacies?

Rafael Marques
Posts: 0
Joined: Thu Aug 14, 2014 12:00 am

HOW TO SORT A LIST FOR A STRING IN THE DATABASE

Eu ja consegui fazer funcionar usando o request "where" e o defaul value

  • {"categoria":"restaurantes"} *

    Ok.

    eu ja sei como fazer o pedido corretamente.

    Mas tenho outro problema, como faço o botão restaurantes, chamar as empresas "restaurantes" ?

    O botão farmácias, mudar para a pagina da lista com a lista farmácias?

    ----------------------------------------------------------------------------------------------------------------

    Eu tenho uma única página.. ( a pagina para resultados da lista)

    Quero que quando eu clicar no botão restaurantes, mude para a pagina (resultados) e carregue a lista de restaurantes..

    Quando eu clicar no botão de salões de beleza, mude para a pagina (resultados) e carregue a lista de salões de beleza...

    Como faço isso?

    Ja tentei, e não estou conseguindo..
    Pode me ajudar?

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

HOW TO SORT A LIST FOR A STRING IN THE DATABASE

Hello Rafael,

Sorry, could you please repeat your last question in English?

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

HOW TO SORT A LIST FOR A STRING IN THE DATABASE

Hi Rafael,

Here is brief plan for it:

1 On button click you need to set some LSV in accordance to the value

2 You can build your "where" request parameter in accordance to LSV from first step.

Here is a code to get LSV:

pre

var yourLsv = localStorage.getItem("yourLSVFromFirstStep");

/pre

Regards.

Rafael Marques
Posts: 0
Joined: Thu Aug 14, 2014 12:00 am

HOW TO SORT A LIST FOR A STRING IN THE DATABASE

where I put this code?

Rafael Marques
Posts: 0
Joined: Thu Aug 14, 2014 12:00 am

HOW TO SORT A LIST FOR A STRING IN THE DATABASE

I have no idea how to do ... can you help me?

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

HOW TO SORT A LIST FOR A STRING IN THE DATABASE

Rafael,

You need to use this code in code where you have "where" clause.

Then you need to use

"yourLsv" variable to set value for needed filter field.

Regards.

Return to “Issues”