Skip to main content
Solved

How get and use current login in user in Screen conditions


Forum|alt.badge.img

I have a requirement to disable  printing of invoice more than once for some employees. I can use the “IsPrinted” condition to check if invoice has once been printed. I need a way to capture the current logged user so that i can add in my conditions

Best answer by fmrubi11

@Dmitrii Naumov thank for your suggestion. I cant see how i can add that to my conditions as in picture bellow. I need to be able to satisfy condition 2 with the currently logged in username or group or role. I can then use the condition to disable my print action on invoices (SO303000)

 

View original
Did this topic help you find an answer to your question?

iqraharrison
Captain II
Forum|alt.badge.img+8

hi @fm

could you revoke access to “reprint/reprint with new number” using access rights by screen and only giving certain employees access to reprint checks?

hope this helps!


Dmitrii Naumov
Acumatica Moderator
Forum|alt.badge.img+7
  • Acumatica Moderator
  • 639 replies
  • March 1, 2023

In general you can access the current user info through graph.AccessInfo.UserID.

But I like the suggestion by @iqraharrison48 more than implementing it in code.


Forum|alt.badge.img
  • Jr Varsity II
  • March 1, 2023

@iqraharrison48 thank you for your response, i skipped the document i am dealing with. I want to prevent reprint on Sales Order invoices (SO303000) for specific users. There is no separate option for reprint. Same action is used to print the invoice countless times. Solution not applicable in this case


Forum|alt.badge.img
  • Jr Varsity II
  • March 1, 2023

@Dmitrii Naumov thank for your suggestion. I cant see how i can add that to my conditions as in picture bellow. I need to be able to satisfy condition 2 with the currently logged in username or group or role. I can then use the condition to disable my print action on invoices (SO303000)

 


Dmitrii Naumov
Acumatica Moderator
Forum|alt.badge.img+7

I don’t think it is available in Visual editor here. 

Probably you will need to do it in code.


Forum|alt.badge.img
  • Jr Varsity II
  • March 2, 2023

Thank you @iqraharrison48, i used your idea and created a separate reprint option. Managed access by roles


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • March 2, 2023

Thank you for sharing your solution with the community @fmrubi11 !


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings