In many cases we want our users to specify which registers of a list they want to see. There are many ways to do this, in this article we will explain one of them. It consists in doing an entry panel where the parameters can be specified and then it links to our list and shows only the items that fulfill a condition which contains with those parameters. 1. Lets do a really easy model. We will use the following transaction: NOTE: We want to see the different users depending the value of the attribute SDTTRNLaListaType 2. Lets do an Entry Panel which will have the variables for the user to put the values to filter the list. File/New Object/ Work With Devices We want to create a Detail/Edit section. So delete the list node (right-click/delete), and create a Detail also create only an Edit layout. Lets add a Variable to the Conditions Remember that the type of this variable should be a Domain (same as SDTTRNLaListaType). We selected the Domain Type=Character(1) Add that variable to the layout. Finally we have to create an action that will invoke the list we want to see. Events/AddAction Call: WorkWithDevicesTRNLaLista Component: WorkWithDevicesTRNLaLista.List Add the variable defined as a parameter. 3. Now on our list we have to define that we are going to receive a parameter. On the properties of the List Node lets define the parameter property. 4. Now we have to create a Data Selector which will filter the list for us. File/New/Object/Data Selector this Data Selector will receive a parameter (the variable with the value we want to filter by) rihg-click on parameters/ Add Var Parameter we have to set a condition right-Click on Conditions/ addCondition 5. Lastly we have to tell GeneXus that our List is going to use the Data Selector we recently created. To do so we have a parameter named Data Selector on the properties of the List Node. We select the Data Selector we just Created and on the property Data Selector Parameter we specify the variable we receive is the one he needs to filter by. DONE!. Let see how it works:
Entry Panels as Filters for a List in Smart Devices
Created: 07/29/11 10:21 AM by fbuitron Last update: 08/01/11 09:55 AM by fbuitron
Va artículo http://wiki.gxtechnical.com/commwiki/servlet/hwiki?Entry+Panels+as+Filters+for+a+List+in+Smart+Devices,saludos, Armin2011/7/31 Armin Bachmann <armin@genexus.com>Hola Mario, es común esta pregunta, vamos a publicar un ejemplo y doc con esto en los próximos días;mientras tanto, aquí un link para definir un panel asípara cargar una variable (en el load) puedes agregar la variable a la parte detail.layout.Conditions.Data y en la propiedad loadcode de la variables asignarle una expresión.Saludos, Armin2011/7/31 Mario Alfredo Perez <APerez@fanapel.com.uy>Estimados!
Que tal?
Un caso bien básico;
Como hago en SD si quisiera hacer lo equivalente a Win y Web ej.
En un evento START asignar una variable.
Solicitar por pantalla alguna otra variable.
Y despues filtrar en la base y mostrar resultados?
Que tipo de obletos estan involucrados?
La consulta es tonta. Pero me gustaria saber como seria.
Estoy con el NB de anoche
Agradezco
--
Has recibido este mensaje porque estás suscrito al grupo "GeneXus" de Grupos de Google.
Para publicar una entrada en este grupo, envía un correo electrónico a genexus@googlegroups.com.
Para anular tu suscripción a este grupo, envía un correo electrónico a genexus+unsubscribe@googlegroups.com
Para tener acceso a más opciones, visita el grupo en http://groups.google.com/group/genexus?hl=es.
0 Response to "Re: [xev2] ** consulta de procedimiento **"
Publicar un comentario