MasterDetailRelation, Column or Origin text cannot display ? #7268
Unanswered
Jeremy-Tang
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is my first level of form, we can call it ManualRow.cs?
[DisplayName("Line"), MasterDetailRelation(foreignKey: "ManualEInvoiceId"), NotMapped] public List<LineRow> LineList { get => fields.LineList[this]; set => fields.LineList[this] = value; }
in my LineRow.cs I got another MasterDetaulRelation :
[DisplayName("Taxes"), MasterDetailRelation(foreignKey: "LineId"), NotMapped] public List<TaxRow> TaxList { get => fields.TaxList[this]; set => fields.TaxList[this] = value; }
TaxRow.cs is the final level already, So the problem is that i am trying to show TaxTypeDescription but it didnt show the result just empty in my grid ? But if I going to show TaxTypeId then it can do. Can someone assist me I not sure what to do
[DisplayName("Tax Type"), Column("TaxTypeId"), NotNull,ForeignKey(typeof(MasterSetup.TaxTypeRow)),LeftJoin(jTaxType), TextualField(nameof(TaxTypeDescription))] [LookupEditor(typeof(TaxTypeRow))] public int? TaxTypeId { get => fields.TaxTypeId[this]; set => fields.TaxTypeId[this] = value; }
[DisplayName("Tax Type"),Origin(jTaxType, nameof(MasterSetup.TaxTypeRow.Description)),MinSelectLevel(SelectLevel.List)] public string TaxTypeDescription { get => fields.TaxTypeDescription[this]; set => fields.TaxTypeDescription[this] = value; }
in my TaxColumn.cs
[EditLink] public string TaxTypeDescription { get; set; }
Beta Was this translation helpful? Give feedback.
All reactions