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
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (2,560)