Highlighted

TypeError: var[val] is undefined

Explorer ,
Oct 04, 2020

Copy link to clipboard

Copied

Everything on my form is working as expected, but there are silent errors being thrown, and although this doesn't seem to be interfering with the function of the form, I'd like to have a blank debugger...

 

I'm not certain how to describe the issue...

I have a series of dropdown menus, where I'm using the export value as a reference in other fields.  Essentially, the dropdown is setting a variable for other code to act on.

The errors only pop up when the dropdown is in its default state (position 0). When all menus are not in their default state, i.e. a user has made a selection, no errors are thrown. My best guess is in that position, the dropdown has a null value, but I'm not sure. There is still data in that position, but I'm not sure how the menu works, under the hood...

 

Anyway, I get two errors of 'TypeError: var[val] is undefined', and only one that is 'this.getField(...) is null'

TOPICS
Create PDFs, PDF forms

Views

154

Likes

Translate

Translate

Report

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

TypeError: var[val] is undefined

Explorer ,
Oct 04, 2020

Copy link to clipboard

Copied

Everything on my form is working as expected, but there are silent errors being thrown, and although this doesn't seem to be interfering with the function of the form, I'd like to have a blank debugger...

 

I'm not certain how to describe the issue...

I have a series of dropdown menus, where I'm using the export value as a reference in other fields.  Essentially, the dropdown is setting a variable for other code to act on.

The errors only pop up when the dropdown is in its default state (position 0). When all menus are not in their default state, i.e. a user has made a selection, no errors are thrown. My best guess is in that position, the dropdown has a null value, but I'm not sure. There is still data in that position, but I'm not sure how the menu works, under the hood...

 

Anyway, I get two errors of 'TypeError: var[val] is undefined', and only one that is 'this.getField(...) is null'

TOPICS
Create PDFs, PDF forms

Views

155

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Oct 04, 2020 0
Adobe Community Professional ,
Oct 04, 2020

Copy link to clipboard

Copied

What scripts does you use?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 04, 2020 0
Explorer ,
Oct 04, 2020

Copy link to clipboard

Copied

I've placed an array under Document JavaScripts, to use as global. This array is a series of values with '--' seperators, to simulate a multi-dimentional array. So:

 

var gTable = new Array;

gTable['select Value'] = ' -- -- -- -- ';

gTable['item1'] = 'a--b--c--d--e';

etc...

 

For the dropdown, under the Form, Custom Keystone Scripts:

 

gTable[event.changeEx].split('--')[0] //this sets a reference value to be used in other fields.

 

Under the fields (which I believe are trowing the errors) Custom calculation script:

 

gTable[Entry].split('--')[1] //to get the reference for calculations or just to set the value in the current form. Entry is ther reference value set py the dropdown menu above.

 

 

I think that's all that's involved with the dropdown menus... 

If this isn't enough, I can post the PDF...

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 04, 2020 0
Adobe Community Professional ,
Oct 04, 2020

Copy link to clipboard

Copied

I am learning JavaScript, so bear with me if I suggest something way off, but I couldn't help but notice that you spelled "new Array" without parenthesis when it should be declared as  "new Array();" (without the quotes, of course).

 

If you're trying to initialize an array by using the array constructor method with the word "new" you can't  omit the opening and closing parenthesis  "()". 

 

Otherwise, it looks more to me that what you're trying to do is employ an array literal method in which case the "new Array()" declaration is not needed to obtain the same results as the literal method.

 

Also, if you're gonna use the array constructor with more than one argument  to pass multiple parameters, shouldn't the array notations be used in combination with hierarchical naming?

 

You did use hierarchical naming for the split method but not to setItems for the dropdown values. I'm not sure if any of this is relevant, but Ijust wanted to throw my input in this discussion.

 

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 04, 2020 0
Adobe Community Professional ,
Oct 04, 2020

Copy link to clipboard

Copied

Yes, share the PDF file.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 04, 2020 0
Explorer ,
Oct 04, 2020

Copy link to clipboard

Copied

According to what I've read, the line 'x = new Array' creates the object of Array type. There don't seem to be any arguments for this, at least in my limited understanding...

I don't know if there's a difference between Array as an object and Array() as a method.

 

