S stevieg Member Licensed User Longtime User Apr 3, 2013 #1 I find a lot of the examples on this forum absolutely amazing. I have been wrestling with this problem for most of the day. (sad to say) There is an example, I believe from Klaus, that is called SqlDBTable. This does exactly what I want to do in my project (A salesorder form) but I don't know how to move it from Activity code to a panel. My salesorder has a panel in which I want to scroll the detail list of items in the salesorder, but I just can't figure out how to load it in a panel. Any help would be greatly appreciated. Thanks.
I find a lot of the examples on this forum absolutely amazing. I have been wrestling with this problem for most of the day. (sad to say) There is an example, I believe from Klaus, that is called SqlDBTable. This does exactly what I want to do in my project (A salesorder form) but I don't know how to move it from Activity code to a panel. My salesorder has a panel in which I want to scroll the detail list of items in the salesorder, but I just can't figure out how to load it in a panel. Any help would be greatly appreciated. Thanks.
klaus Expert Licensed User Longtime User Apr 3, 2013 #2 When you initialize the Table replace Activity by the Panel like: Code: Copy Table1.AddToActivity(pnlTable, 0, 0, pnlTable.Width, pnlTable.Height) Best regards. Upvote 0
When you initialize the Table replace Activity by the Panel like: Code: Copy Table1.AddToActivity(pnlTable, 0, 0, pnlTable.Width, pnlTable.Height) Best regards.
S stevieg Member Licensed User Longtime User Apr 3, 2013 #3 Thanks Klaus. I saw another example that used that method and tried it but I still have a problem. I get an error saying that the panel is not initialized. I think the problem is because my panel is in a layout. The panel is initialized. Any suggestions? Upvote 0
Thanks Klaus. I saw another example that used that method and tried it but I still have a problem. I get an error saying that the panel is not initialized. I think the problem is because my panel is in a layout. The panel is initialized. Any suggestions?
Erel B4X founder Staff member Licensed User Longtime User Apr 3, 2013 #4 It doesn't matter whether the panel is loaded from a layout file or added manually. Make sure that the panel is actually initialized. You can put a breakpoint and check its value. Upvote 0
It doesn't matter whether the panel is loaded from a layout file or added manually. Make sure that the panel is actually initialized. You can put a breakpoint and check its value.
klaus Expert Licensed User Longtime User Apr 3, 2013 #5 Are you sure that you entered the correct name of your table ? Best regards. Upvote 0
S stevieg Member Licensed User Longtime User Apr 3, 2013 #6 I figured it out, I was trying to add the table to the panel before I initialized the table. Now I just have to figure out what I did to stop it from scrolling vertically. Always something... Thanks Klaus and Erel! :sign0161: Upvote 0
I figured it out, I was trying to add the table to the panel before I initialized the table. Now I just have to figure out what I did to stop it from scrolling vertically. Always something... Thanks Klaus and Erel! :sign0161: