JSON I/O Unit e informazioni derivate

17 Oct '15, 10:36 AM
30,490 Views
Forum Forum Starter - Level 3

Buongiorno, sto utilizzando la JSON I/O Unit in modalità export per creare dei web services che forniscono informazioni basate su entità permanenti del database.

Ho delle difficoltà nella gestione dei dati derivati, anche se nella selezione degli attributi da esportare è possibile importare degli attributi utilizzando le relazioni 1-N, questi poi non vengono mostrati nel documento JSON esportato.

Inoltre se specifico dei nodi gerarchicamente collegati alla entità principale ed utilizzo per la relationship role della entità una sequenza di relazioni concatenate, il nodo non viene mostrato nel documento JSON prodotto.

Il problema si verifica anche se faccio la derivazione direttamente nel data model.

 

Ci sono delle configurazioni particolari da fare per utilizzare i dati derivati nella JSON I/O unit ?

Sto attualmente utilizzando WebRatio Enterprise Platform Version: 7.2.9 Build id: 201508150414

Grazie

Roberto

 

 
x 0
Follow
Answer Answer at this question and get points!
Forum Expert - Level 5

Buongiorno Roberto,

non ci sono configurazioni particolari da applicare per utilizzare i dati derivati nella JSON I/O component.

Puoi derivare tranquillamente un attributo da un'entità all'altra attraverso la loro relazione.
Per esempio, abbiamo un'entità Employee collegata con una relazione 1 a N con Company e voglio creare un servizio rest per effettuare una ricerca sulla tabella Employee. Uso la JSON I/O component con modalità Export mappata sull'entità Employee, nella proprietà "Attribute" oltre a selezionare gli attributi dell'entità ho importato alcuni attributi di Company utilizzando l'opzione "Derive.." presente nella finestra che crea in automatico anche sul Domain Model la derivazione. In questo modo i valori vengono correttamente mostrati nel documento JSON prodotto dal componente.

Saluti,
Ombretta

 
x 0
Answer at this question and get points!

Related questions

Acceder a diferentes site views/ Acces to diferents site views Add to Bag link in ACME any webratio book ? Asking For a Book Attribute comparison in a selector unit Clarification about the NoOperation unit Codigo QR Como hacer un menu en webratio? Conditional Expression "greater than 0" on null fields Connect more query unit Content module page variable won't assign. coupled mandatory fields Create Unit with Date (Year only) Custom Attributes Condition Database Database List is not showing up in App Emulator Data is always created doubled Data Management: Updating Data - Attachments - Updating Data Sample Project Final Description: Unknown tag 'wr:LinkResource' Dudas sobre modelado(Data Flow,Forms y Operation Create) Empty record mistakenly saved en_US codify problem Excel Unit - Font size Export option Export to a HTML/CSS/JS project Export XML external link.= Extract the IFML models from WebRatio in XML Filter information in a Simple List Format currency forward/backward navigation and bookmark in ajax web app "Generation Error" with Generate and Run Generation options problem get the attachment files of an email Get Unit problem Get Year from Date Help for connect public and private site views How can i create pagemenu or landmarkmenu with multiple levels. How can i save a diagram as an image file? How does WebRatio represent these IFML elements? / ¿Cómo representa WebRatio estos elementos IFML? How i can reuse modules in multiple projects? How to define the sequence of execution units on a page? How to display the attributes of a related entity. How to filter imported attributes? How to include Selector Unit result in Mail Unit Body? How to pass vars to a alternative page How to process IFML Model (build with Eclipse editor) with ATL How to show a page based on a boolean? How to speed up the "last" link using PowerIndexUnit for lots of records How to store data related to an entity in relationships in a project web Insert data into database Insert master page to many hybrid modules Integrating a BPM model into an existent WebML model iReports version KO Links in Selector Unit Landmark in hybrid module Link localization Links from Index unit with condition Link Visibility Condition Power Index Unit Mail multipla maintain the record order in a sortable list Math Unit to update attributes of an entity? Meta-modello di WebRatio [MOBILE] How I extract information from JSON client side? Modifica Entità tramite file xml Multi Entry Unit: How to forward only checked rows? multi-lingual product description Non riesco a fare funzionare Xml out unit Parametrizzazione Selector Unit Problem Example create Unit (no company in employee table) Problem in adding diagrams in IFML Editor (Eclipse) Problem with query unit! Problem with Scroller Unit query a database Question about Site Views Rename passing attributes Replace ID by its value in another table Search by Selector component does not work Select between parameters Selector unit doesn't return any value in hybrid module Sending mails is not working Sending mails with gmail is not working Setting the Default link for a Switch unit show/hide fields on button click (registration page) [solved] all links transparent, why ? Something leads to wrong condition expression evaluation. sumar atributos de una tabla filtrado por Role Condition Sum entity's values Transportation Link issue Unique Fields using relationship role conditional with null usuarios y grupos utilizzo componenti database Visibility Condition on Multiple Links From Index Unit WebRation - Create Navigation diagram