Login
Register
Search
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Forums
Integration / Customization
IPA/ProcessFlow
Best approach for Birthdate interface
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
HireIQ
Past 24 Hours:
0
Prev. 24 Hours:
0
Overall:
5264
People Online:
Visitors:
448
Members:
0
Total:
448
Online Now:
New Topics
Lawson S3 Procurement
Tolerance Settings
3/31/2025 2:01 PM
I've been trying to set a tolerance for some t
Dealing with Lawson / Infor
Printing Solutions other than MHC
3/27/2025 1:00 PM
What are others using for printing solutions besid
Lawson S3 Procurement
Green check marks in Lawson 9.0.1
3/20/2025 4:55 PM
Hi, How to remove green check mark on items when o
Lawson S3 HR/Payroll/Benefits
Pay Rate History to Show All Positions
2/26/2025 3:34 PM
Does anyone know how to modify payratehistory.htm
Infor CloudSuite
How to build a Pre-Prod tenant
2/7/2025 1:28 AM
After we finished our implementation and ended our
Lawson S3 Procurement
Browser issue with RQC Shopping
1/28/2025 5:49 PM
Since the recent Chrome/Edge updates, our RQC shop
Lawson S3 Procurement
S3-Procurement New Company
1/22/2025 10:38 PM
My Accounting Department has created a new Company
S3 Customization/Development
JUSTIFIED RIGHT
1/15/2025 7:41 PM
Is there a way in Lawson COBOL to make a character
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
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
1375
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
Integration / Customization
IPA/ProcessFlow
Best approach for Birthdate interface
Please
login
to post a reply.
4 Replies
0
Subscribed to this topic
52 Subscribed to this forum
Sort:
Oldest First
Most Recent First
Author
Messages
April
Basic Member
Posts: 15
9/10/2009 2:09 PM
Hello - I am building an interface to run monthly and grab all of the employees who have a birthday that month. I then am emailing the list to the manager (or at least that is my goal). Right now I have it setup to email the manager, but it occurs multiple times depending on how many employees have a birthday that month. Would it work if I sent all of the employees with a birthday that month to a file and then somehow pull from that file for the email in order to generate a list?
I also have it setup as a branch to many msgbuilders (one for each manager). Is there an easier way to set this up so each manager only sees his/her employee's bdays instead of everyones?
Thanks, April
Tim Cochrane
Veteran Member
Posts: 154
9/10/2009 3:26 PM
Split
Here's the option we would use:
1. add a new index to EMPLOYEE (which is what we did, i don't think EMPSET97 is delivered), where key = Company, Supervisor & Employee.
2. Build a query using EMPLOYEE and the new key and the relation on PAEMPLOYEE to do a "Select where PAEMPLOYEE.BIRTHDATE month = current month.
3. Branch to send the email when the supervisor number changes, else continue spinning thru the query adding the results to a MsgBuilder node.
April
Basic Member
Posts: 15
9/10/2009 6:49 PM
Split
I am not sure how to accomplish #3 though. How in the branch am I telling it to hold the data until supervisor A switches to supervisor B?
Thanks, April
Tim Cochrane
Veteran Member
Posts: 154
9/11/2009 11:57 AM
Split
Not a problem April, although i'll put a disclamier here that this is only one way to accomplish this, SO...
In the Start node add 2 variables: one that will hold the EMPLOYEE.SUPERVISOR value, the other is a variable to let the flow know this is the first time thru the query. initialize both to spaces, Ex: firstFound=="", superNum=="".
Here's how the query loop would work:
After the EMPLOYEE table query, add a branch where one leg goes to an assign if firstFound="". Assign the supervisor number just found to the variable . You'll only do this assignment once as this is your initial seeding of the supervisor number that you will use later in the loop to determine when the supervisor number changes. Each time you go thru the query loop you'll either add birthdates to the MsgBuilder node or send the email, depending on if the supervisor has changed. Toward the end of the query loop, update superNum with the EMPLOYEE.SUPERVISOR = superNum so that always contains the latest suprvisor found.
Depending on your javascripting experience and if you want to add custom code to pflow.js, some of this could be handled by pflow.js.
I've roughed out a query loop in Designer. Email me and I can send a screen shot. There are no guts behind the nodes, but at least you could "see" what I'm thinking.
John Henley
Posts: 3351
10/3/2009 10:06 PM
Split
If you have the HRSUPER table hierarchy set up, you can query/loop on HRSUPER, then have an inner loop for each supervisor that looks for the supervisor's direct reports who have birthdays.
Please
login
to post a reply.