on ‎2017 Nov 15 10:17 AM
Hello Experts,
In SDK, using BODL i created structure like below.
import AP.Common.GDT as apCommonGDT;
businessobject BusinessObject1 {
[Label("Bonusplan ID")] [AlternativeKey] element BonusPlanId:ID;
[Label("Start date")] element StartDate:Date;
[Label("End date")] element EndDate:Date;
[Label("Bonus rate")] element BonusRate:Percent;
[Label("Target amount date")] element TargetAmount:Amount;
[Label("Total revenue")] element TotalRevenue:Amount;
[Label("Total bonus")] element TotalBonus:Amount;
action Calculatebonus; }
Here, successfully activated the Business object.
In ABSL while activating i am getting an Error and i am unable to see Fields or BO fields in Codecompletion
import ABSL;
if (this.TotalRevenue.content < this.targetamount.content) {
this.TotalBonus.content = this.totalrevenue.content * (this.bonusrate / 100);
}
Error :
Error1 Identifier 'TotalRevenue' does not exist.
Error2 Identifier 'TotalBonus' does not exist.
What might be the Problem ?
Thanks in Advance
Balreddy
Request clarification before answering.
Dear Balreddy
The script file you have created must be mass enabled.
From 1705 release, all the script files are mass enabled by default to enhance system performance.
Try to use GetFirst() function in your script
Example: this.GetFirst().Total Revenue
OR
When you try to create a script file you have to de-select the check box for Mass Enabled.
Regard
Anant
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.