and I'm stuck on this line of script:
partNoScript.populatePartNo(
this);
What does PartNo refer to?
Thanks,
MDawn
Solved! Go to Solution.
Views
Replies
Total Likes
Yes.
'populatePartNo' is the function name. 'partNo' is the array name. Since 'partNo' is defined outside of a function it is available to all functions in the script object. The 'populatePartNo' function iterates over the 'partNo' array adding each child to the drop-down.
Steve
Views
Replies
Total Likes
Views
Replies
Total Likes
Thank you. What does the specific phrase PartNo refer to. The dropdownfield is named txtPartNum and the var in the script is called partNo. The capitalization is throwing me, I guess.
Thanks,
Margaret Dawn
Supervisor - Documentation
W: 630-850-1065
Views
Replies
Total Likes
PartNo is an array defined in the PartNoScript script object. It contains the values that are loaded into the drop-down.
// Array of part numbers.
var partNo = new Array(" ",
"580463116",
"25906311C",
"25129637J",
"771128",
"11198262A",
"57251",
"25906312A",
"51615223D",
"51615224D",
"516154CAC");
Views
Replies
Total Likes
So it's OK that in the populate function the phrase is capitalized as PartNo although the var is partNo?
Thanks,
Margaret Dawn
Supervisor - Documentation
W: 630-850-1065
Views
Replies
Total Likes
Yes.
'populatePartNo' is the function name. 'partNo' is the array name. Since 'partNo' is defined outside of a function it is available to all functions in the script object. The 'populatePartNo' function iterates over the 'partNo' array adding each child to the drop-down.
Steve
Views
Replies
Total Likes
Thanks.
Margaret Dawn
Supervisor - Documentation
W: 630-850-1065
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies