Skip to main content
Solved

current user Ifs

  • Aug 24, 2020 1:18 PM UTC
  • 5 replies
  • 1201 views

jzouaoui
Sidekick (Customer)
Forum|alt.badge.img+8

hello, 

i need to create a custom Field  which gets me he current user in Ifs. that help me to identify  who create a part (in inventory Part)

 

thank you.

Best answer by paul harland

Hi

Often you can use the substitution variable #USER_ID#

More generally you can use fnd_session_api.get_fnd_user()

View original

5 replies

paul harland
Superhero (Employee)
Forum|alt.badge.img+24

Hi

Often you can use the substitution variable #USER_ID#

More generally you can use fnd_session_api.get_fnd_user()


jzouaoui
Sidekick (Customer)
Forum|alt.badge.img+8
  • Author
  • Sidekick (Customer)
  • Aug 25, 2020 1:35 PM UTC

It works !!! Great .

thank you so much :) 


jzouaoui
Sidekick (Customer)
Forum|alt.badge.img+8
  • Author
  • Sidekick (Customer)
  • Aug 25, 2020 2:17 PM UTC

 

my idea is to be able to retrieve the history of users who have created new parts and I see with this custom field that I always get the current user .. it is not a persistent field.

thanks for your help


paul harland
Superhero (Employee)
Forum|alt.badge.img+24

you can make the field persistent/text, then use this code as the default value (either context substitution variable or PL/SQL expression).  

That way you can capture who created a record.

Best to also make the field non-editable through the client.


jzouaoui
Sidekick (Customer)
Forum|alt.badge.img+8
  • Author
  • Sidekick (Customer)
  • Aug 25, 2020 2:38 PM UTC

great ! thank you so much .