Fields in custom view is only populated when Edit button is clicked

I have enhanced the component BT111H_OPPT. I added three custom views to it. I have enhanced CRMD_CUSTOMER_H with the required fields using EEWB. The context node BTCUSTOMERH is created  as a dependent node on BTADMINH. Below is the code for creating the context node.
model = owner->create_model(
      class_name     = 'ZL_ZOPP_EXT_COMMERCIALOV_CN01'
      model_id       = 'BTCustomerH' ).                     "#EC NOTEXT
  BTCustomerH ?= model.
  CLEAR model.
initial setting for depandant model node
  coll_wrapper =
    BTADMINH->get_collection_wrapper( ).
  TRY.
      entity ?= coll_wrapper->get_current( ).
    CATCH cx_sy_move_cast_error.
  ENDTRY.
  IF entity IS BOUND.
    BTCustomerH->on_new_focus(
                 focus_bo = entity ).
  ENDIF.
My problem is when I open a opportunity these custom view fields are all blank (intial). If I click edit button on any of the views the values get populated. If I got out of the opportunity and come back again after clicking the edit button I get my custom views populated.
A similar entry in SDN is there but is not clear. Can anybody advice?
Custom field only populated on edit

Hi Arun,
    Thank you for replying. I solved the problem. In my case I have bounded the context for BTCUSTOMERH with the component controller. And compoent controller does not hold values when its loaded. I removed the binding and it worked.
Edited by: subhashis das on Mar 5, 2010 1:31 PM
Edited by: subhashis das on Mar 5, 2010 2:10 PM

Similar Messages

  • Protected Flex field and Custom Views

    Hi,
    I have created some project variables in oracle bpm 11.1.1.6.0 project.After deployment, these variables are coming as Protected flex field but for some reason these are not visible when I define custom views.
    I also tried creating Protected flex field on BPm workspace, mapped these variables to human task payload, yet again when creating custom view i cannot see them.
    This problem is only happening with protected flex field and not public flex field.
    Please let me know how to add protected flex fields in custom view.
    Regards...

    why do you think it's an apps question?

  • Is there a possibility to clear ONLY the COMPLETED downloads when a button is clicked in firefox?

    is there any way (natively, or by using an extension) to clear ONLY the COMPLETED downloads when a button is clicked in firefox. it should not clear the paused, failed or cancelled downloads. - similar to the functionality in INTERNET DOWNLOAD MANAGER software by TONEC. i have searched lots but could not find such a function. :(

    Along the lines of cor-el's last post, if you want to delete most of the downloads, you can select the entire list using Ctrl+a then Ctrl+click the ones you want to exclude from the selection.
    In some cases, Firefox supports "places queries" to drill down on specific kinds of history. However, I didn't see one for downloads documented in the MDN article, so I'm not sure whether there is a way to query just for successfully completed downloads.
    https://developer.mozilla.org/en-US/docs/Mozilla/Tech/Places/Places_query_URIs

  • How to get a form to appear on the same page when a button is clicked?

    Hi,
    I have a report on a page with a create button. When a user clicks the create button, a form should appear on another region in the same page....how do i go about doing this?
    I know how to do this if the form is on a different page, but i'd like the form to appear on the same page as the report and only when the button is clicked.
    Thanks.

    Hi,
    I did the following, but it didnt work....
    1) Created a hidden item on the page, and in the Default Value field, I set the value to N.
    2) Created a button in the report with the following values under "Optional URL Redirect":
    Target is a: Page in this application
    Page: 4
    Set these items: P1_SHOW_FORM
    With these values: Y
    3) Created a form of HTML text type with the following values under "Conditional Display":
    Condition Type: Request=Expression 1
    Expression 1: P1_SHOW_FORM='Y'
    What have I done wrong or have i missed something?
    Thanks.

  • How to Create a Dynamic http address that opens the Explorer Window for a List Item When a Button Is Clicked--Currently Trying to Make this Work with Javascript

    I have created a button (via Content Editor) that uses JavaScript to open the Attachments folder of a list item in the Explorer Window in SharePoint 2010. The purpose is to have drag and drop functionality for each list item, having multiple attachments.
    The button works but opens the "Attachments" folder containing all of the other folders for each list item (one folder per item). It seems that when you add an attachment to a list item, SharePoint numbers the folder based on the item's ID. What
    I'm trying to do is take the JavaScript I have and have it run when a button is clicked in a custom form. When it runs, I'm trying to get it to open the "specific" folder for the list item. I have had success creating a hyperlink in the list that
    does this; however, the link WILL NOT work until I use the Content Editor created button that runs JavaScript, that prompts me to click OK to my profile certificate, and then opens the Attachment folder. After that occurs, I can use my hyperlinks without issue
    because I'm no longer prompted to click OK for my cert.
    So I'm trying to take the JavaScript I have and place it in a list item form (custom form) and have it run when a form button is clicked. The problem is I have very little knowledge of JavaScript (did I mention little?) and
    "don't know how to take the "http:" address I have in the script and append to it the list item ID, according to the record I have open."
    So that for any record I open, the script will grab the corresponding record ID (or list item ID) and append it.
    Here's the script I'm working with (which I didn't create but am grateful for):
    <style>
    .httpFolder {behavior:url(#default#httpFolder);}
    </style>
    <script text = "javascript">
       function fnOpenFolderView(){
       oDAV.navigateFrame("https://server/collection/site/subsite/Lists/Sublist/Attachments","_self");
    </script>
    <div id = "oDAV" class = "httpFolder"/>
    <input type = "button" value = "Open Attachment Folder" onclick = "fnOpenFolderView()"/>
    The above script, in the Content Editor, creates a button that opens the Attachments folder for the corresponding SharePoint list.
    JackSki123

    Hello Thriggle,
    Thank you for pointing that out. I appended your "GetUrlKeyValue" to the end and it worked. That said, I noticed it doesn't run as smoothly as when I simply click on the Content Editor button I created that resides on the SharePoint List
    ASPX page (not the form). The Content Editor button has the same code, minus the "GetUrlKeyValue". I click it; I get prompted to choose my cert; it opens right up.
    Now go to the ASPX Display form where I dump the code in a table cell. Button appears in cell; I click it; wait; wait; I get prompted for cert; it opens. Do I need some sort of "throttle" for the JavaScript? For instance, I thought before running
    JavaScript, you reference the library first. This code doesn't do that. I'm wondering if there's something more I need to make this run smoothly. Thank you both for getting me this far. 
    JackSki123

  • Access Bidder Tab Details when PUBLISH button is clicked

    Hi All,
    I've few requirements to enhance the functionality of PUBLISH button in Rfx Creation.
    One fo them is to trigger notification mails to all bidders when RFx is re-PUBLISHed by clicking PUBLISH button.
    I need to fetch all the bidder list from Bidder Tab whenever PUBLISH is clicked.
    Need to know where / which method has all these details so that I can enhance it.
    I know that PUBLISH is in the toolbar for FPM_OIF_COMPONENT.
    View - CNR_VIEW
    RFx Bidder tab details will get from the component /SAPSRM/WDC_UI_DO_BIDDER.
    I want to access the bidders when PUBLISH button is clicked.
    I want to which method is executed when PUBLISH button is clicked.
    Tried with CL_ABAP_DEBUGGER and CL_WDR_ACTION but not getting the ecaxt component which is calling.
    Is there any other way to debug?
    Thanks in Advance
    Rgrds,
    Sravan

    A bit late, but method /SAPSRM/IF_FPM_OVRIDE_EVT_OIF~OVERRIDE_EVENT_OIF from /SAPSRM/CL_FPM_OVRIDE_OIF is extremely useful trying to debug where the info comes from.
    Basically, there are several mappers classes that access to pdo layer somehow. It is always the same process more or less, but you have to know which classes are involved.
    You can usually get a class that is accesible from your wd component. If no BAdIs or no other way of doing some z modification, it is always posible to directly enhance such class...
    Hope this helps
    Regards

  • Badi/userexit for va01,when save button is clicked

    hi friends,
    i want badi/userexit which triggers when save button is clicked in va01 tcode.
    Thanks,
    Gaurav

    Hello,
    You can debug the standard code ( /h before pressing save button) searching for user-exits or badis.
    Set breakpoints in statements. For example if you are looking for call customer-fuction, click on:
    Breakpoint --> Breakpoint at --> Breakpoint at Statement
    and then here write: CALL CUSTOMER-FUNCTION
    Then pressing F8 it will go directly to the next breakpoint (user exit for this transaction).
    I hope it will help you.

  • Is it possible to fire an event when radio buttons are clicked in a report?

    Hi All,
    I have got a requirement. In the selection screen i have certain input fields and three radio buttons. When radio buttons are clicked i have to grey out certain input fields. Is it possible to fire an event when i write program through se38??
    Thanks
    Rakesh

    Hi Rakesh,
    Check this code.
    SELECTION-SCREEN BEGIN OF BLOCK FINPUT WITH FRAME TITLE TEXT-001.
    PARAMETERS  : FILENAME(132) TYPE C LOWER CASE  NO-DISPLAY,
                  FDLOAD RADIOBUTTON GROUP RAD1
                  USER-COMMAND R1 ,
                  FUPLOAD RADIOBUTTON GROUP RAD1 .
    SELECTION-SCREEN END OF BLOCK FINPUT.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-002.
    PARAMETERS : FUNAME(132) TYPE C LOWER CASE MODIF ID AA.
    SELECTION-SCREEN PUSHBUTTON /33(30) ACTION USER-COMMAND
                     BTNACT MODIF ID AA VISIBLE LENGTH 8 .
    SELECTION-SCREEN PUSHBUTTON 43(30) CANCEL USER-COMMAND
                     BTNCAN MODIF ID AA VISIBLE LENGTH 8  .
    SELECTION-SCREEN END OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.
    PARAMETERS : FDNAME(132) TYPE C LOWER CASE MODIF ID BB.
    SELECTION-SCREEN PUSHBUTTON /33(30) ACTIONS USER-COMMAND
                     BTNACT1 MODIF ID BB VISIBLE LENGTH 8.
    SELECTION-SCREEN PUSHBUTTON 43(30) CANCELS USER-COMMAND
                     BTNCAN1 MODIF ID BB VISIBLE LENGTH 8.
    SELECTION-SCREEN END OF BLOCK B2.
    DATA : ACTNAME(8) TYPE C,SCRGRUP(2) TYPE C.
    INITIALIZATION.
    ACTIONS = 'Download'.
    CANCEL = 'Cancel'.
    ACTION = 'Upload'.
    CANCELS = 'Cancel'.
    ACTNAME = 'Download'.
    SCRGRUP = 'AA'.
    AT SELECTION-SCREEN ON RADIOBUTTON GROUP RAD1.
    IF FUPLOAD = 'X'.
         MOVE 'Upload' TO ACTION.
         MOVE 'Upload' TO ACTNAME.
    ELSEIF FDLOAD = 'X'.
         MOVE 'Download' TO ACTION.
         MOVE 'Download' TO ACTNAME.
    ENDIF.
    AT SELECTION-SCREEN.
    IF SY-UCOMM = 'R1'.
        IF ACTION = 'Download'.
          SCRGRUP = 'AA'.
         MESSAGE S007(ZMESSAGE).
        ELSEIF ACTION = 'Upload'.
          SCRGRUP = 'BB'.
         MESSAGE S008(ZMESSAGE).
       ENDIF.
    ELSEIF SY-UCOMM = 'BTNCAN' OR SY-UCOMM = 'BTNCAN1'.
      LEAVE PROGRAM.
    ENDIF.
    *AT USER-COMMAND.
    CASE SY-UCOMM.
       WHEN 'ACTIONS'.
         LOOP AT SCREEN.
           IF SCREEN-NAME = 'FUNAME'.
           ENDIF.
         ENDLOOP.
    ENDCASE.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR FUNAME.
      PERFORM call_filedialog CHANGING FUNAME.
    PERFORM call_filedialog CHANGING FUNAME.
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
    IF SCREEN-GROUP1 = SCRGRUP AND ACTNAME = 'Download' .
      SCREEN-ACTIVE = 0.
      MODIFY SCREEN.
    ENDIF.
    IF SCREEN-GROUP1 = SCRGRUP AND ACTNAME = 'Upload'.
      SCREEN-ACTIVE = 0.
      MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    FORM call_filedialog CHANGING fname.
      DATA: li_filetable TYPE STANDARD TABLE OF file_table,
        lv_return TYPE i,
        lw_filetable TYPE file_table.
      CALL FUNCTION 'TMP_GUI_FILE_OPEN_DIALOG'
        TABLES
          file_table = li_filetable
        EXCEPTIONS
          cntl_error = 1
          OTHERS     = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      READ TABLE li_filetable INDEX 1 INTO lw_filetable.
      fname = lw_filetable-filename.
    ENDFORM.                    "call_filedialog
    Reward Points, if useful.
    Regards,
    Manoj Kumar

  • Copy and Paste when a Button is clicked

    In the current form that I am creating, I have a dropdown which automatically populates a text field depending on which option the user clicks in the dropdown called "Client Requirement/Suggestion" . After this first instance, I will have a button that when clicked, the same dropdown and text field from the first instance will appear again without overriding or deleting what was selected in the first and the user will be able to select something else. Any help would be greatly appreciated. Thanks in advance.

    Friends I want to open any of the four forms randomly when a button is clicked. buttonA, FormA, FormB, FormC, FormD. Teach me please.
    Use the example here to create a random number from 0 to 3.  
    https://msdn.microsoft.com/en-us/library/2dx6wyd4(v=vs.110).aspx
    Then use an example from here to use that number to control the form that opens.
    https://msdn.microsoft.com/en-us/library/cy37t14y.aspx

  • Creating a plot on a java Frame when a button is clicked

    hi
    I want to create a plot in a java application in a frame when a button is clicked.I mean to say a
    a plot between two single dimensional arrays one as x-axis and the other as y-axis. Can u please suggest me with an example
    Thank u

    JFreeChart

  • Load text or txt file into a table when a button is clicked by the user

    Can anyone please help me,
    I have a form where a user comes and uploads a text file(Unicode UTF-8) and clicks a button(Upload) ,
    when the button is clicked - it should load the text file data into the database table for the corresponding columns.
    Note: in text file columns are sapreted by tab(\t)
    & First row of text file contains column names.
    & Table name should be that text file name
    Can anyone please suggest me a possible solution or an approach.
    Thanks,
    Rathore
    Edited by: Rathore on May 14, 2010 1:49 AM

    Hi Legends and experts
    please reply give me some solutions

  • Load CSV file into a table when a button is clicked by the user

    Hello,
    Can anyone please help me out with this issue, I have a form where in a user comes and uploads a CSV file and clicks a button, when the button is clicked - it should load the CSV file data into the database table for the corresponding columns.
    Can anyone please suggest me a possible solution or an approach.
    Thanks,
    Orton
    Edited by: orton607 on May 5, 2010 2:00 PM

    thanks fro replying.
    I have tried your changes but its not working. One more question is that I am having one column which contains commas, when I tried to load the file its failing. I think its the problem with commas. So I have changed the code to use the replace function for that column, then also its not working. Can anyone please suggest a possible approach. Below is my source code for your reference.
    DECLARE
    v_blob_data BLOB;
    v_blob_len NUMBER;
    v_position NUMBER;
    v_raw_chunk RAW(10000);
    v_char CHAR(1);
    c_chunk_len NUMBER := 1;
    v_line VARCHAR2 (32767):= NULL;
    v_data_array wwv_flow_global.vc_arr2;
    v_rows NUMBER;
    v_sr_no NUMBER := 1;
    l_cnt BINARY_INTEGER := 0;
    l_stepid NUMBER := 10;
    BEGIN
    delete from sample_tbl;
    -- Read data from wwv_flow_files</span>
    select blob_content into v_blob_data from wwv_flow_files
    where last_updated = (select max(last_updated) from wwv_flow_files where UPDATED_BY = :APP_USER)
    and id = (select max(id) from wwv_flow_files where updated_by = :APP_USER);
    v_blob_len := dbms_lob.getlength(v_blob_data);
    v_position := 1;
    -- Read and convert binary to char</span>
    WHILE ( v_position <= v_blob_len ) LOOP
    v_raw_chunk := dbms_lob.substr(v_blob_data,c_chunk_len,v_position);
    v_char := chr(hex_to_decimal(rawtohex(v_raw_chunk)));
    v_line := v_line || v_char;
    v_position := v_position + c_chunk_len;
    -- When a whole line is retrieved </span>
    IF v_char = CHR(10) THEN
    -- Convert comma to : to use wwv_flow_utilities </span>
    v_line := REPLACE (v_line, ',', ':');
    -- Convert each column separated by : into array of data </span>
    v_data_array := wwv_flow_utilities.string_to_table (v_line);
    -- Insert data into target table </span>
    EXECUTE IMMEDIATE 'insert into sample_tbl(col1..col12)
    values (:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11,:12)'
    USING
    v_sr_no,
    v_data_array(1),
    v_data_array(2),
    v_data_array(3),
    v_data_array(4),
    v_data_array(5),
    v_data_array(6),
    v_data_array(7),
    v_data_array(8),
    REPLACE(v_data_array(9), ':', ','),
    to_date(v_data_array(10),'MM/DD/YYYY'),
    v_data_array(11);
    -- Clear out
    v_line := NULL;
    v_sr_no := v_sr_no + 1;
    l_cnt := l_cnt + SQL%ROWCOUNT;
    END IF;
    END LOOP;
    COMMIT;
    l_stepid := 20;
    IF l_cnt = 0 THEN
    apex_application.g_print_success_message := apex_application.g_print_success_message || ' Please select a file to upload ' ;
    ELSE
    apex_application.g_print_success_message := apex_application.g_print_success_message || 'File uploaded and processed ' || l_cnt || ' record(s) successfully.';
    END IF;
    l_stepid := 30;
    EXCEPTION WHEN OTHERS THEN
    ROLLBACK;
    apex_application.g_print_success_message := apex_application.g_print_success_message || 'Failed to upload the file. '||REGEXP_REPLACE(SQLERRM,'[('')(<)(>)(,)(;)(:)(")('')]{1,}', '') ;
    END;
    Below is the function which I am using to convert hex to decimal
    create or replace function hex_to_decimal( p_hex_str in varchar2 ) return number
    is
    v_dec number;
    v_hex varchar2(16) := '0123456789ABCDEF';
    begin
    v_dec := 0;
    for indx in 1 .. length(p_hex_str)
    loop
    v_dec := v_dec * 16 + instr(v_hex,upper(substr(p_hex_str,indx,1)))-1;
    end loop;
    return v_dec;
    end hex_to_decimal;
    thanks,
    Orton

  • Display success message in same page when submit button is clicked

    I have a jsp page, where i use a form to submit data into my database.when submit button is clicked, i am able to display "Data entered Successfully" in a different page. But i want to display the message in the same jsp page.
    what do i do?
    PS :- i have tried a javascript message box, but that is not working properly. I need this solved urgently.
    Thanks

    Hi Deeptha,
    What is APEX version your using and is it your select list with submit option ?
    Regards,
    Ajay Periwal

  • Cant sync music from iphone 5... When sync button is clicked starting sync appears and dissapears and nothing happens i cannot find a solution for this... Someone help me please

    I Cant sync please help me... Im using iphone 5 ios 7.1... when sync button is clicked starting sync comes and nothing happens and no music on my phone... Im trying to sync my playlist in itunes... I have itunes 11.1.3.8 64-bit Windows 8

    My apologies...the version is 11.1.4.62 not as stated aboive in my problem description.  I'm trying again and it just finished syncing fine and my iPhone 5 is still connected to iTuns physcially with USB lightening cable and is displaying the iPhone icon top right.  I clicked on it and iTunes is now "hung' or  locked up.  Shows to be an active running application but can't get back to it so willl have to kill with task manager.  There is some kind of problem going on with the latest version of iTunes and Wndows 7 and 8.1 or something.  My iPhone 5 now has a new feature that it is now asking me if I "Trust" this computer.  iTunes just came "unhung" after several minutes while I was typing this. Now I am going to start the backup to this computer HP Winsows 8.1 and iTune 11.1.4.62 and see what happens.  Says it is Backing up Jerrys iPhone but the Barber Pole progress bar is not turning an iTunes is hung again and I cant get back to it from this page I am typing on.  Maybe it will eventually release as it did a moment ago. 

  • Adding Flex-field to Custom View in the Worklist

    Hi,
    I am using OAS10133. I have mapped a SIMPLE_TYPE payload attribute to a flex field label in the worklist. I created a custom view. I want to display this playload attribute as a column in custom view and want to make it searcheable. But when I create the custom view, then at the time of selecting the columns, I do not find the name of this label listed in the dropdown.
    I have also made an entry in WorkFlowLabels.properties file.
    Can anyone please let me know if I need to follow any other step to display the flex field label as a column in custom view?
    Thanks in advance.
    -sam

    Hi Pete,
    There are two exits that were used.
    A user exit IMRC0001 (MeasPoint/MeasDoc: Exit before update (after COMMIT WORK) /  FM: EXIT_SAPLIMR0_001) for the transaction IK11 to enter the value for the custom field. When the measuring document is saved a pop up appears wherein the value for the custom field can be entered.
    A menu exit IMRC0003 (MeasDoc: Menu exit for customer-specific function / FM: EXIT_SAPLIMR0_003) for the transaction IK12 in order to change the custom field.

Maybe you are looking for

  • IPod Freezes on Startup; Won't Charge; Computer Won't Recognize

    I just got a used iPod in the mail yesterday... When I try to charge it using a USB drive or a wall charger, it appears as if nothing happens. When I have it plugged into my USB drive, my computer doesn't recognize anything... I've tried using the "r

  • How to configure to identify to reconnect on a stale connection?

    Hi, I am using oracle App Server 10.1.3.1.0 and oracle BPEL. BPEL uses TOPLINK over all of its Database Adapters. I am also using Oracle Server's connection factory and Data source in order to acquire a connection. While execution due to some reason,

  • DHCP not updating resolver properly on Yosemite

    I think that this issue is Yosemite related. However, I can find no others with the same issue, so it could be something that I've broken. The symptom that I see is that /etc/resolv.conf (or /var/run/resolv.conf) gets the wrong data in it when I join

  • Problem in Adobe Content Viewer

    I have a Enterprise account and a custom Adobe Content Viewer, that's supposed to read a book with interactive objects made in HTML5. However, this reader isn't reading some script that is making the interactive objects impossible to open, and, when

  • DR Server: Standby Database

    Hello All, I need to Design a DR Server for my Client. I have decided to go for a hot Standby Database. I am very new to DB2. Are there any Documents that can help me on designing the procedure for this. If you can let me know the steps/commands in d