Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

DateTime column for Forms and Object browse

Questions related to using nuBuilder Forte.
Post Reply
miasoft
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

Unread post by miasoft »

it would be nice to add a column with the date and time of the last modification for Forms and Object browse (in future)
28.12.png
You do not have the required permissions to view the files attached to this post.
Wbr, miasoft.
kev1n
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

Unread post by kev1n »

Hi,

I'll have a think about it. In the meantime, you can look at this:
https://github.com/smalos/nuBuilder4-Co ... g_activity
apmuthu
Posts: 249
Joined: Sun Dec 06, 2020 6:50 am
Location: Chennai, India, Singapore

Re: DateTime column for Forms and Object browse

Unread post by apmuthu »

You do not have the required permissions to view the files attached to this post.
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

Unread post by miasoft »

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
How can I change SQL-qry to get "sus_name" instead of "zzzzsys_user_id"?
26.01_1.png
P.S. My SQL for Browse is:

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.
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

Unread post by miasoft »

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.
Post Reply