Let's Reconnect, thank you for making 2022 our best year yet.

Look Back
Predefined Columns in DB API — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Predefined Columns in DB API

Received Response
6
Views
1
Comments
edited Oct 10, 2017 7:00AM in Digital Assistant and Mobile 1 comment

Summary

Predefined Columns in DB API

Content

Hi,

When using the DB API of MCS for insert() or merge() how to pass the values for the predefined fields (createdBy, createdDate,etc).

If i am doing something like this

req.oracleMobile.database.merge(                'XX_PN', [{                        "appName": appName,                        "appVersion": appVersion,                        "deviceId" : deviceId,                        "pnToken": pnToken,                        "platform": platform,                        "documentCode": documentCode,                        "documentId": documentId,                        "user": user                    }                ], {                    primaryKeys: 'appName, user'                }).then(                function (result) {                    res.send(result.statusCode, result.result);                },                function (error) {                    res.send(error.statusCode, error.error);                }            );

then the predefined columns (who's) will be created but how do i pass the values.

If i do something like this then the who's columns are my own columns isnt it ?

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!