Using a reference to an xcontrol in a class

Herbert wrote:
I really was not aware that all classes, and maybe also lvlib's,
lvlib no, lvclass yes and I think also xctl and xnode, although I'm not sure about those.

Hi.
I want to use dynamic dispatch OOP-methods to write to Xcontrols on the front panel of the main VI. In the image below, I have illustrated a very simple example, using static methods.
However, as soon as I introduce a strict reference to the Xcontrol anywhere into the class, the Xcontrol becomes locked, even when all VI's of the project are closed. I know, I can unlock the Xcontrol, edit it and lock it again.
However, in my real project, I have an additional Singleton that is used both in main as well as in one of the Xcontrols. This class then becomes completely locked meaning that there is no possibility any more to edit it from within the project or do a search for callers. The latter is quite annoying as this makes any search for callers impossible, as the search is done on VI's in memory.
Is there a reason for this locking, when nothing but the project is open, is there some alternative solution?
Herbert

Similar Messages

  • SSO to R/3 using a reference system

    Hi,
    I try to setup SSO between a EP6 SP2 and a R/3 4.7. I configured the backendsystem correctly because SSO works if the users have the same user id (tried it using WinGUI). In my case the user ids between ActiveDirectory and SAP differ, so I have to use a reference system. I configured it in the UME settings and now my users can personalize their user ids, but when they click on save an error message appears that a problem occured. In the log file it says:
    Sep 7, 2005 5:36:20 PM # Client_Thread_10     Fatal           Exception ID:05:36_07/09/05_0002
    com.sapportals.portal.prt.runtime.PortalRuntimeException: PortalRuntimeException
         at com.sapportals.portal.prt.core.PortalRequestManager.handleRequestException(PortalRequestManager.java:824)
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:716)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:229)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:555)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:415)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.inqmy.services.servlets_jsp.server.InvokerServlet.service(InvokerServlet.java:126)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.inqmy.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:149)
         at com.inqmy.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(ServletsAndJspImpl.java:833)
         at com.inqmy.services.httpserver.server.RequestAnalizer.checkFilename(RequestAnalizer.java:672)
         at com.inqmy.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:314)
         at com.inqmy.services.httpserver.server.Response.handle(Response.java:173)
         at com.inqmy.services.httpserver.server.HttpServerFrame.request(HttpServerFrame.java:1288)
         at com.inqmy.core.service.context.container.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:36)
         at com.inqmy.core.cluster.impl5.ParserRunner.run(ParserRunner.java:55)
         at com.inqmy.core.thread.impl0.ActionObject.run(ActionObject.java:46)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.inqmy.core.thread.impl0.SingleThread.run(SingleThread.java:148)
    Caused by: java.lang.NoClassDefFoundError
         at com.sapportals.portal.prt.component.usermanagement.UserMappingDataModel.checkR3ReferenceIdentity(UserMappingDataModel.java:621)
         at com.sapportals.portal.prt.component.usermanagement.UserMappingDataModel.saveLogonData(UserMappingDataModel.java:475)
         at com.sapportals.portal.prt.component.usermanagement.UserMappingComponent.doHandleHTMLBEventSave(UserMappingComponent.java:144)
         at com.sapportals.portal.prt.component.usermanagement.UserMappingComponent.doRequestEvent(UserMappingComponent.java:338)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.handleRequestEvent(AbstractPortalComponent.java:720)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.handleEvent(AbstractPortalComponent.java:412)
         at com.sapportals.portal.prt.pom.ComponentNode.handleEvent(ComponentNode.java:250)
         at com.sapportals.portal.prt.pom.PortalNode.fireEventOnNode(PortalNode.java:334)
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:628)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:229)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:555)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:415)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.inqmy.services.servlets_jsp.server.InvokerServlet.service(InvokerServlet.java:126)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.inqmy.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:149)
         at com.inqmy.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(ServletsAndJspImpl.java:833)
         at com.inqmy.services.httpserver.server.RequestAnalizer.checkFilename(RequestAnalizer.java:672)
         at com.inqmy.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:314)
         at com.inqmy.services.httpserver.server.Response.handle(Response.java:173)
         at com.inqmy.services.httpserver.server.HttpServerFrame.request(HttpServerFrame.java:1288)
         at com.inqmy.core.service.context.container.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:36)
         at com.inqmy.core.cluster.impl5.ParserRunner.run(ParserRunner.java:55)
         at com.inqmy.core.thread.impl0.ActionObject.run(ActionObject.java:46)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.inqmy.core.thread.impl0.SingleThread.run(SingleThread.java:148)
    Any idea what went wrong?
    Bye,
    Christoph

    solved it: SAPJCO was not included in the Windows Environment Path Variable. I included D:\usr\sap\yyyy\j2ee\j2ee_00\os_libs;D:\usr\sap\yyyy\j2ee\j2ee_00\cluster\server\additional-lib
    Bye
    Christoph

  • Currency Translation Using 'Time Reference'

    Hey Experts,
    Quick question.
    Has anybody had experience performing the planning function 'Currency Translation' <b>BUT</b> using the 'Time Reference' field.
    My goal is to have it translate the currency based on Fiscal year/period, using the fiscal 'year/period END' to determine the translation date.
    However in the paremeter group for currency translation, when I click on the 'Time reference' Drop-down button to select, it's blank, and give me no choices to pick anything. Have I missed something here? Are there any other prior steps I've ignored?
    I already have the fiscal year/period characteristic defined on my level.. and I've defined my 'Targ.Curr' as USD.
    I can't find much documantation except for the basic help button, but that doesn't really say much.
    Any advice..?
    Thank All.

    Hi,
    If I understand you correctly, am I then to assume using the Fiscal year/Period '0FISCPER' will not work. The F1 help say it should.
    And are you saying if I use Fiscal year '0FISCYEAR' and/or Posting Period '0FISCPER3' instead, it should work by giving me the option of choosing the start or end of these two fields when I click on the drop-down of the Time Reference??
    The way I have this defined is as follows.
    At the level I have both:
    Fiscal year/Period '0FISCPER' -> 001/2006 to 012/2007.
    Fiscal year '0FISCYEAR' -> 2006 to 2007.
    In my Paramter Group I have the following definition:
    Target Key Figure:  Value in Object currency
    Source Key Figure:  Value in CO Currency
    Exch.Rate: 001P
    Char.Target.Crcy: Currency
    Curr,Date:  Is currenctly Flagged, but will remove it once I have the Time Reference field working.
    At the Planning area, I have a characteristic relationship defined as a derivation using 'Type' reference data, whereby the Fiscal year (0FISCYEAR) is referenced from the Fiscal year/Period (0FISCPER), and the Posting period (0FISCPER3) also references the Fiscal year/Period (0FISCPER) that are currently stored in my transactional cube.
    Based on the above, I still don't get anything to choose from when I click on the drop-down for the 'Time Reference' field in the currency translation.
    If you could perhaps do some screen dumps of the level you defined, characteristic relationship, as well as how u defined the parameter group, that may help.
    You can attach email it to  '[email protected]'.
    Sorry for the confusion, but I think I'm missing something obvious and simple here..!!
    Thanks
    Message was edited by: Ehab Mansour

  • How to set the value of an array element (not the complete array) by using a reference?

    My situation is that I have an array of clusters on the front panel. Each element is used for a particular test setup, so if the array size is three, it means we have three identical test setups that can be used. The cluster contains two string controls and a button: 'device ID' string, 'start' button and 'status' string.
    In order to keep the diagrams simple, I would like to use a reference to the array as input into a subvi. This subvi will then modify a particular element in the array (i.e. set the 'status' string).
    The first problem I encounter is that I can not select an array element to write to by using the reference. I have tried setting the 'Selection s
    tart[]' and 'Selection size[]' properties and then querying the 'Array element' to get the proper element.
    If I do this, the VI always seems to write to the element which the user has selected (i.e. the element that contains the cursor) instead of the one I am trying to select. I also have not found any other possible use for the 'Selection' properties, so I wonder if I am doing something wrong.
    Of course I can use the 'value' property to get all elements, and then use the replace array element with an index value, but this defeats the purpose of leaving all other elements untouched.
    I had hoped to use this method specifically to avoid overwriting other array elements (such as happens with the replace array element) because the user might be modifying the second array element while I want to modify the first.
    My current solution is to split the array into two arrays: one control and one indicator (I guess that's really how it should be done ;-) but I'd still like to know ho
    w to change a single element in an array without affecting the others by using a reference in case I can use it elsewhere.

    > My situation is that I have an array of clusters on the front panel.
    > Each element is used for a particular test setup, so if the array size
    > is three, it means we have three identical test setups that can be
    > used. The cluster contains two string controls and a button: 'device
    > ID' string, 'start' button and 'status' string.
    >
    > In order to keep the diagrams simple, I would like to use a reference
    > to the array as input into a subvi. This subvi will then modify a
    > particular element in the array (i.e. set the 'status' string).
    >
    It isn't possible to get a reference to a particular element within an
    array. There is only one reference to the one control that represents
    all elements in the array.
    While it may seem better to use references to update
    an element within
    an array, it shouldn't really be necessary, and it can also lead to
    race conditions. If you write to an element that has the
    possibility of the user changing, whether you write with a local, a
    reference, or any other means, there is a race condition between the
    diagram and the user. LV will help with this to a certain extent,
    especially for controls that take awhile to edit like ones that use
    the keyboard. In these cases, if the user has already started entering
    text, it will not be overwritten by the new value unless the key focus
    is taken away from the control first. It is similar when moving a slider
    or other value changes using the mouse. LV will write to the other values,
    but will not rip the slider out of the user's hand.
    To completely avoid race conditions, you can split the array into user
    fields and indicators that are located underneath them. Or, if some
    controls act as both, you can do like Excel. You don't directly type
    into the cell. You choose w
    hich cell to edit, but you modify another
    location. When the edit is completed, it is incorporated into the
    display so that it is never lost.
    Greg McKaskle

  • Could not lookup PortalManagerHome in the JNDI tree using EJB reference java:comp/env/ejb/PortalManager

    Hi
    I am just a starter on WLPortal.
    I have created a barebone Application from scratch. I have synchronized it properly
    from EBCC to WLP. But When I am trying to access the home page of my application,
    I am getting from stack trace -
    <Nov 6, 2002 5:37:59 PM IST> <Error> <PortalAppflow> <Could not lookup PortalManagerHome
    in the JNDI tree using EJB reference java:comp/env/ejb/PortalManager.
    javax.naming.NameNotFoundException: Unable to resolve comp/env/ejb/PortalManager
    Resolved: 'comp/env' Unresolved:'ejb' ; remaining name 'PortalManager'
    at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:802)
    at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:209)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:173)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:181)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:181)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:323)
    at weblogic.jndi.factories.java.ReadOnlyContextWrapper.lookup(ReadOnlyContextWrapper.java:36)
    at weblogic.jndi.internal.AbstractURLContext.lookup(AbstractURLContext.java:124)
    at javax.naming.InitialContext.lookup(InitialContext.java:350)
    at com.bea.p13n.util.JndiHelper.lookupNarrow(JndiHelper.java:96)
    at com.bea.portal.appflow.PortalAppflowHelper.<clinit>(PortalAppflowHelper.java:64)
    at com.bea.portal.appflow.servlets.internal.PortalWebflowServlet.init(PortalWebflowServlet.java:78)
    at javax.servlet.GenericServlet.init(GenericServlet.java:258)
    at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:700)
    at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:643)
    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:588)
    at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:368)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
    at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:215)
    at weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:112)
    at jsp_servlet.__index._jspService(__index.java:92)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:304)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2459)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2039)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    >
    <Nov 6, 2002 5:37:59 PM IST> <Error> <HTTP> <[WebAppServletContext(19695286,FirstWebApp,/FirstWebApp)]
    Servlet failed with Exception
    java.lang.NullPointerException:
    at com.bea.portal.appflow.PortalAppflowHelper.createPortalManager(PortalAppflowHelper.java:82)
    at com.bea.portal.appflow.servlets.internal.PortalWebflowServlet.setupPortalRequest(PortalWebflowServlet.java:187)
    at com.bea.portal.appflow.servlets.internal.PortalWebflowServlet.doGet(PortalWebflowServlet.java:99)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
    at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:215)
    at weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:112)
    at jsp_servlet.__index._jspService(__index.java:92)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:304)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2459)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2039)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    When I decompiled the class PortalAppflowHelper, I found a static block in it,
    which was as under-
    static
    debug = Debug.getInstance(com.bea.portal.appflow.PortalAppflowHelper.class);
    try
    if(debug.ON)
    debug.out("Looking up PortalManagerHome using EJB reference java:comp/env/ejb/PortalManager");
    portalManagerHome = (PortalManagerHome)JndiHelper.lookupNarrow("java:comp/env/ejb/PortalManager",
    com.bea.portal.manager.ejb.PortalManagerHome.class);
    if(debug.ON)
    debug.out("Successfully retrieved PortalManagerHome " + portalManagerHome);
    catch(Exception e)
    PortalAppflowLogger.errorFindingPortalManagerHome("java:comp/env/ejb/PortalManager",
    e);
    I have checked the PortalManager's JNDI name on WLConsole. Its ${APPNAME}.BEA_portal.PortalManager.
    Should I change it?
    When I tried to change it, I started getting other weird errors.
    Thanks
    Neeraj Hans

    Neeraj -
    The Portal framework code (including PortalAppflowHelper) uses ejb
    references to find the PortalManager (and other EJBs) from servlets and
    taglibs; that is what is signified by the java:comp/env/... name.
    Since you built your webapp from scratch (instead of using the portal
    wizard), you will need to make sure the you have the appropriate
    <ejb-ref> entries in your web.xml, and the corresponding
    <ejb-reference-description> entries in your weblogic.xml. By default,
    you will need at least mappings for:
    - ejb/PortalManager
    - ejb/UserManager
    - ejb/GroupManager
    - ejb/PipelineExecutor
    - ejb/EventService
    See either the resulting webapp from using the portal wizard or
    BEA_HOME/weblogic700/samples/portal/sampleportalDomain/beaApps/sampleportal/sampleportal/WEB-INF
    for example syntax.
    Greg
    Neeraj Hans wrote:
    Hi
    I am just a starter on WLPortal.
    I have created a barebone Application from scratch. I have
    synchronized it properly
    from EBCC to WLP. But When I am trying to access the home page of my
    application,
    I am getting from stack trace -
    <Nov 6, 2002 5:37:59 PM IST> <Error> <PortalAppflow> <Could not lookup
    PortalManagerHome
    in the JNDI tree using EJB reference java:comp/env/ejb/PortalManager.
    javax.naming.NameNotFoundException: Unable to resolve
    comp/env/ejb/PortalManager
    Resolved: 'comp/env' Unresolved:'ejb' ; remaining name 'PortalManager'
    at <stack trace lines snipped>
    When I decompiled the class PortalAppflowHelper, I found a static
    block in it,
    which was as under-
    static
    debug =
    Debug.getInstance(com.bea.portal.appflow.PortalAppflowHelper.class);
    try
    if(debug.ON)
    debug.out("Looking up PortalManagerHome using EJB
    reference java:comp/env/ejb/PortalManager");
    portalManagerHome =
    (PortalManagerHome)JndiHelper.lookupNarrow("java:comp/env/ejb/PortalManager",
    com.bea.portal.manager.ejb.PortalManagerHome.class);
    if(debug.ON)
    debug.out("Successfully retrieved PortalManagerHome "
    + portalManagerHome);
    catch(Exception e)
    PortalAppflowLogger.errorFindingPortalManagerHome("java:comp/env/ejb/PortalManager",
    e);
    I have checked the PortalManager's JNDI name on WLConsole. Its
    ${APPNAME}.BEA_portal.PortalManager.
    Should I change it?
    When I tried to change it, I started getting other weird errors.
    Thanks
    Neeraj Hans

  • "Index: 0, Size: 0" error when using lexical references

    I got "Index: 0, Size: 0" when using lexical references in data template. Can any body tell me what happen? The detail error is:
    [042308_084608187][][EXCEPTION] java.lang.IndexOutOfBoundsException: Index: 0, S
    ize: 0
    at com.sun.java.util.collections.ArrayList.RangeCheck(ArrayList.java:492
    at com.sun.java.util.collections.ArrayList.get(ArrayList.java:306)
    at oracle.apps.xdo.dataengine.DataTemplateParser.getParentDataSource(Dat
    aTemplateParser.java:1802)
    at oracle.apps.xdo.dataengine.XMLPGEN.writeDefaultGroup(XMLPGEN.java:329
    at oracle.apps.xdo.dataengine.XMLPGEN.writeGroupStructure(XMLPGEN.java:2
    84)
    at oracle.apps.xdo.dataengine.XMLPGEN.processData(XMLPGEN.java:271)
    at oracle.apps.xdo.dataengine.XMLPGEN.processXML(XMLPGEN.java:213)
    at oracle.apps.xdo.dataengine.XMLPGEN.writeXML(XMLPGEN.java:252)
    at oracle.apps.xdo.dataengine.DataProcessor.processDataStructre(DataProc
    essor.java:390)
    at oracle.apps.xdo.dataengine.DataProcessor.processData(DataProcessor.ja
    va:355)
    at oracle.apps.xdo.servlet.data.bind.AdvancedQueryBoundValue11.callDataP
    rocessor(AdvancedQueryBoundValue11.java:212)
    at oracle.apps.xdo.servlet.data.bind.AdvancedQueryBoundValue11.getValue(
    AdvancedQueryBoundValue11.java:101)
    at oracle.apps.xdo.servlet.ReportContextImplV11.getReportXMLData(ReportC
    ontextImplV11.java:399)
    at oracle.apps.xdo.servlet.CoreProcessor.process(CoreProcessor.java:143)

    Here is the data template, the lexical reference is &where_clause, thanks.
    <dataTemplate name="Tamplate" dataSourceRef="dmdb" defaultPackage="RRBY_PKG">
         <properties>
              <property name="debug_mode" value="on"/>
         </properties>
         <parameters>
                   <parameter name="BUName" dataType="character"/>
              <parameter name="StartDate" dataType="date"/>
              <parameter name="EndDate" dataType="date"/>
         </parameters>
    <dataTrigger name="beforeReport" source="RRBY_PKG.dynamic_where(BUName =&gt; :BUName)"/>
         <dataQuery>
         <sqlstatement name="GroupByAgent">
                   <![CDATA[SELECT
      NVL(businessunit.name, 'Unassigned') UNITNAME,
      queue.name QUEUENAME,
      NVL2(businessunit.name, 'Unassigned', businessunit.name || ': ' || queue.name) FULLQUEUENAME,
      COUNT(queueEvent.requestNumber) REQNUM
    FROM((((queueevent queueevent
    INNER JOIN assignment assignment ON queueevent.assignmentkey = assignment.assignmentkey)
    INNER JOIN datedim datedim ON queueevent.datekey = datedim.datekey)
    INNER JOIN businessunit businessunit ON queueevent.businessunitkey = businessunit.businessunitkey)
    INNER JOIN queue queue ON queueevent.forwardedqueuekey = queue.queuekey)
    INNER JOIN timedim timedim ON queueevent.timekey = timedim.timekey
    WHERE dateDim.FULLDATE >= TO_DATE(:StartDate, 'yyyy-mm-dd')
    AND BW_COMMON_DATEADD('s', timeDim.SECONDOFDAY, BW_COMMON_DATEADD('s', queueEvent.EVENTDURATION, dateDim.FULLDATE)) > TO_DATE(:StartDate, 'yyyy-mm-dd')
    AND BW_COMMON_DATEADD('s', timeDim.SECONDOFDAY, BW_COMMON_DATEADD('s', queueEvent.EVENTDURATION, dateDim.FULLDATE)) &lt; TO_DATE(:EndDate, 'yyyy-mm-dd') AND &where_clause
    group by businessunit.name, queue.name]]>
              </sqlstatement>
         </dataQuery>
    </dataTemplate>

  • Is there any downside to using a reference type library if I use Time Capsule and will do file management only from within Aperture?

    Have done a lot of reading to get prepared to convert to Aperture 3 and have this question regarding setting up my library type.
    I'm not a professional -just a heavy user hobbyist.
    It appears that the major factors in using reference style is to backup the images with Time Capsule and always do moves or deletes from within the Aperture application.
    If my architecture matters here's what I have that may be involved in photo management and editing:
    iMac (latest 27" high power version with lots of memory)
    Internal 2TB HD where the library is stored
    External (FireWire) 2TB HD where the images are stored
    External (FireWire) 6TB HD backup drive
    In the future an iPad for remote work on images (when/if available) and a Mac laptop (for same remote use)
    I see major downside issues to letting the library manage my files - such as inaccessibility (or awkward accessibility) to the images for other programs, and performance issues when the library gets large (thousands of images or 100+ gb in size)
    The chief complaints I've seen regarding using a reference mode is the broken link issues created if file management is done outside of Aperture (adds, deletes, moves of files) and the inability to use the Vault function for backup.
    One feature that I imagine I'd like to have is maximum integration with Final Cut Pro X and that's one area I haven't seen much on and would be interested to hear about if that integration is affected with the choice of managed vs referenced library types. (I like to produce film clips that are combinations of pics and video and want to be set up so that is done in the easiest fashion when working in FCP X)
    I'm sure I've not seen all sides of this issue and would like to see some discussion around this question.
    Thanks to everyone contributing!
    Craig

    Goody, Goody, you hit a few of my favorite subjects! Herewith some comments, with the usual caveats - true to the best of my knowledge and experience, others may have different results, YMMV, and I could be wrong.
    I run Aperture on two machines:
    -- 2007 Mac Pro with 2x2.66 GHz Xeon, 21 GB of RAM, a 5770 GPU, and multiple HD. I have about 11,000 images, taking up 150 GB. (Many are 100 MB TIFF, scanned slides)
    -- 2006 Mac Book Pro with 1 2.0 GHz Core Duo, 2 GB of RAM and a 240 GB SSD.
    Two very different machines.
    -- Aperture Libraries are all the same - Managed or Referenced. If Managed, then the Master image files are inside the Package, if Referenced, they are outside, and you can have any combination you want. Managed is easier, but Referenced is not hard if you are the least bit careful.
    -- While the sheer size of an Aperture Library is not a big issue, the location on disk of the different components can have a tremendous impact on performance.
    -- Solid State Drives (SSD) read and write faster than regular Hard Disks (HD) and, what is more important, empty HD read and write much faster than full HD.
    -- Aperture speed requires a combination of RAM, CPU, graphics processing unit (GPU) speed, and disk speed. The more RAM you have, the less paging you will see. With enough RAM, the next bottle neck is CPU (speed and cores) and GPU speed. But even then you will still have to fetch an image (longer if you pull the full resolution Master, read and rewrite the Version file, and update the Preview and Thumbs.
    So what works?
    -- RAM, RAM, and more RAM. 4 GB will work, but you will page a bit. 8 GB is much faster. On my old MacPro the sweet spot was about 16 GB of RAM.
    -- Keep your Library on your fastest (usually internal) drive. Keep that disk as unloaded as possible. How do you keep it unloaded? Either buy BIG, 1 TB+ or move your Masters off onto another disk. The good news here is that as Master files are written only once and never rewritten, speed of this disk, as opposed to the disk that holds the Library, is not important. There is a one second pause as the Master is read into memory and, if you have enough RAM, that is it - the Master will never be paged out. If, on the other hand, you do not have enough RAM, and you do a lot of adjusting at full resolution, then the speed of the disk that holds your Masters will become very important due to paging.
    -- I found that I picked up a tiny bit of speed by keeping the Masters on a dedicated disk. Thus, in your configuration, if you can dedicate that 2 TB FW HD to your Masters, you should see very nice performance.
    Final notes on backups and archives:
    -- One conventional wisdom is that you should make an archive copy of every image file before or as you load them into your system. (Aperture in this case.) This archive is then never touched or deleted.
    -- An alternative approach is that you do not keep such an archive, but only the images that you have in your Aperture Library. And when you delete from the Library, you no longer keep a copy anywhere.
    I do the following:
    -- Card to Aperture. Card is then kept at least 24 hours until all of my backups have run. (I use three - Time Machine, Clone, and off site.)
    -- I do not keep archive copies. If I decide to delete a file, my only recourse is to recover it from Time Machine during the six month cycle of my Time Machine backups. Thereafter, it is lost.
    There are merits to both approaches.
    Hope this is clear, correct, and responsive to your needs.
    DiploStrat

  • What is use of Reference object in BW

    Hi All,
    I have a small doubt about use of Reference object.Since reference object uses same database table of referenced object and also we can not load data in this.Only loaded data in Referenced object will be available in newly created reference object.
    Also if we create more than 2 objects referencing the same object and used them in InfoProvider then what is use of these objects in that infoprovider whether they have same data and also all properties.
    For example if we have created two objects u2018Sender Cost Centeru2019 and u2018Receiver Cost centeru2019 referencing the same object u2018Cost Centeru2019 and used them in an InfoCube.
    Then what is use of these objects whethet they are refering same database table of u2018Cost Centeru2019.And how we can differentiate them during Reporting.
    Regards
    Vinay

    consider below table:
    cost center (master data table):
    Cost SID, Center name, Other details
    1 ..., xyz....., bla bla
    2 ..., abc....., bla bla
    Purchase Order Header Table (transcation table)
    PONumber, Sender CostCntr, RecevierCostCntr, Other details.
    101, 1, 2, xxxxxx
    102, 2, 1, yyyyy
    in cube, u've SIDs for MD... so when u read the details for say PONo 101, u pick sender SID & receiver SID & read details from master data table...
    other example:
    u r working somewhere.. u have employee ID & ur other details like name, address... all these get store in 0employee master data..
    when in HR module ur salary is generated, salary module will hold only ur employee ID.. but from ur ID other details u can get.. rite?
    same way leave module will have ur Id.. & it can get details bout ur leave & address...
    both is true for ur manager.. but when ur leave is to be approved.. ur manager ID is required...when ur manager apply for leave his managerID is used.. all this get store in same leave module..

  • Using cross-references in the index?

    Wondering if there are any suggestions out there for using
    cross-references in the index.
    I don't think using the "See also" option is what I'm looking
    for; what I'd like to do is create index entries with a cross
    reference next to them.
    I tried this by creating an index entry and typing (See
    "other topic name") next to it, but when I compiled the project
    this index entry was not included because I did not have a topic
    assigned to it.
    Is there any way to create a cross-reference index entry
    without a topic assignment? Or are there other workarounds that you
    use?

    Index cross references are designed to enable you to have
    index keywords that when clicked redirect the user to another
    keyword. For example I use them for acronyms to redirect users to
    the longer version. Are you cross references topics inside the
    project? If so, can't you use the index cross references by
    indexing in the same manner? If the cross reference you want is
    outside the project, using the index is not the way I'd suggest.
    Why not use a link in a topic to a URL, file, etc. You may be able
    to do what you want through a redirect topic but I haven't looked
    into this. Come back with some more details if I am off the
    mark.

  • Why to use EJB Reference

    hi all,
    when i have an enterprise application with a session bean and a webapp,
    i can access the session bean either over an ejb-reference in the webapp or directly access the jndi entry. what is the advantage of using ejb references? here an example of what i mean (both from within a webapp):
    ctx.lookup("myBean"); // without ejb ref
    ctx.lookup("java:comp/env/ejb/myRef"); // with ejb ref
    I get back the same, so whats the difference?
    rgds

    With ejb-reference a container optimizes access to collocated beans. For example, say you have a deployment where beans A and B are both replicated in two different containers, for performance and/or availability reasons. For optimal use every instance of A in container would use instances of B also in container one. Likewise for container two. An EJB container can enforce this locality constraint using ejb-links, but not always using direct JNDI names.

  • Performance issues using control references in Analog control loop?

    My main vi of a tensile tester control application calls a number of sub-vi's, including a analog control loop which controls the test. The control loop must update some boolean and digital indicators and respond to user input on the front panel of the main vi during a test.
    To simplify my main vi, I moved the control loop code into a sub-vi, and used control references to access the controls and indicators on the front panel. However, this has dramatically affected my loop performance, and the loop can no longer keep up with the acquisition speed.
    Do control references always cause such a slowdown? Is there anything that I can do besides moving the code back into the main vi?
    Thank You,
    David Creech

    I have had the same problem. I have discovered other funny things about references also; some kind of memory management (or mismamagement?) is taking place behind the scenes.
    Regardless, you can often do away with the references by passing the initial state of a control or indicator into the subvi, changing it inside, and passing the altered state back to the caller. Once back in the caller you update the front panel control or indicator by using a local variable.
    One thing to watch out for if using this scenario is the dreaded race condition; this can be avoided using a state machine. Check out
    http://www.advmeas.com/goodies/statemachine.html
    for a good example. It is a shame that references behave in this way; it limits thier usefulness.
    Perhaps someo
    ne else will point out a way to utilize them more sucessfully?

  • Deplyment error while using service reference

    Hi All,
    I'm facing similar error where I get the following error when i try to run the application.
    Following error i get when i try to deploy
    Failed to prepare application ''sap.com/asp_all_sites'' for startup. Reason= Clusterwide exception: Failed to start dependent service ''PORTAL:sap.com/com.sap.compatibility50.cache.cache'' of application ''sap.com/asp_all_sites''. Status of dependent component: STATUS_MISSING. Hint: Is the component deployed correctly on the engine?
    I have added this in Sharing references but yet it doesn't help me. I'm using ICacheService in my code.
    This **URGENT** Deplyment error while using service reference i was following but could not arrive at any result
    Please advise
    Thanks
    Srikant

    Hi All
    I'm getting following error whenever I deploy:
    11-dec-2007 18:03:17 /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] WARNING:
    [009]Deployment finished with warning
    Settings
    SDM host : aixlp203
    SDM port : 52618
    URL to deploy : file:/C:/DOCUME1/sdurgama/LOCALS1/Temp/temp24205sap.com~zsp_all_sites.ear
    Result
    => deployed with warning : file:/C:/DOCUME1/sdurgama/LOCALS1/Temp/temp24205sap.com~zsp_all_sites.ear
    Finished with warnings: development component 'zsp_all_sites'/'nl.essent'/'local'/'20071211180226'/'0':Caught exception during application startup from SAP J2EE Engine's deploy service:java.rmi.RemoteException: Error occurred while starting application nl.essent/zsp_all_sites and wait. Reason: Clusterwide exception: server ID 263194450:com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Application sap.com/zsp_all_sites cannot be started. Reason: it has hard reference to resource com.sap.portal.compatibility50.cache with type application, which is not active on the server.     at com.sap.engine.services.deploy.server.ReferenceResolver.processReferenceToApplication(ReferenceResolver.java:580)     at com.sap.engine.services.deploy.server.ReferenceResolver.processMakeReference(ReferenceResolver.java:399)     at com.sap.engine.services.deploy.server.ReferenceResolver.beforeStartingApplication(ReferenceResolver.java:328)     at com.sap.engine.services.deploy.server.application.StartTransaction.beginCommon(StartTransaction.java:162)     at com.sap.engine.services.deploy.server.application.StartTransaction.begin(StartTransaction.java:136)     at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:292)     at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesImpl(ParallelAdapter.java:342)     at com.sap.engine.services.deploy.server.application.ParallelAdapter.runInTheSameThread(ParallelAdapter.java:126)     at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesAndWait(ParallelAdapter.java:245)     at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:4707)     at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:4612)     at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:4585)     at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:1163)     at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:320)     at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:198)     at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:129)     at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)     at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)     at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)     at java.security.AccessController.doPrivileged(AccessController.java:215)     at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)     at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170) (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
    The things I have done so far:
    1. Deployed the custom library and refered in library references. Its the same name as it is Visual Admin
    2. Added Cache API Jar file as external Jar file; added the Sharing reference and also all the steps mentioned in the following link:
    Webdynpro DC and J2EE DC
    3. The DC builds properly but fails at deployment
    My question is there any way that I can manually start the service.
    I find the application in Server >> Services >> Deploy is with invalid kind of symbol (neither blue checked symbol / red cross symbol). How do I restore the application
    I using ICacheServices in my code using Sharing references
    like (ICacheService)WDPortalUtils.getServiceReferences("com.sap.compatibility50.cache.cache"). is this right
    Please let me know
    Thanks in advance
    Srikant

  • Ejb-link is still required when using local references?

    Hi!
    In BEA's link (http://e-docs.bea.com/wls/docs81/ejb/DDreference-ejb-jar.html#1114738) there is the following comment for weblogic-ejb-jar.xml element 'jndi-name':
    "Assigning a JNDI name to a bean is not recommended. Global JNDI names generate heavy multicast traffic during clustered server startup. See Using EJB Links for the better practice."
    Since we're using local references (local-jndi-name) to access our ejbs instead of remote references, is this still recommendation still pertinent?
    Thanks
    Christianne

    It is enough if you add the ejb-ref & ejb-link in the session bean. The
    session will look up relative to java:comp/env
    The following doc shows an example of accessing an ejb from a web app using
    ejb-link.
    http://e-docs.bea.com/wls/docs81/webapp/components.html#146848
    --Sathish
    <Christianne Carvalho> wrote in message news:[email protected]..
    I'm not getting very well how the ejb-link is used. In my case I have
    entity beans that are referenced in session beans.
    In my entity beans I have the following XDoclet tag.
    * @ejb.bean
    * name="ProductDescription"
    * display-name="ProductDescription"
    * jndi-name="ejb/ProductDescription"
    * local-jndi-name="ejb/ProductDescriptionLocal"
    * view-type="local"
    * type="CMP"
    In my session bean I'm currently getting the reference for the entity bean
    using the following code:
    productDescriptionLocalHome=(ProductDescriptionLocalHome)
    lookupLocalHome(ProductDescriptionLocalHome.JNDI_NAME);
    If I add the following XDoclet tag to my session bean, in ejb-jar.xml a
    <ejb-link> is created inside <ejb-local_ref> tag.
    * @ejb.ejb-ref ejb-name="ProductDescription" view-type="local"
    Considering the info above:
    1) In the entity bean, is there any extra tag to define the ejb-link or is
    the ejb-link only defined in the session bean?
    2) Re session bean, only adding the @ejb-ref xdoclet tag is enough for
    using the ejb-link or do I also have to change my lookup? If I do, what do
    I have to search for in the lookup?
    Thanks!

  • How to use Project References?

    Hello,
    I've got a project called SearchScreen and another project called SearchDetail.
    I've opened the SearchDetail properties and linked to the SearchScreen project by ticking the project box.
    My problem now is how to actually reference the SearchScreen component from within the SearchDetail project.
    Do I need to setup a new xml:ns ? I've tried searching the web and adobe docs but no joy. if anyone can give me some pointers, that'd be great.
    Thanks,
    Nick

    Ah yes I know that, CTRL + Spacebar brings it up as well, cool.
    OK, I've just tried typing <SearchSc and pressing CTRL + SpaceBar but nothing happens. It just seems to be looking in the curernt project.
    Here's a basic folder structure of both projects incase I'm doing something wrong...
    [SearchScreen]
    bin-debug
    libs
    src
    css
    renderers
    SearchScreen.mxml
    [SearchDetail]
    bin-debug
    libs
    src
    css
    renderers
    SearchDetail.mxml
    I've opened the properties of [SearchDetail] and linked the [SearchScreen] using Project References.
    With the SearchDetail.mxml file open, I'm trying to insert the SearchScreen.mxml  file as a component.
    Natasha - thank you for your help with all this...
    Maybe I've missed something?
    Cheers,
    Nick

  • Main VI stops when using control references.

    Hi, This is my first question on this forum. I've created an engine simulation VI which uses control references. The main VI has a data acquistion loop and control references. The control references link to another VI that runs an equation loop which continuously calculates engine speed base on data collected in the main VI. The control references work but the main VI data is collected and updated only once when the main VI starts. If I remove the control references from the main VI the daq loop runs fine. Thanks in advance for your help.
    Mike

    Joe,
    Thanks for the response. I do not load the subvi dynamically. I have attached a similar vi to show what I'm trying to accomplish. The DAQ vi reads the input and calculates the power. The power is sent to the "engine momentum sub" vi where the speed, as a function of time, is generated and sent back to the DAQ vi. I created the sub vi to clean up and isolate the DAQ vi from the subvi. I wanted the sub vi to run at a certain speed (by adjusting the wait time)and not affect the DAQ vi. If you input a value of 10 into the DAQ vi and then start it you will see the speed ramp up to 100. While the DAQ vi is running, I need to be able to change the input which would cause the power to change and in turn change the speed. I thought the control r
    eferences were the way to go. In my real DAQ vi, I have many more inputs, all which do not update after the first reading. I considered putting the DAQ functions in another subvi and reading the outputs through control references but that seemed too cumbersome.
    Thanks again,
    Mike
    Attachments:
    DAQ.vi ‏27 KB
    Engine_Momentum_Sub.vi ‏33 KB

Maybe you are looking for