Idcs6[win/mac] problem naming custom methods inside scripting dom.

Hi,
I defined some custom methods for the scripting dom in my model plugin. They are working perfectly, but there's a little problem.
Following is the declaration of my method:
resource VersionedScriptElementInfo(0)
    // Contexts
        // Scripting support added at InDesign CS 2.0
        kFiredrakeScriptVersion, kCoreScriptManagerBoss, kInDesignAllLanguagesFS, k_Wild,
        kFiredrakeScriptVersion, kCoreScriptManagerBoss, kInCopyAllLanguagesFS, k_Wild,
// Elements
        // Specifies an Method
Method
            kXYZElement,
            e_xyz,
            "getStringoneStringtwoStringthree",
            "Does xyz operation",
            StringArrayType(2),
            "xyz",
                p_Param1, "param1", "Param1", StringType, kRequired,
                p_Param2, "param2", "Param2", StringType, kRequired,
        // Connects this plug-in's methods and properties to scripting.
        Provider
            kXYZScriptProviderBoss,    // provider boss ID
                Object{ kApplicationObjectScriptElement },
                Method{ kXYZElement},
Now my problem is that I can access the getStringoneStringtwoStringthree method in the scripting dom but the method name gets converted to getstringonestringtwostringthree
(the capital letters in the method name get small).
So, am i missing something during the declaration ? 
Regards
maddy1907

Hi,
I found the error. You need to define "getStringoneStringtwoStringthree", like "get stringone stringtwo stringthree", 
Then OMV will show your methods as getStringoneStringtwoStringthree.
Similarly, you need to do this for parameters name too.
Regards
maddy1907

Similar Messages

  • Superdrive won't read certain discs in 10.5.8.  WIN /MAC problem?

    Have an early 2008 Mac Pro. Superdrive worked fine on 10.5.7 but since upgrade to 10.5.8 it will only read certain discs. Have a WIN/MAC rom of game Spore and the drive takes it in, sits for 2 minutes and spits it out. Could it be that the disc is WIN / MAC combo? Tried it on new apple MacBook Pro running 10.5.7 and drive read it fine. Does Mac need to issue a firmware update for Mac Pros? Know it recently upgraded Macminis and MacBook firmwares. Could it be software issue or corrupt preferences? Tried Ram zap and permissions repair and no go. Hope Apple is on this cause I heard others with similar issues.

    I can tell you this - I have two Superdrives in my Mac Pro, both Pioneer, and experienced the problem you are reporting with previous OS X updates. I recently upgraded to Snow Leopard and after renting a bunch of DVDs, many of whom would generally not work in the past and I'd be forced to use a Lacie USB Slim Drive, all suddenly worked instantly, on the first try.
    So it may be a software thing with 10.5.8. Carbon Copy your current system over to an external USB drive then upgrade to Snow Leopard and see if that doesn't make a difference. If it doesn't, and you don't want SL, copy back your previous 10.5.8 system. Can't hurt anything doing that. And if SL fixes the problem you can always update the external USB drive.

  • Problem naming a method

    Hi,
    In a part of my project I have an defined a class A. A has several attributes, classified in two groups: fix ones and evolving ones. To reflect this in data base I have two different tables
    - FixA: fix data of A. PK is A's id.
    - EvoA: evolutive data of A. PK is A's id and the number of instance.
    To reflect this in memory, I created two clases called FixA and EvoA. One of the attributes of EvoA is "instance".
    E.g. I want to insert the A object with id 1, I would create the FixA instance of A, with id 1 and would create a EvoA object with id=1 and instance=1, apart from the other values. If I have to introduce A another time and some values have changed, I won't create the FixA instance with id=1 (because it already exists) but will create a new EvoA with id=1 and instance=2, apart from the rest of values.
    Of course, each attribute has it's own getter/setter. My problem is that I want to create a static method in EvoA which returns me an instance of EvoA called getInstance. Since the name would be the same and the name getInstance normally refers to this second option, can anybody recomend me a nice name for the attribute instance?
    Thanks

    >
    It actually looks like your attribute that currently is named instance should be renamed to version. Naming it instance is confusing since most developers would think of something else.
    Kaj

  • I solve my problem of black screen when starting up my Mac pro, namely by the button lighting and then i saw the login screen. Hopefully it works for you too.

    I solve my problem of black screen when starting up my Mac pro, namely by using the lighting button and then i saw the login screen. Hopefully it works for you.

    It was the PRAM.

  • Cant load my studio 8 to the mac (its win/mac) what is the problem?

    I have a new mac mini and cannot get the thing to recognize the license even though the thing is win/mac. what's wrong?

    If any of the music files didn't come from Apple, then you will need to seek the advice of another Mac website, like MacRumors or Apple Insider, to inquire about the latest third party software that can place ALL the files back onto the Mac.
    Supposedly there is a way to reverse only iTunes purchased music back onto a Mac, it excludes the music from other sources.

  • JSF: Problems adding rows to table with custom method

    Since this being my first post, I find it only appropriate to thank the development team for such a huge addition to the application development world. You guys rock. You have cured my Java identity crisis. That being said...
    I have been stumped for days. I'm making a simple web cart. I am trying to get two string values (name and price) passed through a custom exposed application module method ran on a backing bean. What I want the exposed VO module to do is, upon receiving the two strings, create a new row on the empty data controlled table I have built to store them. Basically I just need to add rows to a table with my custom managed bean. Most recent version.
    I have written a test method to make sure my backing bean and exposed app module impl were working. This test works:
    //WORKS
    //CartInfo.java   
        public String cb1_action() {
            AppModuleImpl am = new AppModuleImpl();
            am.testMethod();
            return null;       
    //AppModuleImp.java
        public void testMethod() {
            System.out.println("WORKS");      
        }I found some code on how to add rows and unfortunately it isn't working out for some reason. Here is what is producing the error "Caused By: java.lang.NullPointerException" :
    //DOESN'T WORK IN CUSTOM METHOD BUT WORKS WHEN DRAGGED ON TO THE PAGE AS A COMMAND BUTTON
    //CartInfo.java
        public String cb1_action() {
            AppModuleImpl am = new AppModuleImpl();
            am.testMethod("test", "test");
            return null;
    //AppModuleImp.java
           public void testMethod(String pName,String pPrice) {
            ViewObjectImpl vo = this.getCartVO1();
            Row r = vo.createRow();
            r.setAttribute("NAME", pName);
            r.setAttribute("PRICE", pPrice);
            vo.insertRow(r);
    //The VO attributes for the DC are:
    // Name : Type : Alias Name : Entity Usage : Info
    NAME : String : NAME : (blank) : Transient
    PRICE : String : PRICE : (blank) : TransientSo what I have so far is a table linked to my database. A user can select and click on a product on the row's individual Add button and using a modified selection listener, it returns the values to the backing_bean.
    Then what I want it to do is have those variables passed to the other table. I just can't put it together.
    Please if there is anyone that could send me in the right direction I would greatly appreciate it!
    Thank you,
    Jack

    if i understand you, you want to call application module method when user clicks on add button on the UI and your table is from VO
    so what i can come up for now is:
    1) create variable binding from the iterator for both name and price.
    2) on your UI action button :
    <af:commandButton actionListener="yourbean.addToCart">
    <f:attribute name="pName" value ="binding.<created name bind variable>"
    <f:attribute name="pPrice" value = "binding.<created price bind variable>"
    </af:commandButton>
    3) custom Managed Bean:
    //yourBean.java
    public void addToCart(ActionEvent e){
    // get binding here
    // use executeWitParams method to send parameter to the function "testMethod" and execute
    //AppModuleImp.java
    public void testMethod(String pName,String pPrice) {
    CardVOImpl vo = this.getCartVO1();
    CardVORowImpl r = (CardVORowImpl)vo.createRow();
    r.setAttribute("NAME", pName);
    r.setAttribute("PRICE", pPrice);
    vo.insertRow(r);
    Hope this helps...
    Let me know if not..
    Thanks
    Edited by: MavenDev on Oct 30, 2011 8:08 PM

  • How to detect JBO Exception from within Apps Module Custom Method ?

    Hi all,
    I have a custom method in apps module (AM) to set "Status" attribute to "A' in an antity, this is for approval.
    Also there is a rule that the transaction cannot be approved if it is already cancelled by another user (in multi user environment).
    The problem is :
    If the AM custom method fail (because it throws JBOException in the entity setter method), How can I know that it fails ?
    and report it back to the backing beans that call the custom method ?
    Thank you for your help,
    xtanto
    Below is the code :
    1. create a custom method in AM to do : setStatus ("A") ;
    public void approve(){
    ViewObject bphVo = findViewObject("BpHView1");
    BpHViewRowImpl vBphViewRow = (BpHViewRowImpl)bphVo.getCurrentRow();
    vBphViewRow.setStatus("A");
    2. Do a validation inside setStatus method of the entity :
    public void setStatus(String value) {
    if (! getCancel() == true )
    setAttributeInternal(STATUS, value);
    else
    throw new JboException("Error ! transaction already cancelled");
    3. On backing beans :
    public String approveButton_action() {
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding =
    bindings.getOperationBinding("approve");
    Object result = operationBinding.execute();
    if (!operationBinding.getErrors().isEmpty()) {
    System.out.println("There is JBO Error !!");
    return null;
    else{
    commitButton_action();
    return "back";
    }

    Try this code:
    approveButtonAction()  {
    String navigationString = null;
    try {
    Object result = operationBinding.execute();
    naviagionString = success;
    catch (JboException e) {
       navigationString = null;
       (DCBindingContainer)bc.cacheException(e);
    } finally {
    if(navigationString != null)
      return commitButtonAction();
    else
      return navigationString;
    }

  • Can all macbooks boot from usb(stick,hdd) and firewire(hdd) an os: linux, win, mac os x, opensolaris, etc

    Subject: BOOT FROM EXTERNAL STORAGE DEVICE - After this setup properly
    Can all macbooks boot from usb(stick,hdd) and firewire(hdd) an os: linux, win, mac os x, opensolaris, etc?
    what about:
    Apple MacBook Pro MB133LL/A 15.4-inch Laptop(OLD VERSION) (4GB RAM 120G HD 2.33 GHz Core 2 Duo processor, 15.4" Matte Screen, 4GB memory, 120 GB 7200 rpm hard drive) White

    Yes,
    Disconnect everything hooked up to the PC except the keyboard, mouse and monitor.
    Then use this method to flash the BIOS.  It is the safest way to go.
    USB Device BIOS Flashing in DOS
    DOS Flash  (DOSFlash.exe, FlshUefi.cpu) is the DOS-compatible System BIOS flash utility that can be used from a DOS bootable storage device (where "DOS" refers to any of a number of compatible operating systems such as FreeDOS, MS-DOS or DR-DOS). FlshUefi.cpu is the required driver for DOSFlash.exe. To flash the System BIOS from a bootable USB storage device, you will need to copy the contents of the DOS Flash folder to the USB device, boot the PC from the USB device, and execute the DOSFlash application. To see a more complete description of the DOS flash utilities, view DOSFlash.txt located in the DOS Flash folder. This folder also contains the required binary image of the BIOS.  The binary image file is named xxx_MMmm.bin where "xxx" is the BIOS family, "MM" is the major version number, and "mm" is the minor version number.  This file can be copied to the root directory of any USB removable medium for use with the F10 setup "Flash System ROM" option 
    View Contents of DOS Flash Folder
    The links on this post don't work. I copied the section from the BIOS flashing instructions for the specific section you need.
    Paul

  • How to create the custom method and make it available to clients:

    Hello, Can any one help me with this problem ASAP??
    I am trying to work on an example of "Customizing the Query and Creating an Associated Custom Method"
    from http://helponline.oracle.com/jdeveloper/help/topics/jdeveloper/developing_mvc_applications/adf_pviewcustommethod.html?tp=true#method. To do that, the first task is to create the custom method and make it available to clients.
    Following instructions in the helponline documentation, I completed the three steps: (1) "Specify a custom query for the View Object definition for EmployeesView", (2) "Add the custom method to the application module Java class", and (3) "Make the method available to clients".
    The following is the error message I got to test the application module. Can anyone tell me what the message really means and what I should do. I am wondering if there is any mistakes in the document.
    (oracle.jbo.SQLStmtException) JBO-27122: SQL error during statement preparation. Statement: SELECT Employees.EMPLOYEE_ID, Employees.FIRST_NAME, Employees.LAST_NAME, Employees.EMAIL, Employees.PHONE_NUMBER, Employees.HIRE_DATE, Employees.JOB_ID, Employees.SALARY, Employees.COMMISSION_PCT, Employees.MANAGER_ID, Employees.DEPARTMENT_ID FROM EMPLOYEES Employees WHERE Employees.SALARY > :1 and Employees.DEPARTMENT_ID = :2
    ----- LEVEL 1: DETAIL 0 -----
    (java.sql.SQLException) ORA-01008: not all variables bound

    You need to set values for the parameters in your query before you try to execute the query in the view object.
    So you need to call the setBindVars method before the query.

  • Is it possible to call a custom method in App Module from a backing bean?

    I would like to know if a custom method in App Module can be called from inside a backing bean.
    I am not sure if it is logically right to call, from a backing bean, a custom method in App Module. But would like to know if that makes sense or if it is possible.

    Hi..
    Yes it is possible.You have to add that method for client interface of AppModule.Now you can see that method in Data Controls(Refresh the data control). To call this method using bean it should add as method action to bindings(Click Bindings>+>methodAction>and Create action binding).
    Now you can call this method in bean class.
    Check following example use this concept to execute view criteria
    http://adf-lk.blogspot.com/2011/05/oracle-adf-create-view-criteria-and_4727.html

  • Using a Custom Method to Set the Bind Parameters in a View Object

    Hi all:
    i tried to follow the tutorial in oracle jdeveloper 10.1.2 documentation about creating a simple search page but i'm receiving this error when i tried to test the application module after i added a where clause to my view object(i.e where dept_id= :1) and define a custom method to bind variables in the appmodule class
    i keep getting this error
    JBO-27122: SQL error during statement preparation. Statement: SELECT Employees.EMPLOYEE_ID, Employees.FIRST_NAME, Employees.LAST_NAME, Employees.SALARY, Employees.DEPARTMENT_ID Employees.DEPARTMENT_ID = :1
    ????? IN ?? OUT ????? ?? ??????:: 1
    when i used the setwhere metohd it works
    i'll apprciate ur answer
    regards

    I have the same problem:
    Just like in Toystore Demo I am calling the following method in my VO:
       * Find an account by username and password, leaving the account
       * as the current row in the rowset if found. BUT EVEN IF WE FIND ACCOUNT BY
       * USERNAME AND PASSWORD, IT WILL RETURN FALSE IF THE ACCOUNT IS DISABLED!!!!
       * @param username the username
       * @param password the user's password
       * @return whether the user account exists or not
      public boolean findAccountByUsernamePassword(String username, String password) {
         * We're expecting either zero or 1 row here, so indicate that
         * by setting the max fetch size to 1.
        setMaxFetchSize(1);
        setWhereClause("staff_id = :0 and passw = :1");
        setWhereClauseParam(0, username);
        setWhereClauseParam(1, password);
        executeQuery();
        RowSet rs = this.getRowSet();
        String userEnabled = new String("N");  // Default setting
        if (rs != null){
          int currentSlot = rs.getCurrentRowSlot();
          Row r = rs.getCurrentRow();
          if (r == null){
             r=rs.first();
             currentSlot = rs.getCurrentRowSlot();
          //check if we found the user
          if (currentSlot == SLOT_VALID){
            Object[] av = r.getAttributeValues();
            LoginUtils.userLoggedIn    = av[0].toString();  // '0' is username
            LoginUtils.userFirstName   = av[1].toString();  // '1' is user first name
            LoginUtils.userAccessLevel = av[6].toString();  // '6' is user level
            LoginUtils.userEnabled     = av[7].toString();  // '7' is user level
            userEnabled = av[7].toString();
        boolean found = (first() != null) & userEnabled.equals("Y");
        setWhereClause(null);
        setWhereClauseParams(null);
        setMaxFetchSize(0);
        return found;
      }It gives the same exception...
    JBO-27122: SQL error during statement preparation. Statement: SELECT Staff.STAFF_ID, Staff.FIRST_NAME, Staff.MIDDLE_NAME, Staff.LAST_NAME, Staff.POSITION, Staff.PASSW, Staff.USER_LEVEL, Staff.ENABLED, Staff.PHONE, Staff.EMAIL FROM STAFF Staff WHERE (Staff.STAFF_ID = :0 and Staff.PASSW = :1)
    This worked in 10.0.1.2 but now it does not work in 10.0.1.3!!!

  • PROBLEM IN CUSTOM IDOC CREATION

    Hi Friends,
                    I'm facing a problem in custom idoc creation plz try to assist me
    1.As per the information i have  i'm creating segment in we31
    for cremas01 idoc.But when i enter the name for segment i'm getting message "Name range Voilation particular name which i had given is not permitted in customer system?
    Plz clarify this,and are there any formalities which i should look for before creating custom idoc?
    Good answers will be rewarded.
                                                                              Regards,
                                                                               Vinod.

    The Problem might be.... with the naming of the segment.
    Standard segments should be created with 'E1' and all the custom segments are created using 'Z1' and the name with 8 characters long only is permitted.
    Reward Points if useful.

  • Problems calling a method in another class

    I have the following method in a class called recordCalls -
    public static void objectCreated(String type, String name)
            System.out.println("An object of type " + type + " called " + name + " has been created.");
    //       addObjectToPanel(type, name);  
        }I am attempting to call addObjectToPanel(type, name) which is a method inside a class called test.
    I do not want to create an instance of test an call it like test.addObjectToPanel(type, name)
    Is there any other way of doing this.
    Thanks.

    You either have to make the method static, and call
    test.addObjectToPanel or you have to create an
    instance of test and invoke the method on that
    instance.
    I don't know what that class is supposed to do, so I
    don't know which is more appropriate.
    You should name your classes starting with capital
    letters, and Test is a very undescriptive (and hence
    bad) name for that class.I will be chaning the names of everything when the class works.
    Test contains the UI for my program.
    When I run test then my UI is runing, once I run addObjectToPanel from the record calls class it should put images into my UI,
    the problem is that each time the method is run it open up a different UI and adds an image to it instead of just adding the images to the window which is already open.

  • Binding data to custom method in DataAction

    hi!
    I am using adf uix and struts.
    I am confronted with the following problem: I created a DataAction for calling a custom method of an ApplicationModule. How do I bind data from the DataContainer in the struts-config?
    All how-tos figure out only the binding through ${param.<paramName>}.
    Isn't it possible to address the DataContainer through ${data.<UIModelName>.<BindingName>}? My intention is to bind a column value from an uix edit form to a custom method!
    I attached an excerpt for the illustration of my problem:
    <action name="DataForm" path="/RolleZuordnen" className="oracle.adf.controller.struts.actions.DataActionMapping" type="oracle.adf.controller.struts.actions.DataAction">
    <set-property property="modelReference" value="RolleZuordnenUIModel"/>
    <set-property property="methodName" value="RolleZuordnenUIModel.addRolleToBenutzer"/>
    <set-property property="resultLocation" value="${requestScope.methodResult}"/>
    <set-property property="numParams" value="2"/>
    <set-property property="paramNames[0]" value="${data.editMitarbeiterUIXUIModel.Login}"/>
    <set-property property="paramNames[1]" value="${data.editMitarbeiterUIXUIModel.DrId}"/>
    <forward name="success" path="/editMitarbeiterUIX.do"/>
    </action>
    with regards
    roland

    Have you reviewed the ADF Binding Primer whitepaper...
    http://www.oracle.com/technology/products/jdev/collateral/papers/10g/ADFBindingPrimer/index.html
    It has a section on binding to method return values.

  • Problem with prerender method

    Hi,
    I have a problem with the method prerender. A month ago, I started to develop a web project using Sun Studio Creator and a few page beans that i used extended the Abstract Page Bean, so I overrided the prerender and customized it.
    The problem is that, now i'm using eclipse and the configuration files of the project has changed and the prerender method never execute.
    I want to know why it is happening. Maybe the project is "bad-configurated"?
    Thanks

    The code of java bean doesn't change, the only thing that has changed is the configuration files (faces-config.xml, web.xml, etc).
    I put a breakpoint in the prerender method but the lifecycle doesn�t execute this method.
    After serveral changes, I wrote this code in the method prerender :
    int i=0;
    i = 1;
    And the prerender method doesn't execute.
    I'm a bit lost,
    thanks

Maybe you are looking for