How to call the client side procedure...with trigger code

hi
i have made a client side procedure with one IN PARAMETER having datatype number. i call this procedure through a button in which i declare a CURSOR
(all_emp)...so in the BEGIN SECTION i make a loop as (FOR e IN all_emp LOOP) and then call the client side procedure as CALC_EMP_PR_ALW_DED(e.emp_id); but here the error show that is statment ignored....
so plz help me that where i am wrong.... here is the trigger code
working in forms 6i...
IF SHOW_LOV('LOV_EMP') THEN
     NULL;
END IF;
DECLARE
     CURSOR all_emp IS
               SELECT DISTINCT e.emp_id
               FROM alw_ded ad,emp_alw_ded ead,emp e
               WHERE NVL(ead.status,'A') = 'A'
               AND NVL(e.stat,'A') = 'A'
               AND ead.ad_id = ad.ad_id
               AND e.emp_id = ead.emp_id
               AND ead.emp_id = :CON_BLK.emp_id;
BEGIN
          FOR e IN all_emp LOOP
               CALC_EMP_PR_ALW_DED(e.emp_id);
          END LOOP;
END;
thankx in advance

yes i did same and i send u the procedure code as... now i wnt to use these
PROCEDURE CALC_EMP_PR_ALW_DED(P_EMP_ID IN NUMBER) IS
v_basic NUMBER; --Basic Pay of employee
v_l_p CHAR(1); -- Percentage or Lump sum
v_amount NUMBER; -- Amount or value of Allow/ded/contr
v_max_limit NUMBER;
v_type NUMBER; -- Allow/ded/cont          
v_b_g CHAR(1); -- Basic or Gross
v_min_limit NUMBER;
v_emp_id NUMBER;
v_user Varchar2(20);
v_gross NUMBER;
v_max_amount NUMBER; -- DEDUCTION ACTUAL AMOUNT NOT MAX
up_limit NUMBER;
new_amt number;
CURSOR all_alw_ded IS
     SELECT ad.abbre,ead.ead_id,e.emp_id,descrip,l_p,ad.amount,nvl(ad.max_limit,0) max_limit,b_g,ad.type,nvl(ad.min_limit,0) min_limit
               FROM alw_ded ad,emp_alw_ded ead,emp e
               WHERE NVL(ead.status,'A') = 'A'
               AND NVL(ad.TYPE,'A') = 'A'
               AND ead.ad_id = ad.ad_id
               AND e.emp_id = ead.emp_id
               AND e.emp_id = P_EMP_ID;
BEGIN
          SELECT USER
          INTO v_user
          FROM
          DUAL;
               FOR e IN all_alw_ded LOOP
                              IF e.type = 'A' THEN
                              new_amt := Trunc(e.amount);
                              ELSE
                                   new_amt := Round(e.amount);
                              END IF;
                         IF e.l_p = 'P' AND e.b_g = 'B' THEN
                              v_basic := nvl(HRPR.EMP_BASIC(e.emp_id),0);
                         END IF;          
                                   SELECT nvl(BASIC_PAY,0) INTO v_basic FROM EMP WHERE EMP_ID=P_EMP_ID;
                                   IF NVL(e.max_limit,0) > 0 THEN
                                        up_limit := nvl(((v_basic * nvl(e.amount,0))/100),0);     
                                        IF up_limit > e.max_limit THEN
                                             v_max_amount := nvl(e.max_limit,0);
                                   --     v_max_amount :=100;
                                        ELSE
                                             v_max_amount := ((nvl(v_basic,0) * nvl(e.amount,0))/100);
                                        END IF;
                                        ELSE
                                             v_max_amount := ((nvl(v_basic,0) * nvl(e.amount,0))/100);
                                             --     v_max_amount :=200;
                                        END IF;
                         IF e.l_p = 'P' AND e.b_g = 'G' THEN -- %AGE AND GROSS... CHECK NOT PRESENT...?? AHSAN 10-09-05
                              v_gross := HRPR.EMP_GROSS(e.emp_id);
                              IF e.type = 'A' THEN
                                   new_amt := Trunc((v_gross * e.amount)/100);
                              ELSE
                                   new_amt := Round((v_gross * e.amount)/100);
                              END IF;
                         END IF;
               END LOOP;
          END;
