How to do this: Link which calls a methode with a parameter?

Hello!
I have a small question:
I have a jsp-site with some beans.
On the jsp-site I have the following code which isnt functional:
<c:forEach items="${filter.resultlist}" var="result">
    <c:url action="#{filter.selectedAoid(result.aoid)}">
         <c:out value="${result.name}" / >
     </c:url>
</c:forEach>-> As you can see:
I want to make a Link, which is named like the String in the List and accessable by ${result.name} and on a click it should run "filter.selectedAoid()" with an int Parameter.
(So I can access the right object with my Aoid-identifier...)
The List comes from a DB and I am able to access the values of the Objects in the list.
Could someone please tell me how that is done?
Thanks in advance
Fuchur

One way of hacking this problem is by dynamically updating the job step which executes the stored procedure to include the parameters the user provided.  You can do so by using
msdb.dbo.sp_update_jobstep.
So for example, you could create a job named "Test job" and in that job the first step would be to execute your stored procedure.  You would then use the following code to update that step at run time:
execute msdb.dbo.sp_update_jobstep
@job_name = N'Test job',
@step_id = 1,
@command = 'execute my_proc @my_variable = ''my_value'''
You'd then use sp_start_job like so:
execute msdb.dbo.sp_start_job @job_name = 'Test job'
Your job would then execute using the value provided at run time for the @my_variable parameter.

