How to delete session bean data

Hi,
My requirement is to default the data while selected in LOV. so i have written written custom code for that using valueChangeListener.
public void getCustomerDetails(ValueChangeEvent valueChangeEvent) {
// Add event code here...
try{
String cardNumber= valueChangeEvent.getNewValue().toString();
System.out.println("card no is: "+cardNumber);
String cardNo="000601029500"+cardNumber;
session.setCardNo(cardNo);
HashMap map=getAm().getCustomerDetails1(cardNumber);
Set set=map.entrySet();
Iterator i = set.iterator();
while(i.hasNext()){
i.next();
if(map.get("customer_name")!=null){
customer_name=map.get("customer_name").toString();
session.setCustName(customer_name);
//System.out.println("customer_name: "+customer_name);
else{
customer_name=null;
In the page:
<af:inputText value="#{SCIISessionBean.merchantName}"
label="#{avtransuiBundle.MERCHANT_NAME}"
required="#{bindings.MerchantName.hints.mandatory}"
columns="#{bindings.MerchantName.hints.displayWidth}"
maximumLength="#{bindings.MerchantName.hints.precision}"
shortDesc="#{bindings.MerchantName.hints.tooltip}"
partialTriggers="ilov1"
binding="#{backingBeanScope.backing_com_wfs_avtranz_newAvtranzSubmit.it1}"
id="it1" readOnly="true">
<f:validator binding="#{bindings.MerchantName.validator}"/>
</af:inputText>
But here my issues is because of putting the value in Session bean it is not clearing when i come to next page to this page. the values are remaining same. i try with request scope and page flow scope because of these when i select any button on or any popup on the page, it got refresh and value is disappering on the page. that's why i have taken session but still session values i am able to see.
can any one tell me how can i make this values as null;

User, you must understand that many of us DO read posts, and do answer questions if we can. But this is NOT our primary job - we do it as a service to our fellow users WHEN WE HAVE TIME. Also, none of us knows everything there is to know - it may be a few days before one of the people who can answer YOUR question will see it and answer. Finally, there are some questions for which no-one will know the answer. Keep working, and maybe you will learn something that YOU can tell US.
Okay, now that that is off my chest:
Values in a session bean start with whatever you initialize them to - either when the property is defined, or in the constructor for the bean. A valueChangeListener can't change the value - this is executed when the USER changes the value. It could be used to drive a change to a different value, but make sure that you set the component with a valueChangeListener to autosubmit, and use partial page rendering to re-render the changed component.
If you need to clear data from a session bean, you will need to write a method to do it. You could write it as an actionListener, and have the user press a Clear button, or as a helper method that gets called as part of some other action. I think that you can also arrange to call it before a page renders, but I haven't had occasion to do that, so I've never researched how to do it.
P.S. When I re-read your post, and tried to understand better what you really want to do, I suddenly realized that you have a classic use-case of a cascading list of values. In other words, the contents of one list of values changes depending on what is selected in another list. If you will look through the tutorials on the main ADF page, I think you will find at least one example of how to do this.

Similar Messages

  • How to delete the duplicate data  from PSA Table

    Dear All,
    How to delete the duplicate data  from PSA Table, I have the purchase cube and I am getting the data from Item data source.
    In PSA table, I found the some cancellation records for that particular records quantity  would be negative for the same record value would be positive.
    Due to this reason the quantity is updated to target but the values would summarized and got  the summarized value  of all normal and cancellation .
    Please let me know the solution how to delete the data while updating to the target.
    Thanks
    Regards,
    Sai

    Hi,
    in deleting the records in PSA table difficult and how many you will the delete.
    you can achieve the different ways.
    1. creating the DSO maintain the some key fields it will overwrite the based on key fields.
    2. you can write the ABAP logic deleting the duplicate records at info package level check with the your ABAPer.
    3.you can restrict the cancellation records at query level.
    Thanks,
    Phani.

  • How to delete back up data in icloud?

    How to delete back up data in iCloud?

    From previous posts:
    If you mean backed up in your iCloud backup, you can delete the backup by turning off iCloud Backup in Settings > iCloud > Storage & Backup, then tap Manage Storage, touch your backup and tap Delete Backup, then go back and turn iCloud Backup back on again.
    If you mean data synced to your iCloud account like contacts and calendars, you can either delete if from your device or go to icloud.com on your computer and delete it there.

  • How to delete the Hierarchy data from Infoobjects.

    How to delete the Hierarchy data from Infoobjects. In my case I had 300 records in the corresponding table of info object.
    When i was trying to delete the hierarchy data, I am getting error message. "Some master data not deleted". Can any one tell me to delete all these records by using a program.

    Hi
    Go to SE11 and enter the hierarchy table name.
    /BIC/H....(infoobject name)...and execute the table and select table entry and delete all....
    Thanks
    TG

  • How to delete backend system data from GRC,GRC 10 AC

    Hello experts,
    we have connected multiple ECC systems to GRC by creating connectors with respect to each system and
    currently we are using,now due to some reasons customer requested to delete complete data from
    one of the ECC system from GRC.
    we are using only access control with all components
    please  suggest how to delete all relevant data
    from GRC system
    Thanks
    GRC Admin

    Hi,
    You can use program GRAC_DELETE_ACCESS_RULES to achieve your requirement.
      2075597 - How to delete specific system from SPRO
    Regards,
    Madhu.

  • How to delete parent table data even though it has child records

    hi all,
    How to delete parent table data even though it has child records.
    ex: delete from pa_request cascade constraints;
    But this command is not working .
    Regards,
    P Prakash

    833560 wrote:
    ex: delete from pa_request cascade constraints;cascade constraints is DROP table option. It can't be used with DELETE. You need to delete child rows first or drop foreign keys and recreate them with ON DELETE CASCADE. Then:
    delete from pa_request will automatically delete child rows. However, personally I don't like ON DELETE CASCADE. You can, by mistake, delete half of your database without even realizing it.
    SY.

  • How can delete my iphone5 data from the date its restored?

    how can delete my iphone5 data from the date its restored?

    it's unclear what you mean
    if you wish to remove your iphone5 data you connect it to iTunes on the computer and click the restore button and choose restore to factory defect

  • How to delete documents and data off of iphone 4s

    Im trying to free up some room on my phone. I got rid of some apps and movies and did what i can but when i plug my phone in there is more Documents & data then i have as apps and music. i just want to get ride of some documents that are saved in my phone but  dont now hot to delete them.

    Document & Data on iPhone is junks files including browser history, cookies, logs, caches of photos and videos, database files stored by your apps. You’ll notice that some apps while being very small themselves have accumulated a lot of data. An example of this is shown in the image below, you see that the Facebook app is 109 MB whereas the Documents & Data stored is 1.2 GB. This 1.2 GB is what goes into your “Other” data.
    These apps on iPhone don’t provide a way to delete Documents and Data, uninstalling and reinstalling the app is not the best option here. With the help of CleanMyPhone or PhoneClean you can delete the documents and data on iPhone without deleting the app itself.
    Resource: http://www.fireebok.com/resource/how-to-delete-documents-and-data-on-iphone.html

  • How to Delete the Junk data in Transformation Routines

    Hi,
    I had scenario like infoobject for 0CUSTOMER master data is bringing the values
    C123456_RECEIPTS.
    C12345_RECEIPTS.
    So when i extract the data from R/3 for this 0CUSTOMER master data it is bringing the SOME JUNK DATA
    I would require delete the C12345_RECIEPTS it should allow only C123456_RECIEPTS.
    I have to do in the routines for the deletion of this.
    Requesting send some sample code on how to delete it the BI 7.

    Hello,
    If the data is like after every C5* or C6* there is an underscroll sign (_), then below code will work in start routine:
    Data: wa_source_package like line of source_package,
              itab_sp type standard table of tys_SC_1,
              a(6) type c,
              b(10) type c.
    loop at source_package into wa_source_package.
       split wa_source_package at '_' into a and b.
       if strlen( a ) = 7.
          append wa_source_package to itab_sp.
       endif.
    endloop.
    refresh source_package.
    source_package = itab_sp.
    Regards,
    Shashank

  • How to delete the master data of a Customer created in a SALES AREA?

    Hi All,
    I've deleted a Customer (master data) by t.code OBR2. But it exists again in its SALES AREA.
    Could anyone tell me how to delete it in the sales area too?
    Thanks

    Hi,
    I dont think you can delete a customer. you can market it for deletion in XD06.
    for deleting customer master data you have to setup an archiving project.
    Also check the similar thread
    doubt in obr2
    Hope it helps you.
    Regards,
    Sats.

  • How to delete the Transaction Data in CRM

    Hi Gurus,
    I have a requirement to delete the Transaction Data in one Client.
    But Configuration should be as it is ?
    How can i over come this situation?

    HI.
    Do you mean refresh the client ? if that is the case, i think you are posting in wrong forum since this one is for People Centric User Interface. Try in   Customer "Relationship Management (CRM) - General & Framework".
    Best Regards.
    Armando Rodriguez.

  • How does a session bean find entity beans in EJB 3.0

    Hi,
    I am new to J2EE. I have difficulties finding out how a session bean locates the entity-manager for a group of entity beans. I understand that the entitymanager in the session bean is injected using the PersistenceContext annotation, but I dont see how it locates the intended EntityManager (which could be on another server).
    I realize this is probably trivial, but can any of you guys tell me what I am missing?
    Best Regards
    Thomas

    Hi Thomas,
    Good question. Each @PersistenceContext annotation is associated with a single Persistence Unit. A Persistence Unit is defined either at the module level or at the .ear level. Each persistence unit has a name associated with it. The unitName() attribute is used to map @PersistenceContext to the associated PersistenceUnit. Since the most common case is that an application will only define one persistence unit, the spec requires that if the unitName() is not specified, it will automatically map to that single persistence unit.
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to delete a particular data from 3 arrays

    hello,
    i have a program that works like this.....
    import java.io.*;
    public class NewMain {
    BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
    String [] Type= new String[10000];
    int [] Num= new int[10000];
    float [] Price= new float[10000];///////
    and i am reading some of the data into these arrays
    so if i want to delete a particular data from the arrays how do i do that
    and if i want to delete pants from that file and enter the text again how do i do that.? any idea?....
    e.g if the file contains
    shirt
    32
    56.5
    pants
    56
    45.9

    Ashish.Uppin wrote:
    hello,
    i have a program that works like this.....
    import java.io.*;
    public class NewMain {
    BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
    String [] Type= new String[10000];
    int [] Num= new int[10000];
    float [] Price= new float[10000];///////
    and i am reading some of the data into these arrays
    so if i want to delete a particular data from the arrays how do i do that
    and if i want to delete pants from that file and enter the text again how do i do that.? any idea?....
    e.g if the file contains
    shirt
    32
    56.5
    pants
    56
    45.9
    Buddy, it seems to me that you are describing data that belongs together -- a class. You are probably better off with one arraylist of objects of this class, each object having a String type variable, an int num variable, and a float price variable, make that a double price variable.
    For examples of arraylists in action, please see the Sun java tutorials.

  • How to call session bean's method in JSP

    Hi All,
    I am working on a JSF web application by using sun studio creator.
    The first page have a button, the onClick javascript is as following, which bring up a alert box showing user login name.
    In JSP file, how can I call session bean's setUserName(String name) function (which I would like to store this UserName). So the following pages can use this information.
    If I can not do it this way, is there any other way to do it?
    Thanks in advance.
    var net = new ActiveXObject("wscript.network");
    alert(net.UserName);
    In managed-beans.xml
    <managed-bean>
    <managed-bean-name>BasicInfo</managed-bean-name>
    <managed-bean-class>treepractice.BasicInfo</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>

    You can find more information/details/examples at their own website.
    On the other hand, do you realize that that ActiveX stuff is IE proprietary? And that it is a browser configuration whether to allow them or not? And that this configuration is in IE7 defaulted to an (annoying) warning box before execution which is just bad for the user experience?
    With other words, forget that ActiveX garbage. Alternatives are Applets (not recommended) or Java Web Start (recommended).

  • How to delete/update GPS data using Lightroom?

    Title says it all, but I'll explain why I need it.
    I have a Sony SLT A55 which is apretty good camera, it has a GPS.
    The way GPS work in this camera is it gets a fix, and then updates every undetermined time the position. That's okay, what is stupid in its design is, if you haven't taken pics in let's say 24 hrs. and you move several miles away and start shooting indoors (no GPS signal available) it will mark all your pics with your last known position, so now I have several photographs with a location I left several DAYS ago. I'd prefer the camera not to record GPS data than having a wrong location, but that's another thing for the Sony forums.
    So, now I want to delete (or update would be another option) the GPS data from the pics that are tagged with wrong locations.
    I'm shooting RAW,
    Is there any way to do it inside Lightroom?

    I’m a Nikon user, and here’s how I geotag my images when I want to (not very often). I use a Nokia N95 smart phone and Nokia Sports Tracker to track coordinates with timestamps. I use Nikon’s ViewNX2 to import the images from my camera (or card) to the final destination (folder) of the images. I also transfer the log file from the Sports Tracker to my computer. Then I use ViewNX2 to geotag the most recently imported set of images with the log file from the Sports Tracker. (I don’t know why but I have to adjust the time offset by one hour, fortunately this setting is sticky so I don’t have to do it every time). When the images are geotagged, I do an in-place import in Lightroom, and Lightroom recognizes the GPS coordinates.
    ViewNX2 is a free download, and I think this scheme can be used to geotag jpg of tif images from any camera. The raw file capability of ViewNX2 is understandably restricted to Nikon cameras. You could try Geosetter, another free download. The problem with my system is that Geosetter did not understand the log files of my Nokia N95. GPSBabel can translate the log files to a format acceptable to Geosetter, but since ViewNX2 does importing and geotagging (and time-offsetting the N95 log file), I have no need for additional programs.
    WRT to the original question ("how to delete/update...") you could try the following: write all metadata (keywords, settings) to your master image files in LR. Then use Geosetter or some other additional tool to modify the GPS data or the affected images. Finally, synchronize the images back to Lightroom, and select the option to use metadata from the images (instead of LR's catalog).
    Best regards
    Antero

Maybe you are looking for

  • I have a 32 gb ipad air. I am trying to connect to wifi

    I am traveling and trying to connect to a family member's wifi.  I see the arches in the upper left corner indicating the ipad sees the wifi signal.  However I never get to a screen where I can add the password for the network.  I have removed and re

  • Dimension/Porject wise balance sheet

    Dear all, I would like to know whether it is possible to get Dimension/Project wise balance sheet as we are getting P/L and T.B.? If yes pls let me knw hw to proceed. SAP Ver: SAP B One 2005 B(7.40.243) SP:00 Pl:05 Rgds swapnil Edited by: Marc Riar o

  • Make Concatenation with different number of columns in Sequence

    I have the folowing query select dated,sum(substr(hrs,1,2)) ||':'|| sum(substr(hrs,4,5)) hrs,dpt,reason from dpr.stp_00_00 group by dated,dpt,reason order by dated and the output of this query is this DATED     HRS     DPT     REASON 10/14/2011     2

  • OSS notes relevant for FI/CO for upgrade from 4.7 to ECC 6.0

    Hello, I need the list of the applicable OSS notes relevant for the FI/CO module for upgrade from 4.7 to ECC 6.0 Thanks Sid

  • Question on Flashback Table

    If you flashback a table that has associated foreign key constraints with other tables, will Oracle flaskback all associated tables as well or will it give an error?