lapis312
Forum Replies Created
-
Thank you for fixing this, Peter! I’ll keep an eye on the update and let you know if the issue persists.
Happy New Year!
Hi Peter,
Thank you so much! Really appreciate it. 🙏Hi @peterschulznl ,
Thank you for the quick response. The error is coming from the front-end when I started typing for a character in the field with lookup autocomplete. I’m using data forms (under Data Projects). The odd thing is when only 1 field has the lookup autocomplete enabled, everything works as expected. Only when 2 or more fields have that option enabled, it started throwing the “Not authorized” pop up when trying to lookup.
Below are the table structures:CREATE TABLE IF NOT EXISTS
customer(
idBIGINT(20) NOT NULL AUTO_INCREMENT
,fnameVARCHAR(100) NOT NULL DEFAULT ”
,lnameVARCHAR(100) NOT NULL DEFAULT ”
,phoneVARCHAR(50) NULL
,emailVARCHAR(320) NULLCURRENT_TIMESTAMP
, PRIMARY KEY (id)
, KEYcustomer_fname_lname_idx(fname,lname)
, KEYcustomer_phone_idx(phone)
, KEYcustomer_email_udx(email)
) ENGINE=InnoDB
COMMENT = ‘Table that stores customer information.’;CREATE TABLE
address(
idINT(10) NOT NULL AUTO_INCREMENT
,nameVARCHAR(100) NOT NULL
,companyVARCHAR(100) NULL
,addr_line_1VARCHAR(100) NOT NULL
,addr_line_2VARCHAR(50) NULL
,cityVARCHAR(50) NOT NULL
,stateVARCHAR(50) NOT NULL
,zip_codeVARCHAR(20) NULL
, PRIMARY KEY (id)
, KEYaddress_name_idx(name)
, KEYaddress_company_idx(company)
) ENGINE=InnoDB
COMMENT = ‘Table that stores addresses.’;CREATE TABLE
order(
idBIGINT(20) NOT NULL AUTO_INCREMENT
,customer_idBIGINT(20) NOT NULL DEFAULT 0
,address_idINT(10) NULL
,shipping_methodVARCHAR(50) NULL
,shipping_dateDATE NULL
, PRIMARY KEY (id)
, KEYorder_customer_shipping_date_idx(customer_id,shipping_date)
, FOREIGN KEYorder_fk_customer(customer_id) REFERENCEScustomer(id) ON UPDATE CASCADE
, FOREIGN KEYorder_fk_address(address_id) REFERENCESaddress(id) ON UPDATE CASCADE
) ENGINE=InnoDB
COMMENT = ‘Table that stores order history.’;Thank you,
Daniel