Posted 10 June 2019, 7:01 am EST
Hi,
I tried to follow this example but I am unable to get context menu working. In the sample context menu works but in my code it does not.
https://demos.wijmo.com/5/angular2/FlexSheetIntro/FlexSheetIntro/
getSelectedObject(item) {
console.log(“selected item change called”);
console.log(item.appId == 10);
if (item.appId == 10) {
var dataAARLAR: any;
dataAARLAR = this._BeatService.getAARLAR(50);
this.flexSheetIntro.selectedSheet.itemsSource = dataAARLAR;
}
getAARLAR(count: number){
console.log(“getAARLAR”);
var dataAARLAR = ;
for (var i = 0; i < count; i++){
dataAARLAR.push({
TransactionId: ‘’,
Status: ‘’,
Owner: ‘’,
ReportedBy: ‘’,
ChorusBook: ‘’,
NodeID: ‘’,
ChorusLevel: ‘’,
BusinessArea: ‘’,
LetterOfRep: ‘’,
Region: ‘’,
AarDescription: ‘’,
AarLar: ‘’,
AarLarValue: ‘’,
CompanyCode: ‘’,
LegalEntity: ‘’,
CP: ‘’,
SAPAccount: ‘’,
FunctionalCurrency: ‘’,
RiskRating: ‘’,
Ageing: ‘’,
GrossAAR: ‘’,
GrossLAR: ‘’,
Provision: ‘’,
NetAssetAtRisk: ‘’,
GrossAaRGBP: ‘’,
GrossLaRGBP: ‘’,
ProvisionGBP: ‘’,
NetAssetAtRiskGBP: ‘’,
GenericControlRisk: ‘’,
GenericControlRiskOtherDescription: ‘’,
ItemInPriorMonth: ‘’,
PriorGrossAaR: ‘’,
PriorGrossLaR: ‘’,
PriorProvision: ‘’,
PriorNetAssetAtRiskPrior: ‘’,
PriorGrossLaRGBP: ‘’,
PriorProvisionGBP: ‘’,
PriorNetAssetAtRiskGBP: ‘’,
PriorRiskRating: ‘’,
TransactionOriginatingDate: ‘’,
ReportingDate: ‘’,
FinalFinancialImpactOnPnL: ‘’,
WasPriorMonthAARLARClearedtoPnL: ‘’,
IncidentReportingDate: ‘’,
SignoffBy: ‘’,
SignoffDateTime: ‘’,
DeleteRecord: ‘’
});
}
return (dataAARLAR);
}