[SOLVED] Displaying auto-increase in an element page (but no prefix)

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

[SOLVED] Displaying auto-increase in an element page (but no prefix)

Post by Didou12 »

Hi,

I don't know if it's an issue but when I display a value (in an element page) from an linked entity (dropdown ajax list) with a title from auto-increase field, it just displays the number and not the prefix before. And by the way, in this dropdown ajax list field I need to add a model for the title with the id of the auto-increase field for showing the prefix, because without that, it just shows only the number in the form.

Let me know if it's confused and I will take some snapshot.

Thanks
Last edited by Didou12 on 14 Mar 2023, 07:46, edited 1 time in total.
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)
User avatar
support
Site Admin
Posts: 6215
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: Displaying auto-increase in an element page (but no prefix)

Post by support »

Not clear what do you mean. Please provide some screenshots.
Didou12
Posts: 487
Joined: 14 Jan 2023, 14:53
Name: Louis
Location: Montreal, Canada

Re: Displaying auto-increase in an element page (but no prefix)

Post by Didou12 »

Here is the demo :

https://pdemo.rukovoditel.pro/3.3/index ... mo_id=1866
test.admin
admin

You can see the prefix doesn't show up, just the increased number (field "link with item")
In Item, it's field "auto-increase"

And for adding, in the dropdown list I need to add a model (see pictures).
Attachments
snap2.PNG
snap2.PNG (5.73 KiB) Viewed 1495 times
snap1.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)
User avatar
support
Site Admin
Posts: 6215
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: Displaying auto-increase in an element page (but no prefix)

Post by support »

You configured Heading in dropdown, but selected value uses Heading field that setup in Entity.
Just setup field 215 as heading for this entity.
Didou12
Posts: 487
Joined: 14 Jan 2023, 14:53
Name: Louis
Location: Montreal, Canada

Re: Displaying auto-increase in an element page (but no prefix)

Post by Didou12 »

It's already the case, that's why I think it's a bug. hihih Sorry I didn't mention it in my last message.
Same at the top of the page of the element, name is just number (without prefix).
Attachments
snap3.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)
Didou12
Posts: 487
Joined: 14 Jan 2023, 14:53
Name: Louis
Location: Montreal, Canada

Re: Displaying auto-increase in an element page (but no prefix)

Post by Didou12 »

Hi Sergey,

Any update about that ?

Have a good weekend,
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)
User avatar
support
Site Admin
Posts: 6215
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: Displaying auto-increase in an element page (but no prefix)

Post by support »

Ok, I see. File from archive replace to includes\classes\items\
Attachments
items.zip
(10.73 KiB) Downloaded 167 times
Didou12
Posts: 487
Joined: 14 Jan 2023, 14:53
Name: Louis
Location: Montreal, Canada

Re: Displaying auto-increase in an element page (but no prefix)

Post by Didou12 »

It's perfect :D thank you
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