Jump to content

- - - - -

empty sections - existIn...

  • Please log in to reply
No replies to this topic

#1 Bounty


    Experienced Member

  • STV 4.0 Pro
  • PipPipPipPip
  • 64 posts
  • LocationNetherlands
Reputation: 11

Posted 05 January 2014 - 08:25 AM

When hiding all properties in some mode, the section can become empty as well. 


For example:


- in editing mode a section "Status" is shown with admin fields 'active' and 'verified';

- these fields should eb hidden in Normal mode, which is easy:

    [entityDef propertyDefinitionWithName:@"active"].existsInNormalMode = FALSE;

    [entityDef propertyDefinitionWithName:@"verified"].existsInNormalMode = FALSE;

The "Status" section now becomes empty unless in editing mode. However, the section name is still shown (without further content - as intended).
Emptying the name from propertyNameString doesn't help much either, it leaves a space-wasting empty row.
Unless a solution already exists (if so: please let me know!), I'd suggest something like:
     [entityDef sectionWithName:@"Status"].existsInNormalMode = FALSE;
Or -even better- a self-aware sections:
     [entityDef emptySectionsWithName:@"Status"].existInNormalMode = FALSE;


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users