Similar Messages

  • Using Java Reflection to call a method with int parameter

    Hi,
    Could someone please tell me how can i use the invoke() of the Method class to call an method wiht int parameter? The invoke() takes an array of Object, but I need to pass in an array of int.
    For example I have a setI(int i) in my class.
    Class[] INT_PARAMETER_TYPES = new Class[] {Integer.TYPE };
    Method method = targetClass.getMethod(methodName, INT_PARAMETER_TYPES);
    Object[] args = new Object[] {4}; // won't work, type mismatch
    int[] args = new int[] {4}; // won't work, type mismatch
    method.invoke(target, args);
    thanks for any help.

    Object[] args = new Object[] {4}; // won't work, type
    mismatchShould be:
        Object[] args = new Object[] { new Integer(4) };The relevant part of the JavaDoc for Method.invoke(): "If the corresponding formal parameter has a primitive type, an unwrapping conversion is attempted to convert the object value to a value of a primitive type. If this attempt fails, the invocation throws an IllegalArgumentException. "
    I suppose you could pass in any Number (eg, Double instead of Integer), but that's just speculation.

  • Dynamic Imagelink Component - Calling Impl method with input parameter

    Hi All,
    I have requirement where Imagelinks are created dynamically on the pageload. Generated the components and the components are displayed on the jspx.
    Now when I click the image link, a method in AMImpl should invoke and this method takes some input parameters.
    I am able to call the method successfully in AMimpl with the help of below code. But I could not understand how to pass the input parameters to that method.
                               RichCommandImageLink lockimageLink =
                                new RichCommandImageLink();
                            lockimageLink.setIcon("icon.png");
                            lockimageLink.setId("icon" + index);                   
                            MethodExpression me =
                                JSFUtils.getMethodExpression("#{bindings." +
                                                             "MyMethodName" +
                                                             ".execute}");
                            lockimageLink.addActionListener(new MethodExpressionActionListener(me));
      public static MethodExpression getMethodExpression(String name) { 
       Class [] argtypes = new Class[1]; 
       argtypes[0] = ActionEvent.class; 
       FacesContext facesCtx = FacesContext.getCurrentInstance(); 
       Application app = facesCtx.getApplication(); 
       ExpressionFactory elFactory = app.getExpressionFactory(); 
       ELContext elContext = facesCtx.getELContext(); 
       return elFactory.createMethodExpression(elContext,name,null,argtypes); 
      } Can some one please suggest how to pass input parameters to the Impl method.
    Jdeveloper Version : 11.1.1.4.0
    Thanks,
    Morgan.
    Edited by: 900114 on May 12, 2012 11:23 PM

    You can use the below method to call an AMImpl method. You can pass parameters as well to the AMImpl method.
    DCBindingContainer bindings = getDCBindingContainer();
    OperationBinding ob = bc.getOperationBinding("MyMethodName");
    Map m = ob.getParamsMap();
    ob.put("paramName", "paramValue"); paramName is the parameter in AMImpl and paramValue is the value to be passed.
    ob.execute();
    Where getDCBindingContainer() is:
    public DCBindingContainer getDCBindingContainer() {
    ExpressionFactory exprFactory;
    ELContext elContext;
    ValueExpression valueExpression;
    DCBindingContainer dcBindingContainer;
    FacesContext facesContext = FacesContext.getCurrentInstance();
    exprFactory = facesContext.getApplication().getExpressionFactory();
    elContext = facesContext.getELContext();
    valueExpression =
    exprFactory.createValueExpression(elContext, "#{bindings}",
    Object.class);
    dcBindingContainer =
    (DCBindingContainer)valueExpression.getValue(elContext);
    return dcBindingContainer;
    Hope this helps
    Edited by: umesh.agarwal on May 13, 2012 12:10 AM
    Edited by: umesh.agarwal on May 13, 2012 12:10 AM

  • Pass Parameter to Job which calls a SP with the Parameter provided?

    ok, I have a problem that is getting the better of me.
    I have an SP called sp_Rep_QTR which expects the following parameters @stardate,@Endate.
    Now what I want to do is the following,
    Create a Job which will EXEC the sp_Rep_QTR at a time(@active_start_time ) provided and pass the @stardate,@Endate parameters to the SP .
    The @stardate,@Endate parameters will be passed to a SP which will create the Job - These are passed from a web page.
    I'm completely in over my head on this one so any help would be great.
    Thanks..

    One way of hacking this problem is by dynamically updating the job step which executes the stored procedure to include the parameters the user provided.  You can do so by using
    msdb.dbo.sp_update_jobstep.
    So for example, you could create a job named "Test job" and in that job the first step would be to execute your stored procedure.  You would then use the following code to update that step at run time:
    execute msdb.dbo.sp_update_jobstep
    @job_name = N'Test job',
    @step_id = 1,
    @command = 'execute my_proc @my_variable = ''my_value'''
    You'd then use sp_start_job like so:
    execute msdb.dbo.sp_start_job @job_name = 'Test job'
    Your job would then execute using the value provided at run time for the @my_variable parameter.

  • How to create a link which will redirect to a different iView?

    Hello,
    I have a certain iView, let's call it "myiView" which sits inside a certain Role, let's call it "myRole".
    At the Homepage of the users I have KM navigation iView which shows a certain folder. I would like to create inside this folder a link to "myiView", this way when users will click on this link at the Homepage they will be redirected automaticly to "myiView". I remember reading once something regarding internal links perhaps this is solution but I'm not sure. Can anyone please show me how to create such link which redirects to another iView at the portal.
    10X
    Roy

    Hey Prakash,
    I am creating a KM link to this target, where at this link I can write javascript? As far as I know it is only possible at the iView level no? And where do I take the PCD URL from?
    Hey Ashutosh,
    I think that your method will open a whole new browser since it is an external link, I woulk like to keep the current navgation at the same page, simply navigate the user to a different place at the portal...
    Roy

  • When attempting to download, in the Launch Application panel, it says ..."this link needs to be opened with an application" and shows send to "CC URI Handler", but also Choose an application.  How do I get past this point, as neither option seems to work?

    When attempting to download, in the Launch Application panel, it says ..."this link needs to be opened with an application" and shows send to "CC URI Handler", but also Choose an application.  How do I get past this point, as neither option seems to work?

    Code 6 & Code 7 http://helpx.adobe.com/creative-suite/kb/errors-exit-code-6-exit.html
    or
    A chat session where an agent may remotely look inside your computer may help
    Creative Cloud chat support (all Creative Cloud customer service issues)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html

  • How to create a session using call transaction method.

    hi , this is nagaraju,
    How to create a session using call transaction method.

    Hi,
    About Data Transfer In R/3 System
    When a company decides to implement the SAP R/3 to manage business-critical data, it usually does not start from a no-data situation. Normally, a SAP R/3 project comes into replace or complement existing application.
    In the process of replacing current applications and transferring application data, two situations might occur:
    •     The first is when application data to be replaced is transferred at once, and only once.
    •     The second situation is to transfer data periodically from external systems to SAP and vice versa.
    •     There is a period of time when information has to be transferred from existing application, to SAP R/3, and often this process will be repetitive.
    The SAP system offers two primary methods for transferring data into SAP systems. From non-SAP systems or legacy system. These two methods are collectively called “batch input” or “batch data communication”.
    1. SESSION METHOD
    2. CALL TRANSACTION
    3. DIRECT INPUT
    First step for both the methods is to upload the data to internal table. From Internal Table, the data is transferred to database table by two ways i.e., Session method and Call transaction.
    Session is intermediate step between internal table and database table. Data along with its action is stored in session i.e., data for screen fields, to which screen it is passed, the program name behind it, and how the next screen is processed.
    When the program has finished generating the session, you can run the session to execute the SAP transactions in it. Unless session is processed, the data is not transferred to database table.
    A technique similar to SESSION method, while batch input is a two-step procedure, Call Transaction does both steps online, one after the other. In this method, you call a transaction from your program.
    SESSION METHOD
    Data is not updated in database table unless Session is processed.
    No sy-subrc is returned.
    Error log is created for error records.
    Updation in database table is always synchronous
    CALL TRANSACTION
    Immediate updation in database table.
    Sy-subrc is returned.
    Errors need to be handled explicitly
    Updation in database table can be synchronous Or Asynchronous.
    Regards,
    Sruthi.

  • RE: [Adobe Reader] when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? i

    HelloThank's for your helpsI hope this document is helpfulBest Regards,
    Date: Sun, 22 Jun 2014 17:10:17 -0700
    From: [email protected]
    To: [email protected]
    Subject:  when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? if you can help me th
        when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? if you can help m
        created by Anoop9178 in Adobe Reader - View the full discussion
    Hi,
    Would it be possible for you to share the document?
    Regards,
    Anoop
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6485431#6485431
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
         To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Adobe Reader by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

    thank's for reply and your help
    i did the step's that you told me but  i still have the same problem
                                     i have the latest v.11.0.7
    i
    i disable the protected mode

  • When I try downloading Kindle for PC Windows 8 I get the message "this link needs to be opened with an applicatio"-and I don't know what I have to do

    Hi, I have just brought a new laptop running windows 8 and have installed Firefox. My old laptop was running XP and I didn't have a problem running Firefox on it. I am trying to install Kindle for PC on my new laptop but I keep getting the message "this link needs to be opened with an application". I've never seen this message before on any web browser that I have used. I have "googled" the question and some suggestions are:
    > reloading Firefox-no point I've just loaded it
    > downloading through Internet Explorer-which I don't want to do as I want Firefox my browser of choice
    > Some talk of changing profiles-which I haven't a clue about.
    Any help in plain and simple English and assuming I have no prior knowledge (I'm a car driver rather than a mechanic) will be greatly appreciated.
    Thanks in advance

    I'm not familiar with downloads from the Windows 8 app store. Have you had problems with any other store downloads, or just this one? Is it an option to save the file?

  • Firefox does not know how to open this address because the protocol (Sims3) with any program connects

    Firefox does not know how to open this address because the protocol (Sims3) with any program connects
    can you help me plz

    Was the message sent from Microsoft Outlook? When you embed an image in a message in Outlook (at least up to version 2003), it creates a hidden attachment for the image and then inserts a "cid" reference to it. If the attachment gets stripped for any reason then the "cid" reference is useless: Outlook does not store the original URL or path to the image.
    Edit: By the way, which webmail site has this problem?

  • When i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? if you can help me th

    when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ?
    if you can help me thank's
    [email address removed by host]

    thank's for reply and your help
    i did the step's that you told me but  i still have the same problem
                                     i have the latest v.11.0.7
    i
    i disable the protected mode

  • My Macbook is not working properly, I went to a Genius Bar appointment, they were not helpful at all and just told me to go off and reboot my Mac and then restore via TimeMachine. I dont know how to do this. I am extremely displeased with Apple, help me?

    My late 2011 Macbook Pro is not working properly it is very slow and extremely painful to use, I went to a Genius Bar appointment, they were not helpful at all and just told me to go off and reboot my Mac and then restore via TimeMachine. I dont know how to do this. I am extremely displeased with Apple at the moment, can someone please help me?

    Your problem description is generalized and non-specific. I would make another appointment at the Apple store and insist they help you execute their suggested fixes.
    Incidentally, if you search this site, Apple has excellent articles re: restoring a system.
    Barry

  • This link needs to be opened with an application send to???

    Hey everyone, I'm trying to download the free trial of Acrobat XI Pro and it says Launch Application and then it says This link needs to be opened with an application send to: underneath it it says CreativeCloud(URI Handler) Then it says Choose an application I click choose and it gets me to a folder Programfiles (x86)>MozillaFirefox I press an exe and it says error- then I go to the the creative cloud for desktop and I press Try for Acrobat XI Pro and right before it ends the process I get this message:
    Exit Code: 7
    Please see specific errors below for troubleshooting. For example, ERROR:
    -------------------------------------- Summary --------------------------------------
    - 0 fatal error(s), 5 error(s)
    ----------- Payload: Microsoft Visual C++ 2010 Redistributable Package (x86) 10.0.40219.1 {9E0AF030-AC6B-11E0-8837-00215AEA26C9} -----------
    ERROR: Third party payload installer vcredist_x86.exe failed with exit code: 1603
    ERROR: Failed to install Microsoft Visual C++ 2010 Redistributable Package (x86). Please try installing it by double clicking on the executable at "C:\Users\ero\AppData\Local\Temp\{950447E1-14EE-4CC4-8449-6C87F90B0589}\Acrobat_11_0_0_CC M_MUI\Adobe CS7\payloads\Microsoft VC 2010 Redist (x86)\vcredist_x86.exe", or download and install the latest Microsoft Visual C++ 2010 Redistributable Package (x86) from Microsoft website - www.microsoft.com
    ----------- Payload: Acrobat Professional 11.0.0.0 {23D3F585-AE29-4670-8E3E-64A0EFB29240} -----------
    ERROR: Error 1359.An internal error occurred.
    ERROR: Install MSI payload failed with error: 1603 - Fatal error during installation.
    MSI Error message: Error 1359.An internal error occurred.
    ERROR: Third party payload installer AcroPro.msi failed with exit code: 1603
    The Error 1603 and The Error 1359 keeps reappearing on my attempt to download Skype.. Does anyone have any insights on this?
    Thanks for reading!

    Code 6 & Code 7 http://helpx.adobe.com/creative-suite/kb/errors-exit-code-6-exit.html
    or
    A chat session where an agent may remotely look inside your computer may help
    Creative Cloud chat support (all Creative Cloud customer service issues)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html

  • When I try to down load the software i get "this link needs to be opened with an application"

    help please
    when I try to down load the software i get "this link needs to be opened with an application"
    What kind of application do I need to choose?

    Lynda in woodstock this error occurs if the AAM Detect Plug-in is not loaded.  Please try using a different web browser or installing through the Creative Cloud Desktop application.  You can find more details at Install and update apps - https://helpx.adobe.com/creative-cloud/help/install-apps.html.

  • Download Keynote - "this link needs to be opened with an application"

    signed in to my account in Apple App Store on MacBookPro 10.6.8.  Keep getting message:  "this link needs to be opened with an application".  (I downloaded Pages successfully 14 days ago.)  What to do?  Thanks.

    Hi ...
    Installing the Mac OS X 10.6.8 Update Combo may help this issue.
    It's ok to do this even though you are already running v10.6.8.
    Make sure and restart your Mac after the combo is installed then try the App Store.

Maybe you are looking for

  • [Forum FAQ] Cannot perform a backup schedule via Windows Server Backup and receive "The system cannot find the path specified." Error

    Symptom One You attempt to schedule a backup every day via Windows Server Backup on Windows Server 2008 R2. At the beginning, the backup works without issue. But after a few days it failed and you receive the error “Windows Server Backup: The system

  • Dead screen on W2100

    I just got a used W2100 it seems to boot up and posts and it recognized the keyboard (it lights up) but I get a completely blank screen. I am connecting a Dell SE198WFP flat panel monitor (1440 x 900 / 75 Hz) using a dvi-vga adapter (a non sun brand)

  • Question about backing up MBP

    I purchased my MBP back in August of 2009 and it has been virtually flawless since I have bought it. However I have downloaded all kinds of stuff to it and added all kinds of different things to it, I have a pretty large music library and what I woul

  • Iphoto to mail

    Have Mac OS X 10.5.3, Installed ILife 08, when I chose picture to transfer to mail the option of size to send always comes out small regardless of option picked ie actual size. Any suggestions?

  • Large MP4 videos problem on Nokia X6 16Gb

    I just bought an X6 to replace my N95. Previously I converted lots of my DVDs full movies to MP4 (using Handbrake) and they all ran great on my Nokia N95.  Really useful when stuck in airports!  So I was looking forward to the X6 with it's larger scr