Basically there is 4 Gallery for Laptop and another 4 for Accessories.
Total 4 locations

LAPTOP
Lutong : Gallery 1_1
Menara Shell : : Gallery 1_2
Plaza Shell : Gallery1
Labuan Supply Base : Gallery1_3
ACCESSORIES
Lutong : GalleryLUT
Menara Shell : : GalleryKL
Plaza Shell : GalleryKK
Labuan Supply Base : GalleryLSB
What's Toggle1 ? I did not find it from the picture. Please provide the relevant formula and describe its usage.
It is hidden. Purpose is to tell if there is any changes done on the box .
Formula :
ThisItem.LUTONG <> TextInput6_1.Text Or ThisItem.'MENARA SHELL' <> TextInput6_2.Text Or ThisItem.'PLAZA SHELL' <> TextInput6_3.Text Or ThisItem.'LABUAN SUPPLY BASE' <> TextInput6_4.Text Or ThisItem.TOTAL <> TextInput6_5.Text

What's Items formula of GalleryLaptop ?
TextInput6_1 : LookUp(Gallery1_1.AllItems,LaptopModel.Text = Laptops.Text).Total.Text
TextInput6_2 : LookUp(Gallery1_2.AllItems,LaptopModelKL.Text=Laptops.Text).TotalKL.Text
TextInput6_3 : LookUp(Gallery1.AllItems,LaptopModelKK.Text=Laptops.Text).TotalKK.Text
TextInput6_4 : LookUp(Gallery1_3.AllItems,LaptopModelLSb.Text=Laptops.Text).TotalLSB.Text
TextInput6_5 : TextInput6_1 + TextInput6_2 + TextInput6_3 + TextInput6_4
What's Items formula of GalleryAccessories?
TextInput11 : LookUp(GalleryLUT.AllItems,ProductsLUT.Text = Accessories.Text).QuantityLUT.Text
TextInput11_1 : LookUp(GalleryKL.AllItems,ProductsKL.Text = Accessories.Text).QuantityKL.Text
TextInput11_2 : LookUp(GalleryKK.AllItems,ProductsKK.Text = Accessories.Text).QuantityKK.Text
TextInput11_3 : LookUp(GalleryLSB.AllItems,ProductsLSB.Text = Accessories.Text).QuantityLSB.Text
TextInput11_4 : TextInput11.Text + TextInput11_1.Text + TextInput11_2.Text + TextInput11_3.Text
Toggle 2 :
ThisItem.LUTONG <> TextInput11.Text Or ThisItem.'MENARA SHELL' <> TextInput11_1.Text Or ThisItem.'PLAZA SHELL' <> TextInput11_2.Text Or ThisItem.'LABUAN SUPPLY BASE' <> TextInput11_3.Text Or ThisItem.TOTAL <> TextInput11_4.Text
What's Items formula of Gallery1_1?
no specific formula. Its connected to a data source (Excel) when I hit the update button
Update button formula : (toggle is hidden)
ForAll(Filter(Gallery1_1.AllItems, Toggle3_1.Value = true) , Patch(LUT_LAPTOP, ThisRecord, {JML:TextInput1_8.Text, CAR:TextInput1_9.Text, SECONDEE:TextInput1_10.Text , BREAKFIX:TextInput1_11.Text,VIP:TextInput1_12.Text, TOTAL:Total.Text}))
What's formula of LaptopModel?
What's formula of Laptops?
This is based on @v-albai-msft advise in my previous post :
https://powerusers.microsoft.com/t5/Building-Power-Apps/Show-data-from-one-Gallery-based-on-location-in-another-Gallery/m-p/909949#M288738
I hope this explains better. hopefully not too much useless information. I'm still new to Powerapp 🙂