ADF-Create the multi panel application with one connection to DB

Hi,
I create a panel with table and one button.
When I press the button its opens detail panel.
That panel has table too. While opening detail panel there creating new connection and my application has 2 connections to DB.
my cod:
xxPanel2 panel2 = new xxPanel2();
panel2.setBindingContext(getBindingContext(mBindingContext));
…//hear showing panel
BindingContext mBindingContext = panelBinding.getBindingContext();
public static BindingContext getBindingContext(BindingContext fBindingContext)
HashMap fUserParams = null;
if (fBindingContext == null)
JUMetaObjectManager.setErrorHandler(new JUErrorHandlerDlg());
JUMetaObjectManager vJUMOManager = JUMetaObjectManager.getJUMom();
vJUMOManager.setJClientDefFactory(null);
fBindingContext = new BindingContext();
fBindingContext.put(DataControlFactory.APP_PARAM_ENV_INFO,
new JUEnvInfoProvider());
fBindingContext.setLocaleContext(new DefLocaleContext(null));
fUserParams = new HashMap(4);
fUserParams.put(DataControlFactory.APP_PARAMS_BINDING_CONTEXT,
fBindingContext);
vJUMOManager.loadCpx("xproject2.DataBindings.cpx", fUserParams);
return fBindingContext;
}What I must add to this cod to have a one connection for whole application.
Haw could I pass connection to the second panel?
Thanks!

I am sending bindingcontext of first panel's panelBindging into the second panel:
xxPanel2 panel2 = new xxPanel2();
panel2.setBindingContext(panelBinding.getBindingContext());But ther are exception:
oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.NullPointerException, msg=null
at oracle.jbo.JboException.<init>(JboException.java:346)
at oracle.adf.model.binding.DCBindingContainer.reportException(DCBindingContainer.java:225)
at oracle.adf.model.binding.DCBindingContainer.reportException(DCBindingContainer.java:271)
at xproject2.xxPanel2.setBindingContext(xxPanel2.java:150)
at xproject1.xPanel1.jButton1_actionPerformed(xPanel1.java:172)
at xproject1.xPanel1.mav$jButton1_actionPerformed(xPanel1.java)
at xproject1.xPanel1$1.actionPerformed(xPanel1.java:70)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:158)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
## Detail 0 ##
java.lang.NullPointerException
at oracle.jbo.uicli.jui.JUPanelBinding.bindUIControl(JUPanelBinding.java:821)
at xproject2.xxPanel2.jbInit(xxPanel2.java:69)
at xproject2.xxPanel2.setBindingContext(xxPanel2.java:145)
at xproject1.xPanel1.jButton1_actionPerformed(xPanel1.java:172)
at xproject1.xPanel1.mav$jButton1_actionPerformed(xPanel1.java)
at xproject1.xPanel1$1.actionPerformed(xPanel1.java:70)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:158)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)What could I do to solve this problem?
No I have not MSN if you want you can write me in my mail: [email protected]
Thanks for your answer.