I'm not creating this list dynamically, so I don't believe I need a heirarchical structure. I was more interested in being able to determine the entry by a name, so I wouldn't have to set up the dropdown menues in funky ways... It would probably do me good to learn to construct menus dynamically, but I'm not there yet.   !)

 

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 04, 2020 0
Explorer ,
Oct 04, 2020

Copy link to clipboard

Copied

Not sure how to submit a file here, so here's just a link.

 

https://bit.ly/2SoZoWa

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 04, 2020 0
Most Valuable Participant ,
Oct 04, 2020

Copy link to clipboard

Copied

Changing the value of a single field causes all of these error messages to appear in the JS Console:

TypeError: gKinTable[kinEntry] is undefined
3:Field:Calculate
TypeError: gKinTable[kinEntry] is undefined
3:Field:Calculate
TypeError: gKinTable[kinEntry] is undefined
3:Field:Calculate
TypeError: gKinTable[kinEntry] is undefined
3:Field:Calculate
TypeError: gKinTable[kinEntry] is undefined
3:Field:Calculate
TypeError: gKinTable[kinEntry] is undefined
3:Field:Calculate
TypeError: gKinTable[kinEntry] is undefined
3:Field:Calculate
TypeError: gKinTable[kinEntry] is undefined
3:Field:Calculate
TypeError: gKinTable[kinEntry] is undefined
3:Field:Calculate
TypeError: gVocTable[vocEntry] is undefined
3:Field:Calculate
TypeError: gVocTable[vocEntry] is undefined
3:Field:Calculate
TypeError: gVocTable[vocEntry] is undefined
3:Field:Calculate
TypeError: gVocTable[vocEntry] is undefined
3:Field:Calculate
TypeError: gVocTable[vocEntry] is undefined
3:Field:Calculate
TypeError: gVocTable[vocEntry] is undefined
3:Field:Calculate
TypeError: gVocTable[vocEntry] is undefined
3:Field:Calculate
TypeError: gVocTable[vocEntry] is undefined
3:Field:Calculate
TypeError: gVocTable[vocEntry] is undefined
3:Field:Calculate
TypeError: gVocTable[vocEntry] is undefined
3:Field:Calculate
TypeError: gVocTable[vocEntry] is undefined
3:Field:Calculate
TypeError: gVocTable[vocEntry] is undefined
3:Field:Calculate
TypeError: gVocTable[vocEntry] is undefined
3:Field:Calculate
TypeError: gVocTable[vocEntry] is undefined
3:Field:Calculate
TypeError: gVocTable[vocEntry] is undefined
3:Field:Calculate
TypeError: gVocTable[vocEntry] is undefined
3:Field:Calculate
TypeError: gVocTable[vocEntry] is undefined
3:Field:Calculate
TypeError: gVocTable[vocEntry] is undefined
3:Field:Calculate
TypeError: gVocTable[vocEntry] is undefined
3:Field:Calculate
TypeError: gVocTable[vocEntry] is undefined
3:Field:Calculate
TypeError: gVocTable[vocEntry] is undefined
3:Field:Calculate
TypeError: gVocTable[vocEntry] is undefined
3:Field:Calculate
TypeError: gVocTable[vocEntry] is undefined
3:Field:Calculate
TypeError: gVocTable[vocEntry] is undefined
3:Field:Calculate
TypeError: gVocTable[vocEntry] is undefined
3:Field:Calculate
TypeError: gKinTable[kinEntry] is undefined
3:Field:Calculate
TypeError: gVocTable[vocEntry] is undefined
3:Field:Calculate
TypeError: gKinTable[kinEntry] is undefined
3:Field:Calculate
TypeError: gVocTable[vocEntry] is undefined
3:Field:Calculate
TypeError: gVocTable[vocEntry] is undefined
3:Field:Calculate
TypeError: gVocTable[vocEntry] is undefined
3:Field:Calculate
TypeError: gKinTable[kinEntry] is undefined
3:Field:Calculate
TypeError: gVocTable[vocEntry] is undefined
3:Field:Calculate
TypeError: gVocTable[vocEntry] is undefined
3:Field:Calculate
TypeError: gVocTable[vocEntry] is undefined
3:Field:Calculate
TypeError: gSpellTable[spellEntry] is undefined
5:Field:Calculate
TypeError: gSpellTable[spellEntry] is undefined
5:Field:Calculate
TypeError: gSpellTable[spellEntry] is undefined
5:Field:Calculate
TypeError: gSpellTable[spellEntry] is undefined
5:Field:Calculate
TypeError: gSpellTable[spellEntry] is undefined
5:Field:Calculate
TypeError: gSpellTable[spellEntry] is undefined
5:Field:Calculate
TypeError: gSpellTable[spellEntry] is undefined
5:Field:Calculate
TypeError: gSpellTable[spellEntry] is undefined
5:Field:Calculate
TypeError: gSpellTable[spellEntry] is undefined
5:Field:Calculate
TypeError: gSpellTable[spellEntry] is undefined
5:Field:Calculate
TypeError: gSpellTable[spellEntry] is undefined
5:Field:Calculate
TypeError: gSpellTable[spellEntry] is undefined
5:Field:Calculate
TypeError: gSpellTable[spellEntry] is undefined
5:Field:Calculate
TypeError: gSpellTable[spellEntry] is undefined
5:Field:Calculate
TypeError: gSpellTable[spellEntry] is undefined
5:Field:Calculate
TypeError: gSpellTable[spellEntry] is undefined
5:Field:Calculate
TypeError: gSpellTable[spellEntry] is undefined
5:Field:Calculate
TypeError: gSpellTable[spellEntry] is undefined
5:Field:Calculate
TypeError: gSpellTable[spellEntry] is undefined
5:Field:Calculate
TypeError: gSpellTable[spellEntry] is undefined
5:Field:Calculate
TypeError: gSpellTable[spellEntry] is undefined
5:Field:Calculate
TypeError: gSpellTable[spellEntry] is undefined
5:Field:Calculate
TypeError: gSpellTable[spellEntry] is undefined
5:Field:Calculate
TypeError: gSpellTable[spellEntry] is undefined
5:Field:Calculate
TypeError: gSpellTable[spellEntry] is undefined
5:Field:Calculate
TypeError: gSpellTable[spellEntry] is undefined
5:Field:Calculate
TypeError: gSpellTable[spellEntry] is undefined
5:Field:Calculate
TypeError: gSpellTable[spellEntry] is undefined
5:Field:Calculate
TypeError: gSpellTable[spellEntry] is undefined
5:Field:Calculate
TypeError: gSpellTable[spellEntry] is undefined
5:Field:Calculate
TypeError: this.getField(a) is null
12:Field:Calculate
TypeError: this.getField(a) is null
12:Field:Calculate
TypeError: this.getField(a) is null
12:Field:Calculate
TypeError: this.getField(a) is null
12:Field:Calculate
TypeError: this.getField(a) is null
12:Field:Calculate
TypeError: this.getField(a) is null
12:Field:Calculate
TypeError: this.getField(a) is null
12:Field:Calculate
TypeError: this.getField(a) is null
12:Field:Calculate
TypeError: this.getField(a) is null
12:Field:Calculate
TypeError: this.getField(a) is null
12:Field:Calculate
TypeError: this.getField(a) is null
12:Field:Calculate
TypeError: this.getField(a) is null
12:Field:Calculate
TypeError: this.getField(a) is null
12:Field:Calculate
TypeError: this.getField(a) is null
12:Field:Calculate
TypeError: this.getField(a) is null
12:Field:Calculate
TypeError: gVocTable[vocEntry] is undefined
4:Field:Calculate
TypeError: gVocTable[vocEntry] is undefined
4:Field:Calculate
TypeError: gVocTable[vocEntry] is undefined
4:Field:Calculate
TypeError: gVocTable[vocEntry] is undefined
4:Field:Calculate
TypeError: gVocTable[vocEntry] is undefined
4:Field:Calculate
TypeError: gVocTable[vocEntry] is undefined
4:Field:Calculate
TypeError: gVocTable[vocEntry] is undefined
4:Field:Calculate
TypeError: gVocTable[vocEntry] is undefined
4:Field:Calculate
TypeError: gVocTable[vocEntry] is undefined
4:Field:Calculate
TypeError: gVocTable[vocEntry] is undefined
4:Field:Calculate
TypeError: gVocTable[vocEntry] is undefined
4:Field:Calculate
TypeError: gVocTable[vocEntry] is undefined
4:Field:Calculate
TypeError: gVocTable[vocEntry] is undefined
4:Field:Calculate
TypeError: gVocTable[vocEntry] is undefined
4:Field:Calculate
TypeError: gVocTable[vocEntry] is undefined
4:Field:Calculate
TypeError: gKinTable[kinEntry] is undefined
4:Field:Calculate
TypeError: this.getField(stat + "Total") is null
2:Field:Calculate
TypeError: gTraitTable[kin] is undefined
2:Field:Calculate
TypeError: gTraitTable[kin] is undefined
2:Field:Calculate
TypeError: gTraitTable[kin] is undefined
2:Field:Calculate
TypeError: gTraitTable[kin] is undefined
2:Field:Calculate
TypeError: gTraitTable[kin] is undefined
2:Field:Calculate

 

