Forum

Relation and how to refer to one and another  Bottom

espaan / Jan 20, 2012 / 06:54 Link to this post

espaan

Hi,

if I have a 1:n relation from A : B.
The question I have is how do I refer to A or its fields when I am in the display template of B? So that I can show to which A this B is related.


Options

Rating

Replies

  • Axel / Jan 21, 2012 / 10:30 Link to this post

    Axel

    Hi Erik,

    did you set the bidirectional property of this relation to true ?


  • espaan / Jan 21, 2012 / 09:18 Link to this post

    espaan

    Nope. did it now icon_smile Unfortunately I still have some issues with the generated code from 054. Can I send you the app for generation with the latest generator code again?
    Sorry to bother you with it.

    I have to sort of finish the modules some time soon for my Track & Field club. They start to bother me when I have it finished icon_wink

    Templates are going in the right direction.


  • espaan / Jan 21, 2012 / 09:21 Link to this post

    espaan

    When the 1:n relation is unique in that sense that the B's from A : n*B always belong to one A, do I have to set the unique property on the relation to true?


  • Axel / Jan 22, 2012 / 07:01 Link to this post

    Axel

    Yes I think that enabling the unique property fits well to that requirement.

    About the generation: please send the Model to info@modulestudio.de


  • espaan / Jan 23, 2012 / 08:26 Link to this post

    espaan

    Ok, I will adapt the Model en send it once more to you. Thanks!


How to set up relations

8 Replies
Axel on May 15, 2012 - 06:04



Neue Umfragen

You have not voted in the poll:
Did you test ModuleStudio 0.5 already?
 
 
 

ModuleStudio Honey

Close

You don't have permission to e-mail this story - please login