Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Exception error on Button2 click event

Avatar

Avatar
Validate 50
Level 3
mdawn50
Level 3

Likes

8 likes

Total Posts

346 posts

Correct Reply

6 solutions
Top badges earned
Validate 50
Validate 25
Validate 10
Validate 1
Boost 5
View profile

Avatar
Validate 50
Level 3
mdawn50
Level 3

Likes

8 likes

Total Posts

346 posts

Correct Reply

6 solutions
Top badges earned
Validate 50
Validate 25
Validate 10
Validate 1
Boost 5
View profile
mdawn50
Level 3

06-07-2015

Here is the script on the Button2:

var oDoc = event.target;

oDoc.mailDoc ({

bUI: true,

cTo: "gs@follett.com" ,

cSubject: form1.page1.posFlowed.posSub.storeNbr.rawValue + " " + form1.page1.posFlowed.posSub.schoolName.rawValue + " " + form1.page1.firstlinePosit.orderQuote.formattedValue + " " + "Standard Chair" ,

cMsg: "" ,

});

I have check everything several times and am obviously overlooking something. I keep getting an Exception error on line 8 of Button2 on the click event. I have double and triple checked the rawValue and formattedValue path names. The Standard Chair is text.

Thanks in advance for your help,

MDawn

Replies

Avatar

Avatar
Validate 1
Level 4
jasotastic81
Level 4

Likes

35 likes

Total Posts

329 posts

Correct Reply

43 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 4
jasotastic81
Level 4

Likes

35 likes

Total Posts

329 posts

Correct Reply

43 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
jasotastic81
Level 4

07-07-2015

Is line 8 the cMsg line? There's a comma at the end that shouldn't be there since it's the last line in your mailDoc build.

Avatar

Avatar
Validate 50
Level 3
mdawn50
Level 3

Likes

8 likes

Total Posts

346 posts

Correct Reply

6 solutions
Top badges earned
Validate 50
Validate 25
Validate 10
Validate 1
Boost 5
View profile

Avatar
Validate 50
Level 3
mdawn50
Level 3

Likes

8 likes

Total Posts

346 posts

Correct Reply

6 solutions
Top badges earned
Validate 50
Validate 25
Validate 10
Validate 1
Boost 5
View profile
mdawn50
Level 3

07-07-2015

Line 8 is this:

});

Thanks,

MDawn

Avatar

Avatar
Validate 50
Level 3
mdawn50
Level 3

Likes

8 likes

Total Posts

346 posts

Correct Reply

6 solutions
Top badges earned
Validate 50
Validate 25
Validate 10
Validate 1
Boost 5
View profile

Avatar
Validate 50
Level 3
mdawn50
Level 3

Likes

8 likes

Total Posts

346 posts

Correct Reply

6 solutions
Top badges earned
Validate 50
Validate 25
Validate 10
Validate 1
Boost 5
View profile
mdawn50
Level 3

07-07-2015

Interestingly, it works if I remove this:

+ form1.page1.firstlinePosit.orderQuote.formattedValue +

from the Subject line. The path is accurate. Am I used formattedValue incorrectly?

Thanks,

MDawn

Avatar

Avatar
Validate 1
Level 4
jasotastic81
Level 4

Likes

35 likes

Total Posts

329 posts

Correct Reply

43 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 4
jasotastic81
Level 4

Likes

35 likes

Total Posts

329 posts

Correct Reply

43 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
jasotastic81
Level 4

07-07-2015

Field.formattedValue returns a string, so it shouldn't be a problem.

I tried your code with two text fields and a numeric field with a currency pattern, and it created the email just fine.

I'd look back at that path to the orderQuote field. Is that part of a table or a subform? If so, is it in something that is repeated? If you place your cursor in the script editor and CTRL+click the orderQuote field, is that the path it gives you?

786642_pastedImage_0.png

786643_pastedImage_1.png

786650_pastedImage_2.png

Avatar

Avatar
Validate 50
Level 3
mdawn50
Level 3

Likes

8 likes

Total Posts

346 posts

Correct Reply

6 solutions
Top badges earned
Validate 50
Validate 25
Validate 10
Validate 1
Boost 5
View profile

Avatar
Validate 50
Level 3
mdawn50
Level 3

Likes

8 likes

Total Posts

346 posts

Correct Reply

6 solutions
Top badges earned
Validate 50
Validate 25
Validate 10
Validate 1
Boost 5
View profile
mdawn50
Level 3

07-07-2015

Thanks for your response. orderQuote is a radio button group of two buttons. They've been assigned numbers 1 and 2 and formatted values "Place order" and "Quote."

Also, I'll try your suggestion.

Thanks,

MDawn

Avatar

Avatar
Validate 1
Level 4
jasotastic81
Level 4

Likes

35 likes

Total Posts

329 posts

Correct Reply

43 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 4
jasotastic81
Level 4

Likes

35 likes

Total Posts

329 posts

Correct Reply

43 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
jasotastic81
Level 4

07-07-2015

OK, that makes a difference. If you're talking about the values for the radio buttons you set in the binding tab, you want orderQuote.rawValue.

786996_pastedImage_0.png

786997_pastedImage_1.png

Avatar

Avatar
Validate 50
Level 3
mdawn50
Level 3

Likes

8 likes

Total Posts

346 posts

Correct Reply

6 solutions
Top badges earned
Validate 50
Validate 25
Validate 10
Validate 1
Boost 5
View profile

Avatar
Validate 50
Level 3
mdawn50
Level 3

Likes

8 likes

Total Posts

346 posts

Correct Reply

6 solutions
Top badges earned
Validate 50
Validate 25
Validate 10
Validate 1
Boost 5
View profile
mdawn50
Level 3

08-07-2015

In the Binding tab, I would like the "Item" value to display, rather than the "Value" value.

7-8-2015 1-28-52 PM.jpg

I thought I remembered doing this before using formatted.Value but it's been awhile and I've forgotten, apparently!

Thanks,

MDawn

Avatar

Avatar
Validate 1
Level 4
jasotastic81
Level 4

Likes

35 likes

Total Posts

329 posts

Correct Reply

43 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 4
jasotastic81
Level 4

Likes

35 likes

Total Posts

329 posts

Correct Reply

43 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
jasotastic81
Level 4

08-07-2015


orderQuote.selectedMember().caption.value.text.value


Avatar

Avatar
Validate 50
Level 3
mdawn50
Level 3

Likes

8 likes

Total Posts

346 posts

Correct Reply

6 solutions
Top badges earned
Validate 50
Validate 25
Validate 10
Validate 1
Boost 5
View profile

Avatar
Validate 50
Level 3
mdawn50
Level 3

Likes

8 likes

Total Posts

346 posts

Correct Reply

6 solutions
Top badges earned
Validate 50
Validate 25
Validate 10
Validate 1
Boost 5
View profile
mdawn50
Level 3

08-07-2015

I could not get your answer to work. So, since I'm short on time, I changed the Value in the radio button list to the Place order and Quote values and used the rawValue expression and it works the way I need it to.

Thanks for all your help. I'm still not sure what I'm doing wrong, but I did get it to work the way I need (which today is a success for me!)

Thanks,

MDawn