What you're creating is not an array at all, but a so-called literal object, where you define properties with a name and a value. An array only has values, no names. Also, an array has an internal order, which a literal object does not. I'm not sure that's the cause for these errors, but it's important to understand that.

 

The errors of the type "TypeError: gSpellTable[spellEntry] is undefined" are caused when you try to access a non-existing name in the literal object.

The errors of the type "TypeError: this.getField(a) is null" are caused when you use an incorrect field name as the parameter for getField, which causes it to return null.

You must solve all of these issues for you file to work correctly.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 04, 2020 0
Explorer ,
Oct 04, 2020

Copy link to clipboard

Copied

Yes, I understand I'm creating an object. That was intentional. I wanted the dropdown menu populated with names and not data, which allows me to maintain the data all in one place, instead of having all the data in each of the pulldown menus. So, I could have the menu select a name, check the name against the contents of the object and retrieve the data associated with that name.

 

When all the dropdown menus on the third sheet have some selection, other than default, no errors are thrown. So something must be wrong with the default state?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 04, 2020 0
Adobe Community Professional ,
Oct 04, 2020

Copy link to clipboard

Copied

Yes, "Array" is the constructor, but when you use that constructor with  "new" Array it creates the array object type but undefined. 

 

/* See below using the literal method  which sometimes is preferred over the "new Array()" method. In this example using the literal method to setItems. A face value with an export value is defined for a single dropdown menu (in the example below I am using a custom calculation script in the event target field)  */

 

