Login
Register
Search
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Forums
User Experience
Lawson Portal
ESS Modification
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
Saef
Past 24 Hours:
0
Prev. 24 Hours:
0
Overall:
5226
People Online:
Visitors:
705
Members:
0
Total:
705
Online Now:
New Topics
User Group Announcements
Carolina User Group Meeting
12/20/2024 3:15 PM
Date & Time: February 6, 2025, 8:30am - 4:00pm
S3 Systems Administration
ADFS certificate - new cert
12/3/2024 9:38 PM
The certificates on the windows boxes expired and
Lawson S3 HR/Payroll/Benefits
Post Tax Benefit Plan Table
11/14/2024 9:16 PM
Hi, totally new to Laswon. I have a repor
Lawson S3 Procurement
ED501 Error: Map 850 not supported by /law/c15vda/lawson/test10/edi/bin/laws_out_91
11/12/2024 3:47 PM
Tried runnning ED501 and getting the atathced erro
Lawson S3 HR/Payroll/Benefits
Error
11/6/2024 9:54 PM
When I try to enroll a retiree in 72.1 health plan
Infor ERP (Syteline)
Syteline: New Data Maintenance Wizard (Error) Need help
11/1/2024 4:24 PM
Hi, I need help with an error on syteline while us
Dealing with Lawson / Infor
Implementing Lawson v10 with Cerner Surginet, Case Cart Picking, and Quick Adds for the OR
10/29/2024 4:20 PM
Hi Everyone, I am wondering if there is any org
Lawson S3 HR/Payroll/Benefits
Canada Tax Calculation (Federal and Provincial) Issue
10/23/2024 5:00 AM
Initially, we had problem with CPP2 calculation is
Lawson S3 HR/Payroll/Benefits
CA Section 125 401k Plan
10/22/2024 10:13 PM
Does anyone have any recommendations on how to fac
S3 Systems Administration
Running AC120 deleted records from ACMASTER table
10/22/2024 3:40 PM
We recently ran the AC120 as normal and somehow it
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
JonA
3291
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1372
Roger French
1315
mark.cook
1244
Forums
Filtered Topics
Unanswered
Unresolved
Announcements
Active Topics
Most Liked
Most Replies
Search Forums
Search
Advanced Search
Topics
Posts
Prev
Next
Forums
User Experience
Lawson Portal
ESS Modification
Please
login
to post a reply.
7 Replies
0
Subscribed to this topic
13 Subscribed to this forum
Sort:
Oldest First
Most Recent First
Author
Messages
Greg Moeller
Veteran Member
Posts: 1498
2/20/2006 7:39 PM
Greetings all:
Users here want a mod to the ESS. Specifically the Employment section, and the Primary Job Profile link.
We would like to add the Employment Status to this table. I have found the file that I think I need to modify (empprofile.htm), but am only vaguely familiar with OO programing.
Can someone provide maybe some examples of what you have done? Or where do we start? Need to find out where it is calling to get the data from the Employee table....
Thanks much in advance!
-Greg Moeller
John Henley
Posts: 3353
2/20/2006 10:36 PM
You do want to make the change in empprofile.htm (make sure you save a copy prior to changing it...)
There are two places to make the change:
First, in the GetEmployee() function, where it is building up the AGS call, add emp-status to the list of fields in object.field
Second, in the DspEmployee() function, copy the block of code for displaying a field (e..g if (NonSpace(obj.paemployee_next_rev_code) != 0)), and change the references from obj.paemployee_next_rev_code to obj.emp_status; also change the field display label from "Next Review Type" to "Employee Status".
Once you do that, you should be able to see status on the profile. Then it's just a matter of deciding where you want it to display.
For editorial purposes, I will warn you that ESS and Lawson's concept of OO programming are mutually exclusive!
Greg Moeller
Veteran Member
Posts: 1498
2/21/2006 4:11 PM
Thanks, John. That works wonderfully. Now I have to ask if there is a way to get the description of the status code, rather than just the status code. A1 is not going to mean anything to a normal user, they would rather see "Active - Full-time". Is there a way to pull from the EMSTATUS table the description collumn instead? or is that outside the scope of ESS?
John Henley
Posts: 3353
2/21/2006 4:28 PM
I was wondering how long it would take for you to ask this question!
It's actually easier than you might think; as long as the table relationship is defined (and it is in this case), it can be used in the DME call.
Modify the GetEmployee DME call (the object.field list) to include emstatus.description. Then in the DspEmployee function, reference obj.emstatus_description rather than obj.emp_status.
Greg Moeller
Veteran Member
Posts: 1498
2/21/2006 5:15 PM
I have modified it thus:
object.field = "process-level.name;hm-acct-unit;department.name;"
+"location.description;supervisor.description;employee;"
+"job-code.description;paemployee.wk-phone-ext;paemployee.wk-phone-nbr;"
+"email-address;date-hired;pay-rate;paemployee.hm-phone-nbr;"
+"paemployee.next-review;paemployee.next-rev-code;adj-hire-date;"
+"position.description;union.description;"
+"schedule;pay-step;pay-grade;emstatus.description"
and in my DspEmployee function
if (NonSpace(obj.emstatus_description) != 0)
{
profile += "
  Employee Status  "
+ "
  " + obj.emstatus_description+' '
nextcolor = getNxtClr(nextcolor)
}
and this returns the employee number now????
Help?
John Henley
Posts: 3353
2/21/2006 5:45 PM
change:
emstatus.description
to:
emp-status.description
and
obj.emstatus_description
to
obj.emp_status_description
Greg Moeller
Veteran Member
Posts: 1498
2/21/2006 5:55 PM
Thanks alot, John. Works GREAT now. Question: Is there a list of all the available fields/objects that exist that we can call if necessary?
John Henley
Posts: 3353
2/21/2006 9:39 PM
Well...the best place (of course) to look is the Data Dictionary on LawsonGuru.com!
https://www.lawsonguru.co...abid/98/Default.aspx
If you drill down to the EMPLOYEE table, and then scroll down, you can see all of the fields that are in the tables which are related to EMPLOYEE.
If they are related, you can probably include them easily. If not, you'd have to write additional code (more DME lookups) to get them.
Please
login
to post a reply.