Web Ratio Mobile and Foreign Key

04 Oct '16, 12:14 PM
56,509 Views
No Forum Badges

Hi!

I'm using WebRatio Mobile 8.9.6 and I don't understand how can I import the association in my mobile project.

In particular, I have created a DataService Project in which I have two tables: "Program" and "Conference" and one association 1-N between them. So, I have exported the tables and the association in the Cloud database and I have seen that the MySQL "Conference" Table contains successfully the "program_oid" foreign key.

But when I have imported the domain model in my mobile project only classes were imported without the column "program_oid" and without imported the association, so when I create a new row of Conference from the app I'm not able to add the foreign key with the "Program" row.

Can you explain me how can I map the association from Mobile Project, please?

Thank you a lot,

Manuela.

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

Hey Manuela!

When configure the Data Services, the Classes modified will be showed under the Data Service Tab in the Outline. By Default, since the association is already made on the Backend, the Project doesn't Synchronyze the relation with the Class and its Attributes, unless you specify it.

 

In order to do so, you must click on Either the Program or Conference Class in the Outline under Data Service, and click Select in the Associations Parameter. With that you can choose which relations you allow to import in the Mobile Application.

You don't need to specify it in Both classes, if you try to do so, WebRatio will show you that the Association can already be exported by coloring the Association (blue) just like in the Parameters Flow.

 

Hope it was of help!

Roberto.

   
x 1
No Forum Badges

Hi Roberto!

Thanks thanks thanks! It works! :)

 
x 0
Answer at this question and get points!

Related questions

502 proxy error-generate and run Adding and deleting from the database aggiornamento fallito a causa di un errore interno Agregar boton de cambio de contraseña en el login Alimentar graficas con base de datos Atributos Condicionales heredados Attribute comparison in a selector unit Avvio chiamata dispositivo [beginner] - How to store and browse data collected with BPM app? Bluetooth Business object data Cambiare dimensioni bottoni - Change button size Cancellare campi e tabelle dal database Cannot add a Database in the Domain Model Cannot connect to MySQL Can not get generate and run option for DataService Project Cannot insert an entity in the database Cannot invoke method selectSingleNode() on null object Can't generate and run database or start tomcat server! Change uplod directory and protect anauthorized access to files Codigo QR Como mostrar una imagen en una lista o en la componente detalles? Como recuperar todos los atributos de una relacion N:N y insertar registros? Conexion a Oracle 12g Confirm dialog for mobile Connection refused. connect to Cloud Convert data in a Calculated attribute Convert selector component result to single value Could not open the editor: This copy of WebRatio is not registered Creación DB Apache Derby - Modelado BPMN Criptare dati sensibili nel database Customize layout mobile platform Database connection, Host and Port number Database List is not showing up in App Emulator Database password encrypting Database properties Database resource consumption Database Tables Creation After Remote Deploy Data Management: Updating Data - Attachments - Updating Data Sample Project Final DataService Projects and Mobile Projects in WebRatio Community DB in Data Service Project Deploy in Cloud Amazon Beanstalk with Postgres Dynamic data type Empty record mistakenly saved Emular una App Errore su mobile-custom-components Error testing mobil app in android Error updating metadata process EverLasting error "The TCP/IP connection to the host has failed. Connection refused" Execute truncate sql query Export XML file analysis then update MySQL database Find Model Problemas Foriegn key relationship Form template Generate and run locally on webratio professional edition. getting data from database Grabar informacion localmente - WebRatio mobile Groovy and Database Guardar Saltos de LINEA Hide a form if condition if true How can I import a view in the Domain Model as an attribute of an Entity? How can I interact using a iOS (iPhone/iPad) client with a WebRatio app? How database or datamodel migration? How I can receive the primary key value after adding into database from OK Port. How to block empty string in Database How to disble derby database? How to fix Network error(status 0) How to run web app with authentication service How to show certain values derived from relations in the domain model? I can't run any application with WebRatio (Table/View 'APP.POST' does not exist) Image in List field Import an XPDL 2.2 file into a BPM Project Importing JAR Libraries into Script Unit Insert data into database integrate framework to webratio mobile Is it possible to create a derived relationship between databases? is possible integrate CartoDB in WebRatio Mobbile apps? JDBC4 Postgresql Driver JDBC connection with mysql on mac Job not start correctly Make a call from Mobile APP Mapping database of the entity '...' is unspecified Missing units when importing project [MOBILE] Can't synchronize domain model with beck end DB [MOBILE] Errore Field Mandatory [MOBILE] How I extract information from JSON client side? Mobile platform : List view - add / remove row Mobile Platform - using device specific features [MOBILE] Script doesn't work! Modifica Entità tramite file xml Mostrar datos de diferentes tablas/ show dates from diferentes entities Mostrare un bottone solo in determinati casi MS SQL server jdbc file multi selections field problem MySQL Driver jdbc No Apache Derby driver found No Database on Cloud account No database on my cloud account Non riesco a fare funzionare Xml out unit Passing JSON Object to Model Personalizzare lo stile di un progetto PostgreSQL Predefined values in database Problem accessing MySQL with WebRatio 6 Problema Grafo da una lista gerarchica Problema ¨HTTP Status 404" Problemas con el Operations View Delete Problem saving multi selection from input Problems to connect Sql Server DB from Webratio Problems with Database Metadata Problem with fields with accents used in attribute condition Problem with query unit! Problem with stored procedure Problem with the deletion of more than 50.000 records in a table Process model import in other languages publish web service for storing information in PostgreSQL DB following XSD Resource query a database Refresh and Synchronize DB Problems Relaciones Removing the User-Group-Module tagles REST connection and Mobile App deploy Retrieve a value and add some value to it reverse engineering, problema con le relazioni di default Script Unit e Mysql Share database connection Solve "Generation Error" with Generate and Run option Statistics Component for WebRatio > 7.2.0 Status ProcessInstance and activityInstance in spanish Supoort for Mobile and Desktop display Sybase JConnect 4 JAR replace Sync DataService Project with Mobile Project Table 'freeapp43.profesion' doesn't exist Tarea de servicio no me evalua el valor Trying to Synchronize Domain Model Unable to execute the script java.lang.NullPointerException Unknow property on Dynaclass after generation Unspecified BPM Engine Database Update mutiple records with the same value upload file and the move it to other location User Login Timestamp Username come chiave Using own User and Group tables Web ratio data model WebRatio - list results of joined tables Web Ratio Mobile plateform Macos Sierra WebRatio Mobile Platform Community edition - Restful request Web Ratio Mobile - Remote data mapping problem WebRatio no imports all attributes (fields) of a table Where is the ACME demo data stored?! White report