Retrieve a value and add some value to it

17 Oct '14, 05:16 PM
No Forum Badges

Hi all


I'd like to update a database value of an entity with some value. In my action definition you get an object that has an attribute value "gain" which should be added to the "pouch" of the person that retrieved the object. How do you do this?

I tried using the math tool, but it doesn't accept the object and does not give an output either which I can direct to an update statement. 

How can you do this?

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

Yo can use a scriptUnit to do the operation with your object.

x 0
No Forum Badges

Hello Guillermo


The problem is that in the action we only can retrieve the oid of the person (user) in the system. We cannot retrieve the User object as a whole. How should you retrieve the pouch of that person having only an oid? And what does the script unit looks llike having a  person (user) object and the other object (task) ?

x 0
No Forum Badges

Never mind, I found a solution to my problem. Thanks for your help.

x 0
Answer at this question and get points!

Related questions

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 Adding and deleting from the database Add logging capability to a Groovy script (unit) 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 [beginner] - How to store and browse data collected with BPM app? Build Project. Only files for compilation .class Business object data 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! Can't run any aplication Change uplod directory and protect anauthorized access to files Check the status of WebRatio jobs 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? Compare with the current time Component computation Conexion a Oracle 12g Connection refused. connect to Cloud Convert data in a Calculated attribute Convert selector component result to single value Creación DB Apache Derby - Modelado BPMN Criptare dati sensibili nel database Database connection, Host and Port number Database password encrypting Database properties Database resource consumption Database Tables Creation After Remote Deploy Data flow from a page which is not visible anymore DB in Data Service Project Debug configuration Dependencies installation error Deploy de proyecto en HTTPS Deploy in Cloud Amazon Beanstalk with Postgres Dynamic data type Empty record mistakenly saved error activating student account Error updating metadata process Estado HTTP 404 - No está disponible el Servlet action EverLasting error "The TCP/IP connection to the host has failed. Connection refused" Execute truncate sql query file analysis then update MySQL database Find Model Problemas Foriegn key relationship Generate and run locally on webratio professional edition. "Generation Error" with Generate and Run getting data from database Groovy and Database Guardar Saltos de LINEA help for web project Hide a form if condition if true Hide form until a flow is triggered Hiding landmarks (or flows) when the user is logged in How can I import a view in the Domain Model as an attribute of an Entity? 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? How to use GoogleGeocoding Add-on I can't run any application with WebRatio (Table/View 'APP.POST' does not exist) Image in List field Insert data into database Installation On MacOS Is it possible to create a derived relationship between databases? JDBC4 Postgresql Driver JDBC connection with mysql on mac Job not start correctly Login Error Logs in page Mapping database of the entity '...' is unspecified [MOBILE] Can't synchronize domain model with beck end DB Mostrar datos de diferentes tablas/ show dates from diferentes entities MS SQL server jdbc file multi selections field problem MySQL Driver jdbc Need help with Landmark No Apache Derby driver found No cloud accounts available No Database on Cloud account No database on my cloud account Passing JSON Object to Model Personalizzare lo stile di un progetto PostgreSQL Predefined values in database Primefaces Problem accessing MySQL with WebRatio 6 Problema Grafo da una lista gerarchica Problema ¨HTTP Status 404" Problemas con el Operations View Delete problemi installazione su Mac sistema operativo OSX El Capitan Problem saving multi selection from input Problems to connect Sql Server DB from Webratio Problems with Database Metadata Problem with application runnung 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 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 reverse engineering, problema con le relazioni di default "Run Now" on a job scheduled to run later Schedule a Job when adding a record to the database Script Unit e Mysql Share database connection Showing items that have a relation with an entity Simulation Software Situs Games Online terbaik idnslot138 dengan games online terbaik di tahun 2024 Solve "Generation Error" with Generate and Run option Start Job when WebApp starts Statistics Component for WebRatio > 7.2.0 Status ProcessInstance and activityInstance in spanish Student reserved area, download error 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 download WebRatio from Student Area Unable to execute the script java.lang.NullPointerException Unable to find Cloud free function Unable to start WebRation, cannot locate its companion shared library Unable to use Visual Debug Unknow property on Dynaclass after generation Unspecified BPM Engine Database Update mutiple records with the same value Updating attributes of an entity upload file and the move it to other location User Login Timestamp Username come chiave Using own User and Group tables Utilizzo di quartz su jboss Vista de diferentes Site Views WebRatio activation problem Web ratio data model WebRatio freezes at project load (Linux) WebRatio - list results of joined tables Web Ratio Mobile and Foreign Key WebRatio Mobile on Linux using wrong network interface. Web Ratio Mobile plateform Macos Sierra Web Ratio Mobile - Remote data mapping problem WebRatio no imports all attributes (fields) of a table WebRatio y Java 1.8 (o superior) Where is the ACME demo data stored?! White report XPCOM Error