console error on react to lookup changes

This sub-forum is for discussing all topics related to AppGini Helper JavaScript Library, provided by bizzworxx as a third-party AppGini plugin.
Post Reply
mdannatt
Veteran Member
Posts: 41
Joined: 2020-01-27 17:34

console error on react to lookup changes

Post by mdannatt » 2021-05-29 20:31

i know this feature is unsupported BUT has anyone else got the same issue when trying to implement react to lookup changes - using type_id in the dropdown?

Uncaught Error: Syntax error, unrecognized expression: #
at Function.se.error (jquery-3.5.1.min.js:2)
at se.tokenize (jquery-3.5.1.min.js:2)
at se.select (jquery-3.5.1.min.js:2)
at Function.se [as find] (jquery-3.5.1.min.js:2)
at S.fn.init.find (jquery-3.5.1.min.js:2)
at new S.fn.init (jquery-3.5.1.min.js:2)
at S (jquery-3.5.1.min.js:2)
at _0x57f61._0x1af78a.<computed> [as _getField] (AppGiniHelper.min.js:7)
at _0x57f61._0x1af78a.<computed> [as _fade] (AppGiniHelper.min.js:7)
at _0x57f61._0x1af78a.<computed> [as fade] (AppGiniHelper.min.js:7)
Roses are red, Violets are blue, unexpected '}' on line 32

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1807
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: console error on react to lookup changes

Post by jsetzer » 2021-06-04 04:44

Please check, if you are using just the fieldname (like "fieldname") or a jquery selector (like "#fieldname") instead, when using field functions of AppGiniHelper Javascript Library.

When using functions such as dv.getField('"fieldname") or dv.getFields(["fieldname1", "fieldname2"]) or other field-related functions, you have to pass the field's name without leading hashtag-character. Those functions automagically build the jQuery selector string which may be different per field-type, for example dropdown-fields or date-fields get a different id than normal input fields. When using just the fieldname, AGH JSLIB will resolve the id according to the type.

Hope this helps!
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

Post Reply