Disable "InplaceAdd" button #5713
Unanswered
patriciomh1965
asked this question in
Help
Replies: 1 comment
-
While this dialog is readonly, can you navigate to "Poliza" page and edit this record? If you can, you also must can edit with inplace button. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Community
Does anyone know how to disable the "Inplace Add" button according to a condition in read mode. According to the registry it can be modified or read.
I attach an image and part of the code created:
XYZRow
.....
.....
[DisplayName("Compañia")]
[Origin("cia"), MinSelectLevel(SelectLevel.List)]
public String CiaGlosa
{
get { return Fields.CiaGlosa[this]; }
set { Fields.CiaGlosa[this] = value; }
}
//
[DisplayName("Poliza"), Column("pln_poliza"), ForeignKey(typeof(TaCncConfigPolizaNuevaRow)), LeftJoin("pol"), TextualField("PolOrigenPoliza")]
[LookupEditor(typeof(TaCncConfigPolizaNuevaRow), CascadeFrom = "PlnCia", CascadeField = "PolCia", InplaceAdd = true)]
public Int32? PolNumero
{
get { return Fields.PolNumero[this]; }
set { Fields.PolNumero[this] = value; }
}
[DisplayName("Poliza")]
[Origin("pol"), MinSelectLevel(SelectLevel.List)]
public String PolOrigenPoliza
{
get { return Fields.PolOrigenPoliza[this]; }
set { Fields.PolOrigenPoliza[this] = value; }
}
.....
......
XYZDialog
protected afterLoadEntity() {
super.afterLoadEntity();
......
.....
Since I appreciate your help
Atte.
Beta Was this translation helpful? Give feedback.
All reactions