Determine Folder type
Hi all,
Is there a way to determine the folder type using JavaMail APIs? I want to distinguish folders that contain email data (Inbox, Outbox, etc.), and other folders like Tasks, Calendar etc. Is there a way to achieve the same? Thanks in advance.
There isn't a concept of "folder type" as far as JavaMail is concerned. Note the API documentation's description of the Folder class:
"Folder is an abstract class that represents a folder for mail messages."
Similar Messages
-
How can I determine the type of video out connector I need?
Howdy,
I have a white macbook purchased Jun/2008. I want to connect to a TV but don't know what adapter I need. How can I determine the type of video out jack my macbook has?
System Profiler says the model identifier is "MacBook 4,1". Under Graphics/Displays the only thing it says about the "Display Connector" is that no display is connected. Too bad it doesn't tell me what type of connector it is. If I knew the name of the connector I'd probably be home free. But it seems like every macbook model has a different video connector (since the state of the art has advanced over the years) and I haven't been able to keep up with the names.
Now, I have a 6" long adapter that will convert this connector to VGA. And searching the Apple store for VGA adapters, the existence of mine says my connector is might be one of "Mini DisplayPort", "Apple Mini DVI", "Apple DVI", or "Apple Micro-DVI". But then there is also the connector at
http://store.apple.com/us/product/M8639G/A?mco=MTY3ODQ5OTY
and that looks like the one I have. But unlike the other adapters, this one is just called a "VGA Display Adapter". Does the connector have a name? How can I find adapters that have that same connector?
I know I could use the adapter I have, plus a VGA to VGA cable, to hook up to a TV. But the quality of the VGA signal is poor in the digital world. My goal is to hook up to the TV via HDMI. Is this even possible? By which I mean, will my macbook generate the signals necessary to be able to be converted to HDMI?
Thanks for any help,
Zebulon TThanks, Ded,
You're right, the cable that I have won't work. I't from my previous, 2004 iBook. This is pretty embarrassing... I looked at the cable but didn't bother to try plugging it in.
Looking at the close-up picture of the Mini-DVI to VGA adapter, that does look like the right connector. So I have Mini-DVI, and the other apter you pointed to can convert this to DVI. I'll take a look to see what makes the most sense, connector wise, downstream from that.
Thanks very much.
Zeb T -
Is there any hope of apple adding a 're-link with media folder'-type function to iTunes?
Is there any hope of apple adding a 're-link with media folder'-type function to iTunes?
I have 1000s of broken links after installing the latest version of iTunes and updating some files in my media folder. The location of my itunes library has not changed, and all the files are there (I know because I've just waited several hours for the files to be updated by my ultra-slow computer) - by my logic, there should be some menu option that simply re-synchronises with the media folder, just like itunes would do with an ipod - it can't be that hard can it? The only way I can restore a link is by clicking every song (I have over 28,000) and locating the file in the folder that iTunes claims to use as its media folder - the new version 10 option of then using this location to restore all broken links doesn't work because it only looks in the specific album file, and after a couple of times this dialog box no longer even comes up, so I couldn't ask it to do this even if I wanted to. At the moment the only option I can see is to completely wipe iTunes and re-load all my music from scratch - using my tired and over-worked computer this will realistically take around 15 hours that I don't have, and my computer will melt in the process. I wish I'd never tried to 'tidy up' my iTunes library...
PLEASE Apple, how hard can it be to have a function that searches for and restores broken links by itself????? I've told you where the music is - just flipping look for it yourself instead of getting me to do it!You don't have to re-rip, re-import or re-download all your content. You can clear the iTunes library, either by selecting all in the libary and pressing the Delete key, saying "no" when it asks if you want to remove the files themselves, and then use the Add To Library command, selecting the iTunes Media folder (or iTunes Music folder, as applicable to your situation), and that will add back all your content. It shouldn't take more than a few minutes; if it does, something may be amiss with your hard drive or the library file is corrupted (in which case just delete the library file and re-do the Add To Library command).
Regards. -
Determine the type of the caught exception
Hi!
Here is my problem :
I'm using a web service and the method I call throws different types of Exception (RemoteException, ServiceException, etc...)
And, the reaction to the caught exception depends on its type, that's why I need to determine what type of exception i've caught. I know that with C# I use the boolean function is :
if (exception is TypeOfException1)
// associated reaction
else if(exception is TypeOfException2)
// associated reaction
}Is there any method or any other way in Java to do that?
Thanks a lot,
Gan�che.>
Here is my problem :
I'm using a web service and the method I call throws different types of Exception (RemoteException, ServiceException, etc...)
And, the reaction to the caught exception depends on its type, that's why I need to determine what type of exception i've caught. >
try {
// stuff that may cause exceptions..
} catch(RemoteException re) {
// deal with this re
} catch(ServiceException se) {
// deal with this se
} catch (Throwable didNotExpectThis) {
// exceptional!
didNotExpectThis.printStackTrace();
} -
Hi all,
I've got procedure for inserting data into value1 column of table1.
My need is to determine data type entered by user.
If data type is not number then user should receive error.
How do I perform it?The easiest and most reliable way would be to declare the formal parameter as a number like:
SQL> create procedure p (p_num in number) as
2 begin
3 null;
4 end;
5 /
Procedure created.
SQL> exec p('a');
BEGIN p('a'); END;
ERROR at line 1:
ORA-06502: PL/SQL: numeric or value error: character to number conversion error
ORA-06512: at line 1If you cannot do that, or want to be more "user friendly", then the only alternative is to test it and raise an error like:
SQL> create procedure p (p_str in varchar2) is
2 l_num number;
3 begin
4 l_num := to_number(p_str);
5 exception
6 when value_error then
7 raise_application_error(-20001, 'I know I said it was a string, but I really want a number');
8 end;
9 /
Procedure created.
SQL> exec p('a');
BEGIN p('a'); END;
ERROR at line 1:
ORA-20001: I know I said it was a string, but I really want a number
ORA-06512: at "OPS$ORACLE.P", line 7
ORA-06512: at line 1John -
How to determine employee type (management vs nonmanagement) in WebDynpro
Hi,
I am running SP14.
In my WebDynpro application, I need to hide/show a link based on if the employee is management or nonmanagement.
What is the easiest way to determine the type of employee in a WebDynpro? Is the management/non-management attribute already exposed and available to the WebDynpro? Or do I need to invoke a BAPI/RFC to retrieve that information from SAP (eg Employee Group or Personnel Area)?
Thanks for any help you can provide.
KevinYou only need to call this RFC once and share the results with other views via context binding!
In my applications I follow the Floorplan manager architecture and have one web dynpro component for all the frontend logic e.g. FcAddress
In the component controller of FcAddress I setup model nodes for the RFC e.g.
Address_Input (mapped to input RFC model class with all the import parameters of the RFC)
Address_Output (mapped to either the output RFC model class with all the export parameters of the RFC or it includes another model node for Address_Records which is mapped to the export table parameter.)
Address_Messages (mapped to the return parameter of the RFC (BAPIRET2).
All other views with their component controllers are mapped to those model nodes to allow access to the RFC data.
You can pass the userid to the RFC and then the RFC will get the related employee number via IT105/ST10. You just need to have the userid defined as an import parameter in the RFC. -
How to determine IE type(32 bit or 64 bit) in a task sequence while updating Java
How to determine IE type(32 bit or 64 bit) in a task sequence
Hi,
Currently i have to update new version of Java after removing all the previous existing version of Java by using TS in SCCM 2007.
we have both 32 bit and 64 bit browser in the environment. I am stucked in determining whether the browser is of 32 bit or 64 bit.
How to determine IE type(32 bit or 64 bit) in a task sequence so that respective java can be installed for that IE browser.
will highly appreciate quick response.
Thanks in advance.
DayaBut you also need to install JRE x86 on x64 systems, since most people actually use the 32bit browsers on x64 systems.
The detection logic is actually pretty simple -- just check the right registry hive to find the installation location of the BIN\JAVA.DLL. Both pathnames are stored in HKLM\Software\JavaSoft\Java Runtime Environment\1.7 in the registry value "JavaHome",
but the x86 path is stored in the 32-bit hive and the x64 path is stored in the 64-bit hive.
Lawrence Garvin, M.S., MCSA, MCITP:EA, MCDBA
SolarWinds Head Geek
Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2014)
My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence%20R%20Garvin-32101
http://www.solarwinds.com/gotmicrosoft
The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds. -
How do I determine what type of Solaris installation I have ?
I'm runnig "SunOS PSP 5.8 Generic_108528-13 sun4u sparc SUNW,Sun-Fire-480R" but I would like to determine the type of Solaris installation I have....do I have a a "development" installation ? Do I have all the SUNW developer packages ? Also what are the "types of installations" that are possible ?
I'm thinkig about download the mysql binary (from Sunfreeware.com) and I went to the dpendencies site (http://wwws.sun.com/software/solaris/freeware/s8u7dependencies.html) to check what dependencies exist and I saw the following line (among other non "related" info.):
mysql-3.23.43 gcmn-1.0 ncurses-5.2
What exactly does this mean ?Hi
You can check the type of solaris install from the below file
/var/sadm/system/admin/CLUSTER
Regards -
How to determine itab type at run time
I need to write a subroutine that organizes data in internal tables for presentation by a smartform. There are a few similarly structured internal tables all with the same field name ("recipe_type") by which the data is sorted. My problem is that how I can determine the type of the itab inside my subroutine at run time? Is it ever possible in ABAP?
The subroutine code is attached below. Thanks for any help.
FORM beautify_itab TABLES itab_in TYPE table
USING v_type TYPE any
CHANGING itab_out TYPE table.
Data declaration
DATA: v_data_row LIKE LINE OF itab_in, " THIS WON'T COMPILE!
v_blank_row LIKE LINE OF itab_in. " blank row
Organize the display of the table data
LOOP AT itab_in INTO v_data_row.
IF v_type <> itab_in-recipe_type. " 'recipe_type' is the sort key for the incoming itabs
v_type = itab_in-recipe_type.
IF sy-tabix > 1.
APPEND v_blank_row TO itab_out.
ENDIF.
APPEND v_data_row TO itab_out.
ELSE.
CLEAR v_data_row-recipe_type.
APPEND v_data_row TO itab_out.
ENDIF.
ENDLOOP.
ENDFORM. "beautify_itabThe following code does what I want, but only if the input itab structure is declared first in the program. It won't work if the itab is declared as itab_in TYPE TABLE OF sflight. This is because the function 'GET_COMPONENTS_LIST' only can load the structure of a field declared explicitly in the program. Does anybody know of any method to load the structure of an itab based off a dtab?
Thanks you guys for answers. Points have been rewarded.
*& Report Z_GET_ITAB_TYPE_AT_RUN_TIME
REPORT z_get_itab_type_at_run_time.
DATA: BEGIN OF itab_in OCCURS 0,
seatsocc_b LIKE sflight-seatsocc,
fldate LIKE sflight-fldate,
END OF itab_in,
itab_out TYPE TABLE OF string,
wa_itab_out TYPE string.
SELECT seatsocc_b fldate
INTO TABLE itab_in
FROM sflight
WHERE carrid = 'AA' AND
connid = '0017'
ORDER BY seatsocc_b.
PERFORM beautify_itab
TABLES
itab_in
USING
sy-repid
'itab_in'
'SEATSOCC_B'
CHANGING
itab_out.
LOOP AT itab_out INTO wa_itab_out.
WRITE: / wa_itab_out.
ENDLOOP.
*& Form beautify_itab
text
-->ITAB_IN text
-->V_KET_FIELD text
-->ITAB_OUT text
FORM beautify_itab TABLES itab_in TYPE table
USING v_prog_name LIKE sy-repid
v_itab_in_name TYPE any
v_key_field_name TYPE rstrucinfo-compname
CHANGING itab_out TYPE table.
DATA: itab_fields TYPE TABLE OF rstrucinfo,
v_field_name LIKE rstrucinfo-compname,
v_old_key TYPE string,
v_field_value TYPE string,
v_data_line TYPE string,
v_tabix LIKE sy-tabix,
c_blank_row TYPE string VALUE ''.
FIELD-SYMBOLS: <fs_field>,
<fs_data_line>,
<fs_field_list> TYPE rstrucinfo.
gets all of the components of a structure
CALL FUNCTION 'GET_COMPONENT_LIST'
EXPORTING
program = v_prog_name
fieldname = v_itab_in_name
TABLES
components = itab_fields.
LOOP AT itab_in ASSIGNING <fs_data_line>.
v_tabix = sy-tabix.
LOOP AT itab_fields ASSIGNING <fs_field_list>.
v_field_name = <fs_field_list>-compname.
ASSIGN COMPONENT v_field_name OF STRUCTURE
<fs_data_line> TO <fs_field>.
v_field_value = <fs_field>.
IF v_key_field_name = v_field_name.
IF v_old_key <> v_field_value.
v_old_key = v_field_value.
IF v_tabix > 1.
APPEND c_blank_row TO itab_out.
ENDIF.
ELSE.
CLEAR v_field_value.
ENDIF.
ENDIF.
CONCATENATE v_data_line v_field_value INTO v_data_line
SEPARATED BY space.
ENDLOOP.
APPEND v_data_line TO itab_out.
CLEAR v_data_line.
ENDLOOP.
ENDFORM. "beautify_itab -
How to determine the type of an existing iView
Hi,
While creating an iView using wizard there is a big list of type of iViews. But after creation of iView, how do I determine the type of iView. Which attribute or property of iView holds this information?
-Lave KulshreshthaYou can copy and paste the existing Iview changing the name and ID if u want to replicate the same.
Also, when you create a new iView from a template, you get a list of them e.g SAP BSP iView etc.
Now what you see in the code link is much similar to what you see as a list of templates when u create iViews. So its pretty simple.
I hope this helped you. -
Installing Solaris 7 - System hangs while determining bus Types
Hi,
I am trying to install Solaris 7 on my Compaq Presario. My system hangs immediately after the first screen. It hangs on the screen where it says "Bus Enumeration Determining Bus Type and gathering hardware configuration data. Not sure why it is doing that. Any help would be appreciated
Regards,
Ashish.My system is not branded It is custom bulit.
What more information you want write me.
Thanks for all help
Amit -
How to determine Charge types in forwarding order ?
Hi Experts,
I am new to SAP TM, I am configuring the charge management.
Please provide step by step configurations to determine charge types automatically in forwarding order ASAP.
Thanks,
ShaktiFollowing SAP Notes to be referred for Service Tax:
1. 778976 u2013 Service Tax and Ecess on Service Tax
2. 1032265 - SEcess on Service Tax
Regards
AK -
Determining image types used in pdf
Hi,
I was sent a pdf by a client and was wondering if there was a way to determine what types of images he used in the file.
For example, did he use .jpg, .tif,, .eps etc.
Thanks,
Andrew Hutton
[signature deleted by host]In the Object palette make sure Embed Image Data is ticked.
-
Determining the "type" of a SQL statement
I'm using the Oracle thin driver with my JDBC program.
I want to be able to accept a String containing a SQL statement from the user and execute it. If it's a select statement then present the rows returned in a JTable, otherwise retrieve the return value for the command (eg INSERT, DELETE, etc).
Is there any "readymade" method in JDBC or Oracle driver to determine the type of a SQL statement in this sense. Or do I have to parse it myself? (Imagine having to write code to strip comments out etc!)There is no "readymade" method. But an easy way to check will be to check the first 6 charchters of the string.
You could use
newString = SQL.substring(0, 5); to obtain the first 6 characters.
if the characters are "select"
//do select things
else
// do insert/delete whatever things -
Determining the type of a field-symbol
Hi!
I want to create a logical expression that determines the type of field-symbol that was passed in to a function.
i want to do something like this:
IF imported_fieldsymbol IS OF TYPE some_type
ENDIF
how do you create such an expression in ABAP?
regardsHi,
You can use the RTTS - Run Time Type Service.
Try the sample code
TYPES my_type TYPE i.
DATA: my_data TYPE my_type,
descr_ref TYPE ref to cl_abap_typedescr.
START-OF-SELECTION.
descr_ref = cl_abap_typedescr=>describe_by_data( my_data ).
The hierarchy of RTTS classes are as follows,
CL_ABAP_TYPEDESCR
|
|--CL_ABAP_DATADESCR
| |
| |-- CL_ABAP_ELEMDESCR
| |--CL_ABAP_REFDESCR
| |--CL_ABAP_COMPLEXDESCR
| |
| |--CL_ABAP_STRUCTDESCR
| |--CL_ABAP_TABLEDESCR
|
|--CL_ABAP_OBJECTDESCR
|
|--CL_ABAP_CLASSDESCR
|--CL_ABAP_INTFDESCR
Regards,
Mustajab
Maybe you are looking for
-
SD-R6112 drive no longer recognized - Error Code 19 in device manager
Hello! I have two opticals (one internal, one external) that suddenly are unrecognized. Both are showing up in device manager with the same error message as follows: Windows cannot start this hardware device because its configuration information (in
-
I am using Pages to print addresses but they print too low on the envelope. How do I change this? Help please!!! ANN
-
Transform Tool - Photoshop CS6 crashing on Mac
Is any one having trouble with the Transform Tool in Photoshop CS6 crashing when trying to resize on Mac? I've got Photoshop CS6 Extended with software version: 13.0.6 Mac Software Version: Yosemite 10.10.2 Any help would be appreciated.
-
Clearning attribute values with amadmin
How can I clear an attribute value with amadmin? In particular, I am trying to using ModifyServiceTemplate within OrganizationRequests to clear the bind dn for the ldap authentication module. I have tried "<Value></Value>", "<Value/>", and just leavi
-
Proof Of Delivery (Amendment in Delivery document)
Hi Experts, I have to map one senario related to Sales Cycle please guide me how to map this senario, the senario is as follows - I am working on a dairy project, In Sales Order i maintain qty. 10,000 ltrs. In Delivery i issue 10,000 Ltrs. But due to