var gTable = event.target;
gTable.editable = true;
gTable.commitOnSelChange = true;
gTable.setItems( [ ["a"], ["b"], ["c"], ["d"], ["e"] ] ) ;

 

See examples here: https://www.geeksforgeeks.org/arrays-in-javascript/

 

And also check "Adobe Acrobat DC SDK,  Using JavaScript in Forms, Developing Acrobat® Applications Using JavaScript™, " Setting Acrobat form field properties" pages 75-76

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 04, 2020 0
Adobe Community Professional ,
Oct 04, 2020

Copy link to clipboard

Copied

+++Correction

 

My examle above is just a list of items , no export values.

 

To create face values and an export value associated with each of the listed items would be define like this:

 

var gTable = event.target;
gTable.editable = true;
gTable.commitOnSelChange = true;
gTable.setItems( [ ["item1", "a"], ["item2", "b"], ["item3", "c"], ["item4", "d"], ["item5", "e"] ] ) ; 

 

Based on your explanation of the erros that you're getting and the intent of your workflow, I am still unclear of what you're trying to accomplish with your PDF.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 04, 2020 0
Most Valuable Participant ,
Oct 04, 2020

Copy link to clipboard

Copied

My guess is your literal objects are missing the default values of the drop-downs, which is what is causing most of these errors.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 04, 2020 0
Explorer ,
Oct 04, 2020

Copy link to clipboard

Copied

I have Beginning JavaScript for AdobeAcrobat, by John Deubert. I ordered Adobe Acrobat DC Classroom in a Book and JavaScript in easy steps. Hopefully they arrive tomorrow or Tuesday...

 

I'll see if I can sus out what's going on whith these resources. Thank you.

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 04, 2020 0
Explorer ,
Oct 04, 2020

Copy link to clipboard

Copied

What I'm trying to accomplish... Well, the sheet is doing eveything it's supossed to do, what I expect it to do, apart from throwing these errors. A sign I don't understand what I'm doing.  😉

 

As far as why I'm doing it the way I'm doing it; I wanted to have all my tables in one place, where I could more easily maintain them, instead of having them in each of the dropdown menus. If I have to change one of the entries, I could just do them in that one spot, insead of having to go through each dopdown menu items and correct each one... This method is the one I figured out how to use successfully. There may be more efficient or powerful ways to accomplish the same thing, but I'm unaware of them, as I've only been looking into JS for about a week, in my spare time.

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 04, 2020 0
Explorer ,
Oct 04, 2020

