Hi @v-qiaqi-msft
1. The Items Property of the ComboBox is Choices([@Payments].jg__Payee), also tried : Payee.
Choices([@Payments].jg__Payee is what was automatically added to the Items Property of the ComboBox when adding the Payee Field into the form. A label with Text PayeeCombo.Selected.RegistrationNumber works at first when it is a new payment , or when payment is selected from gallery, but stops working and shows blank once record is saved.
2. The DataSource of the Form is Payments Table. The Item Source is varSelectedPayment. This variable is populated by selecting a Payment from Payment Gallery
3. The Payments Table also has some Simple Decimal Columns ,like, TDS Rate, TDS Amount. If I have a label within the form which has the Text Property as ThisItem.TDS Rate or ThisItem.TDSAmount, it works for some columns but shows up as blank for others, although there is definitely data there, as can be cross checked by trying to populate the values directly from Payments Gallery. This issue only occurs after record is saved. It is not an issue when record is selected from gallery.
So,
Working as expected:
ThisItem.TDSRate ,
varSelectedPayment.TDSRate,
PaymentsGallery.Selected.TDSRate ,
PaymentsGallery.Selected.TDSAmount
Showing Up Blank although there is data there:
ThisItem.TDSAmount,
varSelectedPayment.TDSAmount,
I found out after further testing that all of these problems are only occurring after saving a record. When the record is new, or populated by selecting a record from gallery there are no problems. Both the simple properties like Decimal Columns and the LookUp Columns Properties can be accessed correctly when form is new or selected from gallery, they only show up blank when record is saved
My form save expression is as follows
Set(isPaymentUnderProcess,true);
SubmitForm(PaymentForm);
If(IsEmpty(Errors(Payments)),
Set(LastCreatedPayment,PaymentForm.LastSubmit); Set(varSelectedPayment,LastCreatedPayment);
ResetForm(PaymentForm);Set(EditPayment,false);Set(NewPayment,false);
Set(isPaymentSaveRequested,true);
Reset(ResetPaymentAcEntry_Component_1);
SetFocus(AddPaymentIcon);
);