How to disable attachment icon in the below code
Session session = null;
Properties props = new Properties();
props.put("mail.smtp.host", mailHost);
session = Session.getDefaultInstance(props, null);
log.info("STEP 1");
try {
Calendar currentDate = Calendar.getInstance();
currentDate.add(Calendar.DATE, 0);
log.info("STEP 2");
MimeMessage mesg = new MimeMessage(session);
log.info("STEP 3");
String mailBody = "RSS Feed link as of"
+ (currentDate.get(Calendar.MONTH) + 1) + File.separator
+ currentDate.get(Calendar.DATE) + File.separator
+ currentDate.get(Calendar.YEAR) + messageText;
log.info("THE MAIL BODY IS :" + mailBody);
try {
mesg.setFrom(new InternetAddress(fromAddress));
InternetAddress toAddress = new InternetAddress(destAddr);
mesg.addRecipient(Message.RecipientType.TO, toAddress);
} catch (Exception x) {
mesg.setSubject("Cybermedia Dice Job Portal RSS Feed information link");
MimeBodyPart messageBodyPart = new MimeBodyPart();
messageBodyPart.setText(mailBody, "us-ascii");
Multipart multipart = new MimeMultipart();
multipart.addBodyPart(messageBodyPart);
mesg.setContent(multipart);
Transport.send(mesg);
* MimeBodyPart attachmentBodyPart = new MimeBodyPart(); DataSource
* source = new FileDataSource(outputFileName);
* attachmentBodyPart.setDataHandler(new DataHandler(source));
* attachmentBodyPart.setFileName(outputFileName);
* multipart.addBodyPart(attachmentBodyPart);
log.info("STOP HERE..");
} catch (Exception ex) {
StringWriter writer = new StringWriter();
ex.printStackTrace(new PrintWriter(writer));
String trace = writer.toString();
log.error(trace);
Can any one help what should be modified so that the attachment icon is disabled in mail
Presently it shows attachment icon using the above code
Hi naga,
1. one option is to retrive the source code of the requried program,
into internal table using the syntax READ REPORT (just see f1 help on it)
READ REPORT prog INTO itab [MAXIMUM WIDTH INTO wid].
2. Then we can loop / search the internal table for the required term.
regards,
amit m.
Similar Messages
-
How to enable attachment icon to a custom form
Hello all,
I am developing one custom form in 6i version.. can any one help me how to enable attachment icon to a custom form..
Thanks in advance.What exactly are your trying to do when you say "enable attachment icon"? Also, since you mention "Custom Form" I assume you are developing in the Oracle Enterpise Business Suite (EBS). Whatever you are attempting, there may already be an "Apps Approved" method for doing this. I suggest you review the Applications Documentation specifically the Oracle E-Business Suite Developer's Guide and Oracle E-Business Suite User Interface Standards for Forms-Based Products guides. Also, you might want to post your question in the General EBS Discussion Forum.
Craig... -
How to disable save Icon?
We have a legal requirement in our bank that in our intranet site whatever document we show it should have save icon disabled? [thought there are lot if ways we can capture the contents of it even with save icon disabled]
Is there any way of implementing the save icon disabled...I spent almost three hours with no result.... My coding will look like this
int permissions = ~(PdfWriter.AllowPrinting | PdfWriter.AllowCopy | PdfWriter.AllowModifyAnnotations | PdfWriter.AllowFillIn | PdfWriter.AllowAssembly | PdfWriter.AllowModifyContents | PdfWriter.AllowScreenReaders);
PdfEncryptor.encrypt(reader,fos,true,"","",permissions);I have pasted my code below
We are creating a new pdf and applying permissions for that....
I searched for more than two hours and couldn't find a way to disable save icon in the API we use
com.lowagie.text.pdf.PdfEncryptor;
com.lowagie.text.pdf.PdfReader;
com.lowagie.text.pdf.PdfWriter; [you can paste this in google which will explain this API]
I thought this as a constraint with this API, hence searching for other API's which has this feature...in most of the forums I saw implementing this as not possible....hence thought of checking in Adobe forum where people might suggest some other API...Please let me know whether this feature [if it is really a programmable feature] is available in API's you have used...Thanks Aandi Inston!
byte[] documentBytes = document.getContentBytes(); //which will get the content of a pdf
File newFile = File.createTempFile("tempPdfFile", ".tmp");
FileOutputStream fos = new FileOutputStream(newFile);
reader = new PdfReader(documentBytes);
int permissions = ~(PdfWriter.AllowPrinting | PdfWriter.AllowCopy | PdfWriter.AllowModifyAnnotations | PdfWriter.AllowFillIn | PdfWriter.AllowAssembly | PdfWriter.AllowModifyContents | PdfWriter.AllowScreenReaders);
PdfEncryptor.encrypt(reader,fos,true,"","",permissions); -
How to disable a BUTTON on the form?
Hello
I am trying to disable my_button (regular) by usinf this.disabled = true by seeing in google, but, its not working!
Pls. let me know how to either disabel a button or invisible/hide a button, syntax pls. with syntax errors pls.
Thank youTo disable a button try the below script.
this.access = "readOnly";
To make it hidden or invisible try the below script.
this.presence = "invisible";
this.presence = "hidden";
Thanks,
Aravind -
How to disable inbuilt icon on runtime
Dear sir,
I am new to forms 9i
Please help me how to disable inbuilt icons which are shown on the menu bar on top
like it has written on the top of icon
action edit query like
i want to disable this icons and not visibale
thanks in advance
regards
s k swainThis might be helpful,
Re: FRM-10221 Cannot read file menudef -
How can I remove icons from the Finder sidebar? Transferred info from my Mac Pro desktop computer (using target mode) and there were folder icons on the Mac Pro Finder sidebar that are now on the MacBook Finder sidebar, even though these folders do not exist on the MacBook. Tried to drag them off, which is the usual way to get rid of folders that the user adds to the sidebar (as opposed to those that can be added via the Customize Toolbar dropdown menu) but was unsuccessful. I then unchecked all of the Customize Toolbar menu items and the folder icons still remained. What else can I do?
Did you hold the Command (Apple) key while dragging them off the sidebar? That usually makes them go *poof*.
-
How can i write the below code using "For all entries"
Hi
How can we write the below code using "for all entries" and need to avoid joins...
Please help
SELECT aaufnr aobjnr aauart atxjcd a~pspel
agstrp awerks carbpl cwerks
INTO TABLE t_caufv
FROM caufv AS a
INNER JOIN afih AS b
ON aaufnr = baufnr
INNER JOIN crhd AS c
ON bgewrk = cobjid
AND c~objty = 'D'
WHERE ( a~pspel = space
OR a~txjcd = space
OR NOT a~objnr IN
( select OBJNR from COBRB AS e
WHERE objnr = a~objnr ) )
AND a~werks IN s_plant
AND a~auart IN s_wtype
AND NOT a~objnr IN
( select OBJNR from JEST AS d
WHERE objnr = a~objnr
AND ( dstat = 'A0081'OR dstat = 'A0018' )
AND d~inact 'X' ).
Reward points for all helpfull answers
Thanks
Ammi.Hi,
SELECT objnr objid aufnr
from afih
into table t_afih.
SELECT objnr
from JEST
into table t_JEST
where stat = 'A0045'
OR stat = 'A0046'
AND inact 'X'.
SELECT objnr
from COBRB
into table t_cobrb.
SELECT arbpl werks objid objty
from crhd
INTO table it_crhd
FOR ALL ENTRIES IN it_afih
WHERE objty eq 'D'
AND gewrk = it_afih-objid.
SELECT aufnr objnr auart txjcd pspel gstrp werks aufnr
FROM caufv
INTO table t_caufv
FOR ALL ENTRIES IN it_afih
WHERE aufnr = it_afih-aufnr
And pspel = ' '
AND txjcd = ' '
ANd objnr ne it_crhd-objnr
AND auart in s_wtype
AND werks in s_plant.
AND objnr ne it_jest-objnr.
dont use NE in the select statements, it may effect performance also. Instead use if statements inside
loops.
loop at t_caufv.
read table it_chrd............
if t_caufv-objnr ne it_chrd-objnr.
read table it_jest..........
if if t_caufv-objnr ne it_jest-objnr.
(proceed further).
endif.
endif.
endloop.
hope this helps.
Reward if useful.
Regards,
Anu -
How to bring status icons in the Adobe Form.
Hi Experts,
I am new to Adobe forms and I need to bring a icon indicating the satus ( For example green icon shoud be displayed if the values exceed our expection ) . Currently if I try to bring an icon in the form it is just displaying the text value corresponding to the icon even though the icon is of data type ICONTEXT (For Example:Instead of displaying a icon in green it just displaying the corresponding text values like '@@4' ) . When we try to display the same icon in the table view it is displayed in a form of image.
Kindly let me know how to bring status icon in the adobe forms.
Thanks in Advance.
Regards,
NandhaHi,
The ADS will not understand this as an icon and create it on the PDF. If you want to insert an icon in the
PDF you should insert it as an image in the Designer.
Arun -
How to add an icon in the title bar,next to the maximize and minimize icons
I need to add an icon ( help icon; ?) in the JInternalFrame� title bar. Anyone could help me????
Thankshave you get the answer ?? on how you add an icon to the title bar?? ...
if you do please inform me..
thanks -
How to disable delete option in the receipt work bench thorugh formpersonal
Hi Team,
Please let me know, how to disable delete option in the receipt work bench through form personalizationHi.
Condition
Trigger Event: WHEN-NEW-ITEM-INSTANCE
Trigger Object: RGW_FOLDER.M_PAYMENT_METHOD_DSP
Actions
Type: Property
Object Type: Block
Target Object: RGW_FOLDER
Property Name: DELETE_ALLOWED
Value: FALSE
Note: The button will remain visible and if the user presses it, the system will ask if he/she want to delete the receipt. However, if the OK button is pressed the receipt will not be deleted and a message will be shown ("You cannot cannot delete this record")
Hope this helps.
Octavio -
How to catch attachment info. in the Business Activity Doc.?
Hi experts,
How to catch attachment info. in the Business Activity Doc.? For example, I want to get how many attachments in the Activity. and the description of attachments.Is there any SAP table or FM for it ? Thank you.
Best regards,
GavinHi,
Go to the table CRMD_ORDERADM_H give your trnsaction( Activity ) no in the OBJECT_ID field, you will get GUID corresponding to the transaction.
Pass the GUID in the SMOATTACHLNK Table in the PARENTID field, then you will get PHIO_ID.
Pass PHIO_ID in the table CRMORDERPHIO Table in the field PHIO_ID, then you will get LOIO_ID.
Finally pass youe LOIO_ ID into CRMORDERLOIO table in the field LOIO_ID then you will get how many attachments are there for particula transaction
Tables
CRMORDERLOIO
CRMORDERLOIOT
Regards
Srinu -
How to disable maximize button of the java.awt.Window ????
How to disable maximize button of the java.awt.Window !!!!
Help neededHow to spam the forum with the same fuqin question. Please get lost.
-
How can I change Icons on the Bookmarks Toolbar?
How can I change Icons on the Bookmarks Toolbar?
There are two extensions that help you apply your choice of an image for any Bookmark, not just the BTB icons. Choose one extension based upon the features it has, <br />
https://addons.mozilla.org/en-US/firefox/addon/7849/ <br />
https://addons.mozilla.org/en-US/firefox/addon/3176/ -
how can I delete icons from the desktop? every time I open a application (e.g. skype) the icon goes to the desktop
to remove the HD icon
In Finder's Preferences pane, in the General tab, uncheck "Hard disks" under "Show these items on the Desktop" to clear away the icon. -
The lock rotation has turned on I have no idea how there is no icon on the bottom task bar can anyone help please
You have the lock icon towards the top right of the screen next to the battery indicator ? If you do then which iPad do you have ? If it's not the iPad Air 2 then you should have a Settings > General > Use Side Switch To option which controls what the switch on the side of the iPad, above the volume control does - if that is set to 'Lock Rotation' then you use that switch on the side to turn rotation on/off
If there isn't a lock icon at the top right then try a soft-reset and see if that gets the iPad to rotate again : 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.
Maybe you are looking for
-
Attendee booking after a leaving action
Hello, I have a problem when booking an amployee (PV00) after a leaving action. The employee is active in HR until 28.2.2007 (leaving action for 1.3.2007) and training's days are from 26.2.2007 to 1.3.2007. As the employee is not active for all the t
-
Well I have bought my iPad two weeks ago and my iTunes used to open on my pc and iPad, but in the last four days it never opens except at morning when I wake up, what's wrong, please help.
-
Windows Service Error 1053 - Service did not respond to start or control request
I'm presuming it's logging on as a domain user. Has that user got "Logon as a Service" rights?
-
How to make a script for a terminal command
I need to find instructions on how to create a script to automatically run the following Terminal command; Sudo chmod 755 /private/var/spool/cups. It will also need to include the admin password as you will be prompted to enter it after the command l
-
I have a big project but when im going to add a new clip with sound and picture in picture its only the sound that works. Can someone please help me?