Subclassing objects from Object Library

Hi,
We have an Object Library that is ever-changing.
We have several procedures and function in the Object Lib. that
we subclass in many different forms.
I expect those subclassed proc/functions to inherit the new
changes automatically when I re-compile, but I don't see any new
changes. In fact, the red arrow(subclassed items have red-
arrows to show that they are subclassed) disappear from the
subclassed forms.
I have a source form where I edit/write all the property
classes, visual attributes, procedures, and functions. Once I
write/edit them, then, I move(drag) them to object library. Am
I doing something wrong?

Once you have an object in the OLB and you dragged it to a form
it will be marked with a red arrow as subclassed.
Now if you change the object in the OLB (but keep the previous
object name, you'll get a replace option message) and save the
olb, you need to open the form that has the subclassed object
and re compile it. Make sure the olb is also opened in the forms
developer. This will make the changes appear in the form's
object.
If the arrow disapear then have a look at the subclass property
of the item in question to see what went wrong.

Similar Messages

  • Instantiating Objects from the library from within the movie clip

    Ive been Instantiating Library object from linked external
    action script files and it works fine.
    var PPEbtn1 = new btnPPE;
    but when i try to do it from within the main swfs timeline it
    fails to work and i recieve an error if anyone could please help it
    would be most apreciated. thanks

    You need to get the application domain of the external swf
    and use its getDefinition method. Cast the result to a Class and
    then you can instantiate the symbol.
    Here's some example code where "library" is an externally
    loaded swf:

  • Find Objects from Object operations

    Hi,
    I am getting following exception when I am using the objectoperations, find object method. Could you please let me know why is this happening?
    object search: {Objects.Name=OID User}
    java.lang.NullPointerException
    at Thor.API.Operations.tcObjectOperationsClient.findObjects(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at Thor.API.Base.SecurityInvocationHandler$1.run(Unknown Source)
    at Thor.API.Security.LoginHandler.jbossLoginSession.runAs(Unknown Source)
    at Thor.API.Base.SecurityInvocationHandler.invoke(Unknown Source)
    at $Proxy5.findObjects(Unknown Source)
    I am using following code from my custom client.
              HashMap search = new HashMap();
              search.put("Objects.Name", objectName);
              tcResultSet result = objIntf.findObjects(search);
    I logged into OIM from my java class with the following code
                        tcSignatureMessage moSignature = tcCryptoUtil.sign(id, "PrivateKey");
                        logger.debug("Env = " + env);
                        tcUF = new tcUtilityFactory(env, moSignature);
    Any help is greatly appreciated.
    Thanks

    This is news to me, interesting!
    I've always used the meta data labels and never had a problem and the result set you get returned will have the meta data names too.
    As for the code it should work but are you sure you're getting something back from the findObjects()? You understand that the OIM API employs the same security model as everything else, so if you're not allowed to see the object, then it will not get returned. Try the query with the sys admin account and make sure that there's a check that the result set isn't empty.
    Ian
    Edited by: user809225 on 25-Nov-2008 14:21

  • ID CS3 - Objects from Object Library change unexpectedly, not wanted!

    Hi,
    Our production group has experienced this on several occasions. We create catalogs, so need a number of objects in our object library... boxes, charts, price points, icons, logos... trouble is that sometime after I set them up, they change unexpectedly. No one is updating the objects.
    For instance, our standard box below charts is supposed to have a .5 pt. 50% black rule. At times when we drag it into a document, it comes in as 1 pt. 100% black! Not good! I need to have these objects flawless, for consistency, and just so everyone in the dept. doesn't have to remember sizes, screens, etc.
    We work from three templates (inside pages, back cover, front cover)... is there an overriding object style which I may need to turn off? Or what?
    Thanks for your help, and I'll be happy to answer any questions to help get to the bottom of this!
    Mary Sargeant

    Thanks David. I think you've got it!
    Now here's the next question. I've revised all of our templates, our object styles are all set, as well as paragraph and character styles.
    I have instructed the staff to use the new templates-- however we use some of our old pages, so we will be dragging in items (objects, text) from old layouts onto the new templates. Won't these old styles populate the style panels... and is there a way I can get the new styles to override the old? (Aside from re-naming them all).
    Mary

  • Attaching objects from another library

    I have the following scenario: I have a main.swf, and it
    loads a lib.swf, in which library are some movie clips that I want
    to attach in main.swf. Is it possible? (PS: I do not want to attach
    the symbols inside the loaded lib.swf. What I want is to use
    lib.swf's library in main.swf).
    Thank you.

    I have the following scenario: I have a main.swf, and it
    loads a lib.swf, in which library are some movie clips that I want
    to attach in main.swf. Is it possible? (PS: I do not want to attach
    the symbols inside the loaded lib.swf. What I want is to use
    lib.swf's library in main.swf).
    Thank you.

  • Randomly generating movieClips from the library onto the stage

    Hi
    I am trying to call objects from the library for a collection game.
    Having major issues with the best way to assign the good objects and the bad objects to later update a score.
    Can anyone help me with how i can first assign the movieClips from the library into a good and bad array and then after randomally fill the stage with them.
    Regards
    James

    again and always when testing in the ide, use the trace() function to debug your code:
    public function checkCollisions()
                                  for (var i:int = objects.length - 1; i >= 0; i--)
                                            if (Point.distance(new Point(gamesprite.car.x,gamesprite.car.y),new Point(objects[i].x,objects[i].y)) < pickupDistance)
                                                      if (objects[i].hitTestobjects(gamesprite.car))
                                                                if (objects[i].typestr == "good")
                                                                          score +=  10;
                                                                          trace(score);
                                                                else
                                                                          score -=  4;
                                                                          trace(score);
                                                                if (score < 0)
                                                                          score = 0;
                                                                scoreDisplay.text = String(score);
    trace(scoreDisplay.text);
                                                                removeChild(objects[i]);
                                                                objects.splice(i,1);
    if you don't see any trace() output, you can conclude that part of your code is not executing.  if see trace output, you can don't see the same value in scoreDisplay, you can conclude you're not seeing your scoreDisplay textfield.

  • How to load an object from library by clicking on a button?

    How can we load and unload an object ( like a picture ) from our library by just clicking on a button and then unload it by clicking on an other button using as2.
    Thanks for the help

    assign the button an instance name (eg, btn) and assign the library object a linkage id - right click the library symbol>click properties>tick export for actionscript>assign a linkage id (eg, mc_id) and click ok.  then use:
    var tl:MovieClip=this;
    btn.onRelease=function(){
    tl.attachMovie("mc_id","mc",tl.getNextHighestDepth());
    // to remove, mc.removeMovieClip();

  • Hide a library object from all but selected users

    Perhaps I just missed this in the documentation, but is there a way to hide
    a library object from all but selected users who will have access to the
    docs in that library. I know I can uncheck access rights and assign them
    only for selected users who can access the documents, but I would like to
    hide the ibrary object as well, best that only those who have access even
    know the library exisits in this case. Thanks.

    PatM wrote:
    > Thanks to all for your comments and confirmation--I think this is worthy of
    > an enhancement request, and I will put one in. Anyone else who thinks it is
    > a good idea, your support is appreciated. In the case of a library for
    > something like the human resource or finance department, I think it is
    > pretty important, as one cannot rely on an individual user to set the rights
    > correctly for just those documents in the real world of the work-a-day rush.
    How do you give this support? This is a real issue with us as we
    generate information that affects the price and "tradeability" of public
    companies.
    If it's only moral support -- you got it.
    If you have to "vote" on these issues -- how?
    > "Dave Parkes" <[email protected]> wrote in message
    > news:[email protected]..
    >> If there is, I don't know of it. Removing all the rights is as far as you
    >> can go I think.
    >>
    >> I'd probably still just use document rights within a single library. If
    >> these people who can access this library don't have their default set to
    >> it, then things will end up in the wrong place anyway. Not a fan of
    >> multiple active libraries, docs are inevitably in the wrong one <g>
    >>
    >> Cheers Dave
    >>
    >>
    >> --
    >> Dave Parkes [NSCS]
    >> Occasionally resident at http://support-forums.novell.com/
    >
    >
    Will R
    PMC Consulting

  • How can I call a COM object from a PL/SQL CODE

    Hi everyone,
    Does anyone know how to call a COM object from a stored procedure in oracle.
    a sample of code
    please help,
    Hilaire

    Are you familiar with external procedures? Basically, you can expose functions exported by a shared library (i.e. a DLL on Windows) to the Oracle database. My assumption is that you'd probably need to write a wrapper DLL around the COM object, since I believe you can only pass fundamental data types back and forth (i.e. no object references). You'd expose the method(s) of that wrapper DLL to the database via external procedures.
    Justin
    Distributed Database Consulting, Inc.
    www.ddbcinc.com/askDDBC

  • Error  while migrating object from PI 7.0 to pi 7.1

    Hi All,
    I am migrating IR and ID object from PI 7.0  to PI 7.1 using file system.
    IR oject got imported sucessfully in ESR but ID after importing when i tried to activate the objects in change list i am facing the following error. Does anyone have any idea about the error.
    Internal error while checking object Communication Channel: | XIXREF_C | File_FileXref_Sender_XrefFlat_CC; see details++
    Attempt to access the 1 requested objects on 1 failed
    Detailed information:
    com.sap.aii.ib.core.roa.RoaObjectAccessException:
    Attempt to read object Adapter Metadata File | http://sap.com/xi/XI/System,
    type AdapterMetaData from application REPOSITORY on++
    system REPOSITORY failed. Object does not exist. Detailed
    informatio n: Software component version with key ID:
    b38bcd00e47111d7afacde420a1145a5 not found (ROA_MOA_NOTCOMPLETED)
    Thanks
    Kasturika Phukan

    Hi Kasturika,
    Check whether the metadata for the particular adapter in the BASIS SWCV exists or not.
    I hope you are refering to the following guide while transferring from PI 7.0 to PI 7.1
    [Move Scenarios from 7.0 to 7.1|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/90baf3dd-dbf9-2b10-47aa-ac5f56bb5030]
    Regards,
    Gautam Purohit

  • Error while Replicating Objects from R/3 to CRM

    Hi,
    While replicating objects from R/3 to CRM (Tcode :R3AS), the status of the object is still running. When I checked in Outbound queue (Tcode:SMQ1) the status is 'SYSFAIL', when I double clicked it says "Password logon no longer possible - too many attempts". So what is the solution to it...
    I am working on CRM 5.0
    Regards,
    vimal

    Dear Vimal,
    Sorry not sure then...
    Sometimes the RFC connection is refused and use to give that particular error messgae due to:
    The old RFC library having version 6.20 automatically converted the
    password into uppercase with a size limit of 8 characters before sending it to the SAP system.
    The RFC library version 6.40 does not perform this conversion any more, because mixed case passwords upto 40 characters are now supported by SAP Basis version 7.00 (eg. NW2004s) and above. 
    So need to use upper case passwords when connecting to an SAP system having version less than 7.00. 
    But this is not valid in this scenario.
    Thanks,
    Atin

  • What are the precautions to be taken to move the objects from BI Dev to Pro

    What are the precautions to be taken to move the objects from BI Dev to BI Production.
    how to move the objects from BI  Dev to BI production.
    Thanks
    sapsdnhelp

    Hi,
    Please check out this PDF
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50b1d20e-c1e8-2c10-d9b9-d48eb3a83d89?QuickLink=index&overridelayout=true
    Hope it helps
    Regards,
    AL

  • How to Use AccessibleObjectFromWindow API in VBA to Get Excel Application Object from Excel Instance Window Handle

    I need to get the Excel.application object from a window handle using AccessibleObjectFromWindow. I can't seem to make the code work. First, I successfully search for the XLMAIN windows. Then, when I get a handle, I execute the AccessibleObjectFromWindow
    function. It seems to return a value of -2147467262 in all cases. Therefore, I believe that it is returning an error value. I can't figure out how to determine the meaning of this value.
    If it is an error value, I believe that one or more arguments are in error. My best guess at present is that the GUID argument is incorrect. I have tried two GUID values: {00020400-0000-0000-C000-000000000046} and {90140000-0016-0409-0000-0000000FF1CE}.
    I have seen both used in conjunction with OBJID_NATIVEOM. Neither one seems to work. I really would prefer not to use the second one as it has an Excel major and minor version number. I would hate to have to change this code, if a new minor version appeared.
    The attached code has been commented to show which parts have been shown to work and which not. I'm at my wits end and really need help.
    Thanks
    'This module is located in Access 2010, but this is an Excel question.
    Option Compare Database
    Option Explicit
    ' Module-Level Declarations
    'The GetDesktopWindow function and FindWindowEx function work just fine.
    Public Declare Function GetDesktopWindow Lib "user32" () As Long
    Public Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" _
    (ByVal hWnd1 As Long, _
    ByVal hWnd2 As Long, _
    ByVal lpsz1 As String, _
    ByVal lpsz2 As String) _
    As Long
    'I'm not getting the expected output from this function (see below)
    Private Declare Function AccessibleObjectFromWindow& Lib "oleacc.dll" _
    (ByVal hwnd&, _
    ByVal dwId&, _
    riid As GUID, _
    xlwb As Object)
    Type GUID
    lData1 As Long
    iData2 As Integer
    iData3 As Integer
    aBData4(0 To 7) As Byte
    End Type
    Function ExcelInstances() As Long
    ' Procedure-Level Declarations
    ' Value of OBJID_NATIVEOM verified by checking list of Windows API constants _
    on this site: http://www.lw-tech.com/q1/base.htm
    Const OBJID_NATIVEOM = &HFFFFFFF0
    Dim hWndDesk As Long 'Desktop window
    Dim hWndXL As Long 'Child window
    Dim objExcelApp As Object 'Final result wanted: Excel application object
    'Following variable (xlapp) to be set by AccessibleObjectFromWindow function
    Dim xlapp As Object
    Dim IDispatch As GUID 'GUID used in call to AccessibleObjectFrom Window function
    'Set up GUID to be used for all instances of Excel that are found
    Dim tmp1 As Variant 'Return value from AccessibleObjectFromWindow
    ' Executable Statements
    SetIDispatch IDispatch
    IDispatch = IDispatch
    'Get a handle to the desktop
    hWndDesk = GetDesktopWindow 'This seems to work
    Do
    'Get the next Excel window
    'The following statement seems to work. We are finding and counting _
    correctly all the instances of Excel. hWndXL is non-zero for each _
    instance of Excel
    hWndXL = FindWindowEx(GetDesktopWindow, hWndXL, "XLMAIN", vbNullString)
    'If we got one, increment the count
    If hWndXL > 0 Then
    'This works. We correctly count all _
    instances of Excel
    ExcelInstances = ExcelInstances + 1
    'Here is the problem. The following statement executes and returns a value of _
    -2147467262. xlapp, which is passed by reference to AccessibleObjectFromWindow, _
    is set to nothing. It should be set to the object for Excel.application. _
    I believe that this value is not an object. I tried to reference tmp1. in the _
    immediate window. There was no Intellisense.
    'I think that the function in returning an error value, but I can't figure _
    out what it is. I believe that AccessibleObjectFromWindow returns error _
    values, but I don't know where to find their values so I can interpret the _
    function's results.
    'As best I can tell, the hWndXL parameter is correct. It is the handle for _
    an instance of Excel. OBJID_NATIVEOM is set correctly (see constant declaration _
    above). xlapp is passed by reference as a non-initialized object variable, which _
    will be set by AccessiblObjectFromWindow. IDispatch may be the problem. It is set _
    as shown below in the procedure SetIDispatch(ByRef ID As GUID). This procedure _
    appears to work. I can see that IDispatch is set as I intended and correctly _
    passed to AccessibleObjectFromWindow.
    tmp1 = AccessibleObjectFromWindow(hWndXL, OBJID_NATIVEOM, IDispatch, xlapp)
    'Need to write code to test tmp1 for error. If none, then set objExcelApp = _
    object. Also, I exect xlapp to be set to Excel.application
    End If
    'Loop until we've found them all
    Loop Until hWndXL = 0
    End Function
    Private Sub SetIDispatch(ByRef ID As GUID)
    'Defines the IDispatch variable. The interface _
    ID is {90140000-0016-0409-0000-0000000FF1CE}.
    'NOT USING {00020400-0000-0000-C000-000000000046}, _
    which could be the problem
    '9 is release version - first version shipped (initial release)
    '0 is release type - retail/oem
    '14 is major version
    '0000 is minor version
    '0016 is product ID - MS Excel 2010
    '0409 is language identifier - English
    '0 is x86 or x64 - this is x86
    '000 reserved
    '0 is debug/ship
    '000000FF1CE is office family ID
    With ID
    .lData1 = &H90140000
    .iData2 = &H16
    .iData3 = &H409
    .aBData4(0) = &H0
    .aBData4(1) = &H0
    .aBData4(2) = &H0
    .aBData4(3) = &H0
    .aBData4(4) = &H0
    .aBData4(5) = &HF
    .aBData4(6) = &HF1
    .aBData4(7) = &HCE
    End With
    End Sub
    DaveInCalabasas

    I don't think you can return a reference to Excel's main window like that as you are attempting to do.
    Ref:
    http://msdn.microsoft.com/en-us/library/windows/desktop/dd317978(v=vs.85).aspx 
    It's relatively straightforward to return any workbook's window in any given instance, and in turn it's parent Excel app. Try the following and adapt as required (and include error handling) -
    Option Explicit
    Private Declare Function FindWindowEx Lib "User32" Alias "FindWindowExA" _
    (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, _
    ByVal lpsz2 As String) As Long
    Private Declare Function IIDFromString Lib "ole32" _
    (ByVal lpsz As Long, ByRef lpiid As GUID) As Long
    Private Declare Function AccessibleObjectFromWindow Lib "oleacc" _
    (ByVal hWnd As Long, ByVal dwId As Long, ByRef riid As GUID, _
    ByRef ppvObject As Object) As Long
    Private Type GUID
    Data1 As Long
    Data2 As Integer
    Data3 As Integer
    Data4(7) As Byte
    End Type
    Private Const S_OK As Long = &H0
    Private Const IID_IDispatch As String = "{00020400-0000-0000-C000-000000000046}"
    Private Const OBJID_NATIVEOM As Long = &HFFFFFFF0
    Sub test()
    Dim i As Long
    Dim hWinXL As Long
    Dim xlApp As Object ' Excel.Application
    Dim wb As Object ' Excel.Workbook
    hWinXL = FindWindowEx(0&, 0&, "XLMAIN", vbNullString)
    While hWinXL > 0
    i = i + 1
    Debug.Print "Instance_" & i; hWinXL
    If GetXLapp(hWinXL, xlApp) Then
    For Each wb In xlApp.Workbooks
    Debug.Print , wb.Name
    Next
    End If
    hWinXL = FindWindowEx(0, hWinXL, "XLMAIN", vbNullString)
    Wend
    End Sub
    'Function GetXLapp(hWinXL As Long, xlApp As Excel.Application) As Boolean
    Function GetXLapp(hWinXL As Long, xlApp As Object) As Boolean
    Dim hWinDesk As Long, hWin7 As Long
    Dim obj As Object
    Dim iid As GUID
    Call IIDFromString(StrPtr(IID_IDispatch), iid)
    hWinDesk = FindWindowEx(hWinXL, 0&, "XLDESK", vbNullString)
    hWin7 = FindWindowEx(hWinDesk, 0&, "EXCEL7", vbNullString)
    If AccessibleObjectFromWindow(hWin7, OBJID_NATIVEOM, iid, obj) = S_OK Then
    Set xlApp = obj.Application
    GetXLapp = True
    End If
    End Function
    Note as written if an instance does not have any loaded workbooks a reference will not be returned (though a workbook can be added using DDE, but convoluted!)
    FWIW there are two other very different approaches to grab all running Excel instances though something along the lines of the above is simplest.
    Peter Thornton

  • UnsupportedOperationException Error while removing object from List

    Hi,
    I need to remove a set of objects from List if it contains similar objects as the other one.
    Follwing is the code snippet of the above scenario...
    List selectedPaxList = new ArrayList();
    TreeSet seatAssignedPaxlist= new TreeSet();
    selectedPaxList.add("1");
    selectedPaxList.add("2");
    selectedPaxList.add("3");
    seatAssignedPaxlist.add("1");
    seatAssignedPaxlist.add("2");
    if(selectedPaxList.containsAll(seatAssignedPaxlist))
    selectedPaxList.removeAll(seatAssignedPaxlist);
    If i do this in java program it executes fine without any error.But if I do the same in JSP I am getting the following error......
    java.lang.UnsupportedOperationException
    at java.util.AbstractList.remove(AbstractList.java:167)
    at java.util.AbstractList$Itr.remove(AbstractList.java:432)
    at java.util.AbstractCollection.removeAll(AbstractCollection.java:351)
    Plz... help me to resolve the issue

    java.lang.UnsupportedOperationException
    at
    java.util.AbstractList.remove(AbstractList.java:167)
    at
    java.util.AbstractList$Itr.remove(AbstractList.java:43
    2)
    at
    java.util.AbstractCollection.removeAll(AbstractCollect
    ion.java:351)
    That stack trace looks wrong to me.
    ArrayList overrides the remove method, so it
    shouldn't be using the method in AbstractList. That's what I thought, too. There is either something missing or it's not an ArrayList. In fact the javadoc of AbstractList.remove sais:
    "This implementation always throws an UnsupportedOperationException."
    So it really looks like another subclass is used.
    Also
    the object it is trying to remove is a list (from
    your exmaple it should be a String)
    I could be wrong.These are just the code references not the parameters, I think.
    -Puce

  • Accessing stage objects from other objects

    I have drawn colored rods which I have placed in the library and have put one of each on the stage with instance names like
    blueRod_mc, etc.
    I place them around with time-line code like
    blueRod_mc.x = 300.0;
    I have now created an Actionscript class called Problem.
    I build a new object from Problem which I have called Riddle.
    But when I put blueRod_mc.x = 300.0 in a method (of Problem),
    I get the message that blueRod is not accessible.
    So I tried
    stage.blueRod_mc.x = 300.0;
    That did not work either.
    What does work? How can I modify properties of stage objects like blueRod from
    within an AC3 object like Riddle?

    public class Problem {
      private var number1:String ="";
      private var number2:String ="";
      private var rigor:Number = 1;
         // rigor: -1 is 3 steps, -2 is 4-5 steps, -3 is 6-7 steps
      private var step:Number = 1;
      private var numSteps:Number = 3;
      private var solving:Number = 0;
      private var true1Length:Number;
      private var true2Length:Number;
      private var tuple = new Array(6);
      public function Problem():void  {
       // constructor code
       var i:Number;
       var j:Number;
       for (i = 0; i < 6; i++) {
                     tuple[i] = new Array(3+5);
                     for (j=0; j < 3; j++) {
                       tuple[i][j] = new Array(8+7);
       buildIt();
       planIt();
    Just insert bolded code where you need to.

Maybe you are looking for

  • Why no sound output?

    This will seem really dumb but I am getting no sound today, on the same project as yesterday. I am playing an Akai EWI breath controller and can see in the transport bar the 'NO IN' change each time I play a note. But the bottom 'NO OUT' stays that w

  • TS1368 download large videos in pieces?

    so when ever i try downloading, hunger games, it is about 2 gigs.  and i let my computer stay on over night. my isp kills my connection because i am using it too heavily . but that not the problem. the problem comes then i get some error and itunes a

  • Solaris 8 Download Install - Install CD Question

    Hello, I am new to Solaris. I do have experience with BSD/LINUX/SCO installations. I too have downloaded the zipped images from Sun. Actually 4 as I downloaded the install, v1, v2, docs and the additional pgm zipped image file. I checked each CD afte

  • Integrating Lightroom with Adobe Bridge

    Hi I understood that Lightroom integrated smoothly with Photoshop CS3. However, I cannot find a way of opening a photo in Lightroom direct from Bridge. I am sure there must be a way, but I can't find it. Can anyone help please?

  • Oracle RAC: SAPDBHOST on DEFAULT profile

    Hi all. We are testing a RAC solution in a Distribuited Architecture: Central Instance on Windows Server 2003, DB on two Linux (RedHat5.2) nodes. The problem is STMS configuration. Apparently, we need to set the parameter SAPDBHOST of the default pro