So it looks like Jam V5 is passing ID to query but V7 is not.
V5:
All keys: ['__expanded', '__fields', '__order', '__filters', '__limit', '__offset', '__client_request']
{'__expanded': True, '__fields': ['artistid', 'name'], '__order': [], '__filters': [['artistid', 1, 1]], '__limit': 0, '__offset': 0, '__client_request': True}
queries: SELECT "ARTISTS"."ARTISTID", "ARTISTS"."NAME" FROM "ARTISTS" AS "ARTISTS" WHERE "ARTISTS"."ARTISTID"
= 1[[1, 'sdsa asdasd']]
In V7, becuse there is no = 1, sql Errors and Form does not open:
All keys: ['__expanded', '__fields', '__order', '__filters', '__limit', '__offset']
{'__expanded': True, '__fields': ['title', 'id'], '__order': [], '__filters': [['id', 1, 1]], '__limit': 0, '__offset': 0}
queries: SELECT "demo_albums"."title", "demo_albums"."id" FROM "demo_albums" AS "demo_albums" WHERE "demo_albums"."id" = %s
ERROR - Error: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '%s' at line 1
Both v5 and v7 has:
def on_open(item, params):
print("=== RAW PARAMS FROM CLIENT ===")
print(f"__fields: {params.get('__fields')}")
print(f"__limit: {params.get('__limit')}")
print(f"__offset: {params.get('__offset')}")
print(f"All keys: {list(params.keys())}")
....
No idea how to fix this. It can be a '__client_request' tho. I think its is a bug.
It would be great to have this feature, but I already spent 3 days on this...