grant1842 Active Member Licensed User Longtime User Oct 14, 2013 #1 I have a table (Radio) feilds are Radio Text TypeOfMod Text PartsNeeded Text ModInstructions Ok on my main layout i am loading all the records in a listview 1 Code: Copy SQL.Initialize(File.DirDefaultExternal,"cb.db",True) DBUtils.CopyDBFromAssets("cb.db") DBUtils.ExecuteListView(SQL,"Select Radio.* From Radio",Null ,0,ListView1,False) On my second activity I need to load (Listview111) only with the Field ( ModInstructions) that matchs the item I click on in the Main view(listview1). Second listvew111 might be someing like this. Code: Copy SQL.Initialize(File.DirDefaultExternal,"cb.db",True) DBUtils.CopyDBFromAssets("cb.db") DBUtils.ExecuteListView(SQL,"Select ModInstructions From Radio",Null ,0,ListView111,False) I just need it to show only the record i click on listview1. Can someone point me in the right direction . Thanks
I have a table (Radio) feilds are Radio Text TypeOfMod Text PartsNeeded Text ModInstructions Ok on my main layout i am loading all the records in a listview 1 Code: Copy SQL.Initialize(File.DirDefaultExternal,"cb.db",True) DBUtils.CopyDBFromAssets("cb.db") DBUtils.ExecuteListView(SQL,"Select Radio.* From Radio",Null ,0,ListView1,False) On my second activity I need to load (Listview111) only with the Field ( ModInstructions) that matchs the item I click on in the Main view(listview1). Second listvew111 might be someing like this. Code: Copy SQL.Initialize(File.DirDefaultExternal,"cb.db",True) DBUtils.CopyDBFromAssets("cb.db") DBUtils.ExecuteListView(SQL,"Select ModInstructions From Radio",Null ,0,ListView111,False) I just need it to show only the record i click on listview1. Can someone point me in the right direction . Thanks
Erel B4X founder Staff member Licensed User Longtime User Oct 14, 2013 #2 You should only copy the database one and initialize SQL once. You can use CallSubDelayed to start the second activity and pass the information needed for the second query. Upvote 0
You should only copy the database one and initialize SQL once. You can use CallSubDelayed to start the second activity and pass the information needed for the second query.