Showing items that have a relation with an entity

12 Oct '14, 10:19 PM
41,697 Views
No Forum Badges

Hello,

I'm working a project where I am showing a list of entities (tasks). Every task has one or more items and I want to show all the items that have a relation with the task in a detail view. This detail view should show one particular task and all items of that task. How can I do that?

Thanks!

 
x 0
Follow
Answer Answer at this question and get points!
Forum Starter - Level 3

Hi Martijn
you may try importing the attributes through the relationship. To do so, follow these steps:

  • Place the Detail Unit in your page, click the General tab of the Properties view, and associate it to the parent entity (task);
  • now, click the Select icon of the Display Attributes property, and the Import button;
  • navigate the relationship and choose the attribute of the child entity (task item) you want to show;
  • by default you may have Count Distinct as the Aggregate criterion; click inside the field, and a list of choices will appear: choose the first (null, blank), not the red 'x';
  • finally click the Ok button.

Add more attributes, if required.

 

   
x 1
No Forum Badges

Dear Ettore,

Thanks for the answer, it works!

 
x 0
Forum Expert - Level 5

Hi Martijn,

You can create a attribute in entity (tas) and define it as derivation. 

See this video https://www.webratio.com/learn/learningobject/extending-the-domain-model-derivation

Regards!

 
x 0
Answer at this question and get points!

Related questions

404 on generated app page 500 error with WebRatio BPM 502 proxy error-generate and run Access Denied when I try to download Webratio Platform from Student Access Denied when I try to download Webratio Platform from Student Area Admin area disabled aggiornamento fallito a causa di un errore interno Ajax and FCK Editor (WebRatio 5.x) AJAX events problem to external JavaScript Ajax onchange and jQuery 2.x (with migrate plugin) incompatible Ajax on change selection field and modify units Any sample deployment Autocomplete template Automatic date in form Automatic file upload BPMN: URL field Can not get generate and run option for DataService Project Cannot insert an entity in the database Cannot invoke method putAll() on null object Cannot invoke method selectSingleNode() on null object Can't run any aplication ckeditor - change directory for the browser Clean a form Code is exceeding the 65535 bytes limit error on JBOSS Como crear cambio de contraseña Como tener dos botones juntos en un formulario independientes de una accion? Como usar la función autocomplete en un field Compare with the current time Component computation com.webratio.struts.exceptions.WRSecurityException: Invalid request target host Connection refused. coupled mandatory fields Cryptic error when submitting a form Database connection, Host and Port number Data flow from a page which is not visible anymore DB in Data Service Project Debug configuration Disabilitare campi durante evento AJAX Drop down menu question Dudas sobre modelado(Data Flow,Forms y Operation Create) Dynamic attribute/field names. Possible? Dynamic instantiation of fields on a page for any Class type Empty record mistakenly saved entry form logic. Entry Unit - Default field timestamp Entry Unity, Field Date Type Error error activating student account Error deploying WAR against to JBOSS Error updating metadata process Error when updating to WR 7.2.3 Estado HTTP 404 - No está disponible el Servlet action Field as link soruce Filtros Caracteres Especiales Find Model Problemas Format currency Form element Form template From BPM to WebProject - BUILD FAILED Generation errors on ajax enabled page with many components, ajax links and selective refresh "Generation Error" with Generate and Run Getting the absolute path of a RTXBLOBData Groovy script numer after an error HelloWorld Unit sample code help for web project Help with math unit. Debug mode says error as result code Hide form until a flow is triggered Hiding form components based on page conditions Hiding landmarks (or flows) when the user is logged in Hierarchy component How I can receive the primary key value after adding into database from OK Port. how to delete this error? How to get a wr:AjaxURL tag working How to redirect to the correct site view after a successful login attempt How to show certain values derived from relations in the domain model? How to use GoogleGeocoding Add-on i can't install mobile version on windows I can't install Webratio on my Desktop (Ubuntu 13.04 x64) I can't run any application with WebRatio (Table/View 'APP.POST' does not exist) input mask Installation On MacOS Installation with java 1.8 Installazione Macosx invio mail fallito java.lang.NullPointerException java virtual machine error Job not start correctly JSP/DO issues on Tomcat 5.5 (Ubuntu) Login Error mandatory control code parameter is missing Mensaje: the selection cannot be launched and there are no recent launches Missing plugin emulation support error Missing units when importing project Multi Entry Unit: How to forward only checked rows? Multi-Image Upload Multiple forms on one page. HTML5 input attributes. Possible? (2 questions) multi selections field problem Multi Selects didn't work in update page Need help with Landmark Next Activity Note property - Error synchronizing with web project No access to protected site view with Login No Apache Derby driver found No cloud accounts available No database on my cloud account Page Home - First time the Project Web begins Prelevare la chiave del record da una Selection Field in una Multiple Form Primefaces Problema al generar y ejecutar proyecto Problema generazione codice Problema Grafo da una lista gerarchica Problema ¨HTTP Status 404" Problemas con el Operations View Delete Problem: Compile Failed problemi installazione su Mac sistema operativo OSX El Capitan problem on first deploy with webratio Problem saving multi selection from input Problems to connect Sql Server DB from Webratio Problem syncing reports Problem to run an Application Problem with application runnung Problem with execution of webratio Problem with ireport Problem with the deletion of more than 50.000 records in a table Progress bar when uploading big file(s) in a form? Project cannot be opened with WebRatio Community Platform Pulire URL Redirecting users to another site view Relaciones Resize fields Retrieve a value and add some value to it Sample web application Search by Selector component does not work selection fields on cascade Select multiple files for upload Setting Upload directory Simulation Software Slot in Selection Field Solve "Generation Error" with Generate and Run option Student reserved area, download error Table 'freeapp43.profesion' doesn't exist Tomcat external session store and WebRatio webapp. "Unable to close sub-context ..." Unable to compute the controller URL(s) for applicationUnable to compute the controller URL(s) for application having status PROVISIONING Unable to connect to Internet Unable to download WebRatio from Student Area Unable to execute the script java.lang.NullPointerException Unable to find Cloud free function Unable to get ExpenseReport example work in WebRation Personl 7.2.2 Unable to instantiate a new application instance Unable to start WebRation, cannot locate its companion shared library Unable to update the web project Unknow property on Dynaclass after generation Unspecified BPM Engine Database Update fields based on selection of other fields Updating attributes of an entity upload file and the move it to other location upload file html Uppercase User Login Timestamp Uso de la componente chart de webRatio Validacion validation fields Value Length (Min) fails to validate when field is empty? WebRatio activation problem Webratio Add-ons no permite login Web Ratio Add-ons shop not working WebRatio freezes at project load (Linux) WEBRATIO LINUX AT EXECUTION TIME Web Ratio Mobile plateform Macos Sierra Web Ratio Mobile - Remote data mapping problem WebRation - Create Navigation diagram WebRatio y Java 1.8 (o superior) What are the new features of WebRatio 6.1? When execute my web application I have this error: returned a null bean which of these three models is closer to webratio/ifml way of creating web applications XPCOM Error