Well, I know this is a vague conceptual question, but I really need help here. Thanks in advance if you decide to take the time to read this. I would never have thought of this, but it is a great forum with so many helpful people that I thought this would be the best place to ask.
All this is connected with the question here (you do not have to look at it - I explain everything below): Skip the parameter when initializing the table
I have been working for several days on the same problem, but I understand that there must be something big that I am missing. I googled and googled, and I even bought (and read about 50%) two Obj-C books a few days ago, but I'm still clutching at what seems to be incredibly easy. I am obviously pretty new to OOP, but I have average skills in HTML, perl, sql, python, as well as some ancient things like pascal and basic. I'm n00b, but not an idiot (well, actually this experience changes my mind a bit).
In any case, my ultimate goal is to simply create an application with 8 "normal" buttons on the first view (level 1), each of which does basically the same thing - to show a simple tabular view (level 2) with data in cells that can be clicked to continue drillthrough (level 3). Very simple and clear concept. The only difference between the 8 possible level 2 is the data that will be displayed. I have already created sql queries that work the way I want for each button.
So, here where I stand: I have a perfectly working application that does everything from level 2, just as I expect - queries work, tables are beautiful - so great.
In addition, I have another navigation application that launches at “level 1” and shows me 8 buttons (I hide the navigation bar at level 1). If I press any of the buttons at level 1, the level 2 view (which is the navigation bar + table) slides into the field of view exactly the way I want. The problem is that the table is just empty. No matter what I do, I cannot get the second level in the second application to show me the data, although I can completely show all this data in the first application. For my life, I can’t understand how to “link” level 1 to level 2.
I hope you understand this gap that I am trying to bridge. Since there are 8 possibilities for level 2 (with very slight differences in sql queries in the same sql table), I first tried to come up with a way to “pass” an integer to a level 2 view (in the first application) and then select the sql query to based on what was transmitted (see link above for this fiasco). Once I got this working, I planned to figure out how to make the buttons later. However, after about 16 hours, I just gave up and decided to make 8 different table view controllers, all with almost identical code, except for the request. Thus, if I could just press the SINGLE button at level 1 to just press only one level 2 with NO parameters, I would be a terrible but successful programmer.
Unfortunately, even this did not work for me. I tried all possible combinations of drag-and-drag-and-window / view / table that I can think of in Interface Builder, but no matter what I try to do, the data is never loaded into the table view, even though that this works great in my first application. I went through each line of code - they are the same, except that something should “trigger” or “start” the level 2 part, and I just don't get it.
So, I'm going to break with the agreement / expectations here, and not post any code in my question. I just want to know how it can be so complicated? I am very analytically inclined and will quickly catch, but I must say that I have never been so confused with the technical difficulties in my life.
Can someone explain to me, conceptually, what I need to do here or what I am missing? Even if you give me a link to read something, I would really appreciate it. I watched dozens of hours of tutorial on YouTube, but I'm always ready for more.
Of course, I want to share my code, but there is so much, and I'm so new to this, I really don't know where the relevant parts are. In addition, I really want to find out how it all works so that I can help others. If there is such a thing as PM, I will send it to you if you want to take a look. As soon as I earn it, I will post the code here. I have to believe that there are other people who are looking for the same thing as me. However, more importantly, I just want to know, from a high level, how to approach my problem correctly? If you look at my link, you will see that I tried (to pass an integer to the method filling the table), but, as I said, I basically refused this, because I will not go anywhere. People are trying to help me, but I'm an idiot.
Thank you for being with my excruciatingly long message. If you have made it this far and I have suggestions, I’m all ears. I will be honest, though, if you tell me that I just have to give up all this and use the basic data that I will pay. I really don't think I have the time to figure out another way of managing data. As I said, I am very pleased with the database and the request parts of my application - it is just managing the extra looks and transferring data between them that is killing me!
Any help is appreciated - thank you very much.