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 Design Studio
Getting the row field value corresponding to invoice
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
Jeovanni
Past 24 Hours:
0
Prev. 24 Hours:
0
Overall:
5287
People Online:
Visitors:
422
Members:
0
Total:
422
Online Now:
New Topics
S3 Customization/Development
Data / List view on Lawson Portal
5/21/2025 2:37 AM
Client is on S3 V10. All delivered and custom form
Lawson S3 Financials
Applying credits to open AP invoices
4/28/2025 1:26 PM
Hello, I am new to the Lawson system and after ru
Lawson S3 Financials
Lawson APIA
4/28/2025 1:22 PM
Has anybody recently installed Lawson's APIA m
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
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
1377
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 Design Studio
Getting the row field value corresponding to invoice
Please
login
to post a reply.
13 Replies
0
Subscribed to this topic
12 Subscribed to this forum
Sort:
Oldest First
Most Recent First
Author
Messages
Subic
Basic Member
Posts: 7
10/18/2010 2:35 PM
Hi,
I am trying to get the value from each row that is corresponding to invoices.I have tried using button and image link. but both are not working.
Button option
when I click first button, getting the correct value from line1. but when i click the second row button, still getting row1 value.
Image option using the field id.
when click line 1 image, getting value from the last row values. Because, each row, we are comparing all line with same value.
My sample code is here.
if(lawForm.getElementValue("_f67r0",row)=="D")
{
url="";
url = "http://abc:8080/ImageSearchServlet";
url = url + "?frmVdrNbr="+lawForm.getDataValue("VENDOR");
url = url + "&frmInvNbr="+lawForm.getElementValue("_f54r0");
url = url + "&frmIPrntNbr="+lawForm.getElementValue("_f61r0");
url = url + "&fileOptions=true&printOptions=true";
var winValue = window.open(url,"File",'resizable=yes,scrollbars=no,toolbar=no,directories=no,status=yes,menubar=no,copyhistory=no');
}
if(lawForm.getElementValue("_f67r1",row)=="D")
{
url="";
url = "http://abc:8080/ImageSearchServlet";
url = url + "?frmVdrNbr="+lawForm.getDataValue("API-VENDOR");
url = url + "&frmInvNbr="+lawForm.getElementValue("_f54r1");
url = url + "&frmIPrntNbr="+lawForm.getElementValue("_f61r1");
url = url + "&fileOptions=true&printOptions=true";
var winValue = window.open(url,"file",'resizable=yes,scrollbars=no,toolbar=no,directories=no,status=yes,menubar=no,copyhistory=no');
}
if(lawForm.getElementValue("_f67r2",row)=="D")
{
url="";
url = "http://abc:8080/ImageSearchServlet";
url = url + "?frmVdrNbr="+lawForm.getDataValue("API-VENDOR");
url = url + "&frmInvNbr="+lawForm.getElementValue("_f54r2");
url = url + "&frmIPrntNbr="+lawForm.getElementValue("_f61r2");
url = url + "&fileOptions=true&printOptions=true";
var winValue = window.open(url,"file",'resizable=yes,scrollbars=no,toolbar=no,directories=no,status=yes,menubar=no,copyhistory=no');
}
Please suggest me, if anyone have another idea.
TracyO
Veteran Member
Posts: 97
10/18/2010 2:46 PM
Split
WHich form are you doing this on? Here is the code we have to pull up an image from AP90.1
var rowSelected = 0;
function grabAllFormValues()
{
Company = lawForm.getFormValue("text1", 0);
if (Company == '')
{
alert("Cannot display image without a valid company value on the form.");
exit;
}
Vendor = lawForm.getFormValue("text3", 0);
if (Vendor == '')
{
alert("Cannot display image without a valid vendor value on the form.");
exit;
}
while (Vendor.charAt(0)==" ")
{
var VendorLength=Vendor.length;
Vendor = Vendor.slice(1,VendorLength);
}
Invoice = lawForm.getFormValue("out8", rowSelected);
while (Invoice.charAt(0)==" ")
{
var InvoiceLength=Invoice.length;
Invoice = Invoice.slice(1,InvoiceLength);
}
if (Invoice == '')
{
alert("Cannot display image without a valid invoice value on the form.");
exit;
}
Drawer = lawForm.getFormValue("select1", rowSelected);
while (Drawer.charAt(0)==" ")
{
var DrawerLength=Drawer.length;
Drawer = Drawer.slice(1,DrawerLength);
}
if (Drawer == '')
{
alert("Cannot display image without a valid drawer value on the form.");
exit;
}
}
function DisplayImageWeb()
{
grabAllFormValues();
if (Drawer == "PETRO")
{
Drawer = "Petro" + "leum";
imgAddress = "http://inow:8080/webnow/index.jsp?action=document";
imgAddress = imgAddress + "&drawer=" + Drawer;
imgAddress = imgAddress + "&folder=";
imgAddress = imgAddress + "&tab=";
imgAddress = imgAddress + "&field3=" + Vendor;
imgAddress = imgAddress + "&field4=" + Invoice;
imgAddress = imgAddress + "&viewname=Petroleum";
imgAddress = imgAddress + "&displaysearchwindow=true";
}
if (Drawer == "AP")
{
imgAddress = "http://inow:8080/webnow/index.jsp?action=document";
imgAddress = imgAddress + "&drawer=" + Drawer;
imgAddress = imgAddress + "&folder=" + Vendor;
imgAddress = imgAddress + "&tab=" + Invoice;
imgAddress = imgAddress + "&viewname=All Documents";
imgAddress = imgAddress + "&displaysearchwindow=true";
}
imgWindow=window.open(imgAddress,"invoiceWindow","location=yes,menubar=no,resizable=yes,scrollbars=yes,titlebar=yes,toolbar=no");
imgWindow.focus();
return true;
}
function BUTTON_OnClick(id, row)
{
//alert(id + ", " + row);
rowSelected = row;
return true;
}
Subic
Basic Member
Posts: 7
10/18/2010 3:04 PM
Split
Tracy,
I have tried button on click option.
Always, I am getting push8,-1 value for all rows. Here is the code.
function BUTTON_OnClick(id, row)
{
if (id != "push8") {
return true;
}
alert(id+","+row);
var url = "http://abc:8080/ImageSearchServlet"
url = url + "?frmVdrNbr=" + lawForm.getDataValue("API-VENDOR");
url = url + "&frmInvNbr=" + trimText(lawForm.getFormValue("out12",rowSelected));
url = url + "&frmIPrntNbr=" + trimText(lawForm.getFormValue("out16",rowSelected));
url = url + "&fileOptions=true&printOptions=true";
alert(url);
var winValue = window.open(url,"File",'resizable=yes,scrollbars=no,toolbar=no,directories=no,status=yes,menubar=no,copyhistory=no');
}
David Williams
Veteran Member
Posts: 1127
10/18/2010 3:21 PM
Split
Subic - I answered your comment from my blog - did you get a chance to see it?
Subic
Basic Member
Posts: 7
10/18/2010 3:36 PM
Split
Dave,
No. I haven't looked yet. Let me check that. Thank you.
Subic
Basic Member
Posts: 7
10/18/2010 6:20 PM
Split
Dave,
I have looked your comment and replied on your blog.
I don't have any drop down to get the row id. Suggest me for any other idea.
David Williams
Veteran Member
Posts: 1127
10/18/2010 8:27 PM
Split
You can add an extra drop down select value to the FC and if you use that (like in my sample on my blog) then the script will work.
Subic
Basic Member
Posts: 7
10/18/2010 8:33 PM
Split
Dave,
Are you saying, add a drop down to each invoice row for getting the row info?.
Subic
Basic Member
Posts: 7
10/19/2010 3:44 PM
Split
Anyone have another idea?.
isln_boy
Basic Member
Posts: 8
10/19/2010 5:01 PM
Split
For the button option, I was getting the same response as you were, always returning the the first row value. I fixed the problem by manually adding "r0" to the end of nbr variable for the button in the source.
Changed this
push id="push3" nbr="_l80"
to
push id="push3" nbr="_l80r0"
TracyO
Veteran Member
Posts: 97
10/19/2010 5:50 PM
Split
I remembered now that we had to go to the source page in DS to make it read the line we wanted. We had to change the actual Source to display the field for nbr:
I believe before we changed the source it read: nbr = ""
then we changed it to: nbr="_l72ro" (where l72 is the button I created.
Hope this helps
TracyO
Veteran Member
Posts: 97
10/19/2010 5:51 PM
Split
the code did not come thru. try this again: You should find the line in the source a few lines above where the java script code starts to display
Subic
Basic Member
Posts: 7
10/19/2010 6:22 PM
Split
Yes. It is working, after changing the nbr field from "_67" to "_67r0". Thank you all.
Ragu Raghavan
Veteran Member
Posts: 477
10/12/2011 12:05 AM
Split
Thank you all. This helped me today.
Please
login
to post a reply.