Status Parameter "Edit"-Mode

Hi Experts,
i wanna know if there is a kind of status parameter in the Web UI, which shows me the mode of a view? (e.g. in edit mode).
This parameter should be used to set a view configuration. Has anybody an idea?
Thanks for your help!
Tobi

Hi Masood,
now i got the point. It works fine. Here the Code:
  DATA: lv_view_sub1 TYPE REF TO cl_cpg_main_vsovefheader_impl,
        lv_view_sub2 TYPE REF TO cl_cpgoe_de_eovpwindow_impl,
        lr_coco TYPE REF TO cl_cpgoe_de_bspwdcomponen_impl,
        lr_entity TYPE REF TO cl_crm_bol_entity.
  TRY.
      lv_view_sub1 ?= me->get_subcontroller_by_viewname( 'CPG_MAIN/VSOVEFHeader' ).
      CHECK lv_view_sub1 IS BOUND.
      lv_view_sub2 ?= lv_view_sub1->get_subcontroller_by_viewname( 'UCDetails.eOVPWindow' ).
      CHECK lv_view_sub2 IS BOUND.
    CATCH cx_sy_move_cast_error.
  ENDTRY.
  lr_coco ?= lv_view_sub2->m_parent.
  lr_entity ?= lr_coco->typed_context->campaign->collection_wrapper->get_current( ).
*IF  lr_entity->is_changeable( ) = abap_false.
My Problem now is that when i load the view in first time it didn`t load the config it should. When i go to "edit" button and then "cancel" it gets the right config. Do you have an idea?
IF lv_cpg_str-camp_type EQ 'ZTEST'.
    IF lr_entity->is_changeable( ) = abap_false.
      CALL METHOD me->set_config_keys
        EXPORTING
          iv_object_type          = 'ZTEST'
          iv_object_sub_type      = '<DEFAULT>'
          iv_propagate_2_children = 'X'.
    ELSE.
      CALL METHOD me->set_config_keys
        EXPORTING
          iv_object_type          = 'ZTEST2'
          iv_object_sub_type      = 'DEFAULT'
          iv_propagate_2_children = 'X'.
    ENDIF.
ENDIF.
Thanks a lot!
Tobias

Similar Messages

  • Why no indication of flag status in 'edit' mode?

    In 'edit' mode, I can flag photos, either via the menu or command-period. How come I can't tell if a current photo is flagged? No indicator anywhere, except to watch the 'flagged <n>' indicator in 'recent' and hit the key combo a few times to see if the number changes...
    It seems when I do other things such as rate (command-4 for example) in edit mode, I get that nice overlay with the result of my action. Why not for flagging? Seems totally obvious that this should occur for that as well.

    Ben
    I can get a flag, not on the Picture, but on the thumbnail on the strip across the top. Makes sense to me to do to that way because if the areas I was editing was under the flag icon?
    This works for me in both full screen and main window editing.
    Regards
    TD

  • Appraisal Document opens in non-editable mode

    The Appraisal cycle is as follows: Appraisee-> Appraiser-> Reviewer
    The appraisal document is flowing correctly as per the status flow and the corresponding participants are able to act on it. But when the Appraisal document reaches the Reviewer, i.e. the last stage, it opens in a non-editable mode. Hence the Reviewer is not able to make any changes in the document. The buttons are also in disabled mode.
    Request you to help me with the same.

    Hi,
    Thanks for your response. Problem solved. The Roles and Element access was fine.
    Needed to set the BSP iView parameter MODE = X
    Now its working fine.
    Sheetal

  • Bug or feature : Using portlets with edit mode on a page in the portal

    Hi,
    i am using Workshop 8.1 (GA release july) and i have discovered a bug (or a
    feature) with respect to the beta version.
    i have created a simple portlet with a view mode and an edit mode. When i
    place the portlet on the very first page of a one book portal, it works
    perfectly. However, i have a book with three pages and placed the portlet on
    the second page. Now when i put the portlet in edit mode, by clicking the
    edit button, i am directed to the first page of the portal and the portlet
    will not show.
    Inspection learned that the URL generated for the edit button, didn't
    contain the _pagelabel parameter. When i added the parameter manually it
    works fine.
    A final remark is that the buttons in the titlebar have no icons the browser
    can load.
    hope someone can help me out,
    Lodewijk

    Can you please post this question to weblogic.developer.interest.portal
    newsgroup.
    Thanks
    "Lodewijk Spijker" <[email protected]> wrote in message
    news:3f165945$[email protected]..
    Hi,
    i am using Workshop 8.1 (GA release july) and i have discovered a bug (ora
    feature) with respect to the beta version.
    i have created a simple portlet with a view mode and an edit mode. When i
    place the portlet on the very first page of a one book portal, it works
    perfectly. However, i have a book with three pages and placed the portleton
    the second page. Now when i put the portlet in edit mode, by clicking the
    edit button, i am directed to the first page of the portal and the portlet
    will not show.
    Inspection learned that the URL generated for the edit button, didn't
    contain the _pagelabel parameter. When i added the parameter manually it
    works fine.
    A final remark is that the buttons in the titlebar have no icons thebrowser
    can load.
    hope someone can help me out,
    Lodewijk

  • Custom field in Edit mode in Sourcing

    Hi,
    We are using Classic scenario. I have to add one custom field in Sourcing. So, I have added the field in Shopping cart. Now the custom field is displaying in surcing cockpit. But we have few PRs which has created through RFC users from ECC. When I am creating sourcing, the PRs which are created in ECC are in Display mode only. But I need my custom field in edit mode to add values in that field. So, Is there any BAdI is there to change the mode of sourcing from Display mode to Edit? It's urgent. If anybody came accross such issue, please let me know.
    Thanks and Regards,
    Nowsath
    Edited by: Nowsath RM on Mar 31, 2008 2:30 AM

    Thanks. But in BBP_CUF_BADI_2, IV_mode field is there in methods MODIFY_INPUT, MODIFY_OUTPUT and MODIFY_MODE_QUOT. Out of which in methods MODIFY_INPUT and MODIFY_OUTPUT, the iv_mode field is import parameter not export parameter. So, you cant change the mode over there. Also in method MODIFY_MODE_QUOT, the iv_mode is as changing parameter. But this method will not trigger when ur creating sourcing. Please correct me if I am wrong...

  • Selection screen in Non-EDIT mode

    Hi all,
    I have a selection screen in which the user wants a field to be in Non-EDIT mode. How to do it?
    PARAMETERS : s_vkorg like vbrk-vkorg default '1000'.
    (The above parameter shud be in non-editable mode) 
    select-options : s_vtweg for vbrk-vtweg.
    select-options : s_spart for vbrk-spart.
    Pls reply.
    Thanks in advance.
    Vijay

    Vijay,
    Use the code below.
    REPORT zscreen.
    TABLES: vbrk.
    SELECT-OPTIONS : s_vtweg FOR vbrk-vtweg MODIF ID mo1.
    SELECT-OPTIONS : s_spart FOR vbrk-spart MODIF ID mo1.
    * At selection Screen Output Event
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF screen-group1 = 'MO1'.
          screen-input = 0.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.

  • The note field is in non-editable mode in appraisal document

    Hi all,
    In appraisal document,
    the reviewer can give his comment in the status u201CIn Processu201D and in the Sub Status u201CAnnual Review by Addl Managers/Reviewersu201D in an appraisal document. It is editable when I am trying via web but when I try to upload the comment from backend GUI  ( using phap_admin) the note field is in non-editable mode. My client requires it in editable mode at the back end.
    Can any one help me on thisu2026

    Hello Girish,
    Can you please check the appraisal  template, Proper access has been given to use the note column. If still faces problem can look for the BADI  HRHAP00_COL_ACCESS.
    You can look for the following notes also :
    1554467   column access does not work
    Best Regards,
    Deepak..

  • How to hide the Navigation and Builder links in edit mode

    I am building a portal that will have outside vendors sharing documents to a site... I would like them to be able to change the file, author or experation date ... but I don't want them to see the naviagtion or builder links when you go into edit mode... any suggestions

    Hi,
    Try with iview "Open on new window" parameter options. Perhaps if you use new window without head, you can show iview without options you don't want.
    Hope this helps,
    Iván.

  • In Alv table, a column is editable mode, but want few cells in read only

    Hi All,
    I have a ALV table which column A and B.
    Both are in editable mode. I want to make fews in column B, to be read only.
    How to make it. Please help me.
    Thanks
    Vimalraj

    hi,
    refer this program,
    *& Report  ZALV_COLOR_DISPLAY_EDIT
    REPORT  zalv_color_display_edit.
    TYPE-POOLS: slis.
    TABLES : zcust_master2.
    INTERNAL TABLE DECLARATION
    TYPES : BEGIN OF wi_zcust_master2,
            zcustid LIKE zcust_master2-zcustid,
            zcustname LIKE zcust_master2-zcustname,
            zaddr LIKE zcust_master2-zaddr,
            zcity LIKE zcust_master2-zcity,
            zstate LIKE zcust_master2-zstate,
            zcountry LIKE zcust_master2-zcountry,
            zphone LIKE zcust_master2-zphone,
            zemail LIKE zcust_master2-zemail,
            zfax LIKE zcust_master2-zfax,
            zstat LIKE zcust_master2-zstat,
            field_style  TYPE lvc_t_styl,
    END OF wi_zcust_master2.
    DATA: it_wi_zcust_master2 TYPE STANDARD TABLE OF wi_zcust_master2
                                                     INITIAL SIZE 0,
          wa_zcust_master2 TYPE wi_zcust_master2.
    *ALV data declarations
    DATA: fieldcatalog TYPE slis_t_fieldcat_alv WITH HEADER LINE.
    DATA: it_fieldcat TYPE lvc_t_fcat,     "slis_t_fieldcat_alv WITH HEADER
    line,
          wa_fieldcat TYPE lvc_s_fcat,
          gd_tab_group TYPE slis_t_sp_group_alv,
          gd_layout    TYPE lvc_s_layo,     "slis_layout_alv,
          gd_repid     LIKE sy-repid.
    START-OF-SELECTION.
      PERFORM data_retrieval.
      PERFORM set_specific_field_attributes.
      PERFORM build_fieldcatalog.
      PERFORM build_layout.
      PERFORM display_alv_report.
    *&      Form  BUILD_FIELDCATALOG
          Build Fieldcatalog for ALV Report
    FORM build_fieldcatalog.
      wa_fieldcat-fieldname   = 'ZCUSTID'.
      wa_fieldcat-scrtext_m   = 'CUSTOMER ID'.
      wa_fieldcat-col_pos     = 0.
      wa_fieldcat-outputlen   = 10.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR  wa_fieldcat.
      wa_fieldcat-fieldname   = 'ZCUSTNAME'.
      wa_fieldcat-scrtext_m   = 'CUSTOMER NAME'.
      wa_fieldcat-col_pos     = 1.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR  wa_fieldcat.
      wa_fieldcat-fieldname   = 'ZADDR'.
      wa_fieldcat-scrtext_m   = 'ADDRESS'.
      wa_fieldcat-col_pos     = 2.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR  wa_fieldcat.
      wa_fieldcat-fieldname   = 'ZCITY'.
      wa_fieldcat-scrtext_m   = 'CITY'.
      wa_fieldcat-col_pos     = 3.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR  wa_fieldcat.
      wa_fieldcat-fieldname   = 'ZSTATE'.
      wa_fieldcat-scrtext_m   = 'STATE'.
      wa_fieldcat-col_pos     = 4.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR  wa_fieldcat.
      wa_fieldcat-fieldname   = 'ZCOUNTRY'.
      wa_fieldcat-scrtext_m   = 'COUNTRY'.
      wa_fieldcat-col_pos     = 5.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR  wa_fieldcat.
      wa_fieldcat-fieldname   = 'ZPHONE'.
      wa_fieldcat-scrtext_m   = 'PHONE NUMBER'.
      wa_fieldcat-col_pos     = 6.
    wa_fieldcat-edit        = 'X'. "sets whole column to be editable
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR  wa_fieldcat.
      wa_fieldcat-fieldname   = 'ZEMAIL'.
      wa_fieldcat-scrtext_m   = 'EMAIL'.
      wa_fieldcat-edit        = 'X'. "sets whole column to be editable
      wa_fieldcat-col_pos     = 7.
      wa_fieldcat-outputlen   = 15.
      wa_fieldcat-datatype     = 'CURR'.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR  wa_fieldcat.
      wa_fieldcat-fieldname   = 'ZFAX'.
      wa_fieldcat-scrtext_m   = 'FAX'.
      wa_fieldcat-col_pos     = 8.
      wa_fieldcat-edit        = 'X'. "sets whole column to be editable
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR  wa_fieldcat.
      wa_fieldcat-fieldname   = 'ZSTAT'.
      wa_fieldcat-scrtext_m   = 'STATUS'.
      wa_fieldcat-col_pos     = 9.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR  wa_fieldcat.
    ENDFORM.                    " BUILD_FIELDCATALOG
    *&      Form  BUILD_LAYOUT
          Build layout for ALV grid report
    FORM build_layout.
    Set layout field for field attributes(i.e. input/output)
      gd_layout-stylefname = 'FIELD_STYLE'.
      gd_layout-zebra             = 'X'.
    ENDFORM.                    " BUILD_LAYOUT
    *&      Form  DISPLAY_ALV_REPORT
          Display report using ALV grid
    FORM display_alv_report.
      gd_repid = sy-repid.
    call function 'REUSE_ALV_GRID_DISPLAY'
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
        EXPORTING
          i_callback_program = gd_repid
          is_layout_lvc      = gd_layout
          it_fieldcat_lvc    = it_fieldcat
          i_save             = 'X'
        TABLES
          t_outtab           = it_wi_zcust_master2
        EXCEPTIONS
          program_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.
    ENDFORM.                    " DISPLAY_ALV_REPORT
    *&      Form  DATA_RETRIEVAL
          text
    -->  p1        text
    <--  p2        text
    FORM data_retrieval .
      DATA: ld_color(1) TYPE c.
      SELECT zcustid zcustname zaddr zcity zstate zcountry zphone zemail
    zfax zstat UP TO 10 ROWS FROM zcust_master2 INTO CORRESPONDING FIELDS OF
    TABLE it_wi_zcust_master2.
    ENDFORM.                    "data_retrieval
    *&      Form  set_specific_field_attributes
          populate FIELD_STYLE table with specific field attributes
    FORM set_specific_field_attributes .
      DATA ls_stylerow TYPE lvc_s_styl .
      DATA lt_styletab TYPE lvc_t_styl .
    Populate style variable (FIELD_STYLE) with style properties
    The following code sets it to be disabled(display only) if 'ZFAX'
    is NOT INITIAL.
      LOOP AT it_wi_zcust_master2 INTO  wa_zcust_master2.
        IF  wa_zcust_master2-zfax IS NOT INITIAL.
          ls_stylerow-fieldname = 'ZFAX' .
          ls_stylerow-style = cl_gui_alv_grid=>mc_style_disabled.
                                          "set field to disabled
          APPEND ls_stylerow  TO  wa_zcust_master2-field_style.
          MODIFY it_wi_zcust_master2  FROM  wa_zcust_master2.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    "set_specific_field_attributes
    Regards,
    K.Tharani.

  • Find out if the content will be rendered in "edit" mode programmatically

    I need to use redirect to send user to different page for certain reason. I use HttpPortletRendererUtil.sendRedirect() to accomplish the task. It works fine. The problem is I do not want it redirect in page modes other than "show" mode. Is there a way to know if the content will be rendered in "edit" mode? Or is there other way to accomplish the task?

    I tried and in both "show" and "edit" view getMode() return 1. I notice that the urls to access "edit" view is different from the one to access "show" view by an additional parameter _mode=16. It is not available to portlet. Probably portlet is not suppose to know the display mode.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Add Content button not rendered inside Portlets on edit mode

    Hi,
    I have a requirement where administrators will add some external content(Add content) either from taskflow or portlet and that external content (along with taskflow output) will be shown to the users based on some logic performed inside the taskflow/portlet bean code.
    This PanelCustomziable should render AddContent button inside the portlet when pressing ctrl shiftE, but its no doing so? Where as the same PanelCustomizable renders AddContent button inside the taskflow on edit page? Any settings or changes needs to be done to make it work in porlet when consumed in portal?
    a)taskflow cannot be selected for this purpose, as there will be only a single instance of the taskflow across the portal and it cannot retain runtime MDS changes to a specific instance (Unless we design the ADF taskflow with MDS customization layer). By default, any runtime change in one taskflow instance will be propagated to all the other taskflow instances of the portal.
    (For eg.. Admin drops this taskflow onto a page1 and adds a image(external content) using the button AddContent inside the taskflow because of PanelCustomizable and close the page. He drops the same taskflow from RC only to find that the changes he done on page1 is being retained here ..its not resuable because of no MDS per instance)
    So we selected Portlet for this purpose, as it has the inbuilt personalization framework. Admin can personalize each portlet instance and drops on the the same page and diff page again. But with portlets, Add Content is not rendered.
    Its not just external content, the taskflow / porltet has some logic to perform and displays some output based on the ruleId which is the input parameter.
    Taskflow or jsff code
    ==================
    <cust:panelCustomizable id="pc1">
    <cust:showDetailFrame text="rules content" id="sdf1"
    shortDesc="rules content">
    <af:panelGroupLayout id="pg1" >
    <af:outputText label="RuleId" id="ot1" clientComponent="true"/>
    </af:panelGroupLayout>
    </cust:showDetailFrame>
    </cust:panelCustomizable>

    Can you please post this question to weblogic.developer.interest.portal
    newsgroup.
    Thanks
    "Lodewijk Spijker" <[email protected]> wrote in message
    news:3f165945$[email protected]..
    Hi,
    i am using Workshop 8.1 (GA release july) and i have discovered a bug (ora
    feature) with respect to the beta version.
    i have created a simple portlet with a view mode and an edit mode. When i
    place the portlet on the very first page of a one book portal, it works
    perfectly. However, i have a book with three pages and placed the portleton
    the second page. Now when i put the portlet in edit mode, by clicking the
    edit button, i am directed to the first page of the portal and the portlet
    will not show.
    Inspection learned that the URL generated for the edit button, didn't
    contain the _pagelabel parameter. When i added the parameter manually it
    works fine.
    A final remark is that the buttons in the titlebar have no icons thebrowser
    can load.
    hope someone can help me out,
    Lodewijk

  • Edit mode of field catalog

    Hi Experts,
                       I have a problem to handle data changing on screen although I put edit mode in field catalog. How can i trace the error. please ....
    FORM SET_FIELDCAT.
      DATA: L_COL_POS TYPE I.
      PERFORM ADD_FDCAT TABLES GT_LVC_FCAT
                        USING: 'X'  L_COL_POS 'ZTNBOOK' 'B_ID'     ''      'BOOK ID',
                               'X'  L_COL_POS 'ZTNBOOK' 'BOOK'     ''      'BOOK',
                               'X'  L_COL_POS 'ZTNBOOK' 'ZPRICE'   'WAERS' 'PRICE',
                               'X'  L_COL_POS 'ZTNBOOK' 'WAERS'    ''      'CURR',
                               'X'  L_COL_POS 'ZTNBOOK' 'STATUS'   ''      'STATUS',
                               ''   L_COL_POS 'ZTNBOOK' 'STATUS_T' ''      'DESCRIPTION'.
    ENDFORM.                    " SET_FIELDCAT
    FORM ADD_FDCAT  TABLES PT_FCAT_ALV TYPE LVC_T_FCAT
                    USING    P_COL
                             P_COL_POS
                             P_REF_TABLE
                             P_FIELDNAME
                             P_CFIELDNAME
                             P_TEXT.
      ADD 1 TO P_COL_POS.
      GS_LVC_FCAT-COL_POS = P_COL_POS.
      GS_LVC_FCAT-EDIT = P_COL.
      GS_LVC_FCAT-REF_TABLE = P_REF_TABLE.
      GS_LVC_FCAT-FIELDNAME = P_FIELDNAME.
      GS_LVC_FCAT-CFIELDNAME = P_CFIELDNAME.
      GS_LVC_FCAT-SCRTEXT_L = GS_LVC_FCAT-SCRTEXT_M = GS_LVC_FCAT-SCRTEXT_S
      = P_TEXT.
      GS_LVC_FCAT-QFIELDNAME = SPACE.
      APPEND GS_LVC_FCAT TO PT_FCAT_ALV. CLEAR GS_LVC_FCAT.
    ENDFORM.                    " ADD_FDCAT

    FORM edit_mode_field.
      LOOP AT t_fieldcat ASSIGNING <fieldcat>.
         CASE <fieldcat>-fieldname.
           WHEN 'FIELD1'.
             MOVE mark TO <fieldcat>-edit.
          WHEN 'FIELD2'.
             MOVE mark TO <fieldcat>-edit.
        ENDCASE.
      ENDLOOP.
       CALL METHOD alv_grid->set_frontend_fieldcatalog
         EXPORTING
           it_fieldcatalog = t_fieldcat.
    ENDFORM.               

  • Opening edit mode page from Search page

    Hi All,
    I am developing one simple system for Expense Reports in ADF. The proposed system will have Expense Report entry, Search, copy, print and edit functionalities. I am able to Enter, Search and copy the expense reports but from the search page I am not able to redirect the page in edit mode. I have created one method in Application Module and dragged it as an edit button passing one parameter for the expenses id on Search form. My method looks like below :
    public void editExpenseReport(String pExpensesId)
    \\ Execute query for Expense Header
    ViewObject vo = findViewObject("ExpRepHeader");
    System.out.println("vo is " + vo);
    vo.setWhereClause("expenses_id = :1");
    vo.setWhereClauseParam(0,pExpensesId);
    String query=vo.getQuery();
    System.out.println("query is " + query);
    vo.executeQuery();
    System.out.println("pExpensesId -->"+pExpensesId);
    \\ Execute query for Expense Details
    ViewObject vo1 = findViewObject("ExpRepDetail");
    System.out.println("vo is " + vo);
    vo.setWhereClause("expenses_id = :1 ");
    vo.setWhereClauseParam(0,pExpensesId);
    String query1=vo1.getQuery();
    System.out.println("query is " + query1);
    vo1.executeQuery();
    When I press the Edit button, it should open it in edit mode and user should be able to change the existing data or add to the detail part. But it opens in Entry mode with a fresh record where I can enter new records only. This is my show stopper issue. Any clue will be a great help.
    Apart from this issue, I need to print the Expense Report once entered. I haven't started working on it. But I just wanted to know what all approaches we can follow for the same. Appreciate if anyone can share it.
    Thanks,
    CAH

    Hi Gurus,
    This is urgent. If any of you guys can suggest something, it will be a great help.
    Thanks,
    CAH

  • Control display/edit mode of an Assignment Block through code

    Hi all,
    Requirement : If status in Opportunity is XYZ (BT111H_OPPT/Details - BTStatus/Struct.Act_Status), I need to show items Assignment block((BT111H_OPPT/ItemsList) in display mode. When user tries to go into edit mode, display error saying - "With XYZ status, items are not editable."
    Observations so far :  In "BT111H_OPPT/OpportunityOVViewSet", method set_view_group_context involves interface "IF_BSP_WD_VIEW_GROUP_CONTEXT" that has methods SET_VIEW_EDITABLE etc., But there is no method to change to display mode. CL_BSP_WD_VIEW_GROUP_CONTEXT uses this interface and has a subclass CL_CRM_WFD_VIEWGRP_CTXT. This subclass has the method SET_VIEW_DISPLAY_MODE.
    Question : How to access this method SET_VIEW_DISPLAY_MODE in my requirement? I tried to use the code from this method in my logic, but since attribute 'EDITABLE_VIEWS_TAB' is protected, I'm not able to do anything. Also is there any other way to get solution for my requirement.
    Thanks in advance,
    Vinoth

    HI Vinoth,
    if that method is not accessible then try with the below logic.
    In the item , fetch the required status(gv_status) which you required .
    THen in the item assignment block view, HTM..
    check for the diaplpy mode. and store the value in a llocal variable.
    lv_disaply_mode = controller->view_group_context->is_view_in_display_mode( controller ) .
    if controller->gv_status = 'XYZ'.
    lv_display_mode = abap_true.
    endif
    then pass this lv_display_mode varaible to the configtable display mode Attribute.
    <chtmlb:configTable id                    = "Table"
                          displayMode           = "<%= lv_displaymode %>"
    Hope this will help..
    Thanks
    Sudhansu

  • Determine if the user is in edit mode (on the page)

    My page parameters get lost every time I go into edit mode on the page. I need to know when the user is in edit mode (vs view mode) so that I can submit an event to repost the parameter back to the page. The only difference I can find between edit and view mode is the parameter: "_mode=16" gets attached to the end of the url. Yet, when I try this code:
    String pageParamMode= (String)request.getParameter("_mode");
    out.print("pageParamMode = " + pageParamMode + "<br>");
    It returns null. I need a reliable way to tell which mode the user is in. Could someone please help?
    Thanks,
    Cory

    Got it figured out. I can get the page url then check it for the existance of the string '_mode=16". If it exists, then we are in edit mode. Else in view mode. Here is a bit of code: <p>
    PortletRenderRequest pReq = (PortletRenderRequest) request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST); <br>
    String url = pReq.getRenderContext().getPageURL();<br>
    String mode = url.indexOf("_mode=16") > 0 ? "Edit" : "View"; <br>
    Works like a charm :-)

Maybe you are looking for

  • Populate enddate after change in user status in OIM 11g ?

    Hello experts, We have a requirement whenever a user is getting 'Disabled' end-date needs to be set to the current system date and When the user is enabled end-date need to be reset to some predefined date We are planning to go with custom adapter fo

  • Opening flash lite?

    Hi all, I am developing a app where I am load the swf in the html page using swfobject I am able to pass and load the flash vars. but to perform any action I need to open the application. Is there any way to open the application automatically any wor

  • Re-Downloading photoshop elements

    had to reload computer so lost Elements 12. have my serial number but cannot put it in as says its already registered ( I didn't register when I bought it ) chat shop guy gave me web address to do download after i sent him email showing i'd bought pr

  • How do I change the default drive downloads are saved to?

    because my c SSD is full

  • Problem with syncing my iphone to my laptop

    I have gotten the result from the iTunes, Help, run disgnotics. Microsoft Windows 7 x64 Home Premium Edition Service Pack 1 (Build 7601) Dell Inc. Inspiron 7420 iTunes 12.0.1.26 QuickTime 7.7.6 FairPlay 2.7.39 Apple Application Support 3.1 iPod Updat