Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3354

Cloud application studio - edit or test a root field on an existing object

$
0
0

Hello,

 

I extend the Customer object and I add a script (beforesave) on Common space.

I can add an element and play with it but, to manage an old existing field it's difficult.

 

 

___

 

import ABSL;

import AP.Common.GDT;

import AP.FO.BusinessPartner.Global;

 

 

var hello = 1;

 

if ( this.ToRoot.ABCClassifications.CustomerABCClassificationCode.content == "B" ) {

 

hello = hello + 1;

 

}

 

this.addedField = hello;

___

 

This test doesn't work. How can I access to a root element ?


Viewing all articles
Browse latest Browse all 3354

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>