Similar Messages

  • How to create the multi-realm (or multi-entries)in one Directory instance?

    how to create the multi-realm (or multi-entries)in one Directory instance?
    I have installed a new iplanet Directory Server 5.2 on a win2k box, named "vp.com1.com"
    When I installed this server, it helped me to create a new Directory server instance with the default realm "dc=com1,dc=com".
    I could log on console and found root node, which is "com1.com"
    expanded this root node, I got a tree as following:
    "com1.com" -> "vp.com1.com" -> "server group" -> "Directory Server(VP)"
    Then open "Direbory Server(VP)" -> click tab "Directory"
    Got a tree as following:
    vp.com1.com(389) --> dc=com1,dc=com
    o=NetscapeRoot
    Now I wanna create a new entries, which is "dc=com2,dc=com"
    How to do?
    I had checked almost all the related doc but failed to get the valuable info.
    Would you like to do me a favour? Or forward me some reference?
    Because I'm a new guy for iplanet Directory Server, would you pls me the help in detail.
    This task is very urgent for me, so really appreciate your early help!

    Look on page 87 of the Sun ONE Directory Server 5.2 Administration Guide. The section "Creating a New Root Suffix Using the Console" should give you step-by-step instructions.

  • My photos are not showing up as layers in the layers panel, only as one layer, so I can't make any changes to the layers.  Does anyone know why this is happening?  Am I downloading them from my camera wrong?

    My photos are not showing up as layers in the layers panel, only as one layer, so I am not able to make changes to the layers.  Does anyone know why this is happening?   Am I downloading them from my camera wrong?  I have watched the video and the photos don't open that way on my layers panel. Any help would be appreciated, I would like to edit out the background and turn it a different color.

    barba87623950 a écrit:
    My photos are not showing up as layers in the layers panel, only as one layer, so I am not able to make changes to the layers.  Does anyone know why this is happening?   Am I downloading them from my camera wrong?  I have watched the video and the photos don't open that way on my layers panel. Any help would be appreciated, I would like to edit out the background and turn it a different color.
    Photos from cameras or scans have only one layer (the 'background' layer).
    You can start with that 'background' layer and duplicate it or add other layers in the editing process. For instance you can make a selection of a subject and put it on another layer; a common use is to desaturate the 'background' and to keep the color in the selected subject in your newly created layer.

  • Multi-panel report with repetition frame

    Hi all,
    I have a multi-panel report with three vertical panels. In this panels I have one repetition frame inside another repetition frame. My problem is when I run the report the content of the registers appears splitted between pages. I have tried 'Page Protection' on the enclosing frame and the content doesn´t not move to next page. Can anyone help me to solve this problem?
    Thanks in advance.

    Could be an anchor problem. I have seen splitting pages with the use of anchors when attached to repeating frames. Also, I am assuming all your frames are variable elasticity.
    I would try removing all anchors in the report. If nothing else, it will eliminate them as the potential culprit. At a minimum, remove any attached to the repeating frames.
    Good luck...

  • How to create the simple EJB Applications.

    Hi
    I have asked about the what are the necessary softwares required for creating the Simple EJB Applications.
    I have
    Jdk 1.6,
    Netbeans 5.5,
    J2EE5 ,
    Apache Tomcat 5.5
    what are other necessary softwares?please tell me From where i get the source code samples?
    Please Tell me it is necessary for me..

    Hi U,
    Tomcat is only JSP/Servlet container -- no EJB support.
    Easiest is to download the Netbeans 6.1 bundle including Glassfish and JavaDB, thats all you need + JDK and Java EE of course.
    Glassfish has both web/JSP/Servlet-container and EJB-container, so Tomcat is not needed then.
    ( If for some reason you really want to use Tomcat, you can use it together with OpenEJB for example, to add EJB-support. )

  • How many statements can be created with one connection?

    how many statements can be created with one connection?

    and on available memory. At some point, even were the database to allow an infinite number, you'd run out of memory.

  • Closing all applications with one keystroke

    Hi
    There must be a trick but it has been 3 weeks I had my Imac and still have not found it
    How can I CLOSE ALL running application with one keystroke ? also how can I close the finder ... its always running and I am not sure it should.
    Up to know I love the Imac and wander how I survived on a pc for 20 years.
    Antoine

    The Finder is necessary to allow you to navigate your computer: it always runs and if you force-quit it it will immediately relaunch.
    Even if you shut down your computer normally any application with unsaved work will ask for a confirmation. You should not force a shutdown: you can damage your disk Directory by doing this and doing it repeatedly could run you into serious problems. You should only do this in the rare even that the computer locks up completely.
    It's possible to write an AppleScript which will quit all applications (though you will still be asked for confimation where applicable) but it gets a bit complicated because there are running processes which you don't want to quit, and as you're new to all this I'm reluctant to recommend this as a way to go. Otherwise there is no global method.

  • Just installed Lion and the Magic TrackPad and I am having a problem with one click commands.  I have to hit the pad fairly hard with one finger to get it to accept the command.  Is this normal, is there another way that I am suppose to execute commands?

    Just installed Lion and the Magic TrackPad and I am having a problem with one click commands.  I have to hit the pad fairly hard with one finger to get it to accept the command.  Is this normal, is there another way that I am suppose to execute commands?

    No you just need to turn on Tap to Click. Go into System Preferences - Trackpad and click the Point to Click tab and select the first box which will say Tap to Click and you should be in business.

  • How to creat the Varient for 1099MISC With Holding Tax

    How to create the Variant for 1099MISC With Holding Tax ?

    HI,
    please follow the below steps to create variant at report.
    tcode se38
    report RFIDYYWT
    pass all the parameters
    press save icon
    give variant name
    retrive the variant in report
    tcode se38
    report name RFIDYYWT
    press : shift + F5
    or get varinat icon.
    I hope above will resolve your issue.
    Regards
    Madhu M

  • "The PowerPivot service application could not connect to the Analysis Services instance"

    Hi
    I am baffled by this one.  I have a PowerShell script I have built up to install PowerPivot, which I have put together by reading various blogs and by picking apart the scripts that come with the PowerPivot installer.
    However, once I have built the service app and installed/activated the solutions and features, I get the error "The PowerPivot service application could not connect to the Analysis Services instance" when trying to use it.  I can't find any
    more detailed messages, even with verbose logging turned on.  SSAS\PowerPivot is of course installed and connected to Excel as it should be.
    I have tried running the PowerPivot for SharePoint validation tool and it doesn't find anything.
    If I install PowerPivot using the PowerPivot for SharePoint installer, then delete the service app and rerun my scripts, everything then works fine.
    So there is something the installer is doing that I am not, but I cannot for the life of me figure out what it is.  I though it might be permission related, but the official installer installs the service under the farm account, not my BI service account. 
    Ahaa, I thought, but when I then reinstall the service myself with my scripts, using my BI service account, the service app then works, so I don't think it can be permission related.
    Doing a Google search on that message pulls up only one old post (repeated a few times), which talks about using a domain account for the SSAS instance instead of a Local System account - I am using the same domain service account for SSAS, Excel and
    PowerPivot already, so that doesn't help me much.
    Does anyone have any ideas for me or suggestions on how I might proceed?
    Andrew vR

    Did you run the "Run PowerPivot for SharePoint Configuration Tool" after installing PowerPivot and did that work okay?
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

  • Multi Tenant Application with Subdomains

    I have set up a multi tenant application on azure active directory. This all works fine. Lets say the url is https://www.myapp.com. Currently my "reply url" is therefore
    https://www.myapp.com.
    I then updated my application to create a sub domain for each tenant. e.g. customer1.myapp.com, customer2.myapp.com etc. This works but the trouble is that I need to manually add each customers url to the list of allowed reply urls which isn't
    very scalable. Is there any way around this. Some kind of wild card would be great but doesn't seem to work. e.g.
    https://*.myapp.com. Or is there another way that I am missing.

    Hi Paul,
    One option would be to do this would be
    by adding conditional logic in the application itself(in the redirecttoidentityprovider event), or by hard-coding a reply attribute with the URL of the application in the wsFederation element of the application's web.config before deploying.

  • How to generate multi-lingual applications with Designer?

    In Designer 10g we have the definitions of hundreds of tables and views and
    forms/reports modules. Currently all texts (prompts, hints, comments, help texts, etc) are in Dutch. Because of new customers in Germany, we now have to translate everything into German (and in the future also to French and English etc).
    We know that we can use Translation Hub to translate forms and reports,
    however, many tables/columns are used by more modules (sometimes 10 or more). So, the translation of each module with the Hub is very inefficient.
    We are wondering if there are easier ways. For example, when we translate a
    prompt of a tablecolumn, Designer (Headstart) can update all related module items. So, with one translation, we in fact translate many modules at once.
    We could perhaps make a copy of the application, but that will work very
    inefficiently because each modification has to be done on multiple
    applications.
    Has anyone a genius solution for this?
    Thanks for your help, Jan Willem

    I hate to be the one to break it to you, but there isn't a genius solution out there for you. And it isn't a Designer problem, it's an application architecture problem.
    You'll notice that Headstart (since you've looked at that) does two things for you. One is that it has utilities to go update many items for you. Two is that it uses standard error and LOV tables which are multi-lingual based. You enter your messages and lookups in many languages (many rows per code, one per language) and the Headstart library logic displays the right row based on the code and the NLS setting. architecture.
    In your case, where you have hard-coded everything, if you don't want to re-architect things, then your only solution is to clone things. Probably best off (based on other client experience) to just keep the single model in your base language, develop and gen as you have been, and then work your way through all the source code (database and application components) to do all the translation (as noted the Translation Hub can help some), and then implement each result. At least that way you know all the functional logic works. So you're not introducing any bugs (except for when the translated info is longer then the base info -- as we have here in Canada where French takes up more space then English). sorry. ugly.

  • How do create a multi select that is one directional in a jsp page

    i am trying to create a one directional multi select in jsp that is when select the option from the multi- select the first time is not appear again that is for instance if i have a status option of
    NEW
    Fix
    Closed
    they should come from the database from and if they have been selected once and save in another table they should not appear again... that is is you selec Fix you cannot go back to New... how can I accomplish that in jsp
    my default is coming from on table and the rest from another reference table with for all the drop downs.

    Thanks.  I sorted it out after a while.  The problem that I was having is that Pages seemed to treat the copied and pasted webpage content almost like an image: indivisible.  I had to go back to the page and copy a few pages at a time.  Then I could paste the content in one page after another.

  • ?? Several applications with one JVM ??

    Hi,
    I need to run several swing application with a single JVM. (for performance reasons, especially with memory). This is ok.
    But swing applications uses only one AWT-Event-Thread that is shared by all applications (Frames).
    The consequence is, per example, that a modal dialog in one of the applications will block all other running applications.
    Actually, this problem is bug-id = 4080029.
    But there's no workaround.
    Is there anyone who knows how to deal with this ??
    I read an article about AppContext where I understand that it should be possible to assign a different context to each application, and also a different EventQueue to each application.
    But I cannot find any documentation about AppContext, and can't understand how to use it.
    Is there someone who can help with AppContext ??
    -Herbien (Switzerland)

    I've found the following in the src directory of JDK1.3.1 -- it's supposed to be part of javax.swing but I can't find it documented anywhere, so here goes (don't forget the Dukes if this helps):
    V.V.
    * @(#)AppContext.java     1.7 00/02/02
    * Copyright 1998-2000 Sun Microsystems, Inc. All Rights Reserved.
    * This software is the proprietary information of Sun Microsystems, Inc. 
    * Use is subject to license terms.
    package javax.swing;
    import java.util.Hashtable;
    import java.util.Enumeration;
    * The AppContext is a per-SecurityContext table which stores application
    * service instances.  (If you are not writing an application service, or
    * don't know what one is, please do not use this class.)  The AppContext
    * allows applet access to what would otherwise be potentially dangerous
    * services, such as the ability to peek at EventQueues or change the
    * look-and-feel of a Swing application.<p>
    * Most application services use a singleton object to provide their
    * services, either as a default (such as getSystemEventQueue or
    * getDefaultToolkit) or as static methods with class data (System).
    * The AppContext works with the former method by extending the concept
    * of "default" to be SecurityContext-specific.  Application services
    * lookup their singleton in the AppContext; if it hasn't been created,
    * the service creates the singleton and stores it in the AppContext.<p>
    * For example, here we have a Foo service, with its pre-AppContext
    * code:<p>
    * <code><pre>
    *    public class Foo {
    *        private static Foo defaultFoo = new Foo();
    *        public static Foo getDefaultFoo() {
    *            return defaultFoo;
    *    ... Foo service methods
    *    }</pre></code><p>
    * The problem with the above is that the Foo service is global in scope,
    * so that applets and other untrusted code can execute methods on the
    * single, shared Foo instance.  The Foo service therefore either needs
    * to block its use by untrusted code using a SecurityManager test, or
    * restrict its capabilities so that it doesn't matter if untrusted code
    * executes it.<p>
    * Here's the Foo class written to use the AppContext:<p>
    * <code><pre>
    *    public class Foo {
    *        public static Foo getDefaultFoo() {
    *            Foo foo = (Foo)AppContext.getAppContext().get(Foo.class);
    *            if (foo == null) {
    *                foo = new Foo();
    *                getAppContext().put(Foo.class, foo);
    *            return foo;
    *    ... Foo service methods
    *    }</pre></code><p>
    * Since a separate AppContext exists for each SecurityContext, trusted
    * and untrusted code have access to different Foo instances.  This allows
    * untrusted code access to "system-wide" services -- the service remains
    * within the security "sandbox".  For example, say a malicious applet
    * wants to peek all of the key events on the EventQueue to listen for
    * passwords; if separate EventQueues are used for each SecurityContext
    * using AppContexts, the only key events that applet will be able to
    * listen to are its own.  A more reasonable applet request would be to
    * change the Swing default look-and-feel; with that default stored in
    * an AppContext, the applet's look-and-feel will change without
    * disrupting other applets or potentially the browser itself.<p>
    * Because the AppContext is a facility for safely extending application
    * service support to applets, none of its methods may be blocked by a
    * a SecurityManager check in a valid Java implementation.  Applets may
    * therefore safely invoke any of its methods without worry of being
    * blocked.
    * @author  Thomas Ball
    * @version 1.7 02/02/00
    final class AppContext {
        /* Since the contents of an AppContext are unique to each Java
         * session, this class should never be serialized. */
        /* A map of AppContexts, referenced by SecurityContext.
         * If the map is null then only one context, the systemAppContext,
         * has been referenced so far.
        private static Hashtable security2appContexts = null;
        // A handle to be used when the SecurityContext is null.
        private static Object nullSecurityContext = new Object();
        private static AppContext systemAppContext =
            new AppContext(nullSecurityContext);
         * The hashtable associated with this AppContext.  A private delegate
         * is used instead of subclassing Hashtable so as to avoid all of
         * Hashtable's potentially risky methods, such as clear(), elements(),
         * putAll(), etc.  (It probably doesn't need to be final since the
         * class is, but I don't trust the compiler to be that smart.)
        private final Hashtable table;
        /* The last key-pair cache -- comparing to this before doing a
         * lookup in the table can save some time, at the small cost of
         * one additional pointer comparison.
        private static Object lastKey;
        private static Object lastValue;
        private AppContext(Object securityContext) {
            table = new Hashtable(2);
            if (securityContext != nullSecurityContext) {
                if (security2appContexts == null) {
                    security2appContexts = new Hashtable(2, 0.2f);
                security2appContexts.put(securityContext, this);
         * Returns the appropriate AppContext for the caller,
         * as determined by its SecurityContext. 
         * @returns the AppContext for the caller.
         * @see     java.lang.SecurityManager#getSecurityContext
         * @since   1.2
        public static AppContext getAppContext() {
            // Get security context, if any.
            Object securityContext = nullSecurityContext;
    Commenting out until we can reliably compute AppContexts
            SecurityManager sm = System.getSecurityManager();
            if (sm != null) {
                Object context = sm.getSecurityContext();
                if (context != null) {
                    securityContext = context;
            // Map security context to AppContext.
            if (securityContext == nullSecurityContext) {
                return systemAppContext;
            AppContext appContext =
                (AppContext)security2appContexts.get(securityContext);
            if (appContext == null) {
                appContext = new AppContext(securityContext);
                security2appContexts.put(securityContext, appContext);
            return appContext;
         * Returns the value to which the specified key is mapped in this context.
         * @param   key   a key in the AppContext.
         * @return  the value to which the key is mapped in this AppContext;
         *          <code>null</code> if the key is not mapped to any value.
         * @see     #put(Object, Object)
         * @since   1.2
        public synchronized Object get(Object key) {
            if (key != lastKey || lastValue == null) {
                lastValue = table.get(key);
                lastKey = key;
            return lastValue;
         * Maps the specified <code>key</code> to the specified
         * <code>value</code> in this AppContext.  Neither the key nor the
         * value can be <code>null</code>.
         * <p>
         * The value can be retrieved by calling the <code>get</code> method
         * with a key that is equal to the original key.
         * @param      key     the AppContext key.
         * @param      value   the value.
         * @return     the previous value of the specified key in this
         *             AppContext, or <code>null</code> if it did not have one.
         * @exception  NullPointerException  if the key or value is
         *               <code>null</code>.
         * @see     #get(Object)
         * @since   1.2
        public synchronized Object put(Object key, Object value) {
            return table.put(key, value);
         * Removes the key (and its corresponding value) from this
         * AppContext. This method does nothing if the key is not in the
         * AppContext.
         * @param   key   the key that needs to be removed.
         * @return  the value to which the key had been mapped in this AppContext,
         *          or <code>null</code> if the key did not have a mapping.
         * @since   1.2
        public synchronized Object remove(Object key) {
            return table.remove(key);
         * Returns a string representation of this AppContext.
         * @since   1.2
        public String toString() {
            Object securityContext = nullSecurityContext;
            SecurityManager sm = System.getSecurityManager();
            if (sm != null) {
                Object context =
                    System.getSecurityManager().getSecurityContext();
                if (context != null) {
                    securityContext = context;
            String contextName = (securityContext.equals(nullSecurityContext) ?
                "null" : securityContext.toString());
         return getClass().getName() + "[SecurityContext=" + contextName + "]";
    }

  • How can I create a new Care Plan with one or more care tasks

    Hello,
    I'm working on a Dutch website in the HealthVault Environment. I got difficulties in creating and updating a careplan with care tasks. Most likely it's due to lack of knowledge...
    Following code works fine:
    CarePlan plan = new CarePlan();
    plan.Name = "test";
    this.PersonInfo.SelectedRecord.NewItem(plan);
    It creates a plan called [test]. But I don't know how to create a plan with one or more tasks in it: the tasks property is read only.
    https://msdn.microsoft.com/en-us/library/microsoft.health.itemtypes.careplan.tasks.aspx
    Half a year ago I was able to add an example of a careplan, which was a feature of the dev tools, but for some reason that's not possible anymore.
    https://developer.healthvault.com/DataTypes/Overview?TypeId=415c95e0-0533-4d9c-ac73-91dc5031186c
    So my question is, how can I add a new care plan with a task like the example from the HealthVault dev tools:
    <tasks>
    <task>
    <name>
    <text>Run 100 miles</text>
    </name>
    <description>Run 100 miles in 6 months</description>
    <start-date>
    <structured>
    <date>
    <y>2013</y>
    <m>12</m>
    <d>1</d>
    </date>
    </structured>
    </start-date>
    <end-date>
    <structured>
    <date>
    <y>2014</y>
    <m>6</m>
    <d>1</d>
    </date>
    </structured>
    </end-date>
    <target-completion-date>
    <structured>
    <date>
    <y>2014</y>
    <m>12</m>
    <d>31</d>
    </date>
    </structured>
    </target-completion-date>
    <sequence-number>279128532</sequence-number>
    <recurrence>
    <interval>
    <text>Once</text>
    </interval>
    <times-in-interval>10</times-in-interval>
    </recurrence>
    <reference-id>p01vil21ckg7k2346y1g60337mmi20sg564l321l8pmpqev39n302572sewu76lh9019s3993e02924</reference-id>
    </task>
    </tasks>
    Any help is welcome 
    Wilfred

    Hi Wilfred,
    Have you tried this?
    CarePlan plan = new CarePlan();
    plan.Name = "test";
    plan.Tasks.Add(someTask) 
    If you have a task list already, you would need to enumerate through it and add one by one...
    foreach (var task in existingList)
        plan.Tasks.Add(task)

Maybe you are looking for

  • Why can I not install Acrobat XI Pro on a Windows 8.1/64 machine?

    Acrobat X Pro is running, but when I try to install Acrobat XI Pro through Adobe Creative Cloud on a Windows 8.1/64 machine it fails near the end of the installation.  It indicates that it failed with 7 errors, but nowhere are the errors accessible. 

  • In-Process Inspection material having inspection type 04

    Dear Sir/Mam My question.In-Process Inspection material having inspection type 04.As we accept the inspection lot we put the stock into unrestricted.But when we have to reject we convert that stock into new material or if rework to be carried out,the

  • Parallel calls from BPM

    Hi all, I have a scenario in BPM where I have used a fork for sending messages in parallel. There are 3 synchronous RFC calls to same R/3 backend system. However, in message monitoring I can see that the messages are still in serial (start time of ne

  • Busines delegate / service locator / session facade

    i dont understand how to combine all these patterns into one sequence diagram or class diagram. does anyone have a sample for this? thanks a tonne.

  • Submitting a Zprogram in Background

    Hi Masters, Please help me solving this urgent issue. Issue Description: I want to schedule my program in background…means.. My main selection screen is having a single parameter…it appears as.. Last Changed On       ________SY-DATUM_________ Now eve