Lookup field not populating.

Please report bugs and any annoyances here. Kindly include all possible details: steps to reproduce, expected result, actual result, screenshots, ... etc.
Post Reply
pvisser
Veteran Member
Posts: 38
Joined: 2013-10-30 12:48

Lookup field not populating.

Post by pvisser » 2021-12-16 21:39

Hello my friends. I have a problem.

I installed, "AppGiniHelper JavaScript Library" and works wel. But i have two tables. One table called "relaties" with fields named : Name Adres, Etc.
The other table is called "tasklist" and has fields named. Taskname, Date start, Status, Description.

From te table "Tasklist" i made the taskname field a lookup field to the "relaties" -Name field. So normaly it should work. When add new Task, its not populating the Taskname lookup field with a list of names, also the search box keeps spinnen . Now i check in the Console and i see this problem.


[ERROR]
Uncaught TypeError: Cannot read properties of null (reading 'toUpperCase')
at E (select2.min.js:21)
at Object.formatResult (select2.min.js:22)
at g (select2.min.js:21)
at d.populateResults (select2.min.js:21)
at d.<anonymous> (select2.min.js:22)
at Object.callback (select2.min.js:21)
at success (select2.min.js:21)
at Object.options.beforeSend (common.js:309)
at S.fn.init.ajax (jquery-3.5.1.min.js:2)
at select2.min.js:21
[/ERROR]

Please advice?

Greetings Patrick

pvisser
Veteran Member
Posts: 38
Joined: 2013-10-30 12:48

Re: Lookup field not populating.

Post by pvisser » 2021-12-17 20:14

Allready Fixed

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

Re: Lookup field not populating.

Post by jsetzer » 2021-12-17 21:55

So, what caused the select2-error?
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

pvisser
Veteran Member
Posts: 38
Joined: 2013-10-30 12:48

Re: Lookup field not populating.

Post by pvisser » 2021-12-23 13:57

Hello there. Jan
Because. I Create the webapps that should be Registered by the end user with a created online registration programm, See screenshot. I forgot the most important file.

Oke i will let you see also my registration system i use to licence all my build apps..
notregister.png
To let them register with License
notregister.png (102.09 KiB) Viewed 1701 times
notregisterActivateLicence.png
If Webapp not is register by Serial. The see this.
notregisterActivateLicence.png (77.56 KiB) Viewed 1701 times
licensesystem.png
My activation System (Not for users)
licensesystem.png (39.99 KiB) Viewed 1701 times
detregisterActivateLicence.png
Register from the Admin
detregisterActivateLicence.png (65.77 KiB) Viewed 1701 times
I forgot to let the Windows Appgini application during exporting update the Webapp file incCommon.php. After adding a new table it should, if you dont, Its not working well.

Hooo i whas su dumb... hahah

Post Reply