Copy link to clipboard

Copied

@try67 I've looked them over, and I can't spot what would be missing... I'vve checked to ensure the names that are being used as reference, are identical to those in the table... 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 04, 2020 0
Adobe Community Professional ,
Oct 04, 2020

Copy link to clipboard

Copied

If you want to have all the populating data in one spot, Maybe you're  better off using a document level script and then calling that function from the field(s) that need to get such data using the new array() or even the getArray() method.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 04, 2020 0
Explorer ,
Oct 04, 2020

Copy link to clipboard

Copied

@ls_rbls All these table are being kept in the Document JavaScripts. I'll have to delve deeper into array() and getArray(). Thank you.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 04, 2020 0
Most Valuable Participant ,
Oct 04, 2020

Copy link to clipboard

Copied

The current value of the "kin" field is empty, but there's no item with an "empty" name under gKinTable, so gKinTable[""] returns null and the code fails.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 04, 2020 0
Explorer ,
Oct 04, 2020

Copy link to clipboard

Copied

@try67  I put a whitespace to handle those values, to avoid empty values. ( I wanted to be able to print a plank sheet) Is a whitespace not a valud character, for these purposes?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 04, 2020 0
Adobe Community Professional ,
Oct 04, 2020

Copy link to clipboard

Copied

You must add following line:
gKinTable[""] = ' -- -- -- -- ';
Also for the other arrays.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 04, 2020 0
Most Valuable Participant ,
Oct 05, 2020

Copy link to clipboard

Copied

The value in the field has to match the value in the code EXACTLY, and the value in the field is not a whitespace, it's an empty string. Use Bernd's code above (or below...) to solve this issue.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 05, 2020 0
Explorer ,
Oct 05, 2020

Copy link to clipboard

Copied

@Bernd Alheit 

I added to the gKinTable:

gKinTable[""] = ' -- -- -- -- -- -- -- -- -- -- -- -- -- ';

 

And now the code I have in the Format>Custom Keystroke Script is no longer setting the value of the vocation field:

var vocName = this.getField("vocation")

if (event.changeEx in gVocTable)
vocName.value = gVocTable[event.changeEx].split('--')[0]

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 05, 2020 0
Explorer ,
Oct 05, 2020

Copy link to clipboard

Copied

@try67 I'm not following. When I select the field 'kin', I can highlight a whitespace. Am I looking at the wrong thing?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 05, 2020 0
Explorer ,
Oct 05, 2020

Copy link to clipboard

Copied

@Bernd Alheit Sorry, I meant the kin field...

 

var kinName = this.getField("kin")

if (event.changeEx in gKinTable)
kinName.value = gKinTable[event.changeEx].split('--')[0] 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 05, 2020 0
Adobe Community Professional ,
Oct 05, 2020

Copy link to clipboard

Copied

Any error message in the console?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 05, 2020 0
Explorer ,
Oct 05, 2020

Copy link to clipboard

Copied

@Bernd AlheitI went ahead and made the same change to all of the arrays.

I'm no longer getting any error messages for kin and vocation, but I'm still getting them for the spells.

 

TypeError: gSpellTable[spellEntry] is undefined
6:AcroForm:spellPage.14:Calculate
TypeError: this.getField(...) is null
13:AcroForm:spellStatValue.0:Calculate

 

And I'm getting a new error:

 

InvalidSetError: Set not possible, invalid or unknown.
Event.value:14:AcroForm:wealthStatus:Calculate

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 05, 2020 0
Most Valuable Participant ,
Oct 05, 2020

Copy link to clipboard

Copied

This is not a valid statement:

if (event.changeEx in gKinTable)

The "in" command is used to iterate over an array, not check if a value is in a literal object.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 05, 2020 0
Most Valuable Participant ,
Oct 05, 2020

Copy link to clipboard

Copied

What about before you select anything in it?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 05, 2020 0
try67 LATEST
Most Valuable Participant ,
Oct 05, 2020

Copy link to clipboard

Copied

The thread above has reached the maximum number of messages that can be shown on these forums under a single reply. Post new replies as a new thread, please.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 05, 2020 0