Impossible to select data with "not in id" (dropdown ajax entities list)

Post Reply
Didou12
Posts: 487
Joined: 14 Jan 2023, 14:53
Name: Louis
Location: Montreal, Canada

Impossible to select data with "not in id" (dropdown ajax entities list)

Post by Didou12 »

Hi

I would like to use a record from entity (with ajax entities list) in the record itself but without the possibility to select the id of this current record (if the editing form is opened, all records but not the current).

So I tried with a condition (several times, see below), but it doesn't work.

Code: Select all

e.id not in (id)
e.id <> id
with id, or [id] or msq.id

How to do that ?
Attachments
error2.PNG
Using Rukovoditel since 2022 --- v3.4 (with extension) in French on PHP 8.2
I keep the French translation up to date
I'm trying to help you (+10 years experience in html, css, php, sql, JS/jquery, python)
karahan
Posts: 227
Joined: 09 Jul 2021, 22:14
Name: Edin Karajić
Location: Bosnia and Herzegovina
Company Name: KARAHAN d.o.o.
Contact:

Re: Impossible to select data with "not in id" (dropdown ajax entities list)

Post by karahan »

Hi,

sounds stupid, but:
e.id <> e.id
User avatar
support
Site Admin
Posts: 6215
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: Impossible to select data with "not in id" (dropdown ajax entities list)

Post by support »

When you create new record, the form opens, but there is no record ID that is why you can't use it in condition.
Didou12
Posts: 487
Joined: 14 Jan 2023, 14:53
Name: Louis
Location: Montreal, Canada

Re: Impossible to select data with "not in id" (dropdown ajax entities list)

Post by Didou12 »

Ok thanks but when editing ? It’s more for editing I would like to filter out.
Using Rukovoditel since 2022 --- v3.4 (with extension) in French on PHP 8.2
I keep the French translation up to date
I'm trying to help you (+10 years experience in html, css, php, sql, JS/jquery, python)
Post Reply