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:
Wayne Willis
Past 24 Hours:
1
Prev. 24 Hours:
1
Overall:
5190
People Online:
Visitors:
245
Members:
0
Total:
245
Online Now:
New Topics
S3 Customization/Development
Cobol - Extract Current Time
4/24/2024 7:21 PM
How do you extract just the Current System Time in
Lawson Landmark
LPL INSTR Functions
4/5/2024 8:32 PM
I'm writing a simple report using the Create R
Infor SCM
Translating 856 to get the ~ REF^CN^ field
4/3/2024 8:24 PM
We are trying to get the tracking number which is
IPA/ProcessFlow
Sample XML file create Flow
4/3/2024 3:43 PM
Hello everyone, I am new to creating XML files
Lawson S3 HR/Payroll/Benefits
bn105 error message
3/26/2024 6:40 PM
I need to change some of the set ups in our Life I
IPA/ProcessFlow
IPA executing Job
3/13/2024 7:08 PM
New to the IPA world and was wondering, can an IPA
Lawson S3 HR/Payroll/Benefits
Life Age Reduction on benefits plans
3/12/2024 7:15 PM
For our optional life we have an age based coverag
Lawson S3 HR/Payroll/Benefits
BN53.1 Add-In
3/7/2024 3:31 PM
We are migrating to Solstice. They require a
Lawson Business Intelligence/Reporting/Crystal
Domain Name Change
3/5/2024 7:45 PM
Our domain name needs to change and was hoping I c
S3 Customization/Development
Cobol calling Shell Script
2/29/2024 1:27 PM
Has anyone created or modified a Lawson Cobol prog
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
JonA
3288
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1351
Roger French
1311
mark.cook
1244
Forums
Unanswered
Active Topics
Most Liked
Most Replies
Search Forums
Search
Advanced Search
Topics
Posts
Prev
Next
Forums
Lawson Design Studio
only allow users to select items from a listbox or items from drill around
Sort:
Oldest First
Most Recent First
You are not authorized to post a reply.
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.
You are not authorized to post a reply.