Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

SyntaxError:Syntax Error 35: at line 36?

Community Beginner ,
Mar 01, 2019 Mar 01, 2019

Below is my script but it is generating a SyntaxError:Syntax Error 35: at line 36 message. Does anyone know how to fix this?

var accountingData = {};

"MIB",

"Local Bonus Plan",

"#1 Sales Account Manager – Aftermarket/Direct",

"#2 Sales Account Manager – OEM/Direct",

"#3 Sales Account Manager – OEM/Distribution",

"#4 Sales Account Manager – OEM/Overlay",

"#5 Sales Manager – Any Products",

"#6 Selling Sales Manager – Any Products",

"#7 New Business Developer – Aftermarket/Direct",

"#8 New Business Developer – OEM/Direct",

"#9 Sales Manager, New Business – Any Product",

"#10 Selling Sales Manager, New Business – Any Product",

"#11 Account Manager – Aftermarket/Direct",

"#12 Account Manager – OEM/Direct",

"#13 Account Manager – Aftermarket/Distribution",

"#14 Sales Manager, Existing Accounts – Any Product",

"#15 Account Service – Aftermarket/Direct",

"#16 Account Service – OEM/Direct",

"#17 Manager, Account Service – Any Product/Direct",

"#18 Growth Representative – Aftermarket/Distribution",

"Legacy Plan",

"TFS Sales VIC",

"Gainsharing Program",

"Local Bonus Plan",

"Materials Processing Incentive Bonus (MPIB)",

"Productivity Improvement Bonus (PIB)",

"Professional Incentive Bonus (PIB)",

"Profit Sharing","Recognition",

"SEP (Shared Earnings Plan)",

"SEP Plus",

"SSBP (Strategic Sourcing Bonus Plan)",

"Statutory Bonus Plan",

};

//Finally you set the values of box2

function SetFieldValues(cDeptName){

this.getField("LocalBonus").setItems(accountingData[cDeptName]);

}

//Custom Keystroke PlanType

//if( event.willCommit ){

if(event.value == "--SELECT--"){

//app.alert(event.value)

//if nothing is chosen in box1 then box2 will be cleared

this.getField("Local Bonus").clearItems();

}else {

//app.alert(event.value)

SetFieldValues(event.value);

}

//

//ENDSCRIPT

//Finally you set the values of box2

function SetFieldValues(cDeptName){

this.getField("Local Bonus").setItems(accountingData[cDeptName]);

}

//Custom Keystroke Plan Type

//if( event.willCommit ){

if(event.value == "--SELECT--"){

//app.alert(event.value)

//if nothing is chosen in box1 then box2 will be cleared

this.getField("Local Bonus").clearItems();

}else {

//app.alert(event.value)

SetFieldValues(event.value);

}

//}

//ENDSCRIPT

TOPICS
Creative Cloud
764
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Mar 01, 2019 Mar 01, 2019

My guess is...

"Statutory Bonus Plan",   <-- remove the comma

};

Translate
LEGEND ,
Mar 01, 2019 Mar 01, 2019

You need to find the forum for whatever application this involves and post your question(s) there - also, identify which line is line 36.  I can only guess what language this might be, so that means I can only guess at what might constitute a syntax error for that language.

Here is a link to a page that has links to all Adobe forums...

Forum links page: https://forums.adobe.com/welcome

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 01, 2019 Mar 01, 2019

My guess is...

"Statutory Bonus Plan",   <-- remove the comma

};

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 01, 2019 Mar 01, 2019

Ned Murphy you are a legend. Its working fine now. Thank you so much.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 01, 2019 Mar 01, 2019
LATEST

If you post the program/process name, a Moderator will be able to move this to that forum to then help other users

I am going to GUESS javascript

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 01, 2019 Mar 01, 2019

You're welcome

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines