Can I Set Property of ALV dynamically.. Instead of using MODIFYVIEW....

Hi Friends,
I am new to Web Dynpro, I have question to you guys.. I dont know is it possible or not..
Ok the Question is..
My Requirement is to enable(Editable) or disable(Not editable) the column in ALV, according to so some conditions...
I have ALV table in my screen and lets assume that i have 20 column..
I know we can do this in method "WDDOMODIFYVIEW" of view . But i dont want to do this because every time when i click on the any element of the ALV on the screen it will go to method "WDDOMODIFYVIEW" and sets the attributes every single time.
Can i create a Context node with attributes of this 20 fields and bind the READ ONLY property of the ALV column to each one in context node. So that i can create a Method in Component controller and call that method every time where i disable or enable columns of ALV using a specific Action Button and change the Context node property.. Rather un nessasarily excecuting the method "WDDOMODIFYVIEW" of view every time for simply on clicking the checkbox of the ALV column or any thing .......
Hope i have made you people understand my Question..
Thanks for help in Advance.
Madhu MV.

Hi Lekha.. Thanks so much for the reply..
Please See the Below Code .. Let me know what i am doing wrong...
>  The column is NOT changed to Ediatble.... Please Help...
  LOOP AT lt_wo_item INTO ls_wo_item.
*--> Append Operation
    lv_op_num = ls_wo_item-z_oper_num.
    MOVE-CORRESPONDING ls_wo_item TO ls_wo_alv.
    IF lv_op_num NE lv_count_op.
      CLEAR lv_count_op.
      ADD lv_op_num TO lv_count_op.
      ls_wo_alv-z_op_count = lv_count_op.
      CLEAR lv_count.
      ADD lv_count_op TO lv_count.
      ls_wo_alv-z_item_count = lv_count.
      ls_wo_alv-readonly = abap_true.
      APPEND ls_wo_alv TO lt_wo_alv.
    ELSE.
      ls_wo_alv-z_op_count = lv_count_op.
      ADD '0.1'  TO lv_count.
      ls_wo_alv-z_item_count = lv_count.
      ls_wo_alv-readonly = abap_true.
      APPEND ls_wo_alv TO lt_wo_alv.
    ENDIF.
    LOOP AT lt_wo_services INTO ls_wo_services
      WHERE z_oper_num     = ls_wo_item-z_oper_num
        AND z_sub_oper_num = ls_wo_item-z_sub_oper_num.
*--Append Services.
      MOVE-CORRESPONDING ls_wo_services TO ls_wo_alv.
      ls_wo_alv-z_op_count = lv_count_op.
      ADD '0.1' TO lv_count.
      ls_wo_alv-z_item_count = lv_count.
      ls_wo_alv-readonly = abap_true.
      APPEND ls_wo_alv TO lt_wo_alv.
    ENDLOOP.
  ENDLOOP.
  DATA lo_nd_cn_alv TYPE REF TO if_wd_context_node.
  DATA lo_el_cn_alv TYPE REF TO if_wd_context_element.
  DATA ls_cn_alv TYPE wd_this->element_cn_alv.
  navigate from <CONTEXT> to <CN_ALV> via lead selection
  lo_nd_cn_alv = wd_context->get_child_node( name = wd_this->wdctx_cn_alv ).
  lo_nd_cn_alv->bind_table( lt_wo_alv ).
  DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.
  lo_cmp_usage =   wd_this->wd_cpuse_alv_table( ).
  IF lo_cmp_usage->has_active_component( ) IS INITIAL.
    lo_cmp_usage->create_component( ).
  ENDIF.
  DATA lo_interfacecontroller TYPE REF TO iwci_salv_wd_table .
  lo_interfacecontroller =   wd_this->wd_cpifc_alv_table( ).
  DATA lo_value TYPE REF TO cl_salv_wd_config_table.
  lo_value = lo_interfacecontroller->get_model(
  DATA: lr_column   TYPE REF TO cl_salv_wd_column.
  DATA: lr_input TYPE REF TO cl_salv_wd_uie_input_field.
  DATA : lr_column_settings TYPE REF TO if_salv_wd_column_settings,
         lt_columns TYPE salv_wd_t_column_ref,
         ls_column TYPE salv_wd_s_column_ref.
  lr_column_settings ?= lo_value.
  lt_columns = lr_column_settings->get_columns( ).
  LOOP AT lt_columns INTO ls_column.
    CASE ls_column-id.
      WHEN 'Z_PRODUCT'.
        CREATE OBJECT lr_input
          EXPORTING
            value_fieldname = 'Z_PRODUCT'.
        CALL METHOD ls_column-r_column->set_cell_editor
          EXPORTING
            value = lr_input.
        CALL METHOD lr_input->set_read_only_fieldname
          EXPORTING
            value = 'READ_ONLY'.
    ENDCASE.
  ENDLOOP.

Similar Messages

  • Can i set up my iPad and iPod to use iMessage between the two devices with the same Apple ID?

    Can i set up my iPad and iPod to use iMessage between the two devices with the same Apple ID? SO i could iMessage if out from my iPod to my iPad at home to be viewed by a family member?

    Look into using Apple Configurator.  It's the easiest way to "reimage" and Manage iPads that I know of right now. 
    http://itunes.apple.com/us/app/apple-configurator/id434433123?mt=12
    Also, look into using the Educational Volume Purchase Program, if you have not already done so. 
    http://www.apple.com/education/volume-purchase-program/

  • Can I set a default home page when people use my router?

    Can I set a default home page when people use my router?
    Can I set it to my web site for example so that people have to go there when they connect?
    Thanks,
    Paul

    Hello EireReality. Welcome to the Apple Discussions!
    Can I set a default home page when people use my router?
    No, at least not that I'm aware of. Setting a "default home page" is typical feature of a web browser, not an Internet router.

  • How can I set up iCloud sync with Outlook 2007 using Hotmail account?

    Hi,
    I installed iCloud PC control panel. I tried to sync my contacts and calendars from Outlook (2007) to the cloud but I gets this message: "Add an e-mail account to Outlook Before setting up iCloud". I have an Hotmail account synced up into my Outlook via Outlook Connector. Can iCloud sync with Hotmail accounts?
    What should I do to get my calendars and contacts synchronize to the cloud. Does Outlook 2007 can be synced by the cloud too?
    How can I set up iCloud sync with Outlook 2007 using Hotmail account?

    I found a way to fix this, it did the trick for me:
    https://discussions.apple.com/thread/3109623
    All you have to do is include a new e-mail account [email protected] (set it as a default) on Outlook with the options that are showed in the thread I linked and you should have the calendars and tasks syncronised. It works perfectly with ipod touch, ipad and Outlook 2010 on windows 7.

  • Can we set default value to dynamic parameter?

    <font size="3"><font face="Times New Roman">Hi,</font></font><font size="3"><font face="Times New Roman"><span> </span>I am using BO XI and CR XI.</font></font><font size="3"><font face="Times New Roman"><span> </span>I want to set default value for dynamic cascading parameters as &#39;ALL&#39; when i open report in BO Xi INFO view.</font></font><font size="3"><font face="Times New Roman">I think is not possible.</font></font><span style="font-size: 12pt; font-family: &#39;Times New Roman&#39;">can anybody know solution for this. </span>

    Hi,
    I cannot imagine why you would want to do this. The nextvalue from sequence would just the next available number from the sequence, the numbers wouldn't necessarily even be sequencial. So not very useful as a parameter to a report.
    Rod West

  • Crystal Report XI: Can you write your query in SQL instead of using the GUI

    Hello
      In crystal report version XI, can you write your query in sqlplus and then use the crystal report designer to build your report instead of using the GUI . I would like to be able to go database and show sql query and open that query and make changes directly there, is that possible on this version, if yes is there a setting somewhere? Please let me know.
    Thank you
    alpha

    Moved to Database forum.
    No you can no longer modify the SQL directly. Use a Command Object to enter the SQL directly.
    Thank you
    Don

  • How can I set time-out while accessing a url using URL object?

    Hi
    I'm trying to get the content of a URL using the following code. How can I set timeout
    (example, 10 secs), if the webserver takes a while to respond.?
    BufferedReader inbuf=null;
    URL url=null;
    try {      
         String urlString="http://host-machine/sms/index.jsp";          
         url = new URL(urlString);
         inbuf = new BufferedReader(new InputStreamReader(url.openStream()));
         String inputLine;
         String LongString="";
    while ( (inputLine=inbuf.readLine()) != null)
              LongString=LongString+inputLine;
              retString=LongString;          
              inbuf.close();
         catch (Exception e) {System.out.println(e)}
    Thanks a lot for your kind help
    Regards
    Kandasamy

    If you're using Java 5, see this thread (reply 10)
    http://forum.java.sun.com/thread.jspa?forumID=31&threadID=576157

  • How can i interact with the ALV if i am using the lvc_ and call method?

    i want to hide the last entry of a line when i click on the checbox of my ALV

    u want to hide or delete?
    instead of using check box, u can use a button to display there.
    it can be achived like below.
    data: ls_lvclayout type lvc_s_layo.
    LS_LVCLAYOUT-SEL_MODE = 'D'.
    now in set_table for_first_diaplay
    CALL METHOD GO_GRID->SET_TABLE_FOR_FIRST_DISPLAY
          EXPORTING
          <b>  IS_LAYOUT            = LS_LVCLAYOUT</b>
    do like above.
    then u click on the row, and the row will be selected.
    now using the method GET_SELECTED_ROWS, u can get the data of the selected row and u can now manipulate what ever u needed.
    data:
    SEL_ROW TYPE LVC_S_ROID,
    SEL_T_ROW TYPE LVC_T_ROID.
    CALL METHOD GO_GRID->GET_SELECTED_ROWS
        IMPORTING
          ET_ROW_NO = SEL_T_ROW.
    LOOP AT SEL_T_ROW INTO SEL_ROW.
              read table <itab> index SEL_ROW-ROW_ID.
              check sy-subrc = 0.
    < now write the logic  like making the field blank and modify the itab>.       
            ENDLOOP.

  • Why my atv can't set time and date after restoring it using itunes ?

    when my atv restarting after  I restored it using iTunes, it can't set the time and date.
    the atv is connected to the net by wi - fi.
    when I try to sign in using my apple id, I get a massage that the password is incorrect.
    I have apple tv with ios 7.

    The network and signal test on device won't give the full picture, for that you need a network report. Go to istumbler, netstumbler or similar, that will show true signal strength as well as any nose detected. You can also try Ethernet to help rule out WiFi issues.

  • Can I set to single page view instead of continuous scrolls in Preview?

    I just don't like and feel uncomfortable to view the PDF in continuous scrolls mode. however, it is set to be default in Preview of Lion.
    How could I change the defaut setting to make it open in single page view instead of continuous scrolls mode?
    Thx

    hmm - I have the same problem - meaning each time I open a preview file it defaults to continous scroll, which for whatever reason, I hate.  So each fiel I have to use the view menu to change that particual view to single page.  It seems if I quite that file and reopen it on the smae computer it will open in single page view.  But any new documents default to the hated continuous scroll view
    It sounds like your machine defaults to single page.  I assume youa re also usig the latest Lion release.  So there must be a way to change the default view of Preview, but I can't seem to find the setting

  • Can't set property

    Hello,
    i try to set the "filterable" property to true/false in weblogic workshop 8.1
    ex:
    ...<netui-data:columns filterable="true" >....
    but i get the error:
    "No match was found for method setFilterable(java.lang.String) in type com.bea.wlw.netui.tags.databinding.grid.Columns"
    But at my colleague who has the same source code including libs and .workshop
    files and the same domain, it works without problem. I tried to rebuild, redeploy,
    restart the computer nothing worked up to now.
    Any ideas please ?

    Please refer: Re: Internal Error when acessing host on OEM12.1.0.2
    seems to be duplicate of that.

  • HT4356 How can I set the default to draft instead of normal printing?

    I'd like to do most of my printing in Draft mode to save ink.  How do I set that as the default, or even change it on the fly, when printing from the iPad Mini to an AirPrint printer?  I have an HP OfficeJet Pro 8600 Plus.
    Thanks!

    I've got the printer's default set to draft and that works well for printing from the computer.
    AirPrint seems to override that and always prints in Normal mode.

  • I have  20 ipads to hand out to teachers, all of them are using the same apps (purchased), I'm using 1 computer to configure them, I purchased 20 gift cards to purchase apps, how can I set up all 20 on one library using the gift cards to purchase the apps

    My office purchased 20 ipads - and 20 gift cards, I'm setting up all the software on my computer using 1 itunes library.. I need to purchase 20 of the same apps to put on each of the ipads... how can that be done when you purchase the same app..itunes tells you that you the app is already purchased...

    Another member pointed me toward the following site...it contains some great info...it's focus is on the use of iPad's in education....
    http://ipadeducators.ning.com/
    There is some discussion in there of device "cloning"..though I don't see how they can do that and at least not technically violate the iTunes Store EULA....(1 license can be used by 1 person on multiple devices, or by many people on one device).  As I understand it, and as Michael indicated, the only way to do what you want and not violate the EULA is to have 20 different Apple ID's...what the "cloner's"  have chosen to do is use the Educational VPP  www.apple.com/itunes/education
    purchase sufficient licenses for all users, allocate a license to one Apple ID, clone that image to other iOS devices, and simply record the fact internally that the additional  license(s) have been allocated to other Apple ID's....I work in healthcare, and our legal department isn't comfortable with that approach, and I can't see it really being legally viable in education....unless their are different terms for educational institutions....

  • How can I set a default save file for scans using the Solution Center?

    Using Windows 7 - 64 bit.   HP Photosmart Premuim C-309a All-In-One Printer.
    Because of a Windows crash, I had to install a new drive and reload Windows. I also reloaded other software like the HP Solution Center & Drivers. My problem is that I can't find how to set a default folder for my scans.  This is NOT mentioned in the user manual but it was originally accomplished by HP Tech Support when the printer was new.  Can anyone relate how to set default folders for my scans?
    Thanks.
    Tango
    This question was solved.
    View Solution.

    Here is a document on how to scan through Windows 7. 
    http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&lc=en&docname=c03476857
    Click either solution center or the icon of the printer on your desktop. Here select "Scanner Actions" (or the analogous selection). When the window pops up from the HP software it should provide you with options for file type (.tiff, .pdf, .jpg) as well as resolution and media size. Here on this page there is also an option for you to go to the advanced options. Using this you can alter the default safe folder. 
    Let me know if that helps you out! 

  • Can you set a Cost Rate Table to be used for an entire project

    In earlier versions of project, the default cost rate table (A) is used unless changed by the user for each assignment.  In 2010, is it possible to define which cost rate table to use for the entire project, not at the assignment level? 
    Thanks.

    Hi melduncan,
    Welcome to this Microsoft Project forum:)
    I assume you want project to have a default cost rate, so why not set the cost rate details into A to begin with,  You could then set this as a template from which you initiate all your new projects see FAQ
    Item: 8. New Project Template.   FAQs, companion products and other useful Project information can be seen at this web address: http://project.mvps.org/faqs.htm
    Hope this helps - please let us know how you get on :)
    Mike Glen
    MS Project MVP
    See
    http://tinyurl.com/2xbhc for my free Project Tutorials
    "" wrote in message
    news:[email protected]...
    In earlier versions of project, the default cost rate table (A) is used unless changed by the user for each assignment.  In 2010, is it possible to define which cost rate table to use for the entire project, not at the assignment level? 
    Thanks.

Maybe you are looking for

  • Error on the r12 about workflow

    what error on this foe workflow noticfiction? System: Error Local Event ERROR : oracle.apps.fnd.system.exception / 4206714 thanks

  • Logic 9 command solo not working

    I recently upgraded to Mavericks and now things are going heywire.   Right now the click while holding down command on a solo button  doesnt deselect all soloed tracks anymore. Sometimes a project wonbt playback and before it was becasue something wa

  • Music in the Cloud Won't Show in iTunes

    I was trying to fix a playlist sync problem in iTunes on my MacBook Air (the playlists I deleted would re-appear in iTunes after syncing with Match). I now seem to have a new, much more serious problem. That is, when I enable iTunes Match and verify

  • IPhoto unable to share using iCloud?

    iPhoto Version 9.6 OS: Yosemite 10.10.1 I'm trying to share some photos on iCloud. I'm doing this by either dragging the selected photos to the iCloud icon in the "Shared" section, or using the "Share" option in the bottom-right, then "Create new Pho

  • Failed Logins

    Are there any standard reports in Oracle that allow an admin to identify if somebody was trying to guess or hack the SYSADMIN login? If so what details would this give us to home in on the potential hacker, is it an IP Address or something?