Setting a category for mail object

Hello,
i have been trying to use the object api for setting a category on a selected mail.
After some research, my question is: Is this even possible with the object api and if so, how? :)
( i am using a C3PO and the ClientState.Selected Messages. I then convert the SelectedMessages into a MessageList and so on. I'm not sure if this is the correct way)
Thanks in Advance!

If I remember correctly, each GW account can define their own custom set
of categories in the GW Client or by ObjAPI.
So, either ..
* create a new Category definition in the GUI (right click on msg,
"categories" .. "more" .. "new category"), or
* use the ObjAPI: Account.CategoryDefinitions.Add( )
Good luck
Wolfgang
On 29.07.2013 07:46, AlexWerner wrote:
>
> Update:
>
> So far i have not been able to set a category to a mail object.
>
> I am able to display the already set categories.
>
>
> The Add-Method of the categories collection asks for a category
> defintion but i can't figure out how to create one. Simply instantiating
> a category definition object doesn't work because of COM/Interop.
>
>
> Any help would be greatly appreciated.
>
>

Similar Messages

  • Set Default category for IBASE

    Hi Experts,
    I have an issue with Ibase and that is I need to set a default category for the IBASE as '01'.
    Though there is only one category is there for Ibase I am still getting the pop-up for the Selection when I click on IBASE-Create in Web UI.
    The requirement is not to have the pop-up for selection and it should take default category when i say create on IBASE.
    plz help me in this regards.Any help is appreciated .
    thanking U for the help,
    Sree.

    Hi kasper /rohit,
    pls look into this and provide some insight to me.
    here is the code .
    code from ip_create() method to block pop up is
    CONSTANTS: lc_maxrow1  TYPE int4 VALUE 1,
    DESCRIBE TABLE gt_ibtyp LINES lv_rows.
      IF lv_rows > lc_maxrow1.
         CHECK SY-SUBRC = 0.
    *   lv_rows = lc_maxrow.
      lv_title = text-cre.
      lv_descr = text-sel.
    create_popup = comp_controller->window_manager->create_decision_popup( iv_title             = lv_title
                                                                             iv_description       = lv_descr
                                                                             iv_visible_row_count = lv_rows
                                                                             iv_display_table     = gt_ibtyp
                                                                             iv_visible_columns   = lt_col_def ).
    create_popup->set_on_close_event( iv_event_name = 'CREATE_POPUP_CLOSED' iv_view = me )."#EC  NOTEXT
      create_popup->open( ).
    ENDIF.
    it has stopped the creation of pop up and in the method EH_ONCREATE i wrote
    ls_param-name  = cl_crm_ibase_il_constant=>createparam.
      ls_param-value = '01'.
    *  ls_param-value = ls_ibtyp-ibtyp.
      APPEND ls_param TO lt_param.
      lr_bol_core = cl_crm_bol_core=>get_instance( ).
      TRY.
          CALL METHOD lr_bol_core->root_create
            EXPORTING
              iv_object_name  = cl_crm_ibase_il_constant=>root_object
              iv_create_param = lt_param
              iv_number       = 1
            RECEIVING
              rv_result       = lr_root.
        CATCH cx_crm_unsupported_object .
      ENDTRY.
      CHECK lr_root IS BOUND.
      entity ?= lr_root->get_current( ).
      IF entity->lock( ) = abap_true.
        entity->switch_to_change_mode( ).
      ENDIF.
    Here the problem is the ibheader component is not getting the data
    which it used to get by selecting the category in pop up and
    all the screen is empty with out any data.
    Is there anything to be written in IP_MAIN or some thing to be added to the existing code.
    Thanking U,
    Sree.
    Edited by: Sree on Dec 3, 2008 2:32 AM

  • Set XML-Attributes for multiply objects

    Hi everybody,
    this is my situation. I have a document with several pages and several objects on each page.
    now I want to get the coordinates and the dimensions of a object and write down the datas as a XML-attribute.
    The script should do this for every object in my document.
    That's what i got so far:
    function creatAtt(){
        for (var i = 0; i < app.selection.length; i++){
        var myObject     = app.selection[i];
        var myXMLobject = myObject.associatedXMLElement;
        var ycoords     = myObject.geometricBounds[0];
        var xcoords     = myObject.geometricBounds[1];
        var width         = myObject.geometricBounds[3] - myObject.geometricBounds[1];
        var height         = myObject.geometricBounds[2] - myObject.geometricBounds[0];
        myXMLobject.xmlAttributes.add ("Y-Koordinate", ycoords.toString() + " px");
        myXMLobject.xmlAttributes.add ("X-Koordinate", xcoords.toString() + " px");
        myXMLobject.xmlAttributes.add ("Width", width.toString() + " px");
        myXMLobject.xmlAttributes.add ("Height", height.toString() + " px");
    creatAtt();
    When I select a object and run the script it only writes the data for the selected object, not for all objects. Somebody a tip how to fix it???

    Hi,
    I have tried the script. And it only writes down the attributes for one object. Directly in the root. I have attached a screenshot. But i want to write the attributes in the hotspot Tags of the selected object.
    I hope you know what I mean .
    I dont know where he gets the datas bot that are not the datas of one of my three objects.
    I changed the scrip a little bit:
    var myDoc     = app.activeDocument; 
    var myPages = myDoc.pages;
    for (var i = 0; i < myPages.length; i++){
        var myActualPage = myPages[i].pageItems;
        for (var j = 0; j < myActualPage.length; j++){
            var myObject     = myActualPage[j];
            var myXMLobject = myObject.associatedXMLElement;
            var ycoords     = myObject.geometricBounds[0];
            var xcoords     = myObject.geometricBounds[1];
            var width         = myObject.geometricBounds[3] - myObject.geometricBounds[1];
            var height         = myObject.geometricBounds[2] - myObject.geometricBounds[0];
            myXMLobject.xmlAttributes.add ("Y-Koordinate", ycoords.toString() + " px");
            myXMLobject.xmlAttributes.add ("X-Koordinate", xcoords.toString() + " px");
            myXMLobject.xmlAttributes.add ("Width", width.toString() + " px");
            myXMLobject.xmlAttributes.add ("Height", height.toString() + " px");
    But then I get a error message:
    Errornumber: 21
    null is not an object.
    Row 60 --> He means this part of the script: myXMLobject.xmlAttributes.add ("Y-Koordinate", ycoords.toString() + " px");

  • How to set up permission for portal objects and folder

    Hi All,
    We are implementing EP 7.0. For creating portal objects, I have assigned "Super_admin, Content_admin, System_admin and User_admin" role to my userid and created iviews, roles and folder.
    During SAP audit they asked us to open a Iview to show the permission,   the below are the value shown in permission editor.
    Role Name           ====== Administrator ===== End  User ======Role Assigner
    Everyone             ======  Read            ======Yes        ====== No
    Super_admin_role ====== Owner            =====Yes         ======Yes
    SAP asked us to change the permission and said "Super_admin_role" should not be used, they asked us to create a group or role and assign. We are not clear what SAP wanted us to do.
    Can any one let me know how this permission needs to be given and whether "Super Admin" role can be assigned to a userid.
    Thanks in advance.
    Rgards,
    H.K.Hayath Basha.

    Hi Michael,
    I didn't create any role. I will let yo know what I have done so far.
    1. Created a group called "ADMIN_GROUP".
    2. Assigned "SUPER_ADMIN" role to group "ADMIN_GROUP.
    3. Assigned userid "ADMIN_USER" to group "ADMIN_GROUP".
    4. Opened the persmission of "PORTAL_CONTENT" folder and added group "ADMIN_GROUP" and set this group as "OWNER",  "END_USER" check box is ticked and "ROLE_ASSIGNER" check box is checked.
    5. Removed the role "SUPER_ADMIN" from  group "ADMIN_GROUP".
    6. Logged into portal using "ADMIN_USER" created a folder called "TESTING". Then opened the
        permission editor for the folder "TESTING", it showed three record
        "ADMIN_GROUP"           === OWNER  === 'X' === 'X'
        "EVERY_ONE"               === READ     === 'X' === ' '
        "SUPER_ADMIN_ROLE. === OWNER  === 'X' === 'X'
    7. I am not able to delete "SUPER_ADMIN_ROLE" from the permission editor, as it is greyed.
    With the above steps what I have achieved is I have given permission to group "ADMIN_GROUP". Is this what we need to do. Did I did anything wrong.
    Regards,
    H.K.Hayath Basha.

  • How to set command timeout for table object?

    I have a report that is generating an error during rendering in a CrystalReportViewer control (v10.5).  The error is "Failed to open a rowset." which appears to be caused by a timeout.  I'm currenlty setting the connection info and location of the sproc programmatically.  How can I set the command timeout as well?  Can I set this via the Attributes collection of the ConnectionInfo object?  (This appears to be a command timeout, not a connection timeout, which I'm already including in the Attributes collection of the ConnectionInfo object and setting at 15 seconds.  I've tried making this as much as 60 seconds but it doesn't change the behavior.)

    The error message includes text that states the timeout was exceeded (in bold below)...
    CrystalDecisions.CrystalReports.Engine.InternalException: Failed to open a rowset.
    Details: ADO Error Code: 0x
    Source: Microsoft OLE DB Provider for SQL Server
    Description: Timeout expired
    SQL State: HYT00Error in File J:\DOCUME1\ADMINI1\LOCALS~1\Temp\SpecificationSummaryReport {42EDFEA3-DD0D-4F5E-BC0B-F9CC1126A872}.rpt:
    Failed to open a rowset. ---> System.Runtime.InteropServices.COMException (0x800002D3): Failed to open a rowset.
    Details: ADO Error Code: 0x
    Source: Microsoft OLE DB Provider for SQL Server
    Description: Timeout expired
    SQL State: HYT00Error in File J:\DOCUME1\ADMINI1\LOCALS~1\Temp\SpecificationSummaryReport {42EDFEA3-DD0D-4F5E-BC0B-F9CC1126A872}.rpt:
    Failed to open a rowset.
    1)  Is there a Service Pack for CR 10.5???  That is the runtime that is in use - not XI.
    2)  The report viewer app is in version 10.5 (as mentioned in the first post) but the report was created in the designer for version 11.  Before we assume that is a problem - I have other reports created this way that work fine.
    3)  The data source is SQL 2005.
    4)  The connection type is OLE DB - Microsoft OLE DB provider for SQL Server.
    I think the issue is due to corruption in the report file.  I've seen this many times with reports (over the last 10 years).  I've had reports that refuse to work but if I recreate them from scratch the new report works fine.  In fact, I've recreated the data portion of this report (using the same sprocs) and that one works.

  • Setting default browser for Mail's contextual menu items

    I use Firefox as my default browser. In "Safari>General>Default Web Browser" I have it set to Firefox and URL links within Mail trigger Firefox as expected.
    However, if I right-click within an email message on some text and select 'Search in Google' it opens in Safari regardless of the default browser indicated in the Safari preferences.
    Anybody know how to fix this? It's very annoying.
    Dual 2.0 GHz G5   Mac OS X (10.4.8)  

    Hello,
    I have been searching for the cause of this failure, but have not found much. It may relate to some problems with Contextual Menu Items, discussed within the article at the link below, but I do not know for sure:
    http://www.macdevcenter.com/pub/a/mac/2004/05/28/cm_pt1.html
    and may relate to some incompleteness in Firefox, rather than OSX, per se. The contextual menu items are separate from the default preferences, I believe.
    Btw, while I like some aspects of a Google search with Firefox, the fact that PDF links are downloaded, rather than opened in the browser, make me prefer Safari for searches. Perhaps there is a preference to cure this problem, but I have not looked very hard for it.
    Ernie

  • Setting up folders for mail accounts.

    Hello all. I am 3 day old mac owner (got a MacBook) and I need some help with Mail.app.
    I have two pop accounts set up and all is well but I can't for the life of me figure out how to set up folders in each account for certain types of mail to be placed in. For instance I would like my wife's emails to automagically be placed in it's own folder for said account so I don't have to see or worry about them. Is this possible? I'd like to have folders for bills, family, friends, etc and any help with this would be greatly appreciated.

    you would do this through creating folders, and then creating rules. however you have to have distinct attributes for the rules to pic up on.
    if i understand correctly you have your pop account and your wifes. if you notice on inbox, there is an arrow next to it, you can drop it down and see each individual account so you dont view them all together.
    i would also suggest that maybe you create an entirely different user for your wife, then neither of you would ever have to deal with sorting between each others emails.
    to add a folder, there is a plus sign at the lower left hand corner of mail, click it and the location you want to create should be "on my mac," then to set up a rule you go to preferences and then rules, the rules should make sense, but if not just ask.
    i realise this may not exactly solve all the issues, but will probably get you at least closer, and then just ask anything else.

  • Set cell type for CL_GUI_ALV_GRID object

    Hi,
    my challenge is the following. I have an ALV-grid (cl_gui_alv_grid) with 2 columns, the first column contains a description and the second column serves for data entry. BUT the way of data entry depends on the description, means that for one kind of desciption i need a checkbox, for the other kind i need an character input field. I didn't found a method in the cl_gui_alv_grid class for this, but in the cl_salc - class family. But i don't know how to get a connection from the cl_gui_alv_grid object to a cl_salv- object.
    Can anyone help me with this?
    Tia
    Günter

    You can multiple Styles on the Cell. One combination could be: Like Editable + F4. So, in this case
        wa_celltab-style     = cl_gui_alv_grid=>mc_style_enabled."Edit cell
        wa_celltab-style2    = cl_gui_alv_grid=>mc_style_f4.    " F4 help
    Maximum length MAXLEN would be used when you want to set the length of the button, dropdown, etc.
      ls_button-fieldname = space.
      ls_button-style     = cl_gui_alv_grid=>mc_style_button.
      ls_button-maxlen    = 8.
    Regards,
    Naimesh Patel

  • How to set tool tips for graphic objects.

    Hi
    i have a code like this
    here dst is graphic object but i casted ti Graphic2D object because i have to set back ground color.
    Graphics2D lGraphic = (Graphics2D) dst;
    lGraphic.setBackground(Color.RED);
    lGraphic.clearRect((int) lx, (int) ly, (int) lw + 1, (int) lh + 1);
    lGraphic.drawRect(0, 0, (int) lw, (int) lh);
    so now i want to set a tool tip for this lGraphic Object.
    can any body please post answer for this proble.
    if you will post in advance it will help me a lot.

    so now i want to set a tool tip for this lGraphic Object.Your concepts are all wrong. Read the API for java.awt.Graphics and try to understand that a Graphics object is akin to a paintbrush: it has methods to draw whatever is to be drawn. The painting is not the brush, the brush does the painting.
    To obtain a custom tooltip at certain locations within a JComponent, I think the easiest way is to override getToolTipText(MouseEvent me). The method can return null for locations where a tooltip is not to be shown.
    db

  • Set reference point for multiple objects in the middle of the document

    Hello Community,
    I want to mirror a layout.
    So I:
    1. Select all the objekts
    2. Set the reference point to the middle
    3. Mirror the objects
    BUT
    The reference point is the middle of all the OBJECTS. That leads to several objects crossing the border of my document because the layout isn't spread out evenly.
    I want to middle of the DOCUMENT to be the reference point. How can I do that?
    Thanks
    Christian

    Have you fiugured this out on your own?
    I just played around a bit and found a method, but it's not exactly intuitive. Select the object(s), then switch to the Rotate tool. The center of rotation will be defined as one of the transformation handles, but you can drag it to anywhere you like, so move it to the point that you want as the center of your mirror. Hold down the Alt/Opt key, and click the reflect button to make a mirrored copy. Without the modifier key the original objects will mirror their position around the repositioned reference.

  • DI: How to set a category for userdefined fields?

    Hi,
    I've created some userdefinded fields using DI API and now I would like to assign them to a specific category. By default they are in category "General".
    How to do this programmatically?
    Thanks,
    Ronny

    Ronny,
    If I understand your question, the "category" of a user-defined field is based on a combination of the Type and SubType properties of the UserFieldsMD object. Type is a BoFieldTypes enum and SubType is a BoFldSubTypes enum. The trick is that not all Type and SubType combinations are permitted. In the DI documentation, go to the UserFieldMD object and drill into the SubType property. This will give you a matrix of allowed combinations and their application "category".(At least in the 6.5 documentation.)
    The UserFieldMD object is a little temperamental so make sure you have the latest patches before digging into it.
    Cheers,
    Corbin

  • Setting Incoming server for Mail

    When I add an account in Mail, I no longer get the drop-down to enter incoming and outgoing servers. What do I do?

    The incoming mail server is pop.att.yahoo.com
    Use POP3, port 995, with SSL enabled.
    When prompted for a username, enter your full email address.

  • How do I set up files for mail on my iPad

    How do I save e-mails to different files on my iPad?

    I know that some exchange servers block mobile devices, but I've been using an app called "Outlook Mail Pro" (click here) on my iPad successfully with multiple Exchange accounts for a long time now. Even if your exchange server allows mobile devices, but your primary need is only email - you might want to check it out. I like being able to keep my work-related accounts in a separate app from my personal email.

  • Set up account for mail

    Hello,
    I have a new ipowerbook and it is my first mac. I love it and I am already familiar with with the other features, BUT today I wanted to setup "mail". It is writing me "The .Mac server “mail.mac.com” rejected the password..."
    Where can I setup my account? Are there any charges?
    Please HELP!

    Hello,
    Have you subscribed to .Mac services, including an email address, or are you presuming the Mail program requires the use of a .mac address? Such is not the case. Please read the following, and then ask questions and report whether you have arranged any email address with your ISP:
    http://docs.info.apple.com/article.html?path=Mail/2.0/en/ml89.html
    Until later,
    Ernie

  • Set Category for multiple IR's via Button in Taskbar

    Hi!
    I have been searching the net for this for some time now, but wasn't successful, so maybe here is somebody who could help me. Hope I did select the correct forum for this thread...
    In SCSM 2012 - is it possible to set the category for multiple IRs in one step via button in the taskbar, same like being able to assign multiple IRs to Analysts or change Status via button in taskbar, without need to open each IR and set it in there?
    Any hint would really be appreciated :-)

    Yes it's possible, but I'm unaware of any solution out there that you can just plug&play. (Somebody might know of one, though!)
    If you're a developer (or know a developer), then you can create a custom console task in Visual Studio, bundle it with a management pack, and import that management pack.
    From a high level, first you'll need to create a custom console task. The following blog posts give some insight into how to create one.
    http://blogs.technet.com/b/servicemanager/archive/2010/02/11/tasks-part-1-tasks-overview.aspx
    http://blogs.technet.com/b/servicemanager/archive/2010/12/22/tasks-part-2-custom-console-tasks-for-create-edit-delete.aspx
    (note: The second post also discusses sealing and bundling management packs.)
    To solve your specific request, the console task code will (again, at a high level) present a window for the user to choose a classification category. Then, after clicking apply on that window, the console task code will iterate through all of the "nodes"
    sent as a parameter to the console task. A "node" represents an incident selected by the user in the incident view. For each incident in the list, set the classification category to whatever value the user selected, then apply the changes to
    that incident.
    If you want to take a crack at building this solution yourself and this is your first custom extension for Service Manager, let me know, I'll help you through the gritty details :)
    And, like I said, if someone knows of a solution you can just import, that'll make things a heck of a lot easier ;)

Maybe you are looking for

  • How can I Launch a Java application that I have written using an icon

    I have just finished writing a Messaging system like Ms Outlook written completey in Java. To run my application , I would normaly type: java and then the class containing the main method eg java LogonFrame. How can I launch my application by just cl

  • Default Privilege Level for ASA users authenticated by Radius or TACACS when using ASDM

    Hello, I'm trying to figure out what the default privilege level is for users that are authenticated to the ASA via a remote authentication server when using the ASDM. the command "aaa authentication http console TACACS+ LOCAL" is used in the ASA con

  • Failed error 0x80070091

    I am running Visual Studio 2012 I am getting a return code of 0x80070091. This happens when I do a Build 'Deploy Solution'. Visual Studio 2012 worked, until I did a Visual Studio download Visual Studio 2013.

  • Sales Order Creation In Background

    Hello, Iam trying to create a Sales Order , Delivery and PGI using a Background Job and It always fails when it run by a background Job. When I run it in Foreground it runs Perfectly. Iam using BDC Sessions to create all these..But I cudnt figure out

  • Stuck on booting up

    I restarted my computer and now it's stuck on the white screen with Apple logo and keeps doing the thinking/loading Process.