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
only allow users to select items from a listbox or items from drill around
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:
0
Overall:
5210
People Online:
Visitors:
164
Members:
0
Total:
164
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
only allow users to select items from a listbox or items from drill around
Please
login
to post a reply.
4 Replies
0
Subscribed to this topic
12 Subscribed to this forum
Sort:
Oldest First
Most Recent First
Author
Messages
LisaN
Veteran Member
Posts: 53
3/21/2011 11:34 PM
We have a DS form for RQ10. Some of the fields are either listboxes or text fields with drill. Is it possible to only allow the users to select from the items in the listbox or drill-around. We don't want the user to manually enter data in the fields. Is this possible?
So far I haven't found a way.
For example: the 'Minor Class' field is a text field with drill-around. Can we make the field so the user can only select the options from the drill? the Warranty field is a listbox; we want the user to only select from the dropdown.
Thank you.
David Williams
Veteran Member
Posts: 1127
3/22/2011 11:11 AM
The only other option I can think of is to edit check the value after they move off of the field and if they entered something that's not in your list then alert a message indicating the value is invalid.
Robert Spurr
Veteran Member
Posts: 130
3/22/2011 3:36 PM
We created a form that allows users to select an alternate requester ID but only those that had been defined for the user. It is similar to your solution and thought the code might provide some insight on how you could achieve your goals. The form started as a blank RQ04 and we store the values in the EDI Sub table.
function FORM_OnAfterDataInit()
{
//
//Builds Textarea1 display
//
var vCommit = "This form is only for those individuals authorized ";
vCommit = vCommit + "to have multiple requester ID's. ";
vCommit = vCommit + "If the dropdown displays no options and it should please contact ";
vCommit = vCommit + "MMIS.";
lawForm.setFormValue("textarea1",vCommit);
//
//Stores users ID and Prodcutline
//
var strID = portalWnd.oUserProfile.getAttribute("ID");
var strPDL = portalWnd.oUserProfile.getAttribute("productline");
//
//DME call to return individuals assigned to route inbaskets
//
var s = "?PROD="+strPDL;
s += "&FILE=EDSUBTBL&INDEX=EDSSET1&KEY=CHANGE_REQUESTER="+strID;
s += "&FIELD=EXTERNAL-VALUE";
s += "&OUT=XML&MAX=25";
//
//Makes call
//
var sReturn = portalWnd.httpRequest(portalWnd.DMEPath + s);
//
//Checks for errors
//
if (!sReturn || sReturn.status)
{
var msg="Error calling DME ";
msg += (sReturn
? "(status code): " + sReturn.status
: "bad server response.");
alert(msg);
return true;
}
//
//Assigns return to a new object
//
var vObjDMEXML = new portalWnd.DataStorage(sReturn);
//
//Breaks object into records
//
var vRecord = vObjDMEXML.document.getElementsByTagName("RECORD");
//
//Checks to see if no data was returned
//
if (vRecord.length == 0)
{
return true;
}
//
//Variables to load listbox
//
var strRequester = document.getElementById("VALUES_l183");
var ListVal1;
//ListVal1 = document.createElement("span");
//
//Fill List Box
//
for (var i=0;i
{
ListVal1 = document.createElement("span");
var vCols = vRecord
.getElementsByTagName("COL");
var vAppName = vCols[0].firstChild.data;
ListVal1.setAttribute("text",vAppName);
ListVal1.setAttribute("tran",vAppName);
ListVal1.setAttribute("disp",vAppName);
strRequester.appendChild(ListVal1);
}
return true;
}
function BUTTON_OnClick(id, row)
{
//
//Stores users ID and Prodcutline
//
var strID = portalWnd.oUserProfile.getAttribute("ID");
var strPDL = portalWnd.oUserProfile.getAttribute("productline");
var newRequester = lawForm.getFormValue("select20");
//
//Blank Value
//
if (newRequester == "")
{
alert("You need to select a requester");
return true;
}
//
//DME call to validate selection
//
var s = "?PROD="+strPDL;
s += "&FILE=EDSUBTBL&INDEX=EDSSET1&KEY=CHANGE_REQUESTER="+strID+"="+newRequester;
s += "&FIELD=EXTERNAL-VALUE";
s += "&OUT=XML&MAX=1";
//
//Makes call
//
var sReturn = portalWnd.httpRequest(portalWnd.DMEPath + s);
//
//Checks for errors
//
if (!sReturn || sReturn.status)
{
var msg="Error calling DME ";
msg += (sReturn
? "(status code): " + sReturn.status
: "bad server response.");
alert(msg);
return true;
}
//
//Assigns return to a new object
//
var vObjDMEXML = new portalWnd.DataStorage(sReturn);
//
//Breaks object into records
//
var vRecord = vObjDMEXML.document.getElementsByTagName("RECORD");
//
//Checks to see if no data was returned
//
if (vRecord.length == 0)
{
alert("You are not authorized to use requester ID ("+ newRequester + ") with this form");
return true;
}
//
//Open RSS with the new requester
//
var vURL = "/rss/html/index.htm?newreq=true&requester=" + newRequester;
portalWnd.openWindow(vURL)
return true;
}
LisaN
Veteran Member
Posts: 53
3/22/2011 6:14 PM
Thanks for your help David and Robert. After playing around with the field I discovered a trick. If I change the listbox width to -1 (neg. 1) the display changes so that the drop-down arrow is on the left and the display is on the right. Data can't be keyed in the field.
for the text box with drill, I changed the width to 0 and added a text box to hold the fields info. A width of -1 still allowed the user to enter data.
Hopefully the -1 isn't a bug that they fix down the road.
Thanks again.
Lisa
David Williams
Veteran Member
Posts: 1127
3/22/2011 7:09 PM
I'll have to remember this "work around" and hope Lawson doesn't fix it.
Please
login
to post a reply.