Reg How to Update DeleteFlag Image (Default N)  Value in Table

Hi Friends,
I have One Column Delete Button(Style Image) in Advanced Table So Based on That Delete Button Click I need to Update Value in Table(DeleteFlag =Y )
So How to Update Value in Table(Data Base).
Select empno,deleteflag from Emp where empno=:1
I attached this EmpVO to Advance Table So How to update Delete Flag(Y) Value.
Hint:::::: Iam Using Packages(Pl Sql) And Read Only VO's Only.
With out Using Package & EOVO Update is Possible In OAF.
Thanks & Regards
San

Okay ,
Here we go ,
Step 1 : Select the item in the table ( image) and go to property inspector and select fire action , give some name for Action .
Step 2 : Capture the above event from your controller class ( ProcessFormRequest () ) and Implement SQL statement
Use below code :
Import the followings
import java.sql.Connection;
import java.sql.PreparedStatement;
if ("YourEventID".equals(pageContext.getParameter(EVENT_PARAM))) // replace your event id created above
Inside if statement Add code to handle sql statement .
try
String Query = " "; // write any single SQL statement along with bind parameter inside " " , in your case it should be update statement
PreparedStatement stmt = conn.prepareStatement(Query);
stmt.setString(1,Paramtervalue); //set your bind parameter value here ( where clause paramter )
catch(Exception exception)
throw new OAException("Error in Staffing Query"+exception, OAException.ERROR);
Keerthi
Edited by: keerthioaf on Nov 27, 2012 1:47 AM

