Quick question, why this doesn't work?? No matter how many times I change MyOption field's value, FieldH,V and F are never visible. BC 21.1 environment.
pageextension 50004 "Custom Item card" extends "Item Card"
{
layout
{
addafter(VariantMandatoryDefaultNo)
{
field(MyOption; Rec.MyOption) //This is an Option type field in my Item table
{
ApplicationArea = Basic, Suite;
}
field("FieldH"; Rec."FieldH")
{
ApplicationArea = Basic, Suite;
Visible = Rec.MyOption= Rec.MyOption::"1 Eje"; //Tried with a specific Option value, but still not working
}
field("FieldV"; Rec."FieldV")
{
ApplicationArea = Basic, Suite;
Visible = Rec.MyOption> 1; //This is what I actually need to achieve
}
field("FieldF"; Rec."FieldF")
{
ApplicationArea = Basic, Suite;
Visible = Rec.MyOption> 2;
}
}
}
}
Curious fact, Editable = Rec.MyOption> 1; works perfectly, so browser wise, it shouldn't be a problem, as I guess all this has JS on code in the background