-- END; ------- PROCEDURE END

Similar Messages

  • How to call the application that submitted with the ipod touch 5?? is a ninja

    how to call the application that submitted with the ipod touch 5?? is a ninja

    You should not discuss beta software here at all.
    This is a developer only question and should be posted in the developer forum

  • How to implement a client side map with ObjectImage control?

    We need to implement a client side map with an ADF Faces ObjectImage control. In the code below, the JSF Faces GraphicImage contol does support a client side image map using the usemap property. However, it appears that the ADF Faces ObjectImage control does not support a client side map. Is there someway of implementing this functionality in an ObjectImage control?
    <h:graphicImage url="/images/map-usa.gif"
    usemap="#m_mapusa"
    binding="#{backing_map.graphicImage2}"
    id="graphicImage2"
    style="border-style:none;"/>
    <af:objectImage source="/images/map-usa.gif"
    binding="#{backing_map.objectImage2}"
    id="objectImage2" />
    We could use the Graphic Image control except we have a problem by mixing a JSF GraphicImage control in the same table with a variety of ADF Faces controls in that when a user clicks on the GraphicImage, then the browser windows scrolls down to center the GraphicImage control. A user then needs to scroll back up to see the rest of the page. If an ObjectImage control is used with an onClick action, then the page does not scroll, which is what we want. So if we can figure out how to add a client side map to an ObjectImage control we would get the desired results.
    An alternative might be to use a server side map with the ObjectImage control. But our question here is how to implement the existing client side image map in a backing bean. As the following map code shows, not all image map areas are rectangles - some are polygons.
    <area id="_state_05" href="#"
    shape="rect"
    coords="681,38,702,50"
    target="_self" value="VT" alt="Vermont"
    onclick="javascript:getDtl(this);"/>
    <area id="_state_06" href="#"
    shape="poly"
    coords="221,442,209,436,209,418,191,403,155,382,116,367,101,370,98,364,
    122,355,158,367,203,388,212,394,242,427"
    target="_self" value="HI" alt="Hawaii"
    onclick="javascript:getDtl(this);"/>

    Hi,
    Any news about that issue, we are also interested in any solution.
    Thanks
    Math

  • How to call PL/SQL stored procedure with TWO or more arguments from URL?

    Hi all,
    does anybody know, how to call stored procedure with more than one argument?
    How to do this with one argument is known -
    <img src="#OWNER#.retreive_img_data?i_id=#IMG_ID#" width="70" height="80" alt="No Picture">
    But if I need to call procedure with two formal parameters? And need to pass through URL, for example, two page item values?

    Just separate with an "&". Using your previous example, I'll add i_name and i_type:
    <img src="#OWNER#.retreive_img_data?i_id=#IMG_ID#&i_name=somename&i_type=jpg" width="70" height="80" alt="No Picture" />
    Tyler

  • How to call the Jsp through BPM Obejct

    Hi,
    I have gone through the some topic, how to call the Jsp through BPM Object.
    I have followed step below,
    1. I have create the sample jsp page
    2. Import into BPM studio under webroot\custom Jsp
    3. Created the screenflow and added the "Interactive Component call" object
    4. Right Click the Object and selected Maintask and Implementation type as "BPM Object Interactive Call"
    5. Selected the use JSP presentation object option and when i click ok its showing "BPM instance object must be selected"
    But when i select the Instance Variable tab, its not showing anything.
    Can any one help me how to call the Jsp in screenflow with step by step procedure, that would be very greate help for me.
    Regards,
    Anandh P

    Hi,
    You are running a jsp report through rwservlet. In this case paper layout will be displayed. You have to deploy your jsp as web report to get the web layout. Please refer to the doc below, which describes how to deploy the web report.
    http://download-uk.oracle.com/docs/html/B10314_01/pbr_run.htm#1011901
    To run the jsp report, URL may look like
    http://www.wwt.com/reports/<jsp name>?<parameter list>
    Hope this helps
    Vinayak

  • How can i lookup a session bean from the client side

    how can i lookup a session bean from the client side...........i am using sun appserver..............
    this is my code.................[B]
    private final static String JNDI_NAME="ejb/LmsBean";
    private static String url="ldap://localhost:4848";
    Hashtable h=new Hashtable();
    h.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory");
    h.put(Context.PROVIDER_URL,url);
    System.out.println("Before Loading Context in Delegate");
    Context ctx=new InitialContext(h);
    System.out.println("Loaded Context in Delegate");
    Object obj=ctx.lookup(JNDI_NAME);
    System.out.println("Loaded Object in Delegate");
    System.out.println("Before Loading Home in Delegate");
    LmsHome home = (LmsHome )PortableRemoteObject.narrow(obj,com.parx.lms.controller.LmsHome.class);
    System.out.println("Loaded Home in Delegate");
    lms = home.create();
    System.out.println("Loaded remote in Delegate");
    [B]and i got the exception........
    Inside Client before calling delegate
    Before Loading Context in Delegate
    javax.naming.CommunicationException: Request: 1 cancelled
    javax.naming.CommunicationException: Request: 1 cancelled
    at com.sun.jndi.ldap.LdapRequest.getReplyBer(LdapRequest.java:60)
    at com.sun.jndi.ldap.Connection.readReply(Connection.java:405)
    at com.sun.jndi.ldap.LdapClient.ldapBind(LdapClient.java:340)
    at com.sun.jndi.ldap.LdapClient.authenticate(LdapClient.java:171)
    at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2640)
    at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:290)
    at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:175)
    at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:193
    at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.ja
    va:136)
    at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.jav
    a:66)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
    62)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243
    at javax.naming.InitialContext.init(InitialContext.java:219)
    at javax.naming.InitialContext.<init>(InitialContext.java:195)
    at com.parx.lms.lmsdelegate.LmsDelegate.getController(LmsDelegate.java:3
    0)
    at com.parx.lms.lmsdelegate.LmsDelegate.addUserDelegate(LmsDelegate.java
    :50)
    at com.parx.lms.client.consoleClient.Client.main(Unknown Source)
    pls go tru the exception and pls help.........

    That url string should be having the server name or ip instead of localhost.

  • How to get the client identity from the certificate at server side

    hi, this is ravi kiran,
    I am working on a project which requires, receiving a signed file from the client side and verify whether the file is signed by a valid certificate that is there in the servers keystore.
    How can i get the client certificate at server side and check with the certificates already present in the servers keystore.
    i have no idea how to do this
    can any one help me
    thanx in advance

    Hi Ravi, did you get any answer to your question ?
    I'm also after a similar problem, please share your solution, if you have any.

  • How to use javascript to print on the client side

    hi all,
    Now i'm facing a problem:
    I want to use javascript to print something(for example, a table) on the client side. So i must get a connection with the printer installed in the client computer.
    some says that getObject() function can do this,but i don't know how?
    Who please help me!

    window.print();

  • How can we execute an *.exe that is present on the client side from Server.

    Hi
    My application users would be having their own exe's installed on their machines. Using a wizard thay would be providing the path where the executable would reside on their machine and this information will be store in our data base. So how can we provide the user the capability of executing the exe from my application that is a server based.
    Thank you in advance.

    basically... drop the requirement as it is simply impossible. Whatever the executable is doing, perhaps you can mimic it in an applet, javafx, flash, silverlight, flex or whatever similar platform you want to use. Doing anything to or with that which resides on the client side is off limits to you and with very good reasons. Just think about the horrible things you could do to a computer if you had access to it through a simple webpage!

  • How to Print Crystal Report without any dialog message on the client side

    Hi!
    I've read too much questions like this, but i can't find any answer.
    How can i print a report on the client side directly?
    I have three buttons, "Generate Report", "Generate PDF", "Print".
    I want when the "Print" button was clicked, automaticaly the report is printed using default printer, like PrintToPrinter function, but in the client side.
    Thanks!

    If you search for previous posts about this, you will see many posts saying not possible.  If this functionality was possible, you could essentially have a page that would send something to a clients printer just by visiting the page, how bad of security hole would that be?

  • How to call the Page Fragment in Page with Flow logic

    Hi,
        I am new to BSP, My requirement is to created 1 page fragment which contains the Logo.  and to create 2 pages in flow logic
    The  logo has to apper in Pages with flow logic Pages. My question is how to call the PAge fragment in the 1 &2 pagesin page with flow logic
    Thanks,
    suresh

    Suresh,
    There is a very enriching portal help.sap.com  where you can find all basic and good documentation .
    http://help.sap.com/saphelp_nw04/helpdata/en/77/8a54d7434ff34784272a3df98ab645/content.htm
    the above link is from that portal.
    Before asking such basic questions please at least try to find or do some research yourself.
    There are standard applications like HTMLB_SAMPLES and SBSEXT_HTMLB and more for sample applications.
    Regards,
    Anubhav

  • How do I get an XML file on the client side hard drive

    Is there a way to get XML files from a Flex form and get it
    to the hard drive on the client side? I realize Microsoft got
    impaled by allowing this sort of thing with ActiveX. We would like
    the app to be browser based but need XML files dropped off on the
    hard drive. There is an application running locally that needs to
    consume them. Can I run flex standalone without web services and
    still access the hard drive? Seems robust enough to do so.

    dadanas wrote:
    Hi Simcah, I have a similar problem. Have you found out any solution?
    thanks, dan
    You need to ask the printing service provider. Dealing with color totally depends on the printing process involved and of course the machines used.

  • How is called the Services "OpsMgr Health Service" in the SCOM 2012 and Client machine?

    Hi,
    Can anybody tell me how is called the Services of OpsMgr Health Service in the SCOM 2012?
    I have installed the agent of scom2012 on my client computer. But I dont find any agent called "OpsMgr Health Service" on the Client machine?
    Regards

    Hi
    If you look in the services.msc window then it is listed as the System Center Management Service. This is the display name.
    The actual service name is HealthService
    Cheers
    Graham
    Regards Graham New System Center 2012 Blog! -
    http://www.systemcentersolutions.co.uk
    View OpsMgr tips and tricks at
    http://systemcentersolutions.wordpress.com/
    The Ayman answer is god, It is called "Microsoft Monitoring Agent"

  • How to get the client certificate at server side

    hi, this is ravikiran
    I am working on a project which requires, receiving a signed file from the client side and verify whether the file is signed by a valid certificate that is there in the servers keystore.
    I have no idea how to do this.
    can anyone help me.
    thanx in advance.

    [sorry, deleted irrelevant wrong answer]

  • How to detect the closure of browser window at the client side?

    Hi,
    Does anyone know how I can detect the closure of the browser window at the client side from the server side?
    Please advise.
    Damien

    Basically you can't. People will suggest various Javascript things you could try, but they don't work reliably. So don't try, just make a design that doesn't require knowing that.

Maybe you are looking for

  • Inconsistency in MB5B Report

    Hi All, I am getting an inconsistency in MB5B report when i am running this report from begining it is  displaying as (01.01.0000 - Date, 000 - Stock, Unit Value, 9100 INR). I have checked this value 9100 in Line item display of stock account, this e

  • Problem with colors and bits

    So I have this problem, I made a drawing with my tablet in 32bit color in photoshop and I want to save it as a TIFF file, but when I save it the image that is the tiff file is black and white and the cuality is not good.I think there is some kind of

  • Cannot watch a rented movie.

    Rented a movie but cannot locate it to watch. Where does the movie download to once it has been downloaded?

  • Call function node exception AI SingleScan

     Hi all,  I am running a Labview 6.1 application on Windows 2000.  When I run the circuit to measure waveform curve on 1 input it works fine.  But I had to introduce a measurement of 2 more inputs and now get the following exception (this happens spo

  • Error code Please help.

    When I am creating a new CSS style sheet file I get a Java Script error while loading Spry Data Set.htm: At line 204 of fileC:\ProgramFiles(x86)\Adobe\AdobeDreamweaverCS5\Configuration\Commands\InsertDiv.js"; out of memory Can anyone tell me what I c