Similar Messages

  • How to Update the oracle toad column value in table by using SSRS 2008

    Hi Team,
    How to update the oracle DB table column value by using SSRS 2008.
    Can any one help me on this.
    Thanks,
    Manasa.
    Thank You, Manasa.V

    Hi veerapaneni,
    According to your description, you want to use SSRS to update data in database table. Right?
    Though Reporting Services is mostly used for rendering data, your requirement is still can be achieved technically. You need to create a really complicated stored procedure. Pass insert/delete/update and the columns we need to insert/delete/update as
    parameters into the stored procedure. When we click "View Report", the stored procedure will execute so that we can execute insert/delete/update inside of the stored procedure. Please take a reference to two related articles below:
    Update Tables with Reporting Services – T-SQL Tuesday #005
    SQL Server: Using SQL Server Reporting Services to Manage Data
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • How to update an image file into existing file

    how to update an image file into existing file

    Hi,
    So, i assume you want to change one picture. On Stage, i have edgeAnimate (an image), and
    1) i am using the div tag.
    So: sym.$("edgeAnimate").css("background-image", "url(images/myImage.png)" ); will change my picture.
    Link: CSS properties.
    More CSS:
    sym.$("edgeAnimate").css( { "background-image": "url(images/myImage.png)", "background-size": "100% 100%", "background-repeat": "no-repeat", "cursor": "pointer" } );
    Using a path variable:
    var myPath = "images/myImage.png";
    sym.$("edgeAnimate").css( { "background-image": "url("+myPath+")", "background-size":"100% 100%", "background-repeat":"no-repeat", "cursor": "pointer" } );
    2) i am using the img tag.
    I can add a class using Edge Animate user interface.
    I choose one class name: "newImage".
    So:  sym.$(".newImage").css("background-image", "url(images/myImage.png)" ); will change my picture.
    Note: I assumed you don’t need to preload your picture.

  • How to insert the image or logo into the table as a field in webdynpro abap

    Hi Friends,
    Please tell me how to insert the image or logo into the table as a field in webdynpro abap.........

    Hi Alagappan ,
          In your view layout you take table UI element and then you bind it with some context nodes.
    The attributes of your nodes comes as a field.
    Now in these fields you can set various properties and image is one of them.
    Go to ->
    1. View Layout -> Right Click on ROOTUIELEMENTCONTAINER -> INSERT ELEMENT -> TABLE
    2. Right click on table -> Create Binding.
       Here you have to bind it with the appropriate context node.
    You will get two properties here
    a- Standard Cell Editor :- ( make it image )
    b- Standard properties :- ( If required set image properties ).
    3. If you want put image from out side then import it as a mime object and set the source of your table field ( used as a image )
    also have a look :-
    [Image Properties|http://help.sap.com/saphelp_nw04/helpdata/en/f3/1a61a9dc7f2e4199458e964e76b4ba/content.htm]
    Hope this will solve your problem.
    Reply if any case of any issue.
    Thanks & Regards,
    Monishankar C

  • How to update zero to a column value when record does not exist in table but should display the column value when it exists in table?

    Hello Everyone,
    How to update zero to a column value when record does not exist in table  but should display the column value when it exists in table
    Regards
    Regards Gautam S

    As per my understanding...
    You Would like to see this 
    Code:
    SELECT COALESCE(Salary,0) from Employee;
    Regards
    Shivaprasad S
    Please mark as answer if helpful
    Shiv

  • How to update a image via URL SWF

    Hi, I want to make a sort of slideshow of the players in my game (In game when you change clothes/weapons the image auto updates to show your current character) How would I insert images into CS4 and when the image updates for it to update in CS4? PS. This is when the project is exported and uploaded to my website. Example image that auto updates:
    (http://www.msblur.com/GD/?n=AdminLee) = (http://www.msblur.com/GD/?n=CHARACTERNAME) Where CHARACTERNAME is thats where I put each individual character I want to add in..Thanks.

    you can load image files into your swf dynamically but you can't easily change swf library items dynamically.
    how you use php depends on whether you're using as2 (use loadvars) or as3 (use the urlloader class).  how you use html depends on your actionscript version and what you're trying to do.  if you want to open a html page in a browser window use getURL (as2) or navigateToURL (as3).

  • Reg:How to update VC values using BAPI_SALESORDER_CREATEFROMDAT2

    Hi,
    We are creating sales order using the BAPI_SALESORDER_CREATEFROMDAT2 FM but we also want to update variant configuration values in those sales orders. I'm passing these tables (ORDER_CFGS_REF, ORDER_CFGS_INST, ORDER_CFGS_VALUE) to the FM.'
    The sales order is been created but the VC characteristics are not getting updated.
    After the FM I am calling the commit also..
    Am I missing anything..Please guide me how to update the VC values..

    hi,
    use swo1 for uploading BAPIs
    regards,
    uttam.

  • How to update the merged customer information in custom tables?

    The "Setup merge Dictionary" is provided only to register APIs that would be called to update the merged information for parties.
    Is there a similar feature for the account merge?
    If anyone has any ideas of how to update the columns like customer_id, cust_acct_site_id etc. in custom tables at the end of customer merge, please let me know. Any sample code would be of great help.
    Please let me know ASAP.
    Thanks in advance,

    There is one method which I have used. The crm side uses a file called jtf_hooks_data. There is no guarantee that it will work in the future and you will have to test it. The merge program uses this sql
    'SELECT hook_package, hook_api,product_code ' ||
    'FROM jtf_hooks_data '||
    'WHERE package_name = ''ARP_CMERGE_MASTER'' ' ||
    'AND api_name = ''MERGE_PRODUCTS'' ' ||
    'AND execute_flag = ''Y'' ' ||
    'ORDER BY execution_order ';
    Your procedures have to have the same signature as the one being called. Issues the select statement on your system and see what is returned.

  • How to update a parent (primary key) value?

    hello...can anybody give me a hint that how to update a primary key value in master table through forms as well as update all child records keeping in mind that "ALTER TABLE" and constraint disabling is not permitted by DBA. Parent Records are being displayed in form in a database block while child records are not displayed on form.

    See
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:914629004506
    and
    http://tkyte.blogspot.com/2009/10/httpasktomoraclecomtkyteupdatecascade.html
    cheers

  • How to take Purchase order Pending quantity value from Table. ?

    Hai SAP Gurus,
                             Now Using ME2N, I am taking Pending Purchase Order Value against Plant wise & Material Type wise. Its takes lomg time to see this report.. Kindly guide me  how to takes those value from table..?
    ex:  Material Type     Plant 1
           RM                     1716294228
           HIBE                         63586533
           ERSA         27143712
           VERP      7551982745
           Components      7375781142
           Total                    Rs. 16734788360

    Hi
    It is possible through ME2N plantwise pend PO report.
    Put plant and WE101 in selection parameters

  • Posts going missing - How to update an image once it has been displayed

    Something is very wrong with my posts here. I made this post earlier today, and added it to my watch list. The last time I checked it, there were no replies. Now the title in my watch list has been changed to null and the post is not showing up in the forum. Grrrr.
    Anyway, onto the main event.
    I've got some code that, among other things, displays an image in a Frame. I'm doing this by subclassing JLabel and overriding the paintComponent method.
    My question though, is how can I load a different image in place of that one ? I'm trying to run a slideshow, and whenever I load another image, I can see the new object is being created (I have a println in there), but the image in the frame is not updated with the new one.
    Here is my overridden paintComponent method:
    protected void paintComponent(Graphics g) {
              super.paintComponent(g);
              g.clearRect(0, 0, w, h);
              g.setColor(Color.BLACK);
         Graphics2D g2d = (Graphics2D)g.create();
         g2d.drawRenderedImage(image,null);
              g2d.dispose(); //clean up
    Can anyone advise how I would get the picture in the frame to update ?

    If you are looking up onto staged data, just snapshot the data once a day.
    Or you could just do an External Lookup, where there is no need to refresh the data as you can just look it up dynamically.
    You will not get any 'fuzziness' with this approach.

  • How to update drawImage() images

    This may be quite simple for most, but I'm stumped. I have BuffereredImages[] being passed to a class where my Graphics are. I then use drawImage() to draw the images on the JPanel. That all works fine. My problem is that I have a button that I need to repaint or redraw the images when the button is clicked. I have the button listener all setup. I just don't know how to get the drawImages() to redraw using different images.
    In my main panel I have:
             die1 = rand.nextInt(6);
             die2 = rand.nextInt(6) + 6;
             //get images for vending machine
                img = loadImages();
             //paint all images
                dieImg = new DiceImage(die1, die2, img);Then my button listener:
           private class ButtonListener implements ActionListener
             //declare variables 
             private Object source;
              public void actionPerformed(ActionEvent event)
                source = event.getSource();
                *   Roll Button         *
                if (source == rollBtn)
                  //paint all images
                *   Pass Button         *
                if (source == passBtn)
         System.out.println("Pass");
          } //end of Button Listener ClassThen this is where I get the images:
           private BufferedImage[] loadImages()
               //create prefix for path if needed
             String prefix = "";
               //create array of filenames to draw
             String[] fileNames = { "die1-1.gif", "die1-2.gif", "die1-3.gif", "die1-4.gif", "die1-5.gif", "die1-6.gif",
                                    "die2-1.gif", "die2-2.gif", "die2-3.gif", "die2-4.gif", "die2-5.gif", "die2-6.gif" };
             //get the files
             BufferedImage[] images = new BufferedImage[fileNames.length];
             for(int j = 0; j < images.length; j++)
                try
                   URL url = getClass().getResource(prefix + fileNames[j]);
                   images[j] = ImageIO.read(url);
                    catch(MalformedURLException mue)
                      System.err.println("url: " + mue.getMessage());
                    catch(IOException ioe)
                      System.err.println("read: " + ioe.getMessage());
               //return the array of images
             return images;
          }And this is where I draw the images:
           public class DiceImage extends JPanel
             private int x, y;
             private int width = 500, height = 150;
             private BufferedImage[] image;
             private int die1, die2;
          //create constructor and pass in image array     
              public DiceImage (int die1, int die2, BufferedImage[] image)
         this.die1 = die1;
         this.die2 = die2;
                         this.image = image;
          * Beginning of the paintWindow method
              public void paint(Graphics display)
         super.paint(display);
         //draw images in vending machine 3D box
                          x = 75;  //center the to images evenly
                          y = 10;  //10 pixels down from the top of the panel
         display.drawImage(image[die1], x, y, this);
         display.drawImage(image[die2], x + 200, y, this);                                   
             } // end paint
          //sets the preferred size for the item box
              public Dimension getPreferredSize()
                return(new Dimension(width, height));
          } //end of class   Let me know if you need any other snippets of code. I'm new to Java so please be gentle!

    I just don't know how to get the drawImages() to redraw using different images.display.drawImage(image[die1], x, y, this);
    display.drawImage(image[die2], x + 200, y, this);     
    In your paint method you are specifying the image to be drawn based on the values of die1 and die2. So if you want to draw a different image then you need to change the value of these two variables. So you need a method that changes these values.

  • Reg : How to update handling unit packing details

    Hi all
    I want to update existing handling unit with new tare weight and gross weight using FM ws_delivery_update.
    how exactly to proceed?
    regards
    jawahar

    Hi Dude,
    I was searching on SDN for updating the handling units. My requirement is similar to yours "Updating Weight and LengthWidthHeight". Can you please help me out as it has been long time the query was posted and i hope u might have completed it. I searched a lot on google and tried many function modules and BAPI also, but its not updating the handling unit.
    Please help me and let me know..
    Thanks in advance

  • How to update bind variable and restrict values in a Model Driven LOV?

    Hi Guys,
    Using JDev 11.1.1.2.0
    I've recreated an excellent Frank Nimphius article about restricting values derived from a model driven LOV (http://www.oracle.com/technetwork/developer-tools/adf/learnmore/44-restrict-lov-169186.pdf)
    But my bind variable isn't updating. Deleting the bind variable gets me the entire LOV. Activate the code below and insert a bind variable into the where clause like Frank says and I get nothing back. Bind variable is blank. Any ideas? Code wasn't supplied with the article. It seems simple enough but the bind variable isn't updating in the SQL, even though the updated value shows up here...
      public void onLovLaunch(LaunchPopupEvent launchPopupEvent)
        BindingContext bctx = BindingContext.getCurrent();
        BindingContainer bindings = bctx.getCurrentBindingsEntry();
        FacesCtrlLOVBinding lov = (FacesCtrlLOVBinding)bindings.get("DepartmentId");
        lov.getListIterBinding().getViewObject().setNamedWhereClauseParam("deptId","60");
        System.out.println("lov name: " + lov.getName().toString());
        System.out.println("lov Param Attrs: " + lov.getListIterBinding().getViewObject().getNamedWhereClauseParams().getAttribute("deptId").toString());
        System.out.println("lov View Object: " + lov.getListIterBinding().getViewObject().getName().toString());
        System.out.println("lov IterBinding: " + lov.getListIterBinding().getName().toString());
       }Gets me ...
    lov name: DepartmentId
    lov Param Attrs: 60
    lov View Object: _LOCAL_VIEW_USAGE_lov_model_queries_EmployeesView_DepartmentsView
    lov IterBinding: DepartmentIdList_2

    That's a good idea, but it's still not working. Here is how I implemented it. It might be different from your suggestion as I'm still pretty new to this.
    I have a recursive tree table. You select a node. You then click a button which calls the listener below. "findParents" is a method call to the AppModuleImpl class and it finds all parent nodes of your selection. "restrictPartBomLOV", also of the AppModuleImpl class, then modifies the model driven lists' View Object (partBomLOV) to exclude those parent node values.
    The resulting model driven LOV on the popup should be updated, yeah? But it still isn't udpating. If I manually type in the updated Where clause in PartBomLOV.xml query tab, it works, but it doesn't programmatically.
      public void insertPopupFetchListener(PopupFetchEvent popupFetchEvent)
        BindingContainer bindings = getBindings();
        OperationBinding operationBinding = bindings.getOperationBinding("findParents");
        parents = (List)operationBinding.execute();
        operationBinding = bindings.getOperationBinding("restrictPartBomLOV");
        operationBinding.execute();
       public void restrictPartBomLOV(List parents)
          ViewObjectImpl vo = getPartBomLOV();
          String wcl = "";
          Object[]   p = parents.toArray();
          for(int i = 0; i < p.length; i++)
             if (i == 0)
                wcl = wcl + "PNUM <> '" + p.toString() + "'";
    else
    wcl = wcl + "AND PNUM <> '" + p[i].toString() + "'";
    vo.setWhereClause(wcl);
    System.out.println(vo.getWhereClause().toString());
    vo.executeQuery();
    Edited by: LovettWB on Nov 11, 2010 11:23 PM

  • How to update a form after changing the underlying table

    Hi All,
    I have read a few posts on this, and I know that it would have been better to not do this, but I had to add a new column to a table in order to meet a new requirement.
    See this post:
    Design Question - Slowly Changing Dimensions (I think)
    I decided that I would store the 'price' with the 'mailed_item' - so I had the actual price at the time the item was mailed. And then the MST table could be updated as needed without impacting the historic records.
    Now my issue is: How do I add another field to the form (I was thinking hidden) that would reference the price from the Mail_Service_Type table?
    Mailed_Item
    ID
    MST_ID (Mail_Service_Type FK)
    Piece_Count
    Price (**New)
    Mail_Service_Type
    ID
    Name
    Weight
    Price
    Can this be done easily, or should I recreate the form? Is is just a simple PL/SQL or SQL statement? Or should I build another process (maybe a trigger) to get the value?
    Any thoughts would be appreciated...
    Corey

    Nahman,
    Typically it's enough to re-load data used: check binding of your UI controls on second tab to context attributes and depict what nodes are used. Then re-initialize these nodes: either just via invalidating them or via re-binding elements / re-executing queries + re-binding elements.
    Valery Silaev
    SaM Solutions
    http://www.sam-solutions.net

Maybe you are looking for