Invoking the scheduler's doScheduledTask method from the jsp

Hi Folks,
Could you please throw some ideas on my issue,
I would like to invoke the scheduler's doScheduledTask method from the jsp.
approach is like...
I have JSP and a form. Form has a one text field and i will give some value and clicks on the submit button, it should invoke the scheduler method.
or
if you know any other approach to invoke the scheduler's doScheduledTask method from the jsp is invitable.
Thanks much in advance

Hi,
1. Create the form in the jsp and a form handler to process this form, say InvokeSchedulerFormHandler.
2. Create a variable to refer to the scheduler.
MyScheduler myScheduler;
// create getter and setter for this.
3.. Create a handle method, handleInvokeScheduler(). Do any validations if required.
4. After the validations, call getMyScheduler().doScheduledTask();
5. In the jsp, map the submit button to this handle method.
<dsp:input type="submit" bean="InvokeSchedulerFormHandler.invokeScheduler" value="Submit"/>
6. Create the .properties file to the form handler and to your scheduler.
MyScheduler.properties
$class=com.package.MyScheduler
$scope=global
InvokeSchedulerFormHandler.properties
$class=com.package.InvokeSchedulerFormHandler
$scope=request
myScheduler=/com/package/MyScheduler
(Am wondering about this requirement :) . If you can specify the reason, it will be helpful).
Hope this helps.
Keep posting the questions / updates.
Thanks,
Gopinath Ramasamy

Similar Messages

  • Schedule a Webi report from the CMC

    Hi, ALL
    Is there a way to schedule a Webi report from the CMC without using an email account in the
    'from' box? There are other placeholders that can be used but I don't know how
    to use them please advise.
    Thanks.

    Hermant,
          You need to make sure you configure the proper email server.   Go to the CMC - Server > AdaptiveJobServer>Destination>Email.  You may need to enable Email as one of the Destinations.
    You must configure all the HIGHLIGHTED options.
    Regards,
    Ajay

  • Hiding business-logic methods from the SOAP Client

    Hello,
    Is there any way to hide a method from the SOAP Client.
    For Example, Lets say I have two methods in my object Foo. And the client of this web-service can create Foo thru SOAP API. The method are:
    public String getName();
    public Group getGroup();
    I want the SOAP client to see the Foo object only with getName() and not getGroup().
    Can I control this thru Java2Wsdl or something else?
    Thanks,
    Neeta.

    You can use source2wsdd with @wlws:exclude tag for the methods you want to hide.

  • Calling methods from the Business Object BUS2032

    Hi all,
    Is it possible to call methods from the Business Object BUS2032.
    If so, how can it be done??
    Regards,

    Hi Marv,
    you sure can. Here is an extract from the SAP Help. I found it at http://help.sap.com/saphelp_46c/helpdata/en/c5/e4ad71453d11d189430000e829fbbd/frameset.htm
    <b>Programmed Method Call</b>
    Call (fictitious) method Print of object type VBAK (sales document). The method receives the parameters Paperformat and Printertype as input.
    * Call method Print of object type VBAK
    * Data declarations
    DATA: VBAK_REF TYPE SWC_OBJECT.
    SWC_CONTAINER CONTAINER.
    * Create object reference to sales document
    SWC_CREATE_OBJECT VBAK_REF 'VBAK' <KeySalesDoc>
    * Fill input parameters
    SWC_CREATE_CONTAINER CONTAINER.
    SWC_SET_ELEMENT CONTAINER 'Paperformat' 'A4'.
    SWC_SET_ELEMENT CONTAINER 'Printertype' 'Lineprinter'.
    * Call Print method
    SWC_CALL_METHOD VBAK_REF 'Print' CONTAINER.
    * Error handling
    IF SY-SUBRC NE 0.
    ENDIF.
    Cheers
    Graham

  • Using the ContactInsertOrUpdate method from the ContactWS but error msg rcv

    [This thread was migrated from the On Demand Developer Forum in the old Siebel Community]
    Corsa
    Contributor
    I am getting the following error I do not know why or how to work around
    it.
    Method 'SetFieldValue' of business component 'Contact' (integration
    component 'Contact') for record with search specification '[External <br/>
          System Id] = "123456"' returned the following error:"Access <br/>
    denied.(SBL-DAT-00542)"(SBL-EAI-04375)
    Does any out there have any ideas?
    Previously when I tried to do the same action I got the following message:
    Multiple matches found for instance of integration component 'Contact'
    using search specification '[External System Id] = "123456"' in the
    business component 'Contact', based on user key 'Contact User
    Key:3'.(SBL-EAI-04390)
    Both messages are baffling me. Please, please help
    Product: CRM OnDemand
    06-16-2006 04:35 AM
    Re: Using the ContactInsertOrUpdate method from the ContactWS but error
    msg rcvd
    BigSlick
    Valued Contributor
    Hi Corsa,
    Can you access the record in the online application. Perhaps someone has
    changed the access rights for this Contact on the Contact Team ?
    -BigSlick
    06-20-2006 12:33 PM
    Re: Using the ContactInsertOrUpdate method from the ContactWS but error
    msg rcvd
    Corsa
    Contributor
    I realise now that the field AccountID is readonly and cannot be assigned.
    I was attempting to assign contactsList[count].AccountId to a value . I
    believe, this is the reason I was getting the access denied error.
    06-23-2006 11:10 AM
    ==============================================================================
    Click on the board or message subject at the top to return.

    Ok, so I hit a bump in the road. Just when I think I understand something It doesn't work correctly.
    I implemented it I thought correctly. I looked up something on the sun website (core java) I used advice from here, and my professor finaly responded to me with almost identical instructions. So I did it
    my RationalNumber.java no looks like this.
    public class RationalNumber implements Comparable
    //.....Break to new section
      public  float compute ()
           float value = getNumerator() / getDenominator();
         return value;
       public int compareTo(RationalNumber op2)
           if (Math.abs(compute() - op2.compute()) < .0001)
              return 0; //Equal
          if (compute() > op2.compute())
            return + 1; //Rational Number bigger
          if (compute() < op2.compute())
               return - 1; //Rational Number Smaller
         }I thought that would work fine, but it gives me an error when I compile it:
    RationalNumber.java:8: RationalNumber is not abstract and does not override abstract method compareTo(java.lang.Object) in java.lang.Comparable
    public class RationalNumber implements Comparable
           ^So now what, making it abstract only creates more errors....
    Also, thanks ChuckBing, I'm glad you like the screen name, I've been using it for years.

  • How to find the arguments of a static method from the class file

    Hi,all !
    How to find the arguments of a static method from the class file? for example, when we meet a bytecode "invokestatic", how can I know the arguments of this static method?

    Hi,all !
    How to find the arguments of a static method from the
    class file? for example, when we meet a bytecode
    "invokestatic", how can I know the arguments of this
    static method?You mean
    1. The values?
    2. Argument names?
    3. Argument signatures.
    I would suppose for the last that the easiest way would be to parse the signature string.
    The first is not possible - not from the class file.
    The second is only in the debug information stored in the optional part of the class file. And figuring out the format for that is going to be a problem.

  • Calling the super class method from the subclass

    Hi all,
    I have a question about inheritence and redefinition of methods. Is it possible to call the superclass implementation of a method which is redefined in the subclass in another method of the subclass?There are possbilities like creation of an explicit super class instance or delegating the super class method implementation to another method which is also protected etc. What i mean is, is there a direct way of calling it?We have ,me,   as the reference for the instance we have(which is the subclass instance in this case), is there also a way of pointing the superclass implementation(with super we can reference in the subclass redefinition, my question is if we have such a parameter in other methods of the subclass too)
    Thanks in advance
    Sukru

    Hi,
    The super reference can only be used in redefined methods to call superclass implementation . So probably what you can do is use upcasting and access the required superclass implementation. I can think of only this way...;-)
    Ex data lr_super type ref to cl_superclass
    lr_super = lr_subclass.
    lr_super->method().
    ~Piyush Patil

  • Maintaining the scheduling agreement/ po number in the source list?

    Hi,
    What is the advantage of maintaining the scheduling agreement/ po number in the source list?
    Thanks

    This numbers will becomes mandatory if we go for "Optimized Purchasing".
    If we run MRP, the system will creates PR / Automatic Schedule lines.  For this purpose system will take the PO/Schedule Agreement Number from source list.
    Rgds.
    Karthi

  • How the client stub is generated from the wsdl file ?

    I want to know how the client stub is generated from the wsdl file ?
    how the client accesses the methods in the wsdl fie ?
    thanks alot .

    there are several ways to generate the stubs from a wsdl.
    if you're using jax-ws, there is a netbeans tutorial creating web services. you found this on http://www.netbeans.org/kb/trails/web.html.
    if you're using axis as your framework, i think this would be a nice introduction of it. link : http://www.eli.sdsu.edu/courses/spring03/cs683/notes/AXIS/AXIS.html#Heading4

  • How can I keep tabs on the file size when importing from the Event Library into a Project? I want to ensure the movie will fit onto a 4.7Gb disc?

    How can I keep tabs on the file size when importing from the Event Library into a Project? I want to ensure the movie will fit onto a 4.7Gb disc?

    iDVD does not care about file sizes, as it compresses the file to the standard DVD format of mpeg2.
    It only cares about length i.e. max 2 hours including titles etc.
    iDVD encoding settings:
    http://docs.info.apple.com/article.html?path=iDVD/7.0/en/11417.html
    Short version:
    Best Performance is for videos of up to 60 minutes
    Best Quality is for videos of up to 120 minutes
    Professional Quality is also for up to 120 minutes but even higher quality (and takes much longer)
    Professional Quality: The Professional Quality option uses advanced technology to encode your video, resulting in the best quality of video possible on your burned DVD. You can select this option regardless of your project’s duration (up to 2 hours of video for a single-layer disc and 4 hours for a double-layer disc). Because Professional Quality encoding is time-consuming (requiring about twice as much time to encode a project as the High Quality option, for example) choose it only if you are not concerned abo
    In both cases the maximum length includes titles, transitions and effects etc. Allow about 15 minutes for these.
    You can use the amount of video in your project as a rough determination of which method to choose. If your project has an hour or less of video (for a single-layer disc), choose Best Performance. If it has between 1 and 2 hours of video (for a single-layer disc), choose High Quality. If you want the best possible encoding quality for projects that are up to 2 hours (for a single-layer disc), choose Professional Quality. This option takes about twice as long as the High Quality option, so select it only if time is not an issue for you.
    Use the Capacity meter in the Project Info window (choose Project > Project Info) to determine how many minutes of video your project contains.
    NOTE: With the Best Performance setting, you can turn background encoding off by choosing Advanced > “Encode in Background.” The checkmark is removed to show it’s no longer selected. Turning off background encoding can help performance if your system seems sluggish.
    And whilst checking these settings in iDVD Preferences, make sure that the settings for NTSC/PAL and DV/DV Widescreen are also what you want.
    http://support.apple.com/kb/HT1502?viewlocale=en_US

  • Would like to use an alarm clock.  I need the alarm clock to function from the sleep mode.  A review said that MAC products will not allow a program to wake up a Mac.  Is this correct ?  Are there any products in the Mac store what will function from the

    Would like to use an alarm clock.  I need the alarm clock to function from the sleep mode.  A review said that MAC products will not allow a program to wake up a Mac.  Is this correct ?  Are there any products in the Mac store what will function from the sleep mode ?  How do I check this out ?

    You can set times for your computer to turn on or wake from sleep in the Energy Saver system preference pane using the Schedule... button.

  • UWL: The request cannot be started from the Business Workplace?

    Hi All
    Please assist I am currently trying to execute the standard leave request approval within the UWL. 
    This is the standard leave approval screen for workflow template WS12300111.
    I get the below error in a SAP ECC easy web screen.
    The request cannot be started from the Business Workplace
    Message no. HRTIM_ABS_REQ066
    Can anyone give me any insight to this as I have made multiple  changes tothe UWL config.
    Regards
    Maahir

    BY seeing the error message I think you might have not registered the task in the Portal, as you are have mentioned easy web screen
    1. When ever you are trying to execute the workitem from the UWL and you are able to See the SBWP SAP inbox in the browser then it means that the task of the workflow is not registered in the portal.
    2. Please ask your portal team to register the task in UWL with corresponding visualization parameters.
    [check for the parameters that are to be configured|http://help.sap.com/saphelp_nw04/helpdata/en/20/f0c82c9f6748c58d9ea14b3bbed93a/frameset.htm]
    You cannot execute a leave workitem from the Inbox. if you try to execute then it prompts the error message that you have mentioned.
    Try to do check all the below points.
    1. Check whether the task TS12300097 is registered in the SWFVISU txn  it should be using a Java Application. with the parameters
    APPLICATION     LeaveRequestApprover
    DYNPARAM     wi_id=${item.externalId}
    PACKAGE     sap.com/ess~lea
    2. Second thing is make the task as  General Task from the PFTC txn. so that the agent can approve
    3. Ask the portal guys to register this task in the XML file where all the application specific task's are registred. and then try to execute the workitem, this time it will show you the leave request application.

  • I updated my iPod and it erased everything i had on it.  How do i retrieve the songs that i bought from the iTunes store?  when i try to download/buy them again they tell me i have already purchased them do i want to buy them again?

    I updated my iPod and it erased everything i had on it.  How do i retrieve the songs that i bought from the iTunes store?  when i try to download/buy them again they tell me i have already purchased them do i want to buy them again?  I have authorized my computer but none of them are in my music now.

    You buy one and only one download.
    It is your responsibility to move/copy/backup your music.
    Certainly you did not update your ipod without making sure that you had transferred anything purchased on the ipod to your computer and included it in your regular backup copy of your computer.

  • How to get the values of Select-options from the screen.

    The value of parameter can be obtained by function module 'DYNP_VALUES_READ' but How to get the values of Select-options from the screen? I want the F4 help values of select-options B depending on the values in Select-option A.So I want to read the Select-option A's value.

    Hi,
    Refer this following code..this will solve your problem...
    "Following code reads value entered in s_po select options and willprovide search
    "help for s_item depending upon s_po value.
    REPORT TEST.
    TABLES : ekpo.
    DATA: BEGIN OF itab OCCURS 0,
    ebelp LIKE ekpo-ebelp,
    END OF itab.
    SELECT-OPTIONS   s_po FOR ekpo-ebeln.
    SELECT-OPTIONS s_item FOR ekpo-ebelp.
    INITIALIZATION.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_item-low.
      DATA:
      dyn_field TYPE dynpread,
      temp_fields TYPE TABLE OF dynpread,
      zlv_dynpro TYPE syst-repid.
      zlv_dynpro = syst-repid.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname     = zlv_dynpro
          dynumb     = syst-dynnr
          request    = 'A'
        TABLES
          dynpfields = temp_fields
        EXCEPTIONS
          OTHERS     = 0.
      LOOP AT temp_fields INTO dyn_field.
        IF dyn_field-fieldname EQ 'S_PO-LOW'.
            SELECT * INTO CORRESPONDING fields OF TABLE itab FROM ekpo
            WHERE ebeln EQ dyn_field-fieldvalue.
            EXIT.
        ENDIF.
      ENDLOOP.

  • How can I get netflix streaming audio, the video is fine but the audio coming through is from the TV(dish)

    how can I get netflix streaming audio, the video is fine but the audio coming through is from the TV(dish)

    It's exactly as I stated. Whenever I try to drag these kinds of loops (ESX24 / software instrument loops? the ones marked in green with the white music note next to them) from the loop browser into the timeline a message comes up saying Audio Not Found for that loop.  And a new track is created automatically when loops are dragged into the timeline, so I'm not creating some other random / synth instrument track so I'm not sure  what the deal is... But perhaps I'll try creating a software instrument track first and then drag the loop into that track and see what happens - maybe there's something with the default settings that automatically creates audio tracks whenever loops are imported?

Maybe you are looking for

  • "a file referenced by the Pan and Zoom (Basic) plug-in is missing"

    I get this message a lot in the finder, and it's stubborn about being dismissed.  Any clues how to get rid of it?  I assume it has something to do with either Avid or Final Cut.

  • Can't add friends in Game Center

    HI!  Our doughter has  iPod touch 5th gen. She has a child Apple ID account which we used to sing in to Game Center. She can use multiplayer option but can't add friends from her contacts. When we go to friends button she gets message: allow iCloud c

  • Ni 5112 soft front panel

    Hi: Can you tell me how to mesuare a voltage of 5.1V on soft front panel? Because I got 5.1 volts on soft front panel, but it stop there and it did not go back to 0V in a horizontal line. When I used the real osciloscope, I can get that and it will r

  • My iphone is stuck on black screen tried the holding buttons

    I have a iphone 3gs It keeps sticking on a black screen for no reason battery has been 20% 65% and 40% It will after a time period of up to one week the phone switches on and all good again for 3 weeks Its on oranged not jail broken or unlocked just

  • How to I upload an iOS file to a router or switch to be installed at a later date?

    I want to download the iOS update to my Cisco 2800 Series Routers and Cisco Catalyst 2960 Series Switches and leave them there till im ready to install them. Is this possible?