Podría ser porque el data item Estadisticas queda sin secciones. Proba a ponerle where al TabsMenuDataItem:
TabsMenuDataItem where PIsAuthorized.Udp('TotPrd') or PIsAuthorized.Udp('Estadisticas')
Álvaro Martínez
Montevideo
From: Jose Silva BT [mailto:Jose.Silva@bancodeltucuman.com.ar]
Sent: jueves, 22 de abril de 2010 11:16
To: gx-l@gxtech.com.uy
Subject: [gx-l] Dataprovider
Tengo el siguiente dataprovider para cargar el menu de un aplicación, porque cuando hago un where para ver si el usuario tiene autorización para cargar o no esa opción, si no se cumple ninguna de las 2 opciones no me carga el menu?, en caso de cumplirse al menos una de las opciones el funcionamiento es correcto.
Me esta faltando algo en el codigo?
Gracias
TabsMenuData
{
TabsMenuDataItem
{
MenuId = 1
MenuTitle = "Clientes"
MenuDescription = "Trabajar con Clientes"
// MenuURL =
Sections
{
SectionsItem
{
SectionId = 1
SectionTitle = "Clientes Fisicos"
SectionDescription = "Clientes Fisicos"
SectionURL = Link(FisWrk)
}
SectionsItem
{
SectionId = 2
SectionTitle = "Clientes Juridicos"
SectionDescription = "Clientes Juridicos"
SectionURL = Link(JurWrk)
}
}
}
TabsMenuDataItem
{
MenuId = 3
MenuTitle = "Estadisticas"
MenuDescription = "Trabajar con Estadisticas"
// MenuURL =
Sections
{
SectionsItem
Where PIsAuthorized.Udp('TotPrd')
{
SectionId = 1
SectionTitle = "Productos x Sucursal"
SectionDescription = "Productos x Sucursal"
SectionURL = Link(TotPrd)
}
SectionsItem
Where PIsAuthorized.Udp('Estadisticas')
{
SectionId = 2
SectionTitle = "Estadistica x Producto"
SectionDescription = "Estadistica x Producto"
SectionURL = Link(Estadisticas)
}
}
}
}
José E. Silva
Sistemas-Desarrollo
Banco Tucumán
Tel: (0381) 4505051
:: Por favor, piense en el medio ambiente antes de imprimir este mensaje ::
|
|
0 Response to "RE: [gx-l] Dataprovider"
Publicar un comentario