Override the Oprid Value Through Peoplecode

I have a search record with 2 fields. Emplid & Oprid. But here only the Emplid is the search key field. I am coming to this page with the "Transfer" comment by passing the Emplid alone. And tried to override the Oprid value in the SearchInit event of the target component. But this Oprid value is not getting override since its not a search key field.
Please help me in override the Oprid value of the target component through peoplecode or in some other way.

Thanks in advance for the reply. This is really urgent so, your timely help will sort this out.

Popular White Paper On This Topic

So you have emplid which you are passing as parameter in Transfer function. Once the page get trasfered, you would like to see operator id in 2nd field equivalent to emplid you have passed in parameter.

To achieve this, you can write SQLExec ("Select OPRID from PSOPRDEFN where EMPLID=:1", &Ip_Parm_Emplid, &Op_Oprid)

The variable &Op_Oprid will hold new operator id you are looking for. Assign the same to record field.

Use a different field. SETID, EFFDT, OPRID are all "magic" words with hard coded behaviour.

SETID2, EFFDT2, OPRID2 are just ordinary fields. In many cases this is why they were created in the first place. Just have a view that brings the OPRID field up into a different field (like OPRID2) and change the label accordingly.

Copyright 1998-2015 Ziff Davis, LLC (Toolbox.com). All rights reserved. All product names are trademarks of their respective companies. Toolbox.com is not
affiliated with or endorsed by any company listed at this site.