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
Ap20.2 and Imagenow
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
Zac Shields
Past 24 Hours:
0
Prev. 24 Hours:
2
Overall:
5210
People Online:
Visitors:
367
Members:
0
Total:
367
Online Now:
New Topics
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
Lawson S3 Procurement
RQ13 Approval Info
10/17/2024 2:12 PM
When a Requisition is approved on RQ13, what table
S3 Customization/Development
Read and Write CSV file COBOL
10/9/2024 2:53 PM
Does anyone have a quik example of a program that
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 Design Studio
Ap20.2 and Imagenow
Please
login
to post a reply.
5 Replies
0
Subscribed to this topic
12 Subscribed to this forum
Sort:
Oldest First
Most Recent First
Author
Messages
Kate Liamero
Veteran Member
Posts: 70
7/12/2007 3:45 AM
I am creating a custom AP20.2 screen to intergrate with ImageNow's Internet Explorer Learn applet. I want to be able to pull the vendor name from the AP20.2 screen into the Imagenow index. I have no problem with the co#, vendor#, invocie# and invoice date because the learn mode can capture them as id = _f6 customid=text1. Learn mode cannot see the vendor number because it is an out field. The learnmode can only see fields such as id_f9, form#5, TF0-0#6, DTO#28, and it can see text placed on a button. The vendor name on this form is id="out1 and the learn mode cannot see it to use it. I need a function that can either copy the vendor name onto the text of a button that does nothing if you click on it or create a true _f## field that can replace the out field on the form.
Thanks
Kate
All version 9.0
John Henley
Posts: 3353
7/12/2007 11:44 AM
Hello Kate,
You've been very quiet...
Fastest thing to do would be just change the .xml file for AP20.2 so that vendor name is a text field instead of an output only field. You just need to match up the right syntax, and away you go...until you recompile a new AP20.2.xml and you have to re-do it again, and again, etc. Or until your users ask you why when the "change the vendor name", it doesn't really change the vendor name...
To do it the "correct" way assumes you have Design Studio. (technically you can do this without it, but you wouldn't be able to maintain it...) What I would do is "delete" the existing vendor name field using Design Studio. Then add a text box and bind its data source to vendor name. To prevent users from entering into it, use JavaScript in the OnBeforeTransaction event to set the .style attributes to disabled so that it becomes an output only field, but for the purposes of your ImageNow integration, it's an entry field.
Keep in mind that as you install CTPs and MSPs, Design Studio forms do require maintenance. It's not a free lunch.
Kate Liamero
Veteran Member
Posts: 70
7/12/2007 12:45 PM
Thanks John I'll try the delete and add terxt box in design studio
Kate Liamero
Veteran Member
Posts: 70
7/12/2007 2:53 PM
Ok John. Your suggestion to delete the output vendor name field and add a text box with the vendor name as a datasource worked. Added text 86 and Imagenow learn mode can see it now but being javascript impaired I have no clue on how to prevent entry into this field. Below is the scripting that is already in design studio on the script tab.
Thanks for you help
Kate
function FORM_OnBeforeTransaction(fc)
{
var Error="N";
if (fc != "A" && fc != "C")
return true;
for (i=0; i <= 5; i++)
{
var Account=lawForm.getFormValue("text72",i);
if (Account == 16301 ||Account == 16401 || Account == 16501 || Account == 16551 || Account == 16601 || Account == 16701 ||Account == 16801 || Account == 16101 || Account == 16201)
{
var Template=lawForm.getFormValue("text84",i);
if (Template == "")
{
lawForm.positionInFieldById("text84",i);
lawForm.setMessage("Asset Template is Required for Account");
alert("Asset Template is Required for Account");
var Error="Y";
return false;
}
var Quantity=lawForm.getFormValue("text85",i);
if (Quantity == 0)
{
lawForm.positionInFieldById("text85",i);
lawForm.setMessage("Quantity is Required for Asset Template");
alert("Quantity is Required for Asset Template");
var Error="Y";
return false;
}
}
}
var AuthCode=lawForm.getFormValue("text6");
if (AuthCode == "")
{
lawForm.positionInFieldById("text6");
lawForm.setMessage("Authority Code is Required");
alert("Authority Code is Required");
var Error="Y";
return false;
}
if (Error == "Y")
return false;
if (Error == "N")
return true;
}
// following script is to get image from imagenow
Vendor = ""
var Invoice = ""
var row =""
function grabAllFormValues()
{
Company = lawForm.getFormValue("text1", 0);
if (Company == '')
{
alert("Cannot display image without a valid Company value on the form.");
return;
}
Vendor = lawForm.getFormValue("text7", 0)
if (Vendor == '')
{
alert("Cannot display image without a valid vendor value on the form.");
return;
}
while (Vendor.charAt(0)==" ")
{
var VendorLength=Vendor.length;
Vendor = Vendor.slice(1,VendorLength);
}
}
function BUTTON_OnClick(id,row)
{
// if button is 'push12', be sure we have an Invoice("text12")
if (id == "push12")
{
Invoice=lawForm.getFormValue("text12");
if (Invoice == "")
{
alert("Please enter a Invoice number");
lawForm.positionInFieldById("text12");
return false;
}
}
return true;
}
function DisplayImageWeb()
{
grabAllFormValues();
BUTTON_OnClick();
// alert("Company is " + Company)
// alert("Vendor Number is " + Vendor)
// alert("Invoice Number is " + Invoice)
imgAddress = "http://edison9080/webnow/index.jsp?action=filter";
// imgAddress = "http://m-imagenow/webnow/index.jsp?action=filter&username=anonymous&password=1";
//imgAddress = imgAddress + "drawer= AP Primary";
imgAddress = imgAddress + "&drawer=";
imgAddress = imgAddress + "&folder=" + Vendor;
imgAddress = imgAddress + "&tab=" + Invoice;
imgWindow=window.open(imgAddress,"invoiceWindow","location=yes,menubar=no,resizable=yes,scrollbars=yes,titlebar=yes,toolbar=yes,status=yes");
imgWindow.focus();
return true;
}
John Henley
Posts: 3353
7/12/2007 3:39 PM
Put this in OnAfterTransaction()
var txtInvoice = lawForm.getFormElement("text86")
if (txtInvoice) {
txtInvoice.disabled = true;
}
Kate Liamero
Veteran Member
Posts: 70
7/12/2007 5:34 PM
You did mean to place in FORM_OnBeforeTransaction(fc) not AFTER transaction right?
Anyway that's where I put it and the Imagenow applet see the name and it works. You're the best
Thanks
Kate
Please
login
to post a reply.