J John Naylor Active Member Licensed User Longtime User Nov 25, 2020 #1 B4J - 8.5 ABM - 4.51 Is it possible to read values of a component that's on a secondary table within a primary table? I have given each sub table a unique ID based on the id of row it supports but I don't seem to be able to get to it later. What I want to do is read the value of each id (hidden) and ABMInput on the sub table when I hit the Add/Update button. B4X: Copy Dim StockSearchTable As ABMTable = LookupPartsmodal.Content.Component("stocksearchtable") 'Works Dim SubTable As ABMTable = LookupPartsmodal.Content.Component ("UID247") 'Doesn't work The sub table is added like this B4X: Copy rCellValues.Add(BuildOtherTable("UID" & tblFields.Get("id"), tblFields.Get("id"))) ' This is the actual stock and location rCellThemes.Add("aligntop")
B4J - 8.5 ABM - 4.51 Is it possible to read values of a component that's on a secondary table within a primary table? I have given each sub table a unique ID based on the id of row it supports but I don't seem to be able to get to it later. What I want to do is read the value of each id (hidden) and ABMInput on the sub table when I hit the Add/Update button. B4X: Copy Dim StockSearchTable As ABMTable = LookupPartsmodal.Content.Component("stocksearchtable") 'Works Dim SubTable As ABMTable = LookupPartsmodal.Content.Component ("UID247") 'Doesn't work The sub table is added like this B4X: Copy rCellValues.Add(BuildOtherTable("UID" & tblFields.Get("id"), tblFields.Get("id"))) ' This is the actual stock and location rCellThemes.Add("aligntop")
alwaysbusy Expert Licensed User Longtime User Nov 25, 2020 #2 I would think something like that to get the sub table (untested) Code: Copy Dim SubTable as ABMTable = StockSearchTable.GetComponent(row, "UID247) Alwaysbusy Upvote 0
I would think something like that to get the sub table (untested) Code: Copy Dim SubTable as ABMTable = StockSearchTable.GetComponent(row, "UID247) Alwaysbusy
J John Naylor Active Member Licensed User Longtime User Nov 25, 2020 #3 alwaysbusy said: I would think something like that to get the sub table (untested) Code: Copy Dim SubTable as ABMTable = StockSearchTable.GetComponent(row, "UID247) Alwaysbusy Click to expand... Woosh! Saved me again thank's @alwaysbusy I totally missed the .GetComponent option. Far too busy looking for .content or .component I shall be more thorough in the future ;-) Upvote 0
alwaysbusy said: I would think something like that to get the sub table (untested) Code: Copy Dim SubTable as ABMTable = StockSearchTable.GetComponent(row, "UID247) Alwaysbusy Click to expand... Woosh! Saved me again thank's @alwaysbusy I totally missed the .GetComponent option. Far too busy looking for .content or .component I shall be more thorough in the future ;-)