it would be nice to add a column with the date and time of the last modification for Forms and Object browse (in future)
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
DateTime column for Forms and Object browse
-
- Posts: 156
- Joined: Wed Dec 23, 2020 12:28 pm
- Location: Russia, Volgograd
- Has thanked: 32 times
- Been thanked: 7 times
- Contact:
DateTime column for Forms and Object browse
You do not have the required permissions to view the files attached to this post.
Wbr, miasoft.
-
- nuBuilder Team
- Posts: 4307
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 447 times
- Contact:
Re: DateTime column for Forms and Object browse
Hi,
I'll have a think about it. In the meantime, you can look at this:
https://github.com/smalos/nuBuilder4-Co ... g_activity
I'll have a think about it. In the meantime, you can look at this:
https://github.com/smalos/nuBuilder4-Co ... g_activity
-
- Posts: 249
- Joined: Sun Dec 06, 2020 6:50 am
- Location: Chennai, India, Singapore
Re: DateTime column for Forms and Object browse
@kev1n: Great!.
References:
https://www.digitalocean.com/community/ ... n-in-mysql
https://dev.mysql.com/doc/refman/8.0/en ... tions.html
References:
https://www.digitalocean.com/community/ ... n-in-mysql
https://dev.mysql.com/doc/refman/8.0/en ... tions.html
You do not have the required permissions to view the files attached to this post.
-
- Posts: 156
- Joined: Wed Dec 23, 2020 12:28 pm
- Location: Russia, Volgograd
- Has thanked: 32 times
- Been thanked: 7 times
- Contact:
Re: DateTime column for Forms and Object browse
How can I change SQL-qry to get "sus_name" instead of "zzzzsys_user_id"? P.S. My SQL for Browse is:kev1n wrote:Hi,
I'll have a think about it. In the meantime, you can look at this:
https://github.com/smalos/nuBuilder4-Co ... g_activity
Code: Select all
SELECT
ID,
added_user,
added_time,
viewed_user,
viewed_time,
edited_user,
edited_time
FROM
(
SELECT
myzvk.ID,
JSON_UNQUOTE(JSON_EXTRACT(myzvk_nulog, '$.added.user')) as added_user,
FROM_UNIXTIME(JSON_EXTRACT(myzvk_nulog, '$.added.time')) as added_time,
JSON_UNQUOTE(JSON_EXTRACT(myzvk_nulog, '$.viewed.user')) as viewed_user,
FROM_UNIXTIME(JSON_EXTRACT(myzvk_nulog, '$.viewed.time')) as viewed_time,
JSON_UNQUOTE(JSON_EXTRACT(myzvk_nulog, '$.edited.user')) as edited_user,
FROM_UNIXTIME(JSON_EXTRACT(myzvk_nulog, '$.edited.time')) as edited_time
FROM myzvk
) T
You do not have the required permissions to view the files attached to this post.
Wbr, miasoft.
-
- Posts: 156
- Joined: Wed Dec 23, 2020 12:28 pm
- Location: Russia, Volgograd
- Has thanked: 32 times
- Been thanked: 7 times
- Contact:
Re: DateTime column for Forms and Object browse
I did this SQL-qry:
Code: Select all
SELECT
ID,
added_user,
added_time,
viewed_user,
viewed_time,
edited_user,
edited_time,
sus_name
FROM
(
SELECT
myzvk.ID,
JSON_UNQUOTE(JSON_EXTRACT(myzvk_nulog, '$.added.user')) as added_user,
FROM_UNIXTIME(JSON_EXTRACT(myzvk_nulog, '$.added.time')) as added_time,
JSON_UNQUOTE(JSON_EXTRACT(myzvk_nulog, '$.viewed.user')) as viewed_user,
FROM_UNIXTIME(JSON_EXTRACT(myzvk_nulog, '$.viewed.time')) as viewed_time,
JSON_UNQUOTE(JSON_EXTRACT(myzvk_nulog, '$.edited.user')) as edited_user,
FROM_UNIXTIME(JSON_EXTRACT(myzvk_nulog, '$.edited.time')) as edited_time
FROM myzvk
) T
LEFT JOIN zzzzsys_user ON zzzzsys_user.zzzzsys_user_id =edited_user OR zzzzsys_user.zzzzsys_user_id =added_user
Wbr, miasoft.