Updating values in a Grid template

I'm using xMII 11.5 SP3.  Can values displayed in a grid template be edited directly in the template?  We have an application where we'd like to pull values out of a SQL Server table, display them in a grid and have the user update the numbers then push the updated numbers back into the table.  In a similar application I display the values in a grid then enter the updated numbers through an HTML form directly below the grid.  It works but it scores low on the elegance scale.
Thanks for your help!
David

Dave/Rick,
There's also roadmap plans to accomodate this in future releases of xMII.  I believe they were mentioned at the Adaptive Mfg. Summit in September.  The Roadmap PPTs can be downloaded from the web <a href="http://www.sap.com/community/pub/events/2007_SERIES_AMS/index.epx">here</a>.
Hope this helps.
Sam

Similar Messages

  • Update values in AlV grid display after entering value

    Hi,
         I have an issue in ALV grid display.
        Let me explain.
        i have 8 fields to display in which one is editiable.
       Fields are: date
                       material,
                       material Description,
                       Opening Stock,
                       Closing stock-  (  this field is editiable)
                       Closing stock,
                       Received Stock,
                       Actual production.
    Actual production = Closing stock + removal stock
                                 - receipt stock - opening stock.
    when i change the value of closing stock and press enter, actual production should get update, the new values should display.
    Thany you in advance.

    Hi,
    Please refer the code below:
    REPORT z_demo_alv_jg.*******************************************************************
    * TYPE-POOLS                                                      *
    TYPE-POOLS: slis. *******************************************************************
    * INTERNAL TABLES/WORK AREAS/VARIABLES     *
    DATA: i_fieldcat TYPE slis_t_fieldcat_alv,
          i_index TYPE STANDARD TABLE OF i WITH HEADER LINE,
          w_field TYPE slis_fieldcat_alv,
          p_table LIKE dd02l-tabname,
          dy_table TYPE REF TO data,
          dy_tab TYPE REF TO data,
          dy_line TYPE REF TO data.*******************************************************************
    * FIELD-SYMBOLS                                                   *
    FIELD-SYMBOLS: <dyn_table> TYPE STANDARD TABLE,
                   <dyn_wa> TYPE ANY,
                   <dyn_field> TYPE ANY,
                   <dyn_tab_temp> TYPE STANDARD TABLE.*******************************************************************
    * SELECTION SCREEN                                                *
    PARAMETERS: tabname(30) TYPE c,
                lines(5)  TYPE n.*******************************************************************
    * START-OF-SELECTION                                              *
    START-OF-SELECTION.* Storing table name
      p_table = tabname.* Create internal table dynamically with the stucture of table name
    * entered in the selection screen
      CREATE DATA dy_table TYPE STANDARD TABLE OF (p_table).
      ASSIGN dy_table->* TO <dyn_table>.
      IF sy-subrc <> 0.
        MESSAGE i000(z_zzz_ca_messages) WITH ' No table found'.    LEAVE TO LIST-PROCESSING.
      ENDIF.
    * Create workarea for the table
      CREATE DATA dy_line LIKE LINE OF <dyn_table>.
      ASSIGN dy_line->* TO <dyn_wa>.* Create another temp. table
      CREATE DATA dy_tab TYPE STANDARD TABLE OF (p_table).
      ASSIGN dy_tab->* TO <dyn_tab_temp>.  SORT i_fieldcat BY col_pos.* Select data from table
      SELECT * FROM (p_table)
      INTO TABLE <dyn_table>
      UP TO lines ROWS.  REFRESH <dyn_tab_temp>.* Display report
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          i_callback_program       = sy-repid
          i_structure_name         = p_table
          i_callback_user_command  = 'USER_COMMAND'
          i_callback_pf_status_set = 'SET_PF_STATUS'
        TABLES
          t_outtab                 = <dyn_table>
        EXCEPTIONS
          program_error            = 1
          OTHERS                   = 2.  IF sy-subrc <> 0.  ENDIF.*&-----------------------------------------------------------------*
    *&      Form  SET_PF_STATUS
    *       Setting custom PF-Status
    *      -->RT_EXTAB   Excluding table
    FORM set_pf_status USING rt_extab TYPE slis_t_extab.  SET PF-STATUS 'Z_STANDARD'.ENDFORM.                    "SET_PF_STATUS*&----------------------------------------------------------------*
    *&      Form  user_command
    *       Handling custom function codes
    *      -->R_UCOMM      Function code value
    *      -->RS_SELFIELD  Info. of cursor position in ALV
    FORM user_command  USING    r_ucomm LIKE sy-ucomm
                               rs_selfield TYPE slis_selfield.* Local data declaration
      DATA: li_tab TYPE REF TO data,
            l_line TYPE REF TO data.* Local field-symbols
      FIELD-SYMBOLS:<l_tab> TYPE table,
                    <l_wa>  TYPE ANY.* Create table
      CREATE DATA li_tab TYPE STANDARD TABLE OF (p_table).
      ASSIGN li_tab->* TO <l_tab>.* Create workarea
      CREATE DATA l_line LIKE LINE OF <l_tab>.
      ASSIGN l_line->* TO <l_wa>.  CASE r_ucomm.*   When a record is selected
        WHEN '&IC1'.*     Read the selected record
          READ TABLE <dyn_table> ASSIGNING <dyn_wa> INDEX
          rs_selfield-tabindex.      IF sy-subrc = 0.*       Store the record in an internal table
            APPEND <dyn_wa> TO <l_tab>.*       Fetch the field catalog info
            CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
              EXPORTING
                i_program_name         = 'Z_DEMO_PDF_JG'
                i_structure_name       = p_table
              CHANGING
                ct_fieldcat            = i_fieldcat
              EXCEPTIONS
                inconsistent_interface = 1
                program_error          = 2
                OTHERS                 = 3.
            IF sy-subrc = 0.*         Make all the fields input enabled except key fields
              w_field-input = 'X'.          MODIFY i_fieldcat FROM w_field TRANSPORTING input
              WHERE key IS INITIAL.        ENDIF.*       Display the record for editing purpose
            CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
              EXPORTING
                i_callback_program    = sy-repid
                i_structure_name      = p_table
                it_fieldcat           = i_fieldcat
                i_screen_start_column = 10
                i_screen_start_line   = 15
                i_screen_end_column   = 200
                i_screen_end_line     = 20
              TABLES
                t_outtab              = <l_tab>
              EXCEPTIONS
                program_error         = 1
                OTHERS                = 2.        IF sy-subrc = 0.*         Read the modified data
              READ TABLE <l_tab> INDEX 1 INTO <l_wa>.*         If the record is changed then track its index no.
    *         and populate it in an internal table for future
    *         action
              IF sy-subrc = 0 AND <dyn_wa> <> <l_wa>.
                <dyn_wa> = <l_wa>.
                i_index = rs_selfield-tabindex.
                APPEND i_index.
              ENDIF.
            ENDIF.      ENDIF.*   When save button is pressed
        WHEN 'SAVE'.*     Sort the index table
          SORT i_index.*     Delete all duplicate records
          DELETE ADJACENT DUPLICATES FROM i_index.      LOOP AT i_index.*       Find out the changes in the internal table
    *       and populate these changes in another internal table
            READ TABLE <dyn_table> ASSIGNING <dyn_wa> INDEX i_index.
            IF sy-subrc = 0.
              APPEND <dyn_wa> TO <dyn_tab_temp>.
            ENDIF.      ENDLOOP.*     Lock the table
          CALL FUNCTION 'ENQUEUE_E_TABLE'
            EXPORTING
              mode_rstable   = 'E'
              tabname        = p_table
            EXCEPTIONS
              foreign_lock   = 1
              system_failure = 2
              OTHERS         = 3.      IF sy-subrc = 0.*       Modify the database table with these changes
            MODIFY (p_table) FROM TABLE <dyn_tab_temp>.        REFRESH <dyn_tab_temp>.*       Unlock the table
            CALL FUNCTION 'DEQUEUE_E_TABLE'
              EXPORTING
                mode_rstable = 'E'
                tabname      = p_table.      ENDIF.
      ENDCASE.  rs_selfield-refresh = 'X'.ENDFORM.                    "user_command
    Thanks,
    Sriram Ponna.

  • Updating Row in a Grid

    Hi All
        I m extracting data from SQL table onto xMII Dashboard using Grid template.I have one column named comments.
        I need that the supervisor using the Dashboard can change the comments as required and it should be reflected on the dashboard as well as It is updated in the database.
         Can anyone tell me how can I achieve this ? I am concerned whether I would be able to change an xMII Grid row ....
    Regards
    Amit

    Hi Amit,
    Add a cell selection event in your iGrid template definition
    e.g.
    <APPLET NAME="appDashBoard" WIDTH="100%" HEIGHT="250" CODE="iGrid" CODEBASE="/Illuminator/Classes" ARCHIVE="illum8.zip" MAYSCRIPT>
         <PARAM NAME="QueryTemplate" VALUE="/your/query/template">
         <PARAM NAME="DisplayTemplate" VALUE="/your/display/template">
         <PARAM NAME="InitialUpdate" VALUE="true">
         <PARAM NAME="CellSelectionEvent" VALUE="JavaScriptFunctionName">
    </APPLET>
    Create a query template to update new comment in database
    <APPLET NAME="appUpdateComment" WIDTH="1" HEIGHT="1" CODE="iCommand" CODEBASE="/Illuminator/Classes" ARCHIVE="illum8.zip" MAYSCRIPT>
    <PARAM NAME="QueryTemplate" VALUE="/update/comment">
    </APPLET>
    In your Java script function check whether the selected cell is part of the comment's column
    if (appDashBoard,getSelectedCellColumn() == 'Comment'){
       //capture new user comment
       var comment = prompt('Enter comment', '');
       //get record id from igrid for the selected comment
       var cellRow = appDashBoard.getSelectedCellRow();
       var rID = getCellValue(cellRow, columNumberOfID);
       var appUpdateCommentQry= appUpdateComment.getQueryObject(); 
       appUpdateCommentQry.setParam(1, rID);
       appUpdateCommentQry.setParam(2, comment );
       if(appUpdateComment.executeCommand()) {
       } else {
       appDashBoard.updateGrid(true);

  • How to make regions editable in fluid grid template in 2014.1.1 in LIVE view - can't open the template editable selection panel

    I am teaching a course in Dreamweaver 2014.1.1
    We are setting up templates in fluid grids.
    We need to make regions editable.
    The LIVE view replaced the DESIGN view and does not have certain options accessible anymore.
    I can't find the command to access the dropdown panel to make a region editable.
    The Template tab at top, and the make editable options subtab, will not come open in fluid grid template mode.
    Does anyone have a way to do this?

    I was under the impression that the February update (2014.1.1) released a few days ago had fixed these problems.  I urge you to file an official bug report below.
    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    My advice for now is to stay away from Fluid Grid Layouts.  But if that's not an option, I'll show you a trick for getting Design View back.  Open the Fluid Grid CSS file and add an X as shown below.  This tricks DW into thinking it's a normal layout.
        Dreamweaver Fluid Grid Properties
        dw-num-cols-mobile:      X 4;
        dw-num-cols-tablet:        8;
        dw-num-cols-desktop:    12;
        dw-gutter-percentage:    25;
    =====================================
    Once saved, you should see Design View as an option.
    Nancy O.

  • Update Existing Coll Rooms when Template Changed

    Please refer to this thread.
    <a href="https://forums.sdn.sap.com/thread.jspa?threadID=70659">https://forums.sdn.sap.com/thread.jspa?threadID=70659</a>
    How do I get the existing Collaboration rooms to be updated when we change the template they are based on?

    Hi Brian,
    with SPS17 it is now possible to update the worksets for room templates or room part templates and transfer changed values for the iView properties to existing rooms.
    Here are the steps described in detailed: http://help.sap.com/saphelp_nw04/helpdata/en/44/168eb1c3641a75e10000000a1553f6/frameset.htm
    Hope this helps,
    Robert
    PS: Unfortunately, you can only update iView property values but not add new iViews existing collaboration rooms.

  • Not able to view actual Price updated 'Value' in Change Tracker

    I was able to get my Change tracker to work and it is functioning. (SRM 5.0 MDM5.5 )... Configured Portal iViews for change tracker.
    If I change a description I can see it in the change tracker application. But if I try and track a Price change it only shows me a date-time  and user as to I when the price was changed it doesnu2019t show me the actual value changed, for my audit purposes.
    On the portal the change tracker "Field" dropdown shows -> Price Updated. this is what is tracking any change of price.
    In MDM Console-> Admin->Change Tracker I am tracking under Catalog Items: Price information, Price Updated, Special search terms, long description.
    When I look at the Data manager in the Record Detail, I see  u2018Price Updatedu2019 and it only has a Date and time stamp. In this same Record Detail,  I see the field Price Information that contains :Lower bound, Purchasing Info record ID, Purchasing Organization, Amount and Currency.  Amount-> contains the actual price value. This is what i want to see in the portal iView as Old value and New value....this is what I am unable to view? theres one small step i am not doing...
    I am trying to track the actual change in the filed u2018Amountu2019u2026 I have tried to search for it in the Portal iView fields (table, record contains, fields, record)
    cheers
    alex

    Hi Alex,
    I would not here comment on change Tracking functionality but can you suggest another workaround to achieve this requirement. If it fits in your requirement you can go ahead with it.
    In MDM, Create another field in Main table say Initial Price and for already existing field Amount replace its name with Updated Price in Qualified table Price.
    now after this you will see that your by default Updated Price has values as it was your Amount field earlier and Initial Price field as empty. Now for next time, if any record comes using Import Manager then MDM workflow should trigger at Record Import.
    This workflow contains following steps.
    Start(Checkout)>Assign>Stop(CheckIn)
    Assign step should have below expression and assignment:
    Price Information.Updated Price
    Where I am assuming Price Information is the field in main table which is look up to this qualified table Price.
    So in this way you can maintain both existing and updated values of Price and cant then show in your Catalog.
    suppose you have already existing record say 1 which has value of Amount as 20.
    So that means you have Updated Price as 20 and Initial Price as empty(Null)
    Now when same record 1 updates with new Amount say 40, it triggers this workflow on record import which will then assign value of existing updated Price 20 to Initial Field after that Updated Price will update by 40.
    Note: This Assignment works well only if your main table record has this Qualified table link as single record. If your main table record contains more than one qualified links then this Assignment would not work fine. So use only if it fits.
    Regards,
    Mandeep Saini

  • Change value parameter in RTF template

    Hi
    sorry if possible change a value parameter in RTF template?
    Thanks in advance for any insights!

    Thanks but I already tried it and it works.But if there is a second page with the parameter value rebooting.
    For this reason I wanted to reset the parameter value.
    Thanks

  • Get Updated values in valueChangeListener of af:selectManyShuttle

    I am using Jdeveloper 11.1.1.3.0
    I have applied the valueChangeListener in selectManyShuttle to get the values in backing bean.
    But the problem is, it's not giving me the updated values.
    For example, for the 1st time, the left side list is empty. So, 1st time when I moves some values, it doesn't give me any value but next time, it gives me the the ID of previously moved items.
    How to resolve this problem?

    You can try to put the following line as the 1st line in your valuechangelistener method.
    valueChangeEvent.getComponent().processUpdates(FacesContext.getCurrentInstance());
    Thanks and Regards,
    S R Prasad

  • How to get updated values from the loops while they are running

    Hello,
            I am having difficulty solving a very basic problem, how to access the updated values from the 'FOR loop' while its running?  Basically, the VI  I am currently working on calls two sub VIs. Each sub VI has a for loop, and both VIs may or may not run for same number of iterations. My goal is to read the values at each terminal inside the loop of both sub VIs, in the Main VI. I tried to achieve it using Global Variables, but in main VI it displays only the last iteration value from both sub VIs. Could anyone please tell me whrere am I going wrong? Is there any other/better way to achieve this.
    I appreciate any input on this issue.  
    Kudos are (always) welcome for the good post. :-)
    Solved!
    Go to Solution.

    Dennis,
                In attached VI, I can see the values changing in the sub VI from the main VI with the numeric indicator whose reference is passed on to the sub VI. Now if I wanted to store or use those values how do I do that? I tried to chnge the indicator to control and read from it (in the attached VI) , but the the indicator updates only once. Tried to create a property node and read the Value from it and it didn't work either.
    Thanks in Advance!
    -Nilesh
    Kudos are (always) welcome for the good post. :-)
    Attachments:
    main-1.vi ‏8 KB
    sub-1.vi ‏9 KB

  • How to update values in ValueChangeEvent..

    Hi Everyone,
    I am using Jdeveloper 11.1.2.0.0.
    I have a scenario as follows. I have 2 input fields as Password and Confirmpassword.
    I wrote a ValueChangeListener for the field Password to do some validations and I wrote another ValueChangeListener for the Confirmpassword field inorder to compare the values entered in both fields.
    But here.., In ValueChangeListener event of Confirmpassword field, iam unable to fetch the value of Password field to compare.
    The reason is ..., ValueChangeListener  occurs in ApplyRequestPhase/ProcessValidationsPhase, and values get updated in UpdateModelPhase, hence values are not updating and unable to fetch in ValueChangeListener  event.
    In order to update values to the component tree in ValueChangeListener event, i tried using below code
    valueChangeEvent.getComponent().processUpdates(FacesContext.getCurrentInstance());
    But values are not updating..Kindly suggest me to achieve my scenario. Do the needful. Thanks in advance.
    Regards
    Alekhya

    Hi Nitish...
    Thanks for the response...
    I tried fetching password field value in Confirmpassword field by 2 ways as follows
    1. I binded value of the field as #{backingBeanScope.LoginPage.pwd} and tried to get value using getPwd() method.
    2. I fetched Ui component of  password inputfield and tried to get value using password.getValue()
    By both ways Iam getting null value in ValueChangeListener event of Confirmpassword.
    After clicking a button on the page , as usual the setters, ValueChangeListeners are executing and during this sequence..Iam getting value . But my scenario is this validation should be performed bu tabbing out of the field , not after clicking on a button .
    autoSubmit property is set to true.
    Kindly suggest me to proceed further. Thanks in advance.
    Regards
    Alekhya

  • Display listbox key value in ALV GRID method

    Hi All,
    I have a program in which columns are generted dynamically based on number of fields. The column name is dynamic as it depends on its text while The value in Column's can be 1, 2, 3, 4, 5.
    I am trying to display this in a list box along with the text which are maintained as fixed values at domain level.
    space Walking
    1       Archery   
    2       Boxing
    3       Cycling
    4       Rowing
    Also I am displaying by using 'DD_DOMVALUEs_GET, looping through all the fixed values and concatenate
    domvalue_l   ddtext separated by cl_abap_char_utilities=>horizontal_tab. No tab space is coming between key and value.
    Also for the 1st value which is space it is not coming properly as space is condensed.
    The point is that after I am putting values in the grid. The system event data changed is called where the value selected is  1 Archery and it is going to bad cells, error protocol display . I want only the 1st character. How to modify the content in the grid before the system event gets called.
    Regards,
    DPM

    Hi,
    try follow code to setup fieldcat of that DROP DOWN field.
    FCAT-DOMNAME = ' '.
    FCAT-CHECKTABLE= '!'.

  • Value from data grid not showing in workspace

    Hi everyone.
    I've entered value in data grid that i maid in Planning for one member. It looks like there is no velue for that member. What needs to be done to recognize new source?
    Member is set on Store and is used in some formulas in Dynamic Calc members.
    Thx.

    Maybe it is an implied share, is it is an only child, set the member to "never share", refresh and try again.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Pass variable value to different Web Templates??

    Hi BI gurus,
    The scenario is: we have 2 web templates, and at the top of template A, there is Menu Item for the users to switch to template B. Time Variable: Fiscal_Qtr (a custom exit variable which by default set the value as Current Quarter) is being used in both templates. And, there is drop down box of Fiscal_Qtr in the layouts for the users to change when they do the planning.
    The requirement is to keep the last value of the Fiscal Quarter when the users switch to different templates.
    The difficulty is how to read the fiscal quarter from the buffer and pass the value when launch another template, because it is a totally new session. The new session always set to the default value.
    Please share your thoughts if you have any experience about similar case.
    Thanks a lot!
    Eunice

    I dont think you an read from the buffer when you use javascript. The value is shown as request_1 in the url or something like that. This is with reference to WAD 3.x... you could customize the context menu and see if you can do an RRI instead...

  • Oracle Alert: Access before and after update values of a table column

    We have a requirement where a notification needs to be sent when 'END_DATE' attribute (column in a table X) is set, in an Oracle Applications form.
    I have defined an Event based Oracle Alert which fires 'On Update' of the table X.
    Could anyone please let me know as how to access the value of 'END_DATE' before and after update (i.e :new.END_DATE and :old.END_DATE) in the sql query of the alert.
    The need to use the before update and after update values of the attribute 'END_DATE' is that if we add the condition END_DATE is not null, the alert is sent even if any other attrbutes are updated in the Oracle form which is not the intended behavior.
    Appreciate any help.
    Thanks

    Hi
    use selectionlistener for your first table then add clientlistener and serverlistener so that you will get the rows on click in back bean.
    then get second table vo and and create and add row for that view object. add partial target to refresh your second table from back bean.
    on click of save call commit operation.

  • Update values of custom fields in table HRPAD506-Additional Data for PAD506

    Hi Experts,
    my requirement is write a report program to upload a file with records.
    I have to capture this records into an internal table and have to update values of 5 custom fields based on ADATANR.
    Can anyone suggest me about any FM or any way of doing this.
    Urgent requirement.
    Will HRIQ_RFC_BOOKING_CHANGE help.
    thankx.
    Duttad.

    hi,
    Above mentioned that when the values are entered in the customised fields they are not updating in the to the table mara.
    so, the program name and screen number which you are configuring in the spro, in that program name and in that screen number code it as below:
    (you could find the field statements in that screen for the standard fields like FIELD MARA-MEINS.)
    for example:
    PROCESS BEFORE OUTPUT.
           PROCESS AFTER INPUT.
          FIELD MARA-zzfieldname.
    Refer the oss note : 38229
    Thanks and regards.

Maybe you are looking for