Valued Contributor.. Mohamed_Halim Valued Contributor..
Valued Contributor..

Fill Request Header fields on login

Hi Experts,

IS there a way to populate some fields in the request header type on login for example i need to fill the department field & department head based on the requestor and can't be edited. 

Appreciate your help. 

Labels (1)
1 Reply
Derek Giedd Honored Contributor.
Honored Contributor.

Re: Fill Request Header fields on login

I have done this with a rule that runs when the request is created.  The rule executes SQL to return the Department.  The code to return the department would be similar to the code below:

SELECT ku.department_code,  CASE ku.department_code WHEN Null THEN Null ELSE (SELECT lu.meaning FROM knta_lookups lu WHERE lu.lookup_type = 'DEPT' AND lu.lookup_code = ku.department_code) END meaning
FROM kntausers ku
WHERE ku.user_id = [SYS.USER_ID]
-- Remember to give Kudos to answers! (click the KUDOS star)
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.