[CS3] Extending the Document Object Results an Error

I'm trying to extend the Document object:
Document.prototype.myOwnMethod = function() {
/* some code here */
but I'm getting a Document is undefined error in Illustrator CS3
I tried extending the Application object:
Application.prototype.myOwnMethod = function() {
but I don't get any error.
How can I resolve this?
Thanks in advance....
-- Jeff

very old post, but not answered.
PathItem.prototype.nick ="pfad"
will work if a single Path is initialized before:
var p =activeDoc.selection.. or something
,otherwise not
to solve this i create my own obj.:
function Pfad(obj){
     this.nick = "bla";
     this.ai = obj; // to store the original Obj
var p = new Pfad(pathItem);
//then :
p.nick;
p.ai.fillColor;
my question is: is this the best solution or could it be done better?
thank you
Chris

Similar Messages

  • Receiving "The HR object is invalid" error in OSB

    Our HR person is encountering "The HR object is invalid" error after entering employee name while navigating to the non-flex form in OSB. She was unable to datetrack back to 4/10/10 and enter a change to the employee's enrollment, but was able to enter it using sysdate (5/14/10 at the time of entry). She really needs to enter it on 4/10 however, since the employee had a promotion to director level at that time and benefit eligibility changed as of that date. After receiving the error, the enrollment data does not display. Only option is to back out of the form. Any help would be appreciated.

    Hi,
    What is the applcation release?
    Please see if these documents help.
    Note: 335807.1 - 'HR Object Invalid' Error When Creating Enrollment In Non Flex Enrollment Form
    Note: 259335.1 - Saving Enrollment Changes Results in Error APP-PAY-07155
    Note: 338662.1 - APP-PAY-7155: The HR Object Is Invalid Error When Backing Out Of A Life Event
    Note: 462780.1 - Error In Updating FSA Amount Within Open Enrollment Period
    Thanks,
    Hussein

  • VBScript : the Document object help

    Hello everybody
    I am unable run following script using the current browsers.
    please help
    <script language="vbscript" type="text/vbscript">
    var1 = 10
    var2 = 20
    Sum = var1 + var2
    document.write("The Sum of two numbers"&_
    "var1 and var2 is " & Sum)
    </script>
    the document object is giving no results.

    Not a good script.  You need to learn how to use HTML.  Running a script like that wil lusually not work.
    Start here: http://www.w3schools.com/
    <script language="vbscript" type="text/vbscript">
    Sub window_onload()
    var1 = 10
    var2 = 20
    Sum = var1 + var2
    document.write "The Sum of two numbers var1 and var2 is " & Sum
    End Sub
    </script>
    ¯\_(ツ)_/¯

  • IF_IXML : How can i add encoding with value UTF-8 to the document object??

    Hi
    i want to create a xml file with the following content:
    <?xml version="1.0" encoding="UTF-8"?>
    <OpenSearchDescription xmlns="http://...."> 
    </OpenSearchDescription>
    i did this with the if_ixml interface and rendered the content in a file 'D:\usr\sap\IFD\DVEBMGS01\log\TEST_out.xml
    <?xml version="1.0"?>
    <OpenSearchDescription xmlns="http://...."> 
    </OpenSearchDescription>
    BUT the document attribut(?) encoding="UTF-8"?> is missing!
    How can i add encoding with value UTF-8 to the document object?? it should look like:
    <?xml version="1.0" encoding="UTF-8"?>
    *here is my coding.
    TYPE-POOLS: ixml.
    CLASS cl_ixml DEFINITION LOAD.
    DATA: lo_ixml           TYPE REF TO if_ixml,
          lo_streamfactory  TYPE REF TO if_ixml_stream_factory,
          lo_document       TYPE REF TO if_ixml_document,
          lo_parent         TYPE REF TO if_ixml_element,
          lo_ostream        TYPE REF TO if_ixml_ostream,
          lo_renderer       TYPE REF TO if_ixml_renderer,
         lv_rc           TYPE i.
    lo_ixml = cl_ixml=>create( ).
    lo_streamfactory = lo_ixml->create_stream_factory( ).
    lo_document = lo_ixml->create_document( ).
    lo_parent = lo_document->create_simple_element( name   = 'OpenSearchDescription'  "root node
                                                    parent = lo_document ).
    lo_parent->set_attribute_ns( name   =  'xmlns'
                                 value  = 'http://....' ).
    *rausrendern in file
    lo_ostream = lo_streamfactory->create_ostream_uri( system_id = 'D:\usr\sap\IFD\DVEBMGS01\log\TEST_out.xml' ).
    lo_renderer = lo_ixml->create_renderer( ostream  = lo_ostream
                                            document = lo_document ).
    lv_rc = lo_renderer->render( ).
    Thanks for help
    Britta

    Use the following code:
    set an document encoding
      l_encoding = l_ixml->create_encoding( character_set = 'UTF-8'
                                            byte_order = if_ixml_encoding=>co_none ).
      l_success  = l_ostream->set_encoding( encoding = l_encoding ).
    create a xml renderer
      l_renderer = l_ixml->create_renderer( document = l_doc ostream  = l_ostream ).

  • Using LOV with Validation on the Numeric Fields results in Error

    Dear JHeadstart Team,
    During my work with lov I encountered another problem. I defined a lov and attached the lov to a numeric field and check the LOV for validation. Now when I use LOV using the LOV button it works fine but when I enter some numbers and then press tab the LOV was not shown correctly and resulted in the following errors and the worst thing is that you can not navigate to any other pages and all try to navigate to other pages results in errors too. When we put the same LOV on a string field (which is not desirable for us) it worked fine.
    It seems to me like a bug. Am I right? Is ther any solution or workaround for this problem?
    Thanks in advance,
    Navid
    16:31:29 DEBUG (LovItemBean) -Cleared value of item HrTrainingCourseSchedulesTitle
    16:31:29 DEBUG (LovItemBean) -Cleared value binding #{bindings.HrTrainingCourseSchedulesTitle.inputValue} of item HrTrainingCourseSchedulesTitle
    16:31:29 ERROR (ApplyRequestValuesPhase) -java.lang.ClassCastException: java.lang.Long
    javax.faces.el.EvaluationException: java.lang.ClassCastException: java.lang.Long
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:130)
         at oracle.adf.view.faces.component.UIXComponentBase.__broadcast(UIXComponentBase.java:1079)
         at oracle.adf.view.faces.component.UIXEditableValue.broadcast(UIXEditableValue.java:247)
         at oracle.adf.view.faces.component.UIXSelectInput.broadcast(UIXSelectInput.java:215)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:249)
         at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:307)
         at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:79)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at com.pooya.controller.jsf.PooyaAuthenticationFilter.doFilter(PooyaAuthenticationFilter.java:256)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:332)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:627)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.ClassCastException: java.lang.Long
         at oracle.jheadstart.controller.jsf.bean.LovItemBean.validateWithLov(LovItemBean.java:101)
         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:585)
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
         ... 31 more

    Hi Navid,
    We ran into the same bug and have the next workaround for it:
    We extended the JHeadstart class 'LovItemBean' and we have overridden the method 'validateWithLov(...)' with:
      public void validateWithLov(ValueChangeEvent valueChangeEvent)
        Object newValue = valueChangeEvent.getNewValue();
        if(newValue != null && !(newValue instanceof String))
          newValue = newValue.toString();
          ValueChangeEvent newEvent = new ValueChangeEvent(valueChangeEvent.getComponent(), valueChangeEvent.getOldValue(), newValue);
          newEvent.setPhaseId(valueChangeEvent.getPhaseId());
          super.validateWithLov(newEvent);
        else
          super.validateWithLov(valueChangeEvent);
      }Next step is to use a custom template in your JHeaedstart Application Structure file for 'LOV_ITEM_BEAN'. In this custom template you should use your own class as 'managed-bean-class' instead of the default JHeadstart one.
    Now you can safely generate LOV with validation of number fields.
    Maybe something the JHeadstart can pcik up in the next release of JHeadstart :-)
    Hope this helps.
    Pascal

  • Extending the Search Object of a BOL Entity  with custom fields

    Hi All,
    I have to enhance the structure of the BOL search object 'BuilHeaderSearch' with custom fields!.
    i went to the transaction genil_bol_browser and find out the structure of the object as, 'CRMST_HEADER_SEARCH_BUIL'
    how can i insert custom fields into this structure, so that i can display these custom fields at the Front end ( Web IC ).
    Thanks in advance,
    sudeep v d.

    Hi Sudeep!
    First of all it should be mentioned that: it is NOT possible to change list of <b>SEARCH</b> criteria in IC!
    So, in other words, you can search BP ONLY by params listed in native structure 'CRMST_HEADER_SEARCH_BUIL'.
    BUT: You can <b>FILTER</b> search results!
    For example: you get the list of BP with MC_NAME1 (lastname) search criteria (only by SAP class!)and THEN you can filter (delete from list) by YOUR criteria (in your class!).
    Is it clear?
    So how to add your own criteria?
    1. Transaction GENIL_MODEL_BROWSER - Model Browser forGen.IL Applications
    2. Component Set - ALL
    3. Search Objects -> BuilHeaderSearch -> Attribute Structure ->CRMST_HEADER_SEARCH_BUIL (Dbl Click)
    4. Append Structure (or F5)
    5. Name the new sub-structure and provide all new fields
    So now you can use this new fields in IC Z-classes.
    I had the same task and nobody in SDN could help - so I had bought new SAP_book: <a href="http://www.sappress.com/product.cfm?account=&product=H1909">mySAP CRM Interaction Center</a> because in Contents there were:
    <b>"Extending the Business Partner Search in IC WebClient by New Search Fields"</b>.
    So in fact it is not truth: it is not possible to <i>extend search</i>. You can only filter results!
    <b>BUT</b>!
    It is not the end of my post! I hope that SAP people will see this post. I found a BUG in SAP classes and methods: it is not possible to navigate to first position in collection wraper!
    exactly:
    lr_current ?= entity_col->if_bol_bo_col~get_first( ).
    doesn't work.
    So position of cursor puts on second record in structure!
    In other words it is not possible to filter the first record in search result! And so new search is not efficient
    I think that is is bug and wait for comments of SAP.
    <b>Reward points if it helps.</b>
    Regards,
    Alexander

  • Getting the document object cross-window

    Hello,
    I've been working on this application in which I have 2 windows.
    Now the main window needs to make a call to the sub window sending a single function.
    I have the following code to create the window:
    var options = new air.NativeWindowInitOptions();
    options.systemChrome = "none";
    options.type = "lightweight";
    options.resizable = true;
    options.maximizable = true;
    var winwid = 600;
    var winhei = 500;
    var mainWidowPos = new Array();
    var mainWindowPos = getTopLeft(winwid,winhei); //This function is to calculate the center of the screen
    var windowBounds = new air.Rectangle(mainWindowPos[0],mainWindowPos[1],winwid,winhei);
    newHTMLLoader = air.HTMLLoader.createRootWindow(true, options, true, windowBounds);
    newHTMLLoader.load(new air.URLRequest(url));
    Now that that window is created I need to make a call from window 1 to window 2 (the newly created one, the title of the window is SCR2_BILL).
    Maybe this table can clear it up:
    Window 1 (main)
    Window 2 (created by code)
    This code is in window 1 and is being called:
    for (var i = 0; i < air.NativeApplication.nativeApplication.openedWindows.length; i++) {
         if(air.NativeApplication.nativeApplication.openedWindows[i].title == "SCR2_BILL") {
              air.NativeApplication.nativeApplication.openedWindows[i].window.htmlLoader.stage.nativeWindow.hideBill();
    function hideBill() {
         document.getElementById('bill').style.display = 'none';
    The link does not exist because air.NativeApplication.nativeApplication.openedWindows[i].window.htmlLoader.stage.nativeWin dow is not an object. Does anyone know what the object is after openedWindows[i] which I can use to call functions from the document?
    Thanks in advance,
    Roelof
    PS: the code window 2 is executing is working, it has been tested.

    Hi Scott,
    Use ProcessMonitor from Microsoft and look in the logs to see if there are any Access Denied errors. Also look in the IIS logs and Event viewer to see if anything there is being logged.
    Anti-virus software logs is another place to look....
    Pop up blocker in the Browser maybe or possibly adding the new server name to the trusted list.... Domain permissions possibly...
    If you browse the App from the Server does that work?
    Don

  • Not possible to reverse the document in financial accounting Error

    Hi All
    We are getting invoice Data from Client
    through  ACC_EMPLOYEE_PAY02  
    Document Like
    31 45699(vendor )    2356.00
    31 45688 (vendor)    1245.00
    31 45677 (vendor)    1000.00
    31 45666 (vendor)    2000.00
    40  Accur(Clearing)       6601.00
    In this list some of vendors i did payment Run.
    I need to reverse the 1 vendor open Item.
    It is showing open item but i am unable to reverse this document.
    i tried to FB03 but it is showing Below Error
    Not possible to reverse the document in financial accounting
    Message no. F5673
    Diagnosis
    Document '1900000003' in company code '1164' should be reversed. However,
    this document was not posted in the Financial Accounting module, HRPAY is, rather, of type ''.
    System Response
    Documents which were not originally posted in Financial Accounting also cannot be reversed in Financial Accounting.
    Procedure
    Reverse the original transaction. 
    You can display the original document from the FI document via 'Environment' -> 'Original doc.'.
    I tried to trace Original Document.
    trhough Environment -> Original Doc.
    ERROR is
    Payroll Posting Document 000000091 does not exist
    How to Reverse the Open Item.
    raju.

    Hi,
    SAP doesn't allow you to reverse a document in FI if it was created subsequently from another module (in your case HR).
    Why don't you use F-44 transaction code to manually clear the open vendor line item and offset it against the same clearing account?
    Regards

  • Get inside the document search result page

    In the document libary, there is a microsoft word document which has more than 100 pages. The user will search for  a specific sentence in one of the section inside the document using SharePoint 2013 search.
    The user will get the search document link in the search result page.
    Is there any option in SharePoint itself or using Third Party Plug in , when the user clicks on the search result link, the document will open the exact page where the search keyword is present ?

    I think it is not possible now.
    http://answers.microsoft.com/en-us/office/forum/officeonline-word_online/pass-search-keywords-through-querystring-to-office/b4d1fb39-1043-406b-92ec-b49c83e6911e

  • Extending the BC4J objects which has private methods

    Hi,
    I faced a situation which requires to extended the AM and CO of a page which has some private methods.
    As we cant inherit the which private methods of a class I thought of using the same code in the extended class.
    As it is not feasible solution n not upgrade safe we have not taken up the development..
    Any one faced the same issue and any workaround on the same will be appreciated..
    Thanks,
    Nagu

    Copy the private method code into your extended objects. Then it'll use the private methods in your extended code....

  • Extending the Federated Search Results

    Federated Search
    I am looking on how to extend the Search Results in the Federated Search. Right now there is Rank Application icon, title and summary. The search service I have has 4 more columns. What would be the easiest way to extend the number of columns for the search datasource I have.
    Anthony Chestnut

    Prabhu,
    There's no specific docs on this page, but you should be able to customize the federated search results page in the same way as any other portal page. Look for the general documentation on UI customization. You'll probably need to look over the code for the federated search page to see how the search is invoked. The Activityspace you want to customize is called "NetworkSearchAS", and the code is in com.plumtree.portalpages.browsing.search.network (in the portalpages DLL or jar).
    Craig

  • Installing 9iAS on Orcale9i - Followed the document published in OTN -Error in SQLLDR

    Hello
    I followed the document published in http://portalcenter.oracle.com that describes installing Orcle9iAS 10222 on Oracle9i database.
    However, in the last step (just before installing the patch 30982), I am supposed to use Portal configuration Assistant to create PORTAL30 and other accounts. (Win2K)
    The PCA stops with the error. INSTALL.LOG gives the following error:
    STEP 13 : Installing NLS Messages
    INSTALL_ACTION:loadNLS() : ..\..\bin\sqlldr userid='portal30/portal30@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=tmurari-lap)(PORT=1521)))(CONNECT_DATA=(SID=orcl)))' control=..\..\portal30\admin\plsql\wwc\wwcus.ctl
    SQL*Loader-704: Internal error: ulconnect: OCIServerAttach [0]
    ORA-12532: TNS:invalid argument
    However, the previous steps (which uses SQLPLUS (DESCRIPTION=..._ ) works fine. Looks SQLLDR.exe 0ra9ias/bin directory does not understand this type of database descriptor address.
    Is there a document which will help me in installing the remaining steps manually? Is there a fix for this without the manual steps.
    Please help.
    Thanks
    Tam.

    I had a net configuration error in my tnsnames.ora and sqlnet.ora. I fixed it and I was able to install Oracle9iAS 10222 in Oracle9i 9011 database. everything works fine, however, I am having some trouble installing online help.
    The release notes in metalink describes a few steps in getting it installed, however, I cannot the very first step working.

  • The last Button results outOfMemory error

    If I drop a view object which is created on a many rows table as form(read-only or input) and as navagation buttons on a jsp ,the last button always results a outOfMemory error .How can I solve it?
    Thank u very much.

    Check out Steve's article:
    http://radio.weblogs.com/0118231/stories/2003/03/26/viewObjectTuningTipsForBestPerformance.html
    Thanks.
    Sung

  • Extending Document Object in CS5

    I would like to extend the Document object (or any other, for that matter) as described in this thread:
         http://forums.adobe.com/message/1103689#1103689
    I tried extending Application with myOwnMethod as described, but even that doesn't work.  When I "alert" the extended function, it prints the implementation code of the procedure!  Here's the code:
    Application.prototype.myOwnMethod = function() {
        return "Test String proto"
        alert(app.myOwnMethod)
    When run, the alert box contains:
        function() {
            return "Test String proto"
    What do I do to extend the Document or Application objects?

    Assuming I'm willing to take the risk, how can I extend the Document object?  It doesn't work like the Application object.  I tried all different types of prototyping, but nothing seems to do the trick.  This thread contains an explanation why you (Harbs) don't like to extend Object.  It also contains this example
         // make global"Pages" object available
          app.activeDocument.pages;
    that would indicate you need to somehow make the "Pages" object available.  I tried adding
          app.activeDocument
    to make Document available, but it doesn't work.  It also doesn't work with Symbol.  It does work with Application.  What's the difference?  How do I get it working in these other cases?

  • Error "Licensing for this product has stopped working" when starting Adobe Photoshop CS3 Extended- XP Pro AMD; 2GB RAM

    I have exhausted all known options thus far.
    I started the Flexnet Licensing Service and restarted the system but the message continues to come up when lanching PS CS3 extended
    After restarting computer the Flexnet  Licensing Service stops again and goes into Manual mode. This also happens after a few minutes without restarting.
    I also downloaded the Flexnet Licensing Recovery Kit from Adobe Support but the file stops after saying  "please wait for a few moments.. ?"
    I changed the setting as discribed for the Flexnt folder but the message continues to come up when PS Extended CS3 is launced.
    http://kb2.adobe.com/cps/401/kb401528.html
    What else is there to do. Please help me as what I can do so I can continue to use Photoshop CS3 Extended.
    Thank you

    I downloaded the clean Script file and followed the instructions from what the Clean Script read Me file described.  The first step said to deactivate. Although I was not able to deactivate because of my original message, I followed the remaining steps.
    After using the Clean Script and uninstalling Photoshop CS3 Extended and re-installing it I re-booted my computer. I also deleted the CS3 Application data files.
    When I installed PS CS3 Extended the installer does not ask for the serial number on all attemps. I bought a registered copy of PS CS3 Extended. Is there another way to approch this licensing error.
    Thanks.

Maybe you are looking for

  • When will we go for Altova xml spy testing in case of soap scenario ??

    Hi suppose I have a scenario like this: rfc-xi-soap. In this scenario if somebody say's testing the scenario using Altova xml spy means Altova xml spy will be acting as webservice ?? what is the ( or is there) significance of below URL in testing ??

  • Help: flash very slow on Mac 10.8.2

    So I just installed Creative Cloud CS6 and everything is blazing fast... Photoshop opens in less than 3 seconds... So does Illustrator. Flash Pro takes like 1 minute to open. It gets stuck in "Building Workspace". Clicks have a 3 or 4 second delay. I

  • How to ignore particular lines in File Adapater

    Hi , We are aware we can ignore the comments in the begning of the file by putting the document offset in the sender adapater but is there a way we can ignore comments if the occure in the middle of the line like if my i/p file is like transactionId=

  • Load balancing for BPEL Cluster

    Can anybody tell how to configure the load balancer in BPEL Cluster ..? I am not able to get the correct documents for that. I want the request from the client can be redirect to any of the cluster server that will be having the PPEL Process deployed

  • How to check response is recieved

    hi How can we block users to click on links and submit buttons on jsp page until a response is received after making jsp page submit. I suppose we have to write a javascript which disables all functions on JSP page and re-enables it after getting the