Defaulted DFF Context, but Attributes also getting some default Values.

Hi,
I extended CO for defaulting DFF, it is working fine. But the problem is Attributes Also getting default Values and when u search for one record those DFF Attribute values are not showing proper data, but table attribute values having correct data only.
Regards,
Hanimi.

hi Pavan,
i extended CO for getting context value as default, it is defaulting Context as well as Attribute values also after opening the page.But i want to default context value only after opening the page and when i search one record that attribute values data is showing wrong data, but in table attributes having proper data, but in page these values are showing different data.
I used following code for Defaulting Context In CO. Pls check the code.
super.processRequest(oapagecontext, oawebbean);
OAApplicationModule oaapplicationmodule = oapagecontext.getApplicationModule(oawebbean);
String s = oapagecontext.getParameter("_FORMEVENT");
if(s == null || s.equals(""))
s = oapagecontext.getParameter("FlexFormEvent");
OADescriptiveFlexBean dffBean = (OADescriptiveFlexBean)oawebbean.findIndexedChildRecursive("WorkRequestDesc");
String organizationId = (String)oapagecontext.getSessionValue("OrgId");
String contextValue = getContextValue(oapagecontext.getApplicationModule(oawebbean).getOADBTransaction(), organizationId);
if(contextValue != null)
dffBean.setFlexContext(oapagecontext, contextValue);
dffBean.mergeSegmentWithParent(oapagecontext);
private String getContextValue(OADBTransaction con, String organizationID)
System.out.println("In WorkRequestDffCO.getContextValue.organizationID" + organizationID);
String contextValue = null;
String sql = " SELECT meaning FROM fnd_lookup_values flv, mtl_parameters mp WHERE flv.lookup" +
"_type = 'NGHA_EAM_WR_LOCATION_CONTEXT' AND flv.ENABLED_FLAG like 'Y' AND mp.or" +
"ganization_code = flv.lookup_code AND mp.organization_id = "
+ organizationID;
Statement st = null;
ResultSet rs = null;
try
st = con.createStatement(1);
rs = st.executeQuery(sql);
if(rs.next())
contextValue = rs.getString(1);
catch(Exception e)
e.printStackTrace();
finally
try
if(st != null)
st.close();
if(rs != null)
rs.close();
catch(Exception e)
e.printStackTrace();
return contextValue;
}

Similar Messages

  • IPad (3rd Gen) From last one week it's screen jumbles up at times and also getting some burning smell out of it.

    iPad (3rd Gen) which I purchased 3 week back in Bangalore. From last one week it's screen jumbles up at times and also getting some burning smell out of it. Any idea what could be wrong?
    These are the some of instances of screen jumbling I faced
    1) all the app icons stacked up on top left corner. I could move them anywhere on the screen but could not start the app. Later killed all apps and starting iPad rectified it.
    2) starting any app was giving blank screen, restart rectified it
    3) home screen and lock screen both merged up. I could see both of them together whenever I swiped on the screen. Again restart rectified it.
    Can I get replacement of this piece, I believe there is some serious hardware issues in it.
    Rakesh

    Handed over iPad to support group named "imagine"in Bangalore Saturday evening. There is no direct support available from Apple in India. Know what.. These "imagine" guys are highly incopetent..
    When I checked the status in evening, their reply was that there is no issue with iPad, even though burning smell was still threre if I keep the nose close to iPad, but during working for 4-5 hours it starts building up.
    When I asked how did they tested it, reply was that they kept playing games on my iPad and they didn't find any issue.. Rediculous answer..
    They even didn't bother to open up the piece or running test of full CPU/RAM and Graphics utilization. Now asking me to take it back to wait for either complete breakdown or burndown, no matter where I am.. Airport, hospital, client meeting..
    I use my iPad mostly for client presentations, I don't want to be in a situation that the display again jumbles up during a demo session giving impression  that the problem is with our application..
    I wish I wouldn't have invested in this device through BYOD program..

  • I'm having trouble loading photos on my I phone 4s and I pod.  I don't see the photos tab in Itunes?? Prob user error but wanted to get some help.

    I'm having trouble loading photos on my I phone 4s and I pod.  I don't see the photos tab in I-tunes? I'm sure its user error but wanted to get some help.

    What's the origin of this external drive? It sounds very much like it's a Windows-formatted (NTFS) drive which Macs can't write to. If you can, copy the files off the drive, reformat it as Mac format (using Disk Utility) and copy the files back. If you need to continue writing to it from a Windows PC, you should format it ExFAT in Disk Utility.
    Matt

  • Since updating to FireFox 9.1 everytime I open my browser, not only is my persona gone but I also get the "Hooray! Your FireFox is up to date" page. How do I fix these things?

    Everytime I close my browser and have to restart it, not only do I lose the Persona I was using, but I also get the welcome to Mozilla page in a tab along with my homepage. It is getting quite annoying.

    Hi tabyjo,
    You should look at [https://support.mozilla.com/kb/Firefox+has+just+updated+tab+shows+each+time+you+start+Firefox this article about that specific issue] and the article [http://kb.mozillazine.org/Preferences_not_saved Preferences not saved]. It might be a pref.js issue. These should give you all the information you need!
    If that doesn't work:
    # Type about:config in the address bar
    # Click ''I'll be careful, I promise'' if prompted
    # In the Filter input field type ''startup''
    # Double click on startup.homepage_override_url
    # Delete the text string and click ''OK''
    # Close Firefox and reopen the window to verify that it has worked.
    Hopefully this helps!

  • Z3 Compact is amazing! But can't get some things to work...

    Hi everyone, this is my first Sony phone, which I bought to replace my Galaxy S4. Went this route because of the reported awesome battery life and because I was fed up with such a "big" phone, and wanted somethign smaller. The flagship-speced Z3 Compact was the obvious choice. I've only had it for close to 4 days, and I'm in love. Xperias Android Skin is so much smoother, complete and logical than Samsungs, while the phone is much cooler and premium-feeling. So far there's three things I can't figure out though. 1. By reading, it seems it's a common problem, some reporting some things fixed it, most don't Facebook Events and Birthdays to show up on the Calendar. My Galaxy S4 showed both. I've only managed to have events show up on my Calendar, but can;t figure out why Birthdays are not there, and how to add them. Any solutions? 2. Message/Notification counts. ON the Galaxy S4, Whatsapp and Line, for example, had a little balloon showing the number of unread messages/notification that the app was reporting. On my Z3 Compact, this is not the case, not even with something more "stock" such as Hangouts, which I use as default SMS client. I know it does such a thing, because the Email app does show the amount of unread emails in a orange-yellowish balloon. Help? Other than those two... I adore this phone. Got close to 60 hours of usual usage out of a single charge, with not a single moment of lag, performance drop or Stamina mode enablment.. That's witchcraft, if you ask me. 3. Email app: I can't find an option to have the client always show images by default, instead of always clicking "Show Images" and then "Always show images". Where can I set this up? Thanks for all the help!

    I have the same problem with the synchronization of calendar and contacts the small size photos.Xperia with Facebook malfunctions and it's a flagship phone.Please indicate with this problem in a support, but did not get a solution.
    I was hoping that after updating to Lollipop problem will be solved, but it did not happen.
    You can make use applications Sync. ME and Calendar Sync for Facebook.
    Xperia with Facebook is not working properly !!!

  • How can I get some specific value from AP

    Hello,
    I have AP 350 or 1100 and management software CISCO WORKS for WINDOWS. I need for our customer information how he can get some SNMP specific information OID like signalstrange or something another specific OID. We can get traps from AP but it's not what we can.
    Do you know somebody any helps?
    Thank you
    David

    For Windows
    Download MG-SOFT Corporation's MIB-Browser, its evlauation version.
    Download the AP MIBs from Cisco.
    Compile the MIBs using the MG-SOFTs MIB-Explorer and then you see the OID values and expalnations.

  • Unable to default DFF segment based on selection of other field value.

    Hi Gurus,
    *I have a requirement on 'Create Work Request' page (Oracle EAM), where during creating complaint, when user selects Asset Number, based on this selection, a DFF enabled to capture Tenant Info must be populated. [For testing now, I'm writing my code in PR and not in PFR to populate some thing while page loads.]*
    I have extended my CO and tried many ways (from simple to little complex) but to no success.
    Simpler way:
    *=======*
    OAApplicationModule am = oapagecontext.getApplicationModule(oawebbean);
    OAViewObject vo = (OAViewObject)am.findViewObject("RequestDetailsVO");
    Row row = vo.first();
    row.setAttribute("Attribute1","Attribute1"); //Attribute1 is the View attribute in above VO. But this doesn't work.
    row.setAttribute("DepartmentCode","CRC MAINT"); //DepartmentCode is a view attribute as well. And this works.
    This code doesn't work.
    Understanding that, DFF segments can't be set as simple bean, I have done below:
    *===================================================*
    OADescriptiveFlexBean oadescriptiveflexbean = (OADescriptiveFlexBean)oawebbean.findIndexedChildRecursive("WorkRequestDesc");//("WorkRequestDFF_p13n");
    oadescriptiveflexbean.processFlex(oapagecontext);
    if (oadescriptiveflexbean != null){
    ContextMap contextmap = oadescriptiveflexbean.getNamedChildMap();
    if(contextmap != null){
    Enumeration enumeration = contextmap.keys(oapagecontext.getRenderingContext());
    if(enumeration != null){
    do
    if(!enumeration.hasMoreElements())
    break;
    Object obj = enumeration.nextElement();
    OAWebBean oawebbean1 = (OAWebBean)contextmap.get(oapagecontext.getRenderingContext(), obj);
    oapagecontext.getParameter("WorkRequestDesc1")
    //String str = (String)oapagecontext.getNamedDataObject("WorkRequestDesc1")
    if(oawebbean1 != null)
    if(oawebbean1 instanceof OAMessageTextInputBean)
    OAMessageTextInputBean oamessagetextinputbean = (OAMessageTextInputBean)oawebbean1;//.findIndexedChildRecursive("WorkRequestDesc1__xc_");
    //oamessagetextinputbean.setReadOnly(true);
    oamessagetextinputbean.setText("Jawad");
    } while(true);
    Now the issue with above code is, during the page load, all the segments are populated with value 'Jawad'. I want to populate only the first segment.
    More info:
    *======*
    VO: RequestDetailsVO
    DFF Regions ID: WorkRequestDesc
    Attribute1 (DFF segment1) ID: WorkRequestDesc1
    Appreciate your responses,
    Jawad

    Dear Guys,
    I found out a workaround for this case (If this helps others): :)
    *1. Create a Message Text Input type field (representing each DFF segment) and map them to View Attribute (over which DFF was created) and VO instance.*
    *2. In the extended CO, in PFR, get the handle of these created fields.*
    *3. Set the values as required.*
    Since these fields are mapped onto the same view attributes as DFF was, the data goes in fine.
    But I still am hunting for the possibility of setting a single segment.
    Thanks and Regards,
    Jawad
    Edited by: Jawad on Apr 19, 2012 3:36 AM
    Edited by: Jawad on Apr 19, 2012 3:38 AM

  • User Executes Stored Procedure That Executes sp_send_dbmail; receives email but also gets error Cannot alter the queue 'ExternalMailQueue', because it does not exist or you do not have permission.

    Using SQL Server 2012 SP1
    I have a user that is submitting a procedure that uses sp_send_dbmail.  I have also noticed that they have the following code in their procedure
    DECLARE @rc INT
    IF NOT EXISTS (SELECT * FROM msdb.sys.service_queues
    WHERE name = N'ExternalMailQueue' AND is_receive_enabled = 1)
    EXEC @rc = msdb.dbo.sysmail_start_sp
    The user submits the procedure and she gets the email but she also gets the following error message:
    Msg 15151, Level 16, State 1, Procedure sysmail_start_sp, Line 8
    Cannot alter the queue 'ExternalMailQueue', because it does not exist or you do not have permission.
    Mail (Id: 2402) queued.
    (1 row(s) affected)
    I have granted execute to sp_send_dbmail and sysmail_start_sp.  I have also granted select to service_queues.
    Does anyone have any solutions for the above error message?
    lcerni

    The contents of sysmail_start_sp is this:
    CREATE PROCEDURE sysmail_start_sp
    AS
        SET NOCOUNT ON
        DECLARE @rc INT
       DECLARE @localmessage nvarchar(255)
        ALTER QUEUE ExternalMailQueue WITH STATUS = ON
        SELECT @rc = @@ERROR
        IF(@rc = 0)
        BEGIN
          ALTER QUEUE ExternalMailQueue WITH ACTIVATION (STATUS = ON);
           SET @localmessage = FORMATMESSAGE(14639, SUSER_SNAME())
           exec msdb.dbo.sysmail_logmailevent_sp @event_type=1, @description=@localmessage
        END
    RETURN @rc
    The user get the error, because she does not have any permission on the queue in question. To be able to alter the queue, the following applies according to Books Online:
    Permission for altering a queue defaults to the owner of the queue, members of the db_ddladmin or db_owner fixed database roles, and members of the sysadmin fixed server role.
    Note that is would be db_ddladmin or db_owner in msdb. Now, supposedly the queue is already active, and in that case I think that it is sufficient that the user has VIEW DEFINITION on the view. This would permit her to see the row in sys.service_queues,
    why there would be no need to call sysmail_start_sp.
    Altertanively, change the check to:
    DECLARE @isenabled bit
    SELECT @isenabled = (SELECT is_receive_enabled FROM msdb.sys.service_queues
                   WHERE name = N'ExternalMailQueue')
    IF @isenabled = 0
       EXEC @rc = msdb.dbo.sysmail_start_sp
    The idea here is that, if the user has no permission to read the information in the DMV, @isenabled will be NULL, and you just pray and hope that the queue is up and running.
    I suspect that the reason this worked for you on SQL 2005 is that on that instance someone at some point in made all the required configurations for it to work, but all that is forgotten now. That happens to me too.
    If you really want the user to be able to start the queue, I have some better ideas than adding her to a role, but I skip the details for now.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Servlet Working in one context but not another

    I'm not a sys admin, so I'm hoping this is an easy question and I'm just missing something. I have a web site with several contexts that share most of the same code. One of the contexts has the real files in it, and all the others have symbolic links to the files. This has always worked fine. The application uses .jsps and java objects, but to date no servlets were used.
    We just added our first servlet, which is used to download binary file information created by a jsp and passed to it. This works fine in the context that has the real files in it, but we get a 404 error in the other contexts. All the contexts link to the primary web.xml file from the default (working) context. We also tried copying the web.xml file to each context rather than linking it, but that didn't help.
    If anyone has a suggestion, I'd appreciate it. Thanks in advance for your time,
    Richard

    sorry all...figured it out...had a BIN$ trigger on the site_main that I had removed on the 10g R1 dev database after I had already created the dump file for the 10g R2 upgrade test db....removed this and everything works fine. This trigger was causing the site id to be re-populated from the sequence, thus not matching up when it attempted the site_detl insert.

  • My iphone5 switch off and on automatically and turns on..I have few days left in warranty and I have so much hanging problem after the apple has replaced my iPhone..they replaced 5 times and again I am getting some issue..what should I do...??

    MMy iphone 5 switch off and on,an apple logo appears and although it is not on last stage of battery..I have replaced my iPhone 4 times but I am getting some issues again and again..now I have few days left in my warranty..AppStorecrashes sometime and safari mostly going to be hang...ttell me the proper solution what should I do...??
    also call drop issue..

    Is your battery dead or alive?
    If the battery is dead, we must find out if it is:
    1. Charger problem
    2. Cable problem
    3. Docking port problem
    4. Wall socket problem

  • I'm having firefox open my tabs from last session, but it also opens a bunch of additional blank sessions (lots of them!!!)

    I've got the configuration set to save my tabs when I close firefox and to reopen those tabs when I start firefox again. That part is now working correctly BUT I also get a whole bunch of additional firefox windows (not tabs, totally separate windows), blank. I've counted, and actually had almost 70 of these to close once. The number seems to vary depending on how many tabs I had open in the session I closed (I think anyway). It's a royal pain to have to close all those additional windows. Help! Thanks in advance.

    Either an add-on or a site you have visited corrupted your Profile.
    You should create a new one and try it out, if it doesn't help you can always go back.
    https://support.mozilla.com/en-US/kb/Managing-profiles

  • My ipad shows "no service" in upper left hand corner but I get google maps and itunes but I cant get to the ibook store

    Why does my ipad show "no service" in upper left hand corner but I can get some service like google earth and itunes but I can't get to the ibook's store.  Tap "books" does nothing. Thank you.

    Try going to settings. Tap Reset, tap reset network connection, wait until the apple goes restart your iPad,. Back to setting tap provider and put in your network password.

  • Getting the selected value in tableview.

    Hi friends,
      In tableview am displaying some 5 columns in which one column is in dropdown.I want to modify the tableview.But unable to get the selected value at the particlular cell
    (the column which is in dropdown) in tableview.
    I have tried by using the method GET_CELL_ID.and get_form_field also.But am not getting the selected value only for this column.For remaining columns am getting the values properly.
    Can anybody pls help me how should i catch the selected value for a particular column  in tableview.
    Thanks in advance.
    Regards
    sireesha

    in the cell you are rendering a dropdwonlistbox, so to read the content of the same use
    data: data type ref to cl_htmlb_dropdownlistbox.
      data ?= cl_htmlb_manager=>get_data( request      = runtime->server->request
                                              name         = 'dropdownListBox'
                                              id           = 'DDLB1'
          if data is not initial.
            tab1sel = data->selection.
          endif.
    for id use the same id given in the interator-render_cell_start method for this
    Regards
    Raja

  • How to get the screen value to custom screen from standard screen

    Hi all,
    I have a standard screen which is attached to a standard function group and a custom screen which is attached to a custom function group... Now my requirement is to get some field values from the Std screen to my custom screen ...
    I have used the FM DYNP_VALUES_READ but its resuts in error...
    in my current screen PBO i called this FM and given the prog name as the Std pgm name which being created while creating the screen from the function group and the screen number as the standard screen number...
    Eg : Standard Function gp = FSBP_02
           Pgm name  = SAPLFSBP_02
          Screen Naumber = 0220
    Custom screen = 9001
    Pgn Name = zname
    in 9001 PBo i called
    DATA: IT_DYNPFIELDS  TYPE TABLE OF DYNPREAD,
           WA_DYNPFIELDS like line of IT_DYNPFIELDS.
    WA_DYNPFIELDS-FIELDNAME = 'BP021-BUSINESS_Y'.
    APPEND WA_DYNPFIELDS TO IT_DYNPFIELDS.
    CALL FUNCTION 'DYNP_VALUES_READ'
       EXPORTING
         DYNAME                               = 'SAPLFSBP_02'
         DYNUMB                               = '0220'
        TRANSLATE_TO_UPPER                   = ' '
        REQUEST                              = ' '
        PERFORM_CONVERSION_EXITS             = ' '
        PERFORM_INPUT_CONVERSION             = ' '
        DETERMINE_LOOP_INDEX                 = ' '
        START_SEARCH_IN_CURRENT_SCREEN       = ' '
        START_SEARCH_IN_MAIN_SCREEN          = ' '
        START_SEARCH_IN_STACKED_SCREEN       = ' '
        START_SEARCH_ON_SCR_STACKPOS         = ' '
        SEARCH_OWN_SUBSCREENS_FIRST          = ' '
        SEARCHPATH_OF_SUBSCREEN_AREAS        = ' '
       TABLES
         DYNPFIELDS                           = IT_DYNPFIELDS
      EXCEPTIONS
        INVALID_ABAPWORKAREA                 = 1
        INVALID_DYNPROFIELD                  = 2
        INVALID_DYNPRONAME                   = 3
        INVALID_DYNPRONUMMER                 = 4
        INVALID_REQUEST                      = 5
        NO_FIELDDESCRIPTION                  = 6
        INVALID_PARAMETER                    = 7
        UNDEFIND_ERROR                       = 8
        DOUBLE_CONVERSION                    = 9
        STEPL_NOT_FOUND                      = 10
        OTHERS                               = 11
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    How Can i get that... Its important ... Please help me...

    Hi,
        Try with the below FM
    RS_REFRESH_FROM_SELECTOPTIONS
    in your custorm program, check the SY-CPROG and SY-XPROG values, for the standard program name or directly pass the importing parameter for the above FM as SAPLFSBP_02.
    Regards
    Bala Krishna

  • Not getting the return value of a program though it has no  errors

    public static String giroReturnFileDate(String strType)throws IOException{
              try{
                   SimpleDateFormat getFormatDate = new SimpleDateFormat("yyMM");
                   Date date = new Date();
                   String str = getFormatDate.format(date);
                   System.out.println("Current Date is : "+ str);
                   System.out.println("Fetching the Giro file now");
                   if(strType.equalsIgnoreCase("WPD") || strType.equalsIgnoreCase("ISTD")) {
                   FileReader inputFileReader = new FileReader("giro2itcs_"+strType+".txt");
                   ArrayList list = new ArrayList();
                   ArrayList list1 = new ArrayList();
                   System.out.println("Reading the file");
                   BufferedReader inputStream = new BufferedReader(inputFileReader);
                   String inLine = null;
                   String str1 = null;
                   while((inLine = inputStream.readLine()) != null && inLine.length() < 2)
                        list.add(inLine);
                   System.out.println("Control Record for giro2itcs_"+strType+"is:"+ inLine);
                   inputFileReader.close();
                   inputStream.close();
                   for (int i=0; i<inLine.length(); i++ )
                        str1 = inLine.substring(19,23);
                   System.out.println("date of the transaction is:"+str1);
                   if (str .equals(str1)){
                        System.out.println("giro2itcs_"+strType+".txt file is created today");
                        return "true";
                   else{
                        System.out.println("giro2itcs_"+strType+".txt file is not created today");
                        return "false";
                   }// end of if
                   return "test";
              }// end of try
              catch(Exception e) {
              System.out.println("The Exception is ::::::::::::::"+e);
    return "one";
    }//end of giroReturnFileDate(...) method
    }//end of of the class
    main method is seperate. this program compiles fine but am not getting the return value for this. none of the return values. plzzz help me.

    can you send me the code complete one ...
    i will debug and solve the problem
    [email protected]
    By publishing your email address you are likely to get loads of spam.

Maybe you are looking for

  • Hard drive not recognized as a separate hard drive

    I have a problem that has stumped me, Apple support, and the hard drive support folks. When I connect my external hard drive(via firewire) to my eMac, it mounts and the icon shows up on the desktop. However, when I click on the external hard drive ic

  • .pdf files created in Photoshop - Not all layers appear in Connect

    So I have created a marketing flyer in Photoshop that contains images and text.  I save this out as a .pdf file and upload to Connect.  When I open the file, many of the layers, usually the text layers, are missing.  I've tried saving the original Ph

  • J1IF01 creation error

    Dear All SAP Gurus I am creating subcontracting challon J1IF01 .Following error is coming, Please specify the number of line items for the challans. Message no. 8I802 have maintained the detais as you suggested in the customisation Excise Group 91 Ex

  • Image in data tables

    Hello, Maybe some body can help me here. I have a data table and the headers are links where I can sorted the data I have the sort working but what I like to do is besides the column header link inser a image like an arrow pointing up for sort ascend

  • Current versions of Flash Player won't work on my Windows 7 machine

    When I install a late version of Flash Player it won't play videos.  Here's what I get on YouTube https://dl.dropbox.com/u/6246962/0002.png .   I then have to go back to a previous version.  When running the previous version Firefox nags me constantl