Display 4 parameters in the body of the error message
How do I display 4 parameters in the body of the error message when a CAPI fires?
By default only the primary key is inculded in the body of the message generated by default for any CAPI.
For e.g. I have an employee table with following columns:
emp_id, dept_id, location_id.
The employee_name, department_name and location_name is stored in 3 different table.
Now when the Business Rule is violated, I would like the message as:
The employee Mr. XYZ belonging to the Department ENGG and residing at the location SAN JOSE ....... <Business Rule Text>.
Can someone help?
Hi,
@ kranthi.k | Rod West
First of all, thank you very much for your inputs.
Rod West
Very nice article with very clear steps from LearnDiscoverer blog.
I have followed your instructions:
1). Created a package to enable me to set and retrieve contexts from in Discoverer
2). Imported the set_context and show_context functions
3). Created a calculation to call the set_context
Unfortunately, when I run the report I did not get any result.
As an analysis to trace the issue, I used TOAD to set the SET_CONTEXT and when I did that I ended up with the following error message:
!http://i40.tinypic.com/1563dzn.jpg!
Why it keeps asking me about privileges? Is there a way to avoid that please?
Thanks in advance.
With Regards,
Rafeea
Edited by: Rafea on May 19, 2009 12:43 AM
Similar Messages
-
I have reset both my torch and playbook back to original only thing that I kept was my contact. And still problems I am a few min away from leave my loved blackberry and going android !! Or heaven help us Phone
Issues 1) playbook wont connect to desktop manager anymore
2) Play book has 2 calendar icons with two different settings on them ??? I have one that is currently working with my yahoo email and calendar account.
3) my Phone when connected to desk top software shows the calendar as read only
4) Unable to update my phone says During an update of the applications on the BlackBerry® smartphone an error message may be displayed "BlackBerry Desktop Software failed to validate your BlackBerry device update - Aborting install due to validation failure. Some packages contained unsatisfactory dependencies."
I just want my email and Calendars to work I am tried of spending nights trying to get these deices working !!!
someone please help me. !!
I know you are going to ask I have updated everything last time and it is all as update as it can get.
As for now as I wait I am going to wipe my phone again and just set everything up again !! If I have to even my contacts AHHHH Help I am starting to think crazy thoughtsDid you try to eboot the your PC or laptop where your device is connected ?
I experienced this with my windows laptop, after a failed to do an update, I restart the laptop and my Torch, then retried, and it's worked -
My messages are not displaying, in the body of the message?
When going to mail I see messages but the body of the message does not display.
Try closing the Mail app completely and see if they show when you re-open the app : from the home screen (i.e. not with the Mail app 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Mail app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
If that doesn't work then also do a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot. -
My email only display the list of mails in my in box with a preview of the first two lines of the body of the message. When one clicks on the message to open it, only the header is displayed in the right hand side of the screen - the actual message is missing. This happens on older mail previously downloaded that use to work properly as well. Any idea how to fix this?
Try closing the Mail app completely and see if it works properly when you re-open the app : from the home screen (i.e. not with the Mail app 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Mail app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
If that doesn't work also do a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot. -
In mail, my attachments, both photos and documents, appear in the body of the message. How can I get my attachments to appear as a separate attachment and not as part of the main message???? Thanks for your help, Karen.
softwater wrote:
...and costs $14.99
Yep! And if you absolutely need (or think you need) that functionality, it is worth every penny.
As Don already pointed out, exactly what the recipient sees will depend on how they've set up their machine and what unnecessary 3rd party apps they might've installed to display attachments the way they want.
In theory, that is true. In practice, Attachment Tamer will cause more of your messages to show up as plain-jane icons on the other end. The problem is, after all, people running Outlook 2003 and 2007. These people likely aren't doing many system modifications.
If I were you, I'd use the free solutions provided above, save my money and let my recipients decide how they will handle their mail.
I completely agree. -
Email sending: "sending report output directly to the body of the email"
Hi
I got one requirement.this is the enhancement to already exisitng report.when user clicks on send email check box,report has to be display and this report output has to be send to email of the particular vendor. it has be seen directly in the body of the mail.not as attachement.Report output is in ALV format.Data is stored in internal table t_data.can anyone suggest what is the procedure for this.Hi i have tried the same thing and it works very fine,
i will share my code, you just follow exactly, hopefully you can solve the issue..
you refer clearly the body of the mail,
it should solve your issue/
FORM send_email .
DATA lt_message TYPE bcsy_text.
DATA lv_mail_title TYPE so_obj_des.
DATA document TYPE REF TO cl_document_bcs.
DATA recipient TYPE REF TO if_recipient_bcs.
DATA send_request TYPE REF TO cl_bcs.
DATA sent_to_all TYPE os_boolean.
DATA bcs_execption TYPE REF TO cx_bcs.
DATA wf_string(200) TYPE c.
* DATA wf_string TYPE string.
DATA doc_execption TYPE REF TO cx_document_bcs.
DATA lv_status(20) TYPE c.
DATA lv_count_email TYPE i.
DATA lv_temp_stepcount TYPE c.
LOOP AT wt_email INTO wa_email.
TRY.
CLEAR send_request.
send_request = cl_bcs=>create_persistent( ).
*Create Title
lv_mail_title = 'Report Title'.
*Create Message(EMAIL Body)
REFRESH lt_message.
APPEND '<p><b>Dear Sir/Madam,</b></p>' TO lt_message.
APPEND '<p>The following report shows the status of </p>' TO lt_message.
APPEND '<br>' TO lt_message.
APPEND '<table border= "1" color = 2>' TO lt_message.
CLEAR wf_string.
CONCATENATE '<th><tr>'
'<td>Vendor </td>'
'<td>Vendor Name</td>'
'<td>Coloun 1</td>'
'<td>Coloum 2</td>'
'</tr></th>' INTO wf_string.
APPEND wf_string TO lt_message.
LOOP AT wt_itbl INTO wa_itbl WHERE vendor = wa_email-vendor. "-> Define your Condition here wt_email( should contains vendor and its respective email id)
CLEAR wf_string.
CONCATENATE '<tr><td>' wa_itbl-vendor '</td>' INTO wf_string.
APPEND wf_string TO lt_message.
CONCATENATE '<td>' wa_itbl-Vendor_name '</td>' INTO wf_string.
APPEND wf_string TO lt_message.
CONCATENATE '<td>' wa_itbl-COL2 '</td></tr>' INTO wf_string.
APPEND wf_string TO lt_message.
CONCATENATE '<td>' wa_itbl-COL3 '</td></tr>' INTO wf_string.
APPEND wf_string TO lt_message.
ENDLOOP.
APPEND '</table>' TO lt_message.
APPEND '<br>' TO lt_message.
APPEND '<p><b>Thank You</b></p>' TO lt_message.
*Create Document
CLEAR document.
TRY.
CALL METHOD cl_document_bcs=>create_from_text
EXPORTING
i_text = lt_message
i_documenttype = 'HTM'
i_subject = lv_mail_title
RECEIVING
result = document.
CATCH cx_document_bcs INTO doc_execption.
ENDTRY.
*Add document to email
send_request->set_document( document ).
*Add recipients to send request
IF wa_email-smtp_addr IS NOT INITIAL.
recipient = cl_cam_address_bcs=>create_internet_address(
i_address_string = wa_email-smtp_addr ).
send_request->add_recipient( i_recipient = recipient ).
ENDIF.
*Send Email
CALL METHOD send_request->send
RECEIVING
result = sent_to_all.
COMMIT WORK.
IF sent_to_all EQ 'X'.
lv_count_email = lv_count_email + 1.
ENDIF.
CATCH cx_bcs INTO bcs_execption.
ENDTRY.
ENDLOOP.
IF sent_to_all = 'X'.
SKIP 2.
FORMAT COLOR COL_GROUP INTENSIFIED ON.
ULINE /(10).
WRITE: / 'Remark : '.
ULINE /(10).
FORMAT RESET.
WRITE: / 'Email Message Sent Succesfully'.
RETURN.
ENDIF.
ENDFORM. -
I have a form that I have created in LiveCycle with a submit button to have the completed form emailed to a specific person. I have it set up with a message in the body of the email, but I am looking to add an additional message based on the results of one of the fields in the form....is this possible without major script writing?
I am not a programmer, but willing to learn some script.softwater wrote:
...and costs $14.99
Yep! And if you absolutely need (or think you need) that functionality, it is worth every penny.
As Don already pointed out, exactly what the recipient sees will depend on how they've set up their machine and what unnecessary 3rd party apps they might've installed to display attachments the way they want.
In theory, that is true. In practice, Attachment Tamer will cause more of your messages to show up as plain-jane icons on the other end. The problem is, after all, people running Outlook 2003 and 2007. These people likely aren't doing many system modifications.
If I were you, I'd use the free solutions provided above, save my money and let my recipients decide how they will handle their mail.
I completely agree. -
When I want to attach a file to an e-mail I'm sending from my iCloud account it makes the file show up in the body of the e-mail instead of attaching it as a separate file the receiver can open. How can I change this?
It should be an attachment. Your Mac just displays a preview of certain attachments (such as .pdfs) in the body of the message. A PC, for example, will see it as an attached file rather than a preview.
You can save the attachment on your Mac by Control-clicking on it and selecting Save Attachment. -
Applescript: enclosing a picture in Mail so it is in the body of the text
have a script on my server that sends mails using The Mail (Apple) Programme.
It encloses a picture situated on the desktop (the script is larger, where it generates the picture and trashes it afterwards).
Now the picture arrives as an enclosure and I would like it to appear at the end of the text (in other words in the body of the text not as an enclosure). How do I amend the script I have? I have no idea as to how to do this or where to begin. any suggestions are welcome.
Thanks.
The script is the following at present:
set dFolder to "/Users/XYZ/Desktop/"
tell application "Finder" to try
set tFiles to ((every file whose name contains "NameofPNG")) as alias list
on error
set tFiles to ((every file whose name contains "NameofPNG")) as alias as list
end try
set docfolderpath to path to desktop folder as string
set yourfolder to "~/Desktop/" --------- the folder with the documents
set pathtoyourfolder to docfolderpath & yourfolder & ":" as string
set FNDVAR to "NameofPNG" --------"FIND" variable for the files
set ppath to quoted form of POSIX path of pathtoyourfolder
set theSender to "[email protected]"
set thercpnt to "[email protected]"
set theFiles to (do shell script "mdfind -onlyin " & "~/Desktop/" & " 'kMDItemDisplayName == \"*" & FNDVAR & "*\"'") ------seems to be faster than finder
set theattachmentspaths to {} ------preparing list for attachment paths
repeat with x from 1 to the count of paragraphs in theFiles
set theF to alias POSIX file (paragraph x of theFiles)
set end of theattachmentspaths to theF
end repeat
tell application "Finder"
set theSubject to short date string of (current date) & (" XYZ")
set theBody to "XYZ"
tell application "Mail"
delay 2
set newMessage to make new outgoing message with properties {address:thercpnt, subject:theSubject, content:theBody & return & return}
tell newMessage
set visible to true
set sender to theSender
make new to recipient at beginning of to recipients with properties {address:thercpnt}
repeat with y from 1 to count of items in theattachmentspaths
delay 2
set theAttachment to item y in theattachmentspaths
tell content
make new attachment with properties {file name:theAttachment} at after the last paragraph
end tell
delay 2
end repeat
end tell
delay 2
send newMessage
end tell
activate
end tellLooks complicated. I looked at the source to an email with imbeded pictures.
The email contains multiple mime types.
Apple mail automatically imbeds the picture.
I your using someother email client, you need to create an html document with the pictures references.
example:
relatives and staff.<br></span></b><span style=3D"font-size:9pt;font-fa=
mily:'Tahoma','sans-serif'"><img src=3D"cid:X.MA5.139511246=
[email protected]" border=3D"0" width=3D"469" height=3D"334"><br><b><i>Mary Poppins=
<br></i>Erna Schenk, 78<br>
</b><img src=3D"cid:[email protected]" border=3D"0" width=3D"469" he=
ight=3D"334"><br><b><i>The Seven Year Itch<br></i>Ingeborg Giolbass, 84,=20
und Erich Endlein, 88<br></b></span><b><span style=3D"font-size:24pt;fo=
nt-family:'Tahoma','sans-serif'">7.=20
No, I do not know what this 3D is all about.
follow: [email protected]
ignore the fact that this is made into an email link.
which references another mime:
Content-Type: image/jpeg; name="image.jpg"
Content-Disposition: inline; filename="image.jpg"
Content-Transfer-Encoding: base64
Content-ID: <[email protected]>
X-Attachment-Id: 160fdc512a07d156_0.0.6
/9j/4AAQSkZJRgABAQAAAQABAAD/4gxYSUNDX1BST0ZJTEUAAQEAAAxITGlubwIQAABtbnRyUkdC
IFhZWiAHzgACAAkABgAxAABhY3NwTVNGVAAAAABJRUMgc1JHQgAAAAAAAAAAAAAAAAAA9tYAAQAA
AADTLUhQICAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABFj -
How do I attach a file to mac mail without it going into the body of the email?
To add to what Kappy said, note that you really can't control how some other mail client might display an attachment. Some may display them inline, while others may require them to be opened separately. And different people have different desires in this area... some want a PDF file, for example, displayed inline, while others prefer for it not to be. Just attach the file(s) and don't worry about this so much.
Also, I do have to disagree with Kappy on one point... I would not say that you "should" compress files and attach the compressed archive file. That will force all mail clients not to display the attachment inline, but not everyone will want that (you'd be forcing your tastes on all recipients of your e-mail), and some people have difficulty figuring out how to open and view the contents of compressed files. It's an extra step for you and an extra step for the recipient, and is not needed for most popular file types. (Of course, we could advise you more specifically if we knew what file types you're dealing with.) -
Passing two variables in the body of the URL using the go to detail page SB in ASP
Hi all,
Would appreciate your assistance with the following, I'm
trying to set up a go to detail page sb that passes two variable in
the body of the URL rather than the standard one.
The code i've tried is -
<td><A HREF="gggggggtest.asp?<%=
Server.HTMLEncode(MM_keepNone) + ((MM_keepNone!="")?"&":"") +
"PCL2ID=" + othermenutwo.Fields.Item("PCL2ID").Value
%>&"PCL1ID=" +
othermenutwo.Fields.Item("PCL2PC1ID").Value
%><%=(othermenutwo.Fields.Item("PCL2Description").Value)%></A></td>
Where the PCL1ID and the PCL2ID are the variables
The normal code generated by the go to detail page sb with
one variable is -
<td><a href="ggggggtest.asp?<%=
Server.HTMLEncode(MM_keepNone) + ((MM_keepNone!="")?"&":"") +
"PCL2ID=" + othermenutwo.Fields.Item("PCL2ID").Value
%>"><%=(othermenutwo.Fields.Item("PCL2Description").Value)%></a></td>
Unfortunatley my code tweaking isn't working as the second
variable isn't being sent, any help would be gratefully appreciated
ThanksInstead of using DW's 'go to detail page' option, simply set
up the link the manual way in DW using the Link browser. Select the
file you want to link to and then use the parameters button at the
bottom of the 'Select File' dialogue to set the parameters to be
passed with the link. You can then manually set the name of the
parameter to be passed and then select its value from a recordset.
The key thing is that you can set as many parameters as you like,
so you can set both the parameters you want.
On the detail page you then filter by the parameter name you
chose (or both).
Personally I always code links this way rather than using the
go to detail page option as you get much better control of what is
going on. -
When I email an attachment (a .jpg file) with "Always Send Windows-Friendly Attachments" checked, the result is a picture embedded in the body of the email, not a attachment. What am I doing wrong.
1. "Always Send Windows-Friendly Attachments" has nothing to do with the display of attachments on either your machine or other ones. It's an esoteric setting that strips the resource fork from Mac files (that might have them) which could apper as a duplicate file on the Windows machine.
2. Send Plain Text emails. Then it will always be received as an attachment. -
Emails sitting in my inbox for a few days no longer open normally. Double clicking on them opens a tab referring to the header of the clicked email but below is a header and details from a totally different email and the body of the email is blank. For example double clicking an email from Tesco results in 'Tesco' displaying in the tab but the header below shows 'From: TalkTalk'
Clicking 'Options' and selecting 'Show remote content' does not overcome the problem.
Incoming emails open normally when they first come in.
This peculiarity seemed to apply only to a few emails at first but it is now becoming general.
Uninstalling and reinstalling Thunderbird (ver 31.6) and the problem remains. O/S is Windows 7
How can I overcome this?Right click the problem folder and select Properties. Then Repair Folder. You may lose messages if the corruption is too bad.
Then read this article on maintaining your email.
http://kb.mozillazine.org/Keep_it_working_%28Thunderbird%29 -
Under attach, I selected file and then selected a photo. It appeared as an attachment outgoing, however, it was received inserted in the body of the email. Thank you in advance.
I think this depends on the recipient's mail client. Thunderbird, for instance, when used to view a received message with a picture attachment, will display the picture appended to the message. To a casual glance it would appear to be embedded into the message.
Send your messages using plain text (not HTML) and images ''cannot'' be embedded. If they appear to be embedded then it's the recipient's mail client to blame and therefore beyond your control.
You could zip your pictures to force them to be processed as attachments at the receiving end. ;-) -
I can't attach files to my e-mails instead of embedding them in the body of the e-mail. Any ideas?
Mail sends certain kinds of graphical attachments as inline content. The decision to do that was made for you by Apple. There's no built-in way to override it, as far as I know.
The recipient's mail client may or may not take Mail's suggestion to display the content inline.
You have these options:
Zip the files before attaching them to the message.
Use something like Attachment Tamer. (That's not an endorsement — it may cause problems.)
Use another mail client that allows for more control over the format of outgoing messages.
Maybe you are looking for
-
Acrobat Distiller 9, upon boot up, will sometimes just pick a random folder on my Mac or on a network drive over our server and start distilling all the files within that folder. Then if the files convert to a PDF, it will move them into another rand
-
How do you set up a TC as a media center and not a back up?
Hello, I am new to Apple products. I have a 13" Macbook Air and a 1 TB TC. I plan on buying the Apple TV. I am trying to find out how I can use my already networked TC to be used as a media center (to store pictures, music, movies ETC) instead of on
-
How come some times i get ask you need FLASHPLAYER what can i do to view the videos
how come sometimes when i want to view some web pages it tells me i need to download FLASHPLAYER. but wont let me
-
Imported swf problem (CP4)
Hi there, I imported a swf file containing an embedded FLV, and put it in the third slide of the project. When I publish/preview, the swf starts playing immediately – I hear the sound and when by the time I go to the third slide the movie is somewher
-
I have new wmail notification ballon but no new mails.
Dear All, I have IPHONE 5 latest IOS 6.1.3 I am using company exchange acount for my job mails and recenetly i have new mail ballon on the email icon but no new mail available. i also marked all as read in outlook but still have the 1 new mail ballon