Revise Method Invoke Functionality

Hi,
When the revise button is clicked, records are automatically fetched in the UI but this is only limited to system fields and displayed fields.
As explained in Siebel bookshelf that only system fields or displayed fields are automatically activated. If this is not the case, then it must be activated prior to the query.
I do not understand what is being meant about “prior to the query?” does this mean, before the business service script kicks off (this is vanilla BS script for revise method) the query will be takes place prior from copying ALL records and child records from the original record?
Is there a way to copy the un-displayed field when the revise method is applied?
For example the field “Line Item” from the original record is not currently exposed/displayed, meaning this will not be copied to the new record that has been revised?

The BC.InvokeMethod("Revise") is generally used for creating a revision of the currently selected record. This is particularly useful in case of Sales applications using Quotes, Orders and Invoices. In layman's term it is something like creating a copy of the current record and populating the requisite details.
The Revise method copies the value of only certain pre defined fields into the new record created. For this there is a specific User property also.
For more details it will be good to go through this link:
http://download.oracle.com/docs/cd/E14004_01/books/ToolsDevRef/ToolsDevRef_BCClasses6.html
Do note that this method is supported on BC based on CSSBCBase Class.
With Regards,
Tanmay Jain

Similar Messages

  • Can I get the tab's(Level 1 menus) invoke function's URL and parameters

    Hi,
    Can I get the tab's(Level 1 menus) invoke function's URL and parameters in CO?
    Not just the tab being seleced,All the tab's nvoke function's URL.
    Thanks,
    binghao

    I got it.use OALinkBean's method getDestination()

  • How to trap null return values from getters when using Method.invoke()?

    Hi,
    I am using Method.invoke() to access getters in an Object. I need to know which getters return a value and which return null. However, irrespective of the actual return value, I am always getting non-null return value when using Method.invoke().
    Unfortunately, the API documentation of Method.invoke() does not specify how it treats null return values.
    Can someone help?
    Thanks

    What do you get as a result?I think I know what the problem is.
    I tested this using following and it worked fine:
    public class TestMethodInvoke {
    public String getName() {
    return null;
    public static void main(String args[]) throws SecurityException, NoSuchMethodException, IllegalArgumentException, IllegalAccessException, InvocationTargetException {
    Object o = new TestMethodInvoke();
    Class cls = o.getClass();
    Method m = cls.getMethod("getName", (Class[]) null);
    Object result = m.invoke(o, (Object[])null);
    if (result == null) {
    System.err.println("OK: Return value was null as expected");
    else {
    System.err.println("FAILED: Return value was NOT null as expected");
    However, when I use the same technique with an EJB 3.0 Entity class, the null return value is not returned. Instead, I get a String() object. Clearly, the problem is the the EJB 3.0 implementation (Glassfish/Toplink) which is manipulating the getters.
    Regards
    Dibyendu

  • Java.lang.NoSuchMethodException Using Method.invoke(...)

    I try to use Method.invoke() to invoke a method from a class. The method
    has parameters with type JTextArea and JMyFrame, but I got the error
    messages java.lang.NoSuchMethodException . Any ideas???
    If I remove parameter "JFrame mainFrame" in start() method and it is working fine. Not sure why JMyFrame will throw this exception, as JMyFrame is derived from JFrame class
    public class MyFrame extends JFrame
         try
    ClassLoader loader
    = new MyClassLoader(Integer.parseInt("3"));
    Class c = loader.loadClass("NewMenuPackage.NewMenu");
    Class[] params = { JTextArea.class, JMyFrame.class };
         Method m = c.getMethod("start", params);
         Object obj = c.newInstance();
    m.invoke(obj,
         new Object[] {
              textArea,
              JMyFrame.this
    catch (Throwable e)
    JOptionPane.showMessageDialog(this, e);
    package NewMenuPackage;
    import javax.swing.*;
    public class NewMenu
         private static JMenuItem menuItem = new JMenuItem("New Menu");
         public static JMenuItem getJMenuItem()
              return menuItem;
         public static void start(JTextArea textArea, JFrame mainFrame)
              System.out.println("NewMenu->start()...");
    }

    Your "params" Class array has to specify the exact classes of the method, not subclasses. The line that is causing the NoSuchObjectException to be thrown is "c.getMethod("start", params);".
    You have to write your own reflection utility methods to find a method that matches on parameter subclasses.

  • Method.invoke hangs?

    I'm trying to send a Class over a network, then invoke a Method inside the class.
                            final Method command = clazz.getDeclaredMethod("exec");
                            try {
                                System.out.println("Invoked0");
                                command.invoke(null);
                                System.out.println("Invoked1");
                            } catch (Exception e) {
                                throw new RuntimeException(e);
                            }Only Invoked0 prints, and there is no Exception. Whats wrong?
        class CommandClassLoader extends ClassLoader {
            public Class<?> defineClass0(String name, byte[] b, int off, int len) {
                return defineClass(name, b, off, len);
        }

    Oops, didn't realize I was throwing there, its printing a NPE.
    java.lang.NullPointerException
            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:597)
            at colby.client.Client$1$2.run(Client.java:63)
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
            at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
            at java.util.concurrent.FutureTask.run(FutureTask.java:138)
            at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
            at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)
            at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
            at java.lang.Thread.run(Thread.java:619)That doesn't really make sense though? Why would it be happening there?

  • Method.invoke hangs. HELP

    that is:
    Method.invoke(obj,args)
    It works just fine the first dozen or 2 times, same obj, same args. No prob.
    Then it hangs.
    No exception message. nothing. It just stops at invoke. And the Task Manager says the thread is eating 99% of the CPU, so it's spinning away in some loop I guess. The method getting invoked DOES NOT get called. It's definitely hanging inside invoke somewhere. Is this a bug?

    one more clue: There're 100-200 threads calling Method.invoke when the hang happens. The hang is permanent as far as I can tell. I've tried using synchronize in various ways. No luck.

  • Dynamic casting of Method.invoke() return

    Can anyone clue me in on how to cast the return of Method.invoke() based on Method.getReturnType() or whatever else might work dynamically....that is without knowing which method until runtime?
    Thanks,
    Brad

    Thanks for helping me get a grip....makes perfect sense, I guess I was just wondering how far you could take the runtime decisions thing.
    Can I say that, ( and it seems obvious but... ), programatic flexibility and runtime decision making can only be taken so far - and has to be made in the context of certain presumptions at compike time.
    I can see that in implementing the:
    <jsp: setParameter name="myBean" property="*" />
    Presumptions are made that the values passed to
    the bean setter methods will be String objects and that the
    values returned from the:getter methods using:
    <jsp: getProperty name="myBean" property="whaterver" />
    will also be String objects.
    Reality check?
    Thanks again,
    Brad

  • Method.invoke

    Hi,
    I'm trying to dynamically load various classes at runtime but have encountered a problem with the Method.invoke() method.
    Class c = Class.forName( "car" );
    Method m = c.getDeclaredMethod("Execute", new Class [] { String.class } );
    object res = m.invoke( Object obj, Object[] arg); // here is the problemI do not know what parameters to set inside Method.invoke(). Looking for some advice here. All the classes that I want to load implement an interface;
    interface loadplugin
       boolean Execute(String str);
    }Any suggestions?

    Hi,
    You put the parameters the Method needs to the Object [] -
    This is a call you know:
    loadplugin myLoadPlugin = new LoadpluginImplementingClass();
    boolean result = myLoadplugin.Execute("Hallo World");The corrsponding call to the Method object is:
    Boolean result = (Boolean)m.invoke(myLoadpugin, new Object[]{"Hallo World"}); The Method object only can hanlde Object types. For any standard data type (int, boolean, double, etc.) the corresponding Wrappers have to be used. So the return in case of the Method-Object call is Boolean, not boolean.
    I hope this helps,
    Lars.

  • Passing a socket to a timer invoked function

    I am controlling a computer remotely using PrintWriter to a socket. I want a heartbeat timer to send a small xml message every 10 seconds. I need to know how to pass the fromClient PrintWriter to the timer invoked function.
    I have a client that opens a connection using PrintWriter
    try {
    OrderSocket = new Socket(host, port);
    fromClient = new PrintWriter(OrderSocket.getOutputStream(), true);
    toClient = new BufferedReader(new InputStreamReader(OrderSocket.getInputStream()));
    How can I get the socket from inside run()?

    I am having trouble with passing a socket to a timer task. The #### comments show what I want to do.
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package clienttcp;
    import java.net.*;
    import java.io.*;
    import java.lang.String.*;
    import java.util.Timer;
    import java.util.TimerTask;
    public class clientTCP {
    public static void main(String[] args) throws IOException {
    String host = "localhost";
    int port = 4444;
    Socket OrderSocket = null;
    PrintWriter fromClient = null;
    BufferedReader toClient = null;
    try {
    OrderSocket = new Socket(host, port);
    fromClient = new PrintWriter(OrderSocket.getOutputStream(), true);
    toClient = new BufferedReader(new InputStreamReader(OrderSocket.getInputStream()));
    } catch (UnknownHostException e) {
    System.err.printf("Don't know about host: %s.\n", host);
    System.exit(1);
    } catch (IOException e) {
    System.err.printf("Couldn't get I/O for the connection to: %s.\n", host);
    System.exit(1);
    BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));
    String fromServer;
    fromClient.println("First hi");
    //###### I want a timer to do this every 10 seconds ##########################
    // fromClient.println("hi");
    while (true) {
    // first process the reply then drop down to body
    if ((fromServer = toClient.readLine()) != null) {
    System.out.println("GrocServer: " + fromServer);
    if (fromServer.equals("Bye.")) {
    break;
    fromClient.close();
    toClient.close();
    stdIn.close();
    OrderSocket.close();
    }

  • How to use INVOKE function with INT parameter types

    Can you tell me how to use invoke function with int parameter type ?

    Pass the int as an Integer.

  • HR ABAP - Generic method or function to create a PD object & Relat (IT1001)

    Hi,
    This question is related to HR Abap .
    Do we have a generic class method or function module which can be used to create any PD object(O,S,C,...) and relationships (A008, A003, 007,...)between these objects .(not RH_INSERT_INFTY) . It should also trigger change pointers .
    And also do we have a decoupled or generic infotype(1000,1001,1002,....) classes in PD side also similar to PA infotype classes(CL_HRPA_INFOTYPE_0002, CL_HRPA_INFOTYPE_0008,....) . It should also trigger change pointers .
    Thanks in advance

    Generic function to create infotypes 1000 and 1001 is RH_INSERT_OBJECTS
    Classes are CL_HRBAS_INFTY_1000, CL_HRBAS_INFTY_1001, etc

  • Using java.lang.reflect.Method.invoke on a static method?

    This is probably a FAQ, but I am finding it impossible to construct a search which answers this question for me.
    How do I call java.lang.reflect.Method.invoke on a static (e.g. class) method? Is it even possible?
    Thanks,
    dwh

    Is this of any help?
    http://www.esus.com/javaindex/j2se/jdk1.2/javalang/reflection/reflection.html
    Cheers,
    Joris

  • Using Reflection - Method.invoke()

    Hi all,
    Facing a problem in using the Reflection API. Can anyone tell me how to use the invoke, which is available with Method. Problem statement. - I want to create a method. And then invoke that method using method1. invoke. But this can take only the following arguments - (Object, Object [ ] ). I cant figure out why I need to pass on an object ? and an array of objects ?

    If you read the docs for Method.invoke, you'll see that the first argument is the object on which you wish to invoke the method, and the second argument is the parameters (with primitives wrapped appropriately).
    foo.bar("abc", 123);
    // becomes
    meth.invoke(foo, new Object[] {"abc", new Integer(123) }); (if I haven't screwed up the syntax of the array initialization)
    http://java.sun.com/docs/books/tutorial/reflect/

  • Is Method.invoke (Object,Class[]) efficient

    hi
    How efficient is the method invoke compared to explicit method calling?
    thanks

    I cna't give any solid numbers either, but when I've used it I've noticed it to be much slower than directly invoking the method. Ballpark I'd guess 5 times as much overhead, but don't hold me to that. Of course, if the work your method does is large compared to method invocation overhead, then it shouldn't really matter.

  • Method.invoke() thread save ?

    Hi to you all,
    Is the method invoke on the Object Method in the java.lang.reflect package threadsafe ?
    Greetz-tbone

    I'have created a with a college a ReflectionMap where getter and setter maps to the javabean properties
    using reflection at creation time the map cache the methods of the underlaying object
    now we want to use it i a multiple thread context
    where more than one thread can access the map a time
    if the implementation of Method is threadsafe then we do not need synchronisation else
    we must synchronize our map.
    and sinds that synchronisation is a performence bottleneck i would like to live it out.
    Tbone

Maybe you are looking for

  • Including open PO's in BP's account balance?

    Hi guys, Is there a way to include open purchase orders in a business partners account balance even if the corresponding invoice is yet to been received? We have situations where goods are payable upon receipt but we do not receive the invoice until

  • Failed to install Flash Builder 4.5 in Mac OSX 10.7 Lion

    Quickly after starting the installation procedure, the installer says the installation is cancelled and gives me the following error report: Exit Code: 24 -------------------------------------- Summary -------------------------------------- - 0 fatal

  • Current Date in Transfer Rules Formula Editor

    Hi! Anyone aware how to get todays' date in the Transfer Rules Formula Editor? Aim is to calculate ones actual age based on a given birthday-month-year using the dateDifference function. Cheers

  • What is the Smallest Mac Network Set Up

    We are a two person office -two imacs on 10.6 and would like to know what the smallest, most efficient network set up between the two machines could be, including back up. Central data access is the issue. a) We heard there are dedicated external har

  • How can I get rid of the the thing below my bookmark list?

    Below my bookmarks list there is blank space that just says the website I'm on. For example if i go to google.com it will say Google on above my toolbar and below my bookmarks list. Not to sure how to explain it but if I open multiple tabs on my wind