Ask and answer questions about WebRatio, WebML and BPMN

Hi, I've got this part of data model:

alt text

"Towar" represents products and "Koszyk" is a cart for my shop application.

Now I need to show all records from "Koszyk" table. However - when I invoke "Display attributes" wizard for "Koszyk" table, Index Unit allows to choose only "oid" and "liczba" attributes. As there's a relationship between entities listed above, I need to show also "nazwa" attribute for each row. How can I do this?

Thanks in advance for help.

asked 04 Jan, 17:18

dandys997's gravatar image

dandys997
15145
accept rate: 0%


Hello, the part of the Data Model you've posted has got an error: it is not possible to model a relationship between an Entity with "persistent" duration and an Entity with "volatile" duration.

Then if you need to see in the page all the products related to a Cart, you should use a couple of Content Unit. The first one will show the details of a single Cart. The second one will have a Selector Relationship Role Condition on it, to let it show the list of the products related to a certain Cart. This second unit will have got on "nazwa" as displayed attribute.

link

answered 05 Jan, 09:49

mariobrunowr's gravatar image

mariobrunowr
2553
accept rate: 43%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×2
×1
×1

Asked: 04 Jan, 17:18

Seen: 328 times

Last updated: 05 Jan, 09:49

©2001-2011 Web Models s.r.l. All rights reserved