Calling functions from PropertyUtils.h returns error!

Hello!
I required the use of some functions defined in PropertyUtils.h class in the Photoshop SDK. I used PIGetLayerName() function. I hoped that all would be well, instead an error was returned with the code -30901. I searched the internet, but have found no solution so far. Please help! I am using PS CS5 on Windows.
Thanks!

Hi,
I was expecting a response to this question...!! Folks, I don't know how to go about this problem.. I wanted to know whether we can know if a particular layer is locked or not.. The class in question PropertyUtils.h contains a method, that I hope, can solve my problem.. Its by the name of PIGetTargetLayerLock() with three boolean parameters. Now, I don't know what type of values to pass to this function, because there is absolutely no info about it.. I am getting the same error I mentioned before.. -30901 (errPlugInPropertyUndefined).. Please help me out... How to go about it..??? I repeat, I want to know whether we can know through c++ code whether a layer is locked or not..
Thanks!

Similar Messages

  • Call function from data base with clob input parameter.

    Hello,
    In this project I use Jdev 11g.
    I call function from database.
    create or replace function get_fa_list (
    p_fa_id_list in clob
    return sys_refcursor
    is
    vCursor sys_refcursor;
    begin
    put_msg ('begin');
    if p_fa_id_list is null then
    put_msg ('CLOB is null!');
    else
    put_msg ('size CLOB: ' || dbms_lob.getlength (p_fa_id_list));
    end if;
    put_msg ('Save');
    open vCursor for
    select rownum as id, s.*
    from (
    select f.latitude, f.longitude, count (distinct f.res_id) as res_count, count (*) as fa_count, 16711680 as color, res_concat_distinct (f.res_id) as station_list
    from mv_frequency_assignment f, table (SplitClob (p_fa_id_list, ',')) l
    where f.ext_system = 'BI' and
    f.ext_sys_id = l.column_value
    group by f.latitude, f.longitude
    ) s;
    put_msg ('Open and End');
    return vCursor;
    end get_fa_list;
    I use TopLink in ejb.
    i use follow code for call function and get result.
    public List<TmpResPoints> findAllPointsBI(String p_id){
    UnitOfWork uow = getSessionFactory().acquireUnitOfWork();
    uow.beginEarlyTransaction();
    StoredFunctionCall call = new StoredFunctionCall();
    call.setProcedureName("get_fa_list");
    call.useUnnamedCursorOutputAsResultSet();
    ClobDomain c = new ClobDomain(p_id);
    //System.out.println(c.toString());
    call.addNamedArgumentValue("p_fa_id_list", c);
    ReadAllQuery query = new ReadAllQuery();
    query.setReferenceClass(TmpResPoints.class);
    query.setCall(call);
    List<TmpResPoints> result = (List<TmpResPoints>)uow.executeQuery(query);
    uow.commit();
    uow.release();
    return result;
    But size parameter "p_fa_id_list" is 0. (geting from temp table in Data base). this code in function >>
    if p_fa_id_list is null then
    put_msg ('CLOB is null!');
    else
    put_msg ('size CLOB: ' || dbms_lob.getlength (p_fa_id_list));
    end if;)
    How I can call this function from dataBase and get result?
    thx,
    Demka.

    What is the SQL generated?
    The argument should just be the Clob value (a String) not the domain object.
    Also try addNamedArgument, and then pass the named argument to the query.
    James : http://www.eclipselink.org

  • How to Call Function from SAPSCRIPT

    I want to Call a function from my SAPSCRIPT to get some data and print the same in the form , Can I get an example for this

    Hi Nandan,
    U cannot directly call function from SAPScript... For that u have to create one include in which u need to write the code. Using Perform... EndPerform u can call the same from SAPScript. See the below example
    u need to write this code in SAPScript
    PERFORM formname IN PROGRAM includename
    USING &field1&                                      
    USING &field2&                                      
    CHANGING &field3&                                     
    ENDPERFORM                                               
    Here includename is your include type program.
    u need to write this code in your include type program..
    FORM formname TABLES in_par STRUCTURE itcsy
                            out_par STRUCTURE itcsy.
    data : var1 like field1,
           var2 like field2,
           var3 like field3.
      READ TABLE in_par WITH KEY 'field1'.
      CHECK sy-subrc = 0.
      var1 = in_par-value.
      READ TABLE in_par WITH KEY 'field2'.
      CHECK sy-subrc = 0.
      var2 = in_par-value.
    now u can call corresponding function using local VAR1 and VAR2. Here u can pass N no of USING parameters.
    After processing on VAR3...
      READ TABLE out_par WITH KEY 'field3'.
      out_par-value = VAR3.
      MODIFY out_par INDEX sy-tabix.
    EndForm.
    Here in_par and out_par are the structures which will be used to communicate with SAPScript. And this is the only way as per my view.
    I m sure this code will work fine. Here i have used dummy variables that u need to change as per your requirement. If u have more queries write me back.
    And yes if this works than dont forget to give the points.
    Regards,
    Sagar

  • Send data to ECC table through RFC Call function from SAP B1 via  b1if

    Hi,
    I have created scenario in B1if which triggers from SAP B1, now I have to send this data in to ECC table, so I have created scenario for that with inbound SAP B1, outbound void and in process RFC Call atom is there but I am not getting data in receiver and also how to write xml to send data in RFC function. Function for RFC has configured from ECC end and have access of that function.
    So please help me to send data to ECC table through RFC Call function from SAP B1 (9.0) via b1if
    Thanks

    Solved by my own.

  • Calling function from PL/SQL block

    Hi,
    A very simple question.
    A have a function called "test1" in my database. It is there i double chekked.
    I would like to call this function from a block:
    DECLARE
    BEGIN
    TEST1(1202);
    END;
    This gives me an error.
    Why is this?

    user610868 wrote:
    Hi,
    A very simple question.
    A have a function called "test1" in my database. It is there i double chekked.
    I would like to call this function from a block:
    DECLARE
    BEGIN
    TEST1(1202);
    END;
    This gives me an error.
    Why is this?Hello
    A very very basic thing to do when you get an error is to include details of it. That helps narrow it down from one of the 1000s of potential Oracle errors it could be.
    Anyway, a function returns a value, and in PL/SQL you need to capture that otherwise you'll get "an error". Modify your code like so
    DECLARE
       l_Test1Val     VARCHAR2(4000); --CHANGE THIS TO BE THE SAME AS THE RETURN TYPE FOR YOUR FUNCTION
    BEGIN
       l_Test1Val :=  TEST1(1202);
    END;HTH
    David
    Edited by: Bravid on Oct 25, 2011 3:57 PM
    removed a ;

  • Call Function from PLSQL--ORA-31013 : Invalid XPATH expressioon

    I tried the following SQL statement. when I called function,it giving error.
    select *
    from v$version;
    1
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bi
    2
    PL/SQL Release 10.2.0.3.0 - Production
    3
    CORE              10.2.0.3.0
    Production
    4
    TNS for Linux: Version 10.2.0.3.0 - Production
    5
    NLSRTL Version 10.2.0.3.0 - Production
    function READ_SYSTEM_RESPONSE(PARAM IN CLOB)
      RETURN NUMBER
      AS
        l_namespace varchar2(1000):='xsi:schemaLocation="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader PackageProxy.xsd"
                                    xmlns:sh="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader"
                                    xmlns:ef="http://www.efatura.gov.tr/package-namespace"
                                    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"';
        x  XMLTYPE
          := XMLTYPE('<?xml version="1.0" encoding="UTF-8"?>
                        <sh:StandardBusinessDocument xsi:schemaLocation="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader PackageProxy.xsd"
                          xmlns:sh="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader"
                          xmlns:ef="http://www.efatura.gov.tr/package-namespace"
                          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                    <sh:StandardBusinessDocumentHeader>
                    <sh:HeaderVersion>1.0</sh:HeaderVersion>
                    </sh:StandardBusinessDocumentHeader>
                    </sh:StandardBusinessDocument>');
        CURSOR ana IS
              SELECT 1--EXTRACTVALUE(VALUE (p),'/sh:StandardBusinessDocumentHeader/sh:HeaderVersion',l_namespace) AS IMZA
              FROM TABLE(XMLSEQUENCE (EXTRACT (x,'/sh:StandardBusinessDocument',l_namespace))) p;
        BEGIN
        FOR r IN ana
        loop
        dbms_output.put_line('- - - - - - -');
        end loop;
        RETURN 1;
        EXCEPTION WHEN OTHERS THEN
        dbms_output.put_line(sqlerrm);
          RETURN 0;
        END;

    odie_63 wrote:
    Remove this from the l_namespace string, it has nothing to do in there, it's not a namespace declaration :
    xsi:schemaLocation="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader PackageProxy.xsd
    As a general rule, just declare the namespace(s) - default or prefixes - you need to resolve the XPath expression.
    Once you correct that part, you'll discover that your query returns NULL.
    That's because the XPath doesn't point to any node.
    Try this instead :
    SELECT EXTRACTVALUE(
            VALUE (p)
          , '/sh:StandardBusinessDocument/sh:StandardBusinessDocumentHeader/sh:HeaderVersion'
          , l_namespace
          ) AS IMZA
    FROM TABLE(
          XMLSEQUENCE(
            EXTRACT (x, '/sh:StandardBusinessDocument', l_namespace)
        ) p
    Thanks odie_63,You're right. I removed " xsi:schemaLocation="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader PackageProxy.xsd" and It is working!

  • Put SQL query in a function/ call function from region

    How can I write a SQL query (like SELECT EMPNO, ENAME, JOB FROM EMP) as PL/SQL function, and then call this function from the PL/SQL Function Returning SQL Statement region?
    Thanks, Tom

    thanks jverd for your quick reply.
    I know passing in a reference to an object will do the job if I want to change the value several parameters in one function call.
    But I want to ask, is there any other ways?
    the following code works.....
    public class TestParameter {
         public static void main(String[] args) {
              Test2 t2 = new Test2();
              invokeChange(t2);
              System.out.println("x = " + t2.x + "\t y = " + t2.y);
         static void invokeChange(Test2 t2) {
              t2.x = 10;
              t2.y = 15;          
    class Test2 {     
         int x;
         int y;     
    }

  • Calling function from Backing Bean or JSP page

    We are on Jdeveloper 10.1.3.3.0, ADF Faces, JSF Faces .., Currently there is a function call from Javascript event (onmouseover) in the JSP page. I want to call this function from a backing bean or JSP page, as I have to pass some values to this function.
    For Ex., I have a function call like return submit('A','B','Test'); on the Javascript event (onmouseover) in jsp page. I want to remove this function from the javascript event and call from backing bean or jsp page to pass some values into the submit() function. I appreciate if anyone can give some example of how to call this function from backing bean or jsp page in the <SCRIPT> or <SCRIPTLET>
    Thanks,
    Ram

    A use case would be helpful so that we can get a better idea of what you want to do.
    As a general rule, there is no way to call a client side Javascript function from a backing bean, which is server side. However, there are ways to inject information from a backing bean into your Javascript call. For instance, I have an application that uses Google Maps API. It has an onload call to a Javascript function that builds the map and designates it's center point. The center point comes from a backing bean as latitude and longitude properties. So here is my body tag:
    <afh:body onload="initialize(#{backing_searchResults.latitude},#{backing_searchResults.longitude},#{searchCriteria.distance})"
              onunload="GUnload()">onload calls the Javascript function called initialize, and passes the latitude, longitude, and distance from the bean. Is the function really being called from my backing bean? No - the parameters are hard coded into the onload event code when the page is rendered. Does it do the job? Sure it does.

  • Call Function From MXML Component

    I am using MXML to create components that I use within my
    application. I have one MXML file that contains a list with a
    custom itemRenderer that is in another MXML file. I have an
    actionscript file with a function that I want to call from the
    itemRenderer.
    If I call the function from my main application, everything
    works fine. If I try to call it from one of the other MXML files, I
    get a 1180 Call to a possibly undefined function error.
    Is there a special way that I need to use to call the
    function?
    The main MXML file is in the root directory, the actionscript
    file is in a folder called functions, and the MXML files are in a
    folder called components.
    Thank you for any help.

    I was able to figure out my problem. It was just a simple
    typo of including the wrong file in a Script tag. However, this
    caused more issues and I ended up having to rewrite a large section
    of code to get everything working.
    Thank you for your help.

  • Call function from FM

    hi, how do i call a function from the function module and use it accordinly? i need call the EDITOR_SYNTAX_CHECK from the FM and use it in my program to check abap syntax that users entered.
    pls provide codes.
    thanks. will reward if useful.

    thanks for all of ur replies.
    I have a text editor that allows users to enter abap codes and when they clicked on the save button, the program will check the syntax they have entered and prompt them accordinly. how can i call the EDITOR_SYNTAX_CHECK fm and used it for my program?
    below is my codes:
    REPORT  ZEVONNE_DYN.
    TABLES: ZPROGRAM_TABLE.
    DATA: ITAB_PROGRAM TYPE TABLE OF ZPROGRAM_TABLE WITH HEADER LINE.
    DATA: CODE_EDITOR_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
          CODE_EDITOR TYPE REF TO CL_GUI_TEXTEDIT.
    DATA: WA_PROGRAM LIKE LINE OF ITAB_PROGRAM,
            g_ok_code LIKE sy-ucomm,         " return code from screen
            g_repid LIKE sy-repid.
    DATA: st_head TYPE thead,
          i_tline TYPE STANDARD TABLE OF ZPROGRAM_TABLE,
          wa_tline TYPE ZPROGRAM_TABLE.
    TYPES: BEGIN OF DYN_CODE,
            LINE(255),
          END OF DYN_CODE.
    DATA: DYN_CODE_TABLE TYPE TABLE OF DYN_CODE,
          wa_lv LIKE LINE OF DYN_CODE_TABLE.
    CONSTANTS: CODE_EDITOR_LENGTH TYPE I VALUE 255.
    DATA: BEGIN OF CODE_EDITOR_LINE OCCURS 0,
            PROGRAM_CODE TYPE ZPROGRAM_TABLE-PROGRAM_CODE,
          END OF CODE_EDITOR_LINE.
    TYPES: BEGIN OF CODE_EDITOR_TABLE_LINE,
             LINE(CODE_EDITOR_LENGTH) TYPE C,
           END OF CODE_EDITOR_TABLE_LINE.
    DATA: CODE_EDITOR_TABLE TYPE TABLE OF CODE_EDITOR_TABLE_LINE,
          CODE_EDITOR_CONTENTS LIKE STANDARD TABLE OF LINE.
    DATA: INSERT_COUNTER TYPE I, INSERT_VALUE(CODE_EDITOR_LENGTH) TYPE C,
    GT_HEAD LIKE THEAD.
    *ID
    DATA l_number TYPE i.
    DATA l_number2 TYPE i.
      DATA: im_cpidentmax LIKE ZPROGRAM_TABLE-PROGRAM_ID.
    *End ID
    SELECT * INTO TABLE ITAB_PROGRAM FROM ZPROGRAM_TABLE.
    START-OF-SELECTION.
      CALL SCREEN 9000.
    MODULE STATUS_9000 OUTPUT.
    SET PF-STATUS 'SCREEN_9000'.
    SET TITLEBAR 'TITLE_9000'.
      IF CODE_EDITOR IS INITIAL.
        CREATE OBJECT CODE_EDITOR_CONTAINER
           EXPORTING
             CONTAINER_NAME = 'GEN_CODE'
           EXCEPTIONS
             CNTL_ERROR = 1
             CNTL_SYSTEM_ERROR = 2
             CREATE_ERROR = 3
             LIFETIME_ERROR = 4
             LIFETIME_DYNPRO_DYNPRO_LINK = 5.
             CREATE OBJECT CODE_EDITOR
          EXPORTING
            PARENT = CODE_EDITOR_CONTAINER
            WORDWRAP_MODE =
            CL_GUI_TEXTEDIT=>WORDWRAP_OFF
              CL_GUI_TEXTEDIT=>WORDWRAP_AT_FIXED_POSITION
            CL_GUI_TEXTEDIT=>WORDWRAP_AT_WINDOWBORDER
            WORDWRAP_POSITION = CODE_EDITOR_LENGTH
            WORDWRAP_TO_LINEBREAK_MODE = CL_GUI_TEXTEDIT=>TRUE.
      ENDIF.
    ENDMODULE.                    "STATUS_9002 OUTPUT
    MODULE USER_COMMAND_9002 INPUT
    MODULE USER_COMMAND_9000 INPUT.
       CASE SY-UCOMM.
        WHEN 'EXIT'.
          LEAVE PROGRAM.
        WHEN 'SAVE'.
           MESSAGE S000(ZMSG02).
        WHEN 'LOAD'.
        send table to control
          CALL METHOD CODE_EDITOR->set_text_as_r3table
              EXPORTING
                  table = DYN_CODE_TABLE
              EXCEPTIONS
                  OTHERS = 1.
          IF sy-subrc NE 0.
            CALL FUNCTION 'POPUP_TO_INFORM'
                 EXPORTING
                      titel = g_repid
                      txt2  = space
                      txt1  = text-004.
          ENDIF.
      no flush here:
      the automatic flush at the end of PBO does the job
      ENDCASE.
    ENDMODULE.                    "USER_COMMAND_9002 INPUT

  • Calling function from procedure

    Hi,
    I have a function validate_address which returns 'Y' or 'N' to say if the address is valid or not.
    I need to call this function from a procedure - saying 'select records where the function returns 'N' (as part of the where clause)'
    Could you help me with how to achieve this, please. Thanks,
    Message was edited by:
    user6773

    Create Or Replace Procedure procedure0001 As
      vAddress          Varchar2(200) := '1 Tech Drive, Silicon Valley, CA 94109';
      vFlag             Varchar2(5);
    Begin
      vFlag := validate_address(vAddress);
      If vFlag = 'N' Then
      End If;
    End;
    or
    Create Or Replace Procedure procedure0001 As
      vAddress          Varchar2(200) := '1 Tech Drive, Silicon Valley, CA 94109';
      vFlag             Varchar2(5);
    Begin
      Select validate_address(vAddress)
        Into vFlag
        From Dual
       Where validate_address(vAddress) = 'N'
    End;
    /

  • Calling function from sqlprompt

    Can somebody tell me how to call a function from the sqlprompt

    Hi,
    U can also use a <Select> statement to invoke a function.
    For example : u have a function which will return the age of an employee, by accepting the empno,
    (Function getAge(iv_n_empno Number)
    RETURN NUMBER
    IS
    lv_n_age NUMBER;
    BEGIN
    SELECT age INTO lv_n_age FROM
    emp WHERE empno = iv_n_empno;
    END;
    You can call this function from Sqlprompt like :
    SELECT getAge(100) FROM DUAL
    This will return u the age of the employee 100.
    Cheers
    Lakshman
    null

  • Calling function from list of values section?

    can i call a function from list of values(LOV) section as well? I know we can sql query but udf is supported?

    See this recent thread: Display as Text (LOV) or join
    Scott

  • How can I call functions from a SWF loaded in to another SWF?

    Hi there,
    Please excuse my ignorance, I am very new to actionscript and flash.
    I have 2 SWF's - a.swf and b.swf.
    I load b.swf into a.swf with the following code:
    var swfLoader:MovieClipLoader = new MovieClipLoader();
    swfLoader.loadClip("b.swf", container_mc);
    Now in b.swf, I have a function as follows:
    public function sendData(){
      trace("I ran the function!");
    So I have done a lot of reading, from what I can tell I should be able to run the sendData() function from the code in a.swf, by typing:
    container_mc.sendData();
    but its not working. What am I doing wrong?
    Thanks in advance,
    Adam

    Thanks heaps mate, after a bit of trial and error it works! Here is the code that I added:
    var loadingListener:Object = new Object();
    swfLoader.addListener(loadingListener);
    loadingListener.onLoadStart = function(container:MovieClip):Void  {
        trace("The MovieClip "+container+" started loading");
    loadingListener.onLoadInit = function(container:MovieClip):Void
        trace("The MovieClip " + container + " has been initialized");
      container_mc.test();
    Marked your answer as correct :-)
    Thanks again, I really appreciate your help.
    Cheers
    Adam

  • Calling Functions From Import Integration Script

    I've got an import integration script that runs fine, however I also have several DataPump scripts that are used in FDM to change specific columns as they come in. I can take the code from the scripts and add to the Import Integration script, but I would rather just call those other functions from the VBScript. I don't see any docs on this, and I'm just wondering if anyone has done this or can describe how I can do it.
    Is it possible? Since the standard import scripts reference the strField and the strRecord, can these functions be called from the import integration script?

    strField and strRecord are arguments passed by the application to the import function. The represent the field as defined by the import format and the record that is being processed during the import.
    Given that, I'm not sure how to answer your question.

Maybe you are looking for

  • Rendering issue with IE 7 and Vertical Menu Bar

    Can anyone tell me why the menu bar at http://www.d16acbl.org/ works beautifully with Firefox, but with IE 7.0: 1. The background of each submenu item doesn't block out underlying text, 2. The submenu for meeting minutes wraps, and 3. The third level

  • Create a ThreadQueue programatically

    Is there any way to create ExecuteQueue in weblogic 8.1 programatically. As we know weblogic create ExecuteQueue for us on the basis of config.xml, I want to create ThreadQueue thru my program and use it in my program which runs inside app server. Th

  • Jco report error

    when i use jco to connect r3,call bapi "BAPI_DOCUMENT_CHECKOUTVIEW2" it reports the following errors: com.sap.mw.jco.JCO$AbapException: (126) NO_DOC_TYPE: NO_DOC_TYPE      at com.sap.mw.jco.JCO$Function.getException(JCO.java:18195)      at com.sap.mw

  • Opening Files in SAPGUI from FTP

    Hi! Experts, I have a requirement in a project in which I have to read .pdf and .xls files from FTP server and show it in the SAPGUI on a button click for a particular record in ALV. There should also be an option to save the file once opened. The fi

  • ICal on OSX Mavericks and iOS 7

    I have upgraded my MacBookPro to OSX Mavericks and my iCal calendars no more syncronize between my iPhone iOS7 and the Mac. Where do I set up how the calendars are being syncronized, on the iPhone or on the Mac ? I'm confused...