Hi @tagustin2020 ,
Please try and add a variable varScanned into your App, set it as false by default and once scanned set to true. So then the Tracking Numbers Value TextInput should display the default value of varRecord when not scanned and change to the collection result after scanned. Follow below formulas:
1\ Set Default of Tracking Numbers Value Field:
If(varScanned, Concat(colBarcodes,barcode, ", "), Parent.Default)
2\ Truck OnSelect:
Set(varRecord, LookUp('Domestic Shipping Requests', ID = ThisItem.ID));
ClearCollect(colBarcodes, RenameColumns(Split(varRecord.barcode, ","),"Result","barcode"));
Navigate('Logistics Screen',ScreenTransition.None)
3\ Logistics Screen OnVisible:
SetFocus(txtBarcode);
Set(varScanned, false)
4\ Barcode Scanning Text Input Control OnChange:
Collect(colBarcodes, {barcode:Self.Text,DateTime:Now()});Reset(Self);SetFocus(Self);
Set(varScanned, true)
5\ Form Control OnSuccess:
Set(varRecord,frmLogistics.LastSubmit);
Set(varScanned, false)
Hope this helps.
Best regards,
Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.