Automatically Creating Communities with G6

This should be pretty straightforward but its not. We have upgraded our development server to G6 and are working on a system to create communities automatically. Our code called the POrtalObjectsFactory.CreateSession() to create a session but then it complains that Init must be called first. To call Init, you need an IOKContext which is part of com.plumtree.openkernel.config. The G6 API has a broken link on the page that has the PortalObjectsFactory.Init method to IOKContext.
We have seen that in Version 5, you didn't need to do this but in G6 you have to. We need to understand how to Init the PortalOBjectsFactory so we can create a community. Thanks
Below is our code:
public int CreateCommunity(string name, int templateID, int folderID){int communityID = -1;IPTSession mIPTSession = PortalObjectsFactory.CreateSession();IPTCommunity mIPTCommunity = null;IPTServerContext mIPTServerContext = null;mIPTSession.Connect(ms_UserName, ms_Password, null);mIPTCommunity = (IPTCommunity) mIPTSession.GetCommunities().Create(folderID);mIPTCommunity.SetName(name);mIPTCommunity.SetCommunityTemplateID(templateID);mIPTServerContext = (IPTServerContext) mIPTCommunity.GetInterfaces("IPTServerContext");mIPTServerContext.Store();mIPTServerContext.UnlockObject();communityID = mIPTCommunity.GetObjectID();return communityID;}

Here is an explanation of the changes from 5.x to 6.0 and the extra step needed in getting it to work:
I had this exact same problem when I first tried to init a session - I had hoped they put it in some readme files of the changes, but oh well. I'm pasting an explanation given to me about the changes, and below is a .jsp fiile I created that got this working.
In 5.x portal settings were located using a set of environment variables which had to be in place before you could create and use a session. In Portal 6.0, that requirement has been replaced by leaving it up to the client to locate and load the configuration files, hence the extra step of feeding config data manually to the factory.
IOKContext is the interface that the portal will use for loading its data. You generally load it with the following call:IOKContext context = OKConfigFactory.createInstance("MyDirectory", "MyContextURN");
The portal's config directory is under the Martok install directory and the context name for the portal is, I think, "portal". OpenConfig will load all the config files in the config directory (and its subdirectories) and provide to the portal factory all the settings that are used by the context named "portal".
Here is my jsp code, I hope you can utilize most of the stuff for .netLillian
<%@ page language="java" import="java.util.*,java.io.*,java.text.*,java.lang.reflect.*, com.plumtree.remote.portlet.*, com.plumtree.server.*, com.plumtree.openkernel.config.*, com.plumtree.openkernel.factory.*, com.plumtree.server.PortalObjectsFactory.*, com.plumtree.remote.prc.*, java.net.*" %>
<h5> Get Community, Portlet, and Page Name </h5>
<% IPTSession ptSession = null; IOKContext context = OKConfigFactory.createInstance("C:\\Program Files\\plumtree\\settings", "portal"); PortalObjectsFactory.Init(context);
// Connect to the portal server.. here we'll just be Administrator ptSession = PortalObjectsFactory.CreateSession(); ptSession.Connect("administrator", "", null); IPTObjectManager objMan = ptSession.GetCommunities(); //querying for user's communities, joeuser IPTQueryResult qresult = objMan.QuerySingleObject(201); int qnum = qresult.RowCount();
//querying for administrator's communities IPTQueryResult aresult = objMan.QuerySingleObject(1); int anum = aresult.RowCount();
%>
qnum is: <%=qnum%><br>anum is: <%=anum%>

Similar Messages

  • Automate create xml with HTML blocks

    Hi,
    I have to base on certain trigger, database query result
    create an XML file.
    In the XML file I'm passing an HTML page. I have the HTML
    page saved on the
    local server.. page1.html, page2.html etcs..
    Any suggestions on how I can do this would be greatly
    appreciated. This will
    need to be an automate process... which I can do.. but the
    actual creating
    the XML file, I'm not sure about.
    Thanks in advance!

    Thanks for your reply... the XML that i need to create will
    be like this?
    <emailMessage>
    <messagetype>Welcome</MessageTpye>
    <Subject>Welcome</Subject>
    <MessageContent>
    <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN"
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=UTF-8" />
    <title>test</title>
    </head>
    <body>
    welcome to our site<br /> you are blah blah<br
    /><br />
    <p>blah blah</p>
    <table><tr><td>whatever</td></tr></table>
    </body>
    </html>
    ]]>
    </MessageContent>
    </emailMessage>
    The part thats in the CDATA are now indivual html files so i
    want to take
    the content of that html file and put it in the CDATA. i'm
    not sure if
    that's the best way to do it though... might be better to
    store the HTML in
    the DB and then write it out from there???
    SUggestions?
    "coffeedrinker56" <[email protected]> wrote
    in message
    news:[email protected]...
    > I'm not certain that I understand what you're asking.
    Creating an XML file
    from
    > a database is pretty easy stuff so I'm undoubtedly
    misunderstanding the
    > question(?):
    > <cfquery name="abc" ...>
    > Exec myStoredProcedure #myparam1#, '#myparam2#'
    > </cfquery>
    > <cfxml var="abc">
    > <page>
    > <html>
    > <head>
    > <title>abc example</title>
    > <link rel="stylesheet" type="text/css"
    href="css/default.css" />
    > <script language="javascript" type="text/javascript"
    src="abc.js" />
    > </head>
    > <body>
    > <form name="pageForm" method="post"
    action="javascript:checkForm();">
    > <table ...>
    > </table>
    > </form>
    > </body>
    > </html>
    > </page>
    > </cfxml>
    >
    > If you choose to do so, you can display the XML like:
    > <cfoutput>#abc#</cfoutput>
    >
    > ... or you can save the XML on your server as a file
    using CFFILE.
    >
    > If your intention is solely to display the XML, you can
    also use ...
    > <cfcontent type="text/xml"><?xml version="1.0"
    encoding="UTF-8" ?><abc>
    > </abc>
    >
    > ... instead of the <cfxml> and </cfxml>
    tags.
    >
    > [I use the latter form when passing data back and forth
    between the
    server and
    > the client.]
    >
    >

  • Automatically create PR with collective PR indicator

    Hello,
    Since ERP6.0 it's possible to group material components in a project according to a "collective purchase requisition indicator", i.e. material components with the same indicator will be put into the same PR.
    We already have a customer program that creates new material components using BAPI_NETWORK_COMP_ADD. However, this BAPI does not seem to have a possibility to set a collective PR indicator when creating the components. (Also it's obviously not possible to set the indicator later.)
    Do you know a BAPI or FM that can create a material component and set the collective PR indicator?
    Thank you
    Roland

    Hi Roland,
    I am sorry to say, there is not a possibility to do that. The collective purchase requisition indicator
    cannot be filled via BAPI. This functionality is not yet available.
    Apologies for not being more positive this time.
    Best regards,
    Enrique
    Edited by: Enrique Sosa Dominguez on Sep 9, 2011 2:58 PM

  • Automatically create ODBC DSN connection with special port and password. Add-OdbcDsn cmdlet

    Hi,
    I first posted a question in the SQL forum but I'm posting it here instead because its a Powershell question.
    In a non-persitent VDI enviroment we are trying to automatically create a ODBC DSN connection to a SQL server.
    We are using Windows 8.1 so we also have Powershell 4 together with the add-odbcdsn cmdlet. 
    But when trying to add set -SetPropertyValue for network port different than default and a password we get an error.
    here is the command:
    Add-OdbcDsn -Name test -DriverName "SQL Server" -DsnType User -SetPropertyValue @("PWD=test", "SERVER=10.0.0.1")
    and here is the error message:
    Add-OdbcDsn : Attempt to set the {UID or PWD} key of a DSN. These keys should not be stored in the registry for securit
    y reason. Provide the credential information at runtime via SQLDriverConnect, SQLConnect or SQLBrowseConnect.
    At line:1 char:1
    + Add-OdbcDsn -Name test -DriverName "SQL Server" -DsnType User -SetPropertyValue @ ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidArgument: (MSFT_OdbcDsnTask:Root/Microsoft/...SFT_OdbcDsnTask) [Add-OdbcDsn], Cim
    Exception
    + FullyQualifiedErrorId : MI RESULT 4,Add-OdbcDsn
    NB!:  this command does not contain a port number, but when adding it without a password(PWD string) we just the default port.

    Hi Primeid,
    Agree with Jrv, we cannot store  UID and PWD in an ODBC datasource, For example, you can create a DSN using the user interface but if you look at the DSN stored in the registry the UID and PWD are not stored.
    ODBC it is always required when you connect using a DSN that the caller supply UID and PWD if they want to use standard login during connection time. 
    These similar discussion are for your reference:
    Creating ODBC DSN for SQL Native
    Client fails for not-integrated authentication
    is user name and password required in ODBC admin / User DSN?
    In addition, to read data from a SQL Server database using an ODBC DSN with SQL Authentication via powershell, please refer to this script:
    Open SQL database with ODBC DSN and SQL AuthenticationIf
    there is anything else regarding this issue, please feel free to post back.
    If you have any feedback on our support, please click here.
    Best Regards,
    Anna Wang
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Automatically create iCal entry with an email alarm from a Mail.app email?

    Hi..
    Hope you can help?
    I want to set up iCal/Mail.app so that it automatically creates a new iCal entry in a specific calendar when an email is received that contains a date in the body of the message...
    Is there a way of doing this with Automator?
    This reason I am asking is that I am trying to put a link on my online store where people can click for a gift reminder email that will be sent to them on a date they specify in the body of their email.
    The link could pop-up a new email window pre-filled with Subject: 'Gift Reminder' and addressed to '[email protected]' They would be instructed to enter a single date in the text area and press Send...
    Then, when Mail.app receives the email, it would move it to a Folder called 'Gift Reminders' and automatically set up a new iCal entry that has an alarm to email the sender on that date with an email containing the Subject 'The Gift Reminder you Requested' etc and some different text in the body... It would be great if this could be set up to repeat annually also as the gift reminder is primarily for birthday gifts...
    Id there an Automator script / plug-in or way of making this happen??
    Any help greatly appreciated, though my knowledge of scripts / Automator etc is quite limited I am willing to try out any suggestions!
    Thanks,
    Jon.

    Tried a restart which showed 2183 emails unable to move which is kind of bonkers and had to quit Mail> restart and moving emails from search now appears to be working. Apple owes me about 500 hours of my life so far with Mavericks!

  • Automatically create iCal entry with email alarm from a Mail.app email?

    Hi..
    Hope you can help?
    I want to set up Mail.app/iCal so that it automatically creates a new iCal entry in a specific calendar when an email is received...
    Is there a Plug-in etc that will do this?
    This reason I am asking is that I am trying to put a link on my online store where people can click for a gift reminder email that will be sent to them on a date they specify.
    The link could pop-up a new email window pre-filled with Subject: 'Gift Reminder' and addressed to '[email protected]' They would be instructed to enter a single date in the text area and press Send...
    Then, when Mail.app receives the email, it would move it to a Folder called 'Gift Reminders' and automatically set up a new iCal entry that has an alarm to email the sender on that date with an email containing the Subject 'The Gift Reminder you Requested' etc and some different text in the body... It would be great if this could be set up to repeat annually also as the gift reminder is primarily for birthday gifts...
    Id there a script / plug-in or way of making this happen??
    Any help greatly appreciated, though my knowledge of scripts / Automator etc is quite limited I am willing to try out any suggestions!
    Thanks,
    Jon.

    Tried a restart which showed 2183 emails unable to move which is kind of bonkers and had to quit Mail> restart and moving emails from search now appears to be working. Apple owes me about 500 hours of my life so far with Mavericks!

  • Preventive Work Order Dates Synchronization with its automatic created  notification

    Dear all,
    Preventive Work Order Dates Synchronization with its automatic created  notification
    My question was initiated from PM module forum, please check above URL if you have time.
    My ultimate problem is that :
         "SMOD" Enhancement  "QQMA0018" needs to receive its origin data of work order when the execution time of IP10 or IP30.
         so that I can decide/calculate desired dates on the notification according to its origin work order date .
    Do I need to use "export/import memory" statements to communicate with origin work order?
    if it's true
    Thanks for your help in advance.

    Dear Pete,
    I just made test data in our DEV server,
    Work orders has been created by "IP30" which was executed today with its maint. plan( date format DD.MM.YYYY ).
    below work order has been created and the basic start date seems derived from plan date.
    below image is showing our 'SPRO' configuration for the PM priority.
    "ZM03" order type is using "ZP" priority type.
    (I don't know why is this work order didn't take the values defined on 'priorities for Each Priority Type' for calculating "basic start" & "basic finish" date, it seemed just copied same date with PlanDate)
    you can see the notification which is created automatically by work order as below.
    "M4" notification type is using "ZP" priority type as well.
    It took the 'required start' date by adding 2 weeks from today(=creation date) as 'priorities for Each Priority Type' has defined and 'required end' date also set to 6 months later from 'required start' date.
    (Am I right?)
    Please let me know, if you need further information.
    Thank you for your help.

  • How can I automatically create the files with serie-name?

    Hello, Everyone,
    I have a question again.
    How can I automatically create the file with a serie-filename?
    e.g. I have a program, it will repeat 5 times, and every time it will create a bmp-file, and I want to let this program automatically save these 5 files with a Serie-filename like File001.bmp, File002.bmp, .... File005.bmp.
    How can I do it?`
    Thanks a lot.
    Regarts,
    Johnny

    Hi Deepu,
    one more comment
    The format code should be "%04d" to get leading zeros and have filenames with same length...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Firefox 29 is no longer automatically creating bookmarks backups.

    I hate to be posting another question having finally (I believe) finding a work around for the "Firefox 29 fails to exit properly and remains running in task manager" problem.
    https://support.mozilla.org/en-US/questions/997670
    However, in Firefox 28 FF would automatically create a new bookmarks backup upon first opening of each day and the number of bookmark backups could be set in about:config setting:
    browser.bookmarks.max_backups
    Since installing Firefox 29 this functionality does not appear to be working. Is this by design or another "issue"? Has anyone else noticed this issue?
    Please don't ask me to "reset to default state", "run in safe mode", etc. I just went through all that with the above "Failing to exit properly" thread. I know I can manually backup bookmarks. I would like to know whether this is by design, if other people have noticed this, or I am the only one experiencing this.
    Here is my troubleshooting information (excluding the thousand references to my printer):
    <pre><nowiki>Application Basics
    Name: Firefox
    Version: 29.0
    User Agent: Mozilla/5.0 (Windows NT 6.1; rv:29.0) Gecko/20100101 Firefox/29.0
    Crash Reports for the Last 3 Days
    All Crash Reports
    Extensions
    Name: Firebug
    Version: 1.12.8
    Enabled: true
    ID: [email protected]
    Important Modified Preferences
    accessibility.typeaheadfind.flashBar: 0
    browser.cache.disk.capacity: 51200
    browser.cache.disk.smart_size_cached_value: 358400
    browser.cache.disk.smart_size.enabled: false
    browser.cache.disk.smart_size.first_run: false
    browser.cache.disk.smart_size.use_old_max: false
    browser.places.smartBookmarksVersion: 6
    browser.search.suggest.enabled: false
    browser.search.useDBForOrder: true
    browser.sessionstore.upgradeBackup.latestBuildID: 20140421221237
    browser.startup.homepage: http://www.wcwcw.com/
    browser.startup.homepage_override.buildID: 20140421221237
    browser.startup.homepage_override.mstone: 29.0
    browser.tabs.loadInBackground: false
    browser.urlbar.autocomplete.enabled: false
    dom.mozApps.used: true
    dom.w3c_touch_events.expose: false
    extensions.lastAppVersion: 29.0
    font.internaluseonly.changed: true
    general.autoScroll: false
    gfx.direct3d.last_used_feature_level_idx: 1
    keyword.URL: https://www.google.com/search?q=
    network.cookie.cookieBehavior: 2
    network.cookie.lifetimePolicy: 1
    network.cookie.prefsMigrated: true
    places.database.lastMaintenance: 1399218213
    places.history.expiration.transient_current_max_pages: 80511
    plugin.disable_full_page_plugin_for_types: application/vnd.fdf,application/vnd.adobe.xdp+xml,application/vnd.adobe.xfdf
    plugin.importedState: true
    plugin.state.npdeployjava: 0
    plugin.state.npgoogleupdate: 0
    print.printer_HP_DeskJet_710C_(Copy_1).print_bgcolor: false
    privacy.clearOnShutdown.cache: false
    privacy.clearOnShutdown.cookies: false
    privacy.clearOnShutdown.formdata: false
    privacy.clearOnShutdown.offlineApps: true
    privacy.clearOnShutdown.sessions: false
    privacy.cpd.cache: false
    privacy.cpd.cookies: false
    privacy.cpd.offlineApps: true
    privacy.cpd.sessions: false
    privacy.popups.showBrowserMessage: false
    privacy.sanitize.migrateFx3Prefs: true
    privacy.sanitize.timeSpan: 0
    security.disable_button.openCertManager: false
    security.disable_button.openDeviceManager: false
    security.warn_viewing_mixed: false
    storage.vacuum.last.index: 1
    storage.vacuum.last.places.sqlite: 1396579220
    Graphics
    Adapter Description: NVIDIA GeForce 9400 GT
    Adapter Drivers: nvd3dum nvwgf2um,nvwgf2um
    Adapter RAM: 1024
    ClearType Parameters: Gamma: 2200 Pixel Structure: B ClearType Level: 50 Enhanced Contrast: 300
    Device ID: 0x0641
    Direct2D Enabled: true
    DirectWrite Enabled: true (6.2.9200.16571)
    Driver Date: 12-19-2013
    Driver Version: 9.18.13.3221
    GPU #2 Active: false
    GPU Accelerated Windows: 1/1 Direct3D 10
    Vendor ID: 0x10de
    WebGL Renderer: Google Inc. -- ANGLE (NVIDIA GeForce 9400 GT Direct3D9Ex vs_3_0 ps_3_0)
    windowLayerManagerRemote: false
    AzureCanvasBackend: direct2d
    AzureContentBackend: direct2d
    AzureFallbackCanvasBackend: cairo
    AzureSkiaAccelerated: 0
    JavaScript
    Incremental GC: true
    Accessibility
    Activated: false
    Prevent Accessibility: 0
    Library Versions
    NSPR
    Expected minimum version: 4.10.3
    Version in use: 4.10.3
    NSS
    Expected minimum version: 3.16 Basic ECC
    Version in use: 3.16 Basic ECC
    NSSSMIME
    Expected minimum version: 3.16 Basic ECC
    Version in use: 3.16 Basic ECC
    NSSSSL
    Expected minimum version: 3.16 Basic ECC
    Version in use: 3.16 Basic ECC
    NSSUTIL
    Expected minimum version: 3.16
    Version in use: 3.16</nowiki></pre>
    Kind Regards,
    Axis

    This is a bit of a "bump" with some new things I have tried. I have run the Places Maintenance add-on (again) and places.sqlite integrity seems absolutely fine.
    Places Maintenance: https://addons.mozilla.org/firefox/addon/places-maintenance/
    I have re-installed FF 29.
    I am able to create manually, and restore, bookmark backups without a hitch.
    I did delete places.sqlite and restarted FF 29. The only thing I lost was all my bookmark Icons. So I re-added the former places.sqlite. Of course, I would have to wait until tomorrow morning to know for sure, but since the Places Maintenance add-on indicated no problems, and since I can manually create them, I am quite sure it is not a corrupted places.sqlite file.
    I tried what may be a dubious add-on, BackupFox, and it failed to create a new backup but left a temp file in the main profile folder.
    Logic tells me that if I can manually create and restore bookmark backups, then something in the engine(?) may be responsible but I do not know enough to go further with that. Permissions must be O.K. or I wouldn't be able to make (manually) a backup.
    I did not have this problem at all with FF 28. Rather, I was asking cor-el how to limit the number of backups, which he showed me. What makes this difficult to test is that I would have to wait until the first opening of FF each day to tell.
    I can't tell if this problem is "only me" or affecting others, however, (no insult intended) I can paste into the support.mozilla.org page search box the exact title of this thread and not find it. I shows up number 1 on Google doing similar search. People who aren't checking their profile folder each day might not even be noticing this.
    cor-el, or anybody, have you found auto backups have stopped in FF 29 for you? Anyone who reads this please let me know if your bookmark auto-backup is working. Just peak in your profile and see if you have a new one each day.
    Does anyone know just what .dll or .exe or what actually is triggered how that causes the auto-backup to occur? Is it the maintenance service?
    What I have not tried is creating another profile because this one seems just fine and I has always worked before 29, and still does work, as far as profiles go. I need to know what "triggers" auto bookmark backup and I doubt it is my profile.
    Regards again,
    Axis

  • Goods receipt is automatically created at the time of confirming the transf

    Hi,
    we are following the confirmation control key inbound delivery process.
    I am making an inbound delivery with refernce to the purchase order.
    then i am making a putaway against the inbound delivery through LT0F and creating a transfer order against the inbound delivery.
    Then i am confirming the transfer order through LT12, when i am confirming the transfer order the goods receipt is automatically created without manuallyy doing a PGR in inbound delivery.
    Can any one let meknow how to avoid the creation of the auto GR at the time of confirming the putaway TO
    Sunil

    Hi,
    In LT0F check in  the initial screen -->control data -->weather the adopt put away quantity field value is 4. If it is 4 then the GR will be posted automatically.
    Regards,
    Bharat.

  • Home directories not fully created - AD with OSX server

    Hope this makes sense.
    I'm setting up a network in a school. We've an Xserve running Mac OS X Server 10.6.4. So that students can move seamlessly between our windows network and this, we've extended the AD schema and have the Server bound to AD. Clients are running 10.6.4, bound in a triangle with the Mac Open Directory and AD. So far, so good, all works fine.
    I've been able to set preferences and network home paths with no major issues and scripted to get around problems with using iMovie. However as we've been awaiting some replacement hard drives to set up a new RAID, the home paths have been set to the share automatically created for Users - so afp://SERVER/Users
    Now our new hard drives have turned up. The RAID is setup and working. I've created a new folder to store home paths - just to test with one user initially. I shared this path 'StaffData', enabled it for automount via afp, in protocol I've enabled guest access for afp. I copied the permissions set for the original /Users directory we were using. In WGM I've changed the home path for this user to afp://SERVER/StaffData, saved, then rebooted the client.
    When I then login with this user it created the top level home directory - afp://SERVER/StaffData/USERNAME - and then a subfolder for /Library and /Desktop. No other folders are created (Music, Movies, Photos, Documents are all missing). I'm able to get it to generate Music when I load iTunes, but the same doesn't happen for iMovie or iPhoto.
    I'm guessing its a permissions issue? When I switch the home folder back to the server's /User directory it creates all the home folders without any issues. Can anyone point me in the direction of a solution to this?

    Yep, I always get an error "The home directory could not be created because an error occurred". Always had that, even on the original /Users share that worked.
    Kind of found a way around, have written a script to run at login that checks to see if Pictures, Movies, etc folders are present, and if it doesn't it just makes a new directory with that name. It's a bit of a bodge, but seems to still work. Would still love to have another proper fix eventually, but for the time being it's solved the immediate problem I had!
    Thanks for your advice.

  • How to get rid of automatically created server accounts in iCal and Mail?

    I have recently setup an OS X 10.6.2 Server for our small office. I got the domain name wrong in the initial install and fixed this by doing a complete clean reinstall of OS X 10.6 server (then upgrade to 10.6.2).
    The problem is that one of the OS X 10.6.2 clients had been setup to talk to the server prior to the rebuild. Now on this client, I cannot work out how to get rid of or change the automatically created server accounts in iCal and Mail - everytime you login, these are recreated using the old domain name (and of course don't work).
    In Mail if you remove the server account (from Accounts in Preferences), it just pops back again. I even removed every trace of the old domain name from the apple.com.mail.plist file but when I re-open Mail that darned server account (with the old domain name) just pops up again.
    In iCal its slightly different in that you can remove the account and it stays away while you have iCal open. But as soon as you close and re-open it, that server account just pops up again!
    I thought it might be something to do with Kerberos and found a Kerberos file on the client which had the old domain name throughout it - I changed all these references to the new domain name, but still the same behaviour in Mail and iCal.
    This is doing my head in. Any ideas?
    Message was edited by: davidav

    I suggest you ask in the snow leopard server forum
    http://discussions.apple.com/category.jspa?categoryID=264

  • How to delete the automatically created receipt in the expense report

    Hi experts,
    I am getting an error "no expense type for estimated costs has been defined. cannot save" while creating a travel request for an employee.
    Base on the reply from Raynard which posted on Re: FM for  trip exp
    It's because "The estimated cost in plan and request are now included into fund management. So if you have active funds management, the entered estimated cost are used to make availability check and commitment. Therefore you must create an expense type in view V_T706B1. Under 'amounts are' you have to choose 'estimated cost, no reimbursement to employee'."
    How ever, because the linkage with funds management, I faced the problem and also ckecked out the reason from SAP Help that "After the trip takes place, the user needs to manually delete the automatically created receipt in the expense report."
    Anybody can provide the solution how to automatically delete this receipt before user create the expense report??
    Thanks
    Daniel

    Hi Francis,
    Check the BADI "TRIP_WEB_CHECK" method "USER_CHECK_GENERAL_DATA".
    Here based on the schema you can modify the "estimated cost" field.
    Hope it helps.
    Regards,
    Jyothi

  • How can I automatically create calendar events using text from a Pages document?

    Hello,
    I'm looking for a way that I can automatically have calendar events created, by extracting dates and times from a table within a Pages document I have saved on my Mac.
    Currently, I record my working hours/dates on a Pages document in table format, so that I can record and ensure I receive payment for all hours I work.
    After finding out which shifts I have for the week, I insert the day, date, start time and end time (for each shift), into a table within a Pages document.
    I'm wondering if there is any way - such as through Automator, Apple Scripts, etc. - that I can then have the Calendar app automatically create events from that data - including the date, start and end times for each shift?
    Also, if possible, is there a way to set each event to automatically alert me at a chosen time (1 day, 2 days, etc.) beforehand?
    Here is an example of the layout of my document table:
    Date
    Start
    Finish
    Duration
    Saturday, 21 December 2013
    8:00 AM
    5:00 PM
    9:00 hrs
    Sunday, 22 December 2013
    9:00 AM
    6:00 PM
    9:00 hrs
    Monday, 23 December 2013
    12:00 PM
    9:00 PM
    9:00 hrs
    Tuesday, 24 December 2013
    12:00 PM
    6:00 PM
    6:00 hrs
    If anyone can help with this question, that would be greatly appreaciated, as then I could have my calendar automatically create and sync my work shifts across to my iPhone, iPad and Mac.
    Thanks in advance,
    John.

    I totally agree with you.
    Where are the fixes for a long string of bugs, glitches and user issues?
    Looking at the list of new "features" for the next OSX, Maverick (what a dumb name!), all I am seeing is Apple ripping off other peoples' ideas, something it swinges others mercilessly for.
    There is not one thing in Maverick that I don't already have, only more so, with 3rd party add-ons.
    Apple seems bereft of ideas now and I am totally mystified what it is doing with all that money and employees it has accumulated.
    Peter

  • How to get rid of automatically created Mail and iCal accounts on client?

    I have recently setup an OS X 10.6 Server for our small office. I got the domain name wrong in the initial install and fixed this by doing a complete clean reinstall of OS X 10.6 server (now upgraded to 10.6.4).
    The problem is that one of the OS X 10.6.4 clients had been setup to talk to the server prior to the rebuild. Now on this client, I cannot work out how to get rid of or change the automatically created server accounts in iCal and Mail - everytime you login, these are recreated using the old domain name (and of course don't work).
    In Mail if you remove the server account (from Accounts in Preferences), it just pops back again. I even removed every trace of the old domain name from the apple.com.mail.plist file but when I re-open Mail that darned server account (with the old domain name) just pops up again.
    In iCal its slightly different in that you can remove the account and it stays away while you have iCal open. But as soon as you close and re-open it, that server account just pops up again!
    I thought it might be something to do with Kerberos and found a Kerberos file on the client which had the old domain name throughout it - I changed all these references to the new domain name, but still the same behaviour in Mail and iCal.
    This is doing my head in. Any ideas?

    I have the same problem. Every time that I open iCal on the client a new account is created and an error message shown that I cannot login. I can delete the wrong account in the iCal preferences. However, as soon as I restart, the account and the error message are back.
    How do I "unbind" and "rebind" a client? I searched the "Mac OS X Server
    Open Directory Administration Version 10.6 Snow Leopard" but the only reference to "binding" seems to be in the context of Active Directory which I don't have.
    Any help is greatly appreciated.

Maybe you are looking for

  • My loop is not working

    Hi Guru's, This is my program . There is no syntax error  but while debugging  this below loop it is not working ( LOOP AT i_vbrk WHERE vbeln = i_vbak-vbeln. ), Please correct my program if anything is wrong or suggest me what do to. REPORT  zsdr_omv

  • Can't use the credit on my Apple ID

    I have purchased a 25$ credit gift card and redeemed it to my Apple ID account on iTunes, but can not purchase anything with it.  When I try to buy a song, the Store requests billing information.  I have used these cards beofre and never had a proble

  • CANNOT CHANGE QUALITY PRESETS

    Captured video is 1920x1080p, AVCHD format, using Adobe Premiere pro CS5 and Encore CS5, win 7 computer. Used Adobe dynamic link to get edited source into Encore. It uses quality presets 720x480, 29.97fps. I edit and build in Encore which results in

  • SAP Management Console as part of Netweaver 7.0

    Hi Colleagues, We are running SAP Netweaver 7.0 with Unix and we have detected that we have a security issue if we leave open the connection to the SAP Management Console via web (http://<host>:5<instNum>13). I have been looking for an alternative to

  • Javax.mail.Session Class Cast Exception

    I'm tryin' to send a mail via JNDI Java Mail Session, but when i get the look up Object, ClassCastException are thrown When i take the o.getClass().getName() is equal to the cast class that i use. I don't know what to do. Source ---> Object o; contex