Hi everyone,
Imagine, if you will, you have almost 20 of these as embedded views:
At this time, each row of components, a total of 3, represent a record in a table, yes, there are duplicate values (e.g. the name "CZ01", and the last two check box values are recorded on each row).
Now imagine that every month or so a new set of records is created, so you end up with a list of basically blocks of data. I created this table just to show the list of blocks and if I click on a row (only one exists atm) the app navigates to a view with the above view displaying the data...
So, my user needs to be able to edit over 20 data points in each of these embedded views. So far that's not too bad. BUT, my current challenge is saving the changes to allow for one of two choices: update the current data block OR save a new data block.
In this case each block of data is represented by a VentID
number, so in the example, almost 60 rows are identified with a VentID
of 1 through 5.
Currently, the embedded view (speaking as if it's, um, independent of the main view at this point), have custom props for the data for itself - which is a parameterized query based on the value I assign it on the main view, 1 - 20 for example.
Then, I have a half-mile long list of custom props on the root that allow for changing values, colors and checkboxes as the user makes changes in the browser.
Here is a better example with real data: I picked two zones to display, have to hide sensitive info...
If I understand how to get data from embedded views (read from another post), I would need a parameter that each component could "save" to, so that a Button on the main view could grab that data, push into a query and run it.
OR, perhaps I could send a message from the Button click event, that the embedded view(s) could run a query on their side?
Any ideas or experience with something like this?