Advertisement

10.13.2008 at 04:10PM PDT, ID: 23811236
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.8

Combine Javascript and Formula into one routine

Asked by fordraiders in Lotus Notes

Lotus Notes r5
domino r5

The Java script code is from a button called  "Submit" with code in the  "OnClick"  event

The second code from from a button called "New DT#"  with code in the  Click Event

I want to cobine them together so they both run from the "Submit"   button....

But I need a varaible created to hold the value...for the number created from the
FORMULA FROM  2ND COMMAND BUTTON
...so   (@SetField("CTrackingNumber") is now a variable


Is this possible ?

Thanks
fordraiders


Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
////JAVA SCRIPT FROM COMMAND BUTTON
 
var f = document.forms[0]
 
if (f.DueDate.value == "")
{
alert ("Requested Due Date is a Required Field. You must enter a Requested Due Date in the MM/DD/YYY format.");
f.DueDate.focus();
return false;
}
 
if (f.RequestorName.value == "")
{
alert ("Submitter Name is a Required Field.");
f.RequestorName.focus();
return false;
}
 
if (f.RequestorPosition.value == "")
{
alert ("Submitter Title is a Required Field.");
f.RequestorPosition.focus();
return false;
}
 
if (f.RequestorPhone.value == "")
{
alert ("Submitter Office Phone is a Required Field.");
f.RequestorPhone.focus();
return false;
}
 
if (f.RequestorCell.value == "")
{
alert ("Submitter Cell Phone is a Required Field. If you do not use your cell phone during work hours, please enter N/A.");
f.RequestorCell.focus();
return false;
}
 
if (f.RequestorVM.value == "")
{
alert ("Submitter VM is a Required Field. Click.");
f.RequestorVM.focus();
return false;
}
 
if (f.RequestorEmail.value == "")
{
alert ("Requestor Email is a Required Field.");
f.RequestorEmail.focus();
return false;
}
 
if (f.SellerName.value == "")
{
alert ("Account Manager Name is a Required Field.");
f.SellerName.focus();
return false;
}
 
if (f.SellerOfficeNo.value == "")
{
alert ("AM Office Phone is a Required Field.");
f.SellerOfficeNo.focus();
return false;
}
 
if (f.SellerCellNo.value == "")
{
alert ("AM Cell Phone is a Required Field.");
f.SellerCellNo.focus();
return false;
}
 
if (f.SellerVM.value == "")
{
alert ("AM Voice Mail Number is a Required Field.");
f.SellerVM.focus();
return false;
}
 
if (f.AcctClass.options.selectedIndex==0 ) 
{
alert ("AcctClass is a Required Field. You must enter the Account Classification.");
f.AcctClass.focus();
return;
}
 
if (f.DSM.value == "")
{
alert ("DSM is a Required Field.");
f.DSM.focus();
return false;
}
 
if (f.RSVP.value == "")
{
alert ("RSVP is a Required Field.");
f.RSVP.focus();
return false;
}
 
// Commented out validation per Eric Baelum - 7/18/07 AZ
//radiochk = false;
 
//for ( n = 0; n < f.Onsite.length; n++ ) {
 
// Isolate the n'th radio button
//el = f.Onsite[n];
 
// See if it was selected
//radiochk = radiochk || el.checked;
 
//if ( (el.value == "On-Site"  | el.value == "EZ Crib")    && el.checked ) {
 
//if(CLM.value==""){
//alert("Because this is an On-Site request, you are required to enter the CLM Name.");
//f.CLM.focus();
//return false;
//}
//}
//}
 
//radiochk = false;
 
//for ( n = 0; n < f.Onsite.length; n++ ) {
 
// Isolate the n'th radio button
//el = f.Onsite[n];
 
// See if it was selected
//radiochk = radiochk || el.checked;
 
//if (( el.value == "On-Site" | el.value == "EZ Crib")  && el.checked ) {
 
//if(TransNumber.value==""){
//alert("Because this is an On-Site request, you are required to enter a Pipeline Transaction number.");
//f.TransNumber.focus();
//return false;
//}
//}
//}
 
if (f.CustName.value == "")
{
alert ("Customer Name is a Required Field.");
f.CustName.focus();
return false;
}
 
if (f.AcctNum.value == "")
{
alert ("Customer Account Number is a Required Field.");
f.AcctNum.focus();
return false;
}
 
if (f.NumItems.value == "")
{
alert ("Number of Items to be crossed  is a Required Field.");
f.NumItems.focus();
return false;
}
 
radio = document.forms[0].Pricing;
for (i = 0; i < radio.length; i++) {
if(radio[i].checked) {
checked = true;
break;
}
}
if(!checked) {
alert ("The Account Level Pricing Needed  is a Required Field.");
document.forms[0].Pricing[0].focus();
 
return false;
}
checked = false;
 
radio = document.forms[0].Onsite;
for (i = 0; i < radio.length; i++) {
if(radio[i].checked) {
checked = true;
break;
}
}
if(!checked) {
alert ("You must specify if the resources requested are on-site or off-site.");
document.forms[0].Onsite[0].focus();
 
return false;
}
checked = false;
 
radio = document.forms[0].ProjectSize;
for (i = 0; i < radio.length; i++) {
if(radio[i].checked) {
checked = true;
break;
}
}
if(!checked) {
alert ("You must specify the Project Size.");
document.forms[0].ProjectSize[0].focus();
 
return false;
}
checked = false;
 
radio = document.forms[0].FileFormat;
for (i = 0; i < radio.length; i++) {
if(radio[i].checked) {
checked = true;
break;
}
}
if(!checked) {
alert("You must specify the file format.");
document.forms[0].FileFormat[0].focus();
 
return false;
}
checked = false;
 
f.submit()
 
 
 
/////   FORMULA FROM  2 ND COMMAND BUTTON   :  need variable to hold the value created instead of 
displaying on the form...so   (@SetField("CTrackingNumber") is now a variable
 
@Command([FileSave]);
(@SetField("CTrackingNumber";
 "P-" +
@Middle(@Text(DateCreated);0;1)+@Middle(@Text(DateCreated);1;1)+@Middle(@Text(DateCreated);3;1)+@Middle(@Text(DateCreated);4;1)+@Middle (@Text(DateCreated);6;1)+@Middle(@Text(DateCreated);7;1)+@Middle (@Text(DateCreated);8;1)+@Middle(@Text(DateCreated);9;1)+ "-" + @Text(TrackingNumber)));
@MailSend(RequestorEmail;"";"";"CRS Request Form Received For " + CustName;"";"Cross Referencing Services has received and is processing the request form submitted for " + CustName +".";"");
@Command([ViewRefreshFields]);
@Command([FileSave])
[+][-]10.14.2008 at 01:03AM PDT, ID: 22709357

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.14.2008 at 04:19AM PDT, ID: 22710234

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.14.2008 at 05:17AM PDT, ID: 22710550

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.14.2008 at 07:10AM PDT, ID: 22711434

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.14.2008 at 07:23AM PDT, ID: 22711533

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.14.2008 at 07:26AM PDT, ID: 22711564

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.14.2008 at 07:38AM PDT, ID: 22711680

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.14.2008 at 07:58AM PDT, ID: 22711906

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.14.2008 at 08:48AM PDT, ID: 22712464

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Lotus Notes
Sign Up Now!
Solution Provided By: sjef_bosman
Participating Experts: 1
Solution Grade: A
 
 
[+][-]10.14.2008 at 09:32AM PDT, ID: 22712967

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.14.2008 at 09:42AM PDT, ID: 22713096

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-44 / EE_QW_EXPERT_20070906