Welcome, Guest
Username Password: Remember me

Sensible Samples
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Sensible Samples

Sensible Samples 1 year, 5 months ago #1

Morning

I just received my samples with my purchase, so have been playing with them.

I like the task assignment project - but there appears to be something wrong with it - at least the way I think it should work.

When you go to the Person Tab, and then click through the different levels - should the last link not take you to the Task itself ?

Iain
  • ihmunro
  • OFFLINE
  • Expert Boarder
  • Posts: 135
  • Karma: 0

Re: Sensible Samples 1 year, 5 months ago #2

Good morning Iain,

This is actually just a design decision, Sensible TableView gives you the choice whether to edit the task or not. To achieve what you're looking for, go to PeopleViewController.m under the PersonEntity class definition and change the following line:

 
((SCArrayOfObjectsAttributes *)tasksPropertyDef.attributes).allowEditingItems = NO;
 


To the following:

 
((SCArrayOfObjectsAttributes *)tasksPropertyDef.attributes).allowEditingItems = YES;
 


(or just remove the line all together as this is the default behavior)
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72
Last Edit: 1 year, 5 months ago by tarekskr.

Re: Sensible Samples 1 year, 5 months ago #3

Thank you Tarek - that worked.

When I drill down, it takes me to the main headings and not the task for that person.

I have tried a couple of things, but I still end up at the same place.

Any ideas ?

Iain
  • ihmunro
  • OFFLINE
  • Expert Boarder
  • Posts: 135
  • Karma: 0

Re: Sensible Samples 1 year, 5 months ago #4

That's just because the taskDef class definition in PeopleViewController.m only contains the name attribute. If you add more attributes to the class definition (like taskDef in TasksViewController.h), they will all appear in the task detail view.
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72
  • Page:
  • 1
Time to create page: 0.84 seconds