Good morning all.
I have a page this page extension:
pageextension 7077200 "TCNItemListExtGDC" extends "Item List"
{
layout
{
addlast(FactBoxes)
{
part(TCNDocsAdjuntosGDC; TCNFactBoxDocAdjGDC)
{
ApplicationArea = all;
Caption = 'Documentos adjuntos';
Visible = xGdvVisible;
}
part(TCNDropFicheroGDC; TCNDropFicherosCOM)
{
ApplicationArea = All;
Visible = xGdvVisible;
}
}
}
trigger OnAfterGetCurrRecord()
var
culTCNFuncionesGDC: Codeunit TCNFuncionesGDC;
begin
xGdvVisible := culTCNFuncionesGDC.Tabla2GdvF(Rec);
end;
var
[InDataSet]
xGdvVisible: Boolean;
}
The line: part(TCNDocsAdjuntosGDC; TCNFactBoxDocAdjGDC) wich is a "normal" listpart:
page 7077202 "TCNFactBoxDocAdjGDC"
{
Caption = 'Documentos adjuntos';
Editable = false;
LinksAllowed = false;
PageType = ListPart;
ShowFilter = false;
SourceTable = TCNDocsAdjuntadosGDC;
UsageCategory = None;
layout
{
area(content)
{
repeater(General)
{
field(Descripcion; Rec.Descripcion)
{
ApplicationArea = All;
Caption = 'Descripción';
StyleExpr = xEstilo;
}
field(Fichero; Rec.Fichero)
{
ApplicationArea = All;
Caption = 'Fichero';
DrillDown = true;
StyleExpr = xEstilo;
trigger OnDrillDown()
begin
AbrirFicheroF();
end;
}
field("Document Type"; Rec."Document Type")
{
ApplicationArea = All;
ToolTip = 'Specifies the value of the Document Type field.';
}
field("Due Date"; Rec."Due Date")
{
ToolTip = 'Specifies the value of the Due Date field.';
ApplicationArea = All;
}
field(UserAlta; Rec.UserAlta)
{
ApplicationArea = All;
ToolTip = 'Especifica el usuario que ha creado el registro';
}
field(Alta; Rec.Alta)
{
ApplicationArea = All;
ToolTip = 'Indica el momento (Fecha y hora) en la que se ha creado el registro';
}
}
}
}
I am able ro hide or show depending on the variable xGdvVisible in the page extension. Namely, it works as I want and as expected.
But the second part: part(TCNDropFicheroGDC; TCNDropFicherosCOM) wich instead of fields, has a control adding:
Caption = 'Zona de carga de ficheros';
PageType = CardPart;
UsageCategory = None;
layout
{
area(content)
{
usercontrol(PictureViewer; "Microsoft.Dynamics.Nav.Client.WebPageViewer")
{
ApplicationArea = all;
Visible = not xOcultar;
trigger ControlAddInReady(callbackUrl: Text)
begin
CurrPage.PictureViewer.SetContent(PaginaHtmlF(xTextoDrop, xColor), ScriptF());
end;
trigger Callback(data: Text)
begin
OnDropF(data, xDatosPasados);
end;
}
}
}
This one, does no hide/show with the same value as the first one, in the visible property. As you can see in the page extension, the variable
xGdvVisibleis declaerd as [InDataSet] in the list page.
I think wether it is a limitation in BC or a bug.
Could you please help me?
Thank you ever so much