cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kishama
Helper I
Helper I

Search in added columns Search(AddColumns())

Hi,

I have added columns to my datatable, but now I don't know how to search for those columns. Your help please. Thank you very much.

I want to search by my "Usuario"column that I have created

AddColumns(
    Search(
        tbcliente;
        txtbuscar_cliente_lista.Text;
        "idcliente";
        "cliente";
        "ruc";
        "idusuario"
    ) As buscarclientes;
    "Usuario";
    LookUp(
        tbusuario;
        idusuario = buscarclientes[@idusuario]
    ).usuario
)

 

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @kishama ,

Try this

Search(
   AddColumns(
      tbcliente;
      "Usuario";
      LookUp(
         tbusuario;
         idusuario = buscarclientes[@idusuario]
      ).usuario
   );
   txtbuscar_cliente_lista.Text;
   "idcliente";
   "cliente";
   "ruc";
   "idusuario";
   "Usuario"
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

View solution in original post

2 REPLIES 2
WarrenBelz
Super User
Super User

Hi @kishama ,

Try this

Search(
   AddColumns(
      tbcliente;
      "Usuario";
      LookUp(
         tbusuario;
         idusuario = buscarclientes[@idusuario]
      ).usuario
   );
   txtbuscar_cliente_lista.Text;
   "idcliente";
   "cliente";
   "ruc";
   "idusuario";
   "Usuario"
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

Hi @WarrenBelz 

It worked very well for me. I only had to change the "buscarclientes" for the "tbclient" table. "buscarclientes" was a variable.

This worked perfect. Now I have new challenges to do. Thank you very much

 

Search(
   AddColumns(
      tbcliente;
      "Usuario";
      LookUp(
         tbusuario;
         idusuario = tbcliente[@idusuario]
      ).usuario
   );
   txtbuscar_cliente_lista.Text;
   "idcliente";
   "cliente";
   "ruc";
   "idusuario";
   "Usuario"
)

 

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Users online (2,979)