Mashiane Expert Licensed User Longtime User Aug 20, 2023 #1 Hi I am loading the same layout with auto-id turned on for all components in the layout. B4X: BANano.LoadLayout(swiper1.Slide(1).Here, "swiperslide1") BANano.LoadLayout(swiper1.Slide(2).Here, "swiperslide1") BANano.LoadLayout(swiper1.Slide(3).Here, "swiperslide1") I have noted from the generated HTML on the browser development, the assigned ids are the same for "qjzasbce" My layout... What can I be missing?
Hi I am loading the same layout with auto-id turned on for all components in the layout. B4X: BANano.LoadLayout(swiper1.Slide(1).Here, "swiperslide1") BANano.LoadLayout(swiper1.Slide(2).Here, "swiperslide1") BANano.LoadLayout(swiper1.Slide(3).Here, "swiperslide1") I have noted from the generated HTML on the browser development, the assigned ids are the same for "qjzasbce" My layout... What can I be missing?
Solution alwaysbusy Aug 24, 2023 The layouts which you load multiple times should be loaded with LoadLayoutArray. B4X: banano.LoadLayout("#body", "baselayout") banano.LoadLayoutArray(SHIonBaseElement1.Here, "childlayout", False) banano.LoadLayoutArray(SHIonBaseElement2.Here, "childlayout", False) banano.LoadLayoutArray(SHIonBaseElement3.Here, "childlayout", False) banano.LoadLayoutArray(SHIonBaseElement4.Here, "childlayout", False) Alwaysbusy
The layouts which you load multiple times should be loaded with LoadLayoutArray. B4X: banano.LoadLayout("#body", "baselayout") banano.LoadLayoutArray(SHIonBaseElement1.Here, "childlayout", False) banano.LoadLayoutArray(SHIonBaseElement2.Here, "childlayout", False) banano.LoadLayoutArray(SHIonBaseElement3.Here, "childlayout", False) banano.LoadLayoutArray(SHIonBaseElement4.Here, "childlayout", False) Alwaysbusy
alwaysbusy Expert Licensed User Longtime User Aug 20, 2023 #2 Provide a runnable small project that demonstrates the problem. Upvote 0
Mashiane Expert Licensed User Longtime User Aug 23, 2023 #3 Please find a demo that reproduces this. Hopefully we can pick up what I am missing. Thank you. Attachments Demo01.zip 12.3 KB · Views: 111 Upvote 0
alwaysbusy Expert Licensed User Longtime User Aug 24, 2023 #4 The layouts which you load multiple times should be loaded with LoadLayoutArray. B4X: banano.LoadLayout("#body", "baselayout") banano.LoadLayoutArray(SHIonBaseElement1.Here, "childlayout", False) banano.LoadLayoutArray(SHIonBaseElement2.Here, "childlayout", False) banano.LoadLayoutArray(SHIonBaseElement3.Here, "childlayout", False) banano.LoadLayoutArray(SHIonBaseElement4.Here, "childlayout", False) Alwaysbusy Upvote 1 Solution
The layouts which you load multiple times should be loaded with LoadLayoutArray. B4X: banano.LoadLayout("#body", "baselayout") banano.LoadLayoutArray(SHIonBaseElement1.Here, "childlayout", False) banano.LoadLayoutArray(SHIonBaseElement2.Here, "childlayout", False) banano.LoadLayoutArray(SHIonBaseElement3.Here, "childlayout", False) banano.LoadLayoutArray(SHIonBaseElement4.Here, "childlayout", False) Alwaysbusy