|
|
Line 67: |
Line 67: |
| </script> | | </script> |
| </html> | | </html> |
|
| |
| Raw subtitles text
| |
|
| |
| this is session 2 of turnkey
| |
|
| |
| MDriven turnkey, gonna continue with
| |
|
| |
| early model here to demonstrate types and gonna add a new class called
| |
|
| |
| brand and the relation, so that
| |
|
| |
| each car can have 0...1 Brand
| |
|
| |
| Brands can have many cars, of course, gonna add some attributes to car
| |
|
| |
| object to the car class to demonstrate
| |
|
| |
| that you could have data of different types
| |
|
| |
| tire radius we will make double
| |
|
| |
| gonna add an image to
| |
|
| |
| brand as well, so we could demonstrate blob types
| |
|
| |
| we set image on the blob type
| |
|
| |
| in the EditOneCar we add these new possibilities, pick list, like that
| |
|
| |
| and let's make a new View Model
| |
|
| |
| to handle the brand manage, brands
| |
|
| |
| got that one make that ran and
| |
|
| |
| like before we gonna do all instances of brand this time
| |
|
| |
| and have the column Name
| |
|
| |
| and let's add image the grid as well to see what happens
| |
|
| |
| in this View Model would rather much like edited me
| |
|
| |
| on the brand in the same view
| |
|
| |
| add a nesting self to go from many integrate to one single and then I add
| |
|
| |
| columns for name and brand image again
| |
|
| |
| they will be rendered by the scalefolding engine as editable
| |
|
| |
| for each select brand I could now set the name and brand image
| |
|
| |
| global action for show on the manage brands
| |
|
| |
| and also view election for create
| |
|
| |
| on new brands, so alright
| |
|
| |
| you see them there, correct, let's go to the cloud
| |
|
| |
| upload, we check status, untill it's done okay
| |
|
| |
| sequence script has added the table for brand and staff
| |
|
| |
| F5 we seed a new menu item show manage brands
| |
|
| |
| I'm gonna add a brand, pick and set name Audi
| |
|
| |
| let's find image for each of these, like that and save
| |
|
| |
| one very common cases, of course that in the EditOneCar we will want to set the brand
| |
|
| |
| we are going to do that soon, just check the daytime picker in the different fields
| |
|
| |
| and it seems to work and switch back to
| |
|
| |
| model and the View Models
| |
|
| |
| for EditOneCar, here I want to add select to be able to browse to brands
| |
|
| |
| there's quick command for that, so in this case
| |
|
| |
| brand all instances we want to pick one of the available to brands and assign to our brand relation in our class
| |
|
| |
| that will exist on Car object
| |
|
| |
| gonna add the brand image behind there
| |
|
| |
| so we have a picker and the brand image, right
| |
|
| |
| let's do the model check, requiring error there
| |
|
| |
| that an easy one because there is EditOneCar view
| |
|
| |
| needed to check that it required a root object
| |
|
| |
| to show this one we need to have a car object
| |
|
| |
| F5 this and show all cars, View EditOneCar and we have the pick list, pick Volvo
| |
|
| |
| images updated of course and pick another one that we haven't set anything on Audi
| |
|
| |
| let's set the registration number as well
| |
|
| |
| okay and that's pretty much
| |