Login
Register
Search
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Forums
Infor / Lawson Platforms
S3 Systems Administration
Custom SQL table index not working
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
John Bonin
Past 24 Hours:
0
Prev. 24 Hours:
0
Overall:
5270
People Online:
Visitors:
137
Members:
0
Total:
137
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
Infor / Lawson Platforms
S3 Systems Administration
Custom SQL table index not working
Please
login
to post a reply.
7 Replies
0
Subscribed to this topic
27 Subscribed to this forum
Sort:
Oldest First
Most Recent First
Author
Messages
Joe O'Toole
Veteran Member
Posts: 314
11/18/2010 9:45 PM
I need to create a custom index on the Paymastr table which will basically be the same as Pymset4 except with check date descending. I decided to change the Lawson delivered Pymset4 index in our Test area to confirm I would get the desired results with the new index before I write code to leverage it. I changed the index attributes in SQL server and also in Dbdef to reflect the descending index element in Pymset4 and a raw SQL query using that index returns the data in the new order as expected. Lawson apps however are still returing the records in ascending date order. I cleared all IOS caches but have not been able to bounce the Lawson or SQL services yet. Any suggestions on what I am missing?
Ragu Raghavan
Veteran Member
Posts: 477
11/18/2010 10:10 PM
Split
after the changes in dbdef, I think you need to run
1. blddbdict
2. dbreorg
John Henley
Posts: 3351
11/19/2010 12:01 AM
Split
You also should recompile =
Sam Simpson
Veteran Member
Posts: 239
11/19/2010 2:50 PM
Split
Joe,
Modifying a Lawson delivered index is a bad idea. You will end up recompiling all programs that uses it. Besides Lawson will not support you. The best way is clone the index and include your modification then do blddbdict and dbreorg as previously mentioned.
Joe O'Toole
Veteran Member
Posts: 314
11/19/2010 3:01 PM
Split
I agree, I'm just doing this in our test area for proof of concept.
I've already cloned the index with the new setting I will use in the customized application.
Thanks for everyone's feedback!
Joe O'Toole
Veteran Member
Posts: 314
11/19/2010 8:09 PM
Split
John - I ran blddbdict, dbreorg and recompiled HR and PR systemcodes. New index PYMSETJ is visible in dbdef and externally from Lawson via SQL. IOS / EMSS drill returns error "index PYMSETJ is not valid for PAYMASTR". Any other thoughts? Here is the IOS call:
"http://
server.domain.com/servlet/Router/Drill/Erp?_TYP=OS
&_PDL=TEST8&_SYS=HR&_FN=PAYMASTR
&_IN=PYMSETJ&K1=1111&K2=22222&K3=20090910&K4=810750&K5=1885852
&_OUT=XML&_XSL1=http://server.domain.com/lawson/webappjs/drillTOhtml.xsl
&_XSLPARAM=back|true
"
I'm also seeing reference to _RID=HR-EMP-V-0004 in the previous IOS call:
"http:
//server.domain.com/servlet/Router/Drill/Erp?_TYP=OV&_PDL=TEST8&_SYS=HR
&_RID=HR-EMP-V-0004
&_IN=EMPSET1&K1=1111&K2=22222&_OUT=XML
&_XSL1=http://server.domain.com/lawson/webappjs/drillTOhtml.xsl
&_XSLPARAM=back|true"
It appears to be some predefined view or relation that is referenced withing the EMSS JS code.
Anyone know where the definition is located?
Joe O'Toole
Veteran Member
Posts: 314
11/19/2010 9:55 PM
Split
Ok so I found the rule HR-EMP-V-0004 in the HR.or file in HRSRC but it makes no reference to paymastr table where we are adding the custom index:
DEFINE OBJVIEW "Payments"
ID HR-EMP-V-0004
FILENAME EMPLOYEE
VALIDITY PAYMENTS-EXIST
RELATION PAYMENTS
CONDITION NOT-ADJUSTMENT
DSPFLDS CHECK-NBR: "Payment Nbr", CHECK-DATE: " Date", GROSS-PAY:"Gross Amount ",
NET-PAY-AMT: "Net Amount ", PRCHECK.TYPE-1: "Type", STATUS: "Status"
Joe O'Toole
Veteran Member
Posts: 314
12/22/2010 12:58 PM
Split
Ok for anyone interested heres a brief summary on how I set this up and got it working:
- Define new index on SQL table (you can verify it works properly by querying with transact SQL referencing the new index)
- Edit the "OR" file to create a new rule referencing a new relation (see existing OR entries as an example)
- In Dbdef define the new relation for the table based on the new index
- Run a Blddbdict (new index will be detected and added if the previous steps worked properly)
- Run a Srgen if Blddbdict does not do one
- Run Dbreorg
- Recompile affected system codes (do all if you are not sure what is affected otherwise you may get database timestamp errors in some applications that use the modified table)
This worked well in our case as the new drill rule automatically showed in HR11 and EMSS so no modifications to the production Lawson code was needed. You could of course modify Lawson code or your custom programs to use the new relation as well.
Please
login
to post a reply.