Set field cataglog dynamically for an editable table

Hi All,
I have a requirement where to show a table whose field catalog will be changed conditionally( dynamically )  and that table has to be editable, in that table few columns could be  Drop down fields and few columns are disabled and few can be normal editable fields.
What is the best way to do it, this i can achieve very well by in dynpro with CL_GUI_ALV_TABLE  class, i am new to WDA , so i couldn't find the good solution.. whether to use direct table element or ALV component. can i acheive the above functionality with either of the option.
Appreciate your help.
Regards,
Shiva.

Hi Shiva,
Visible Colums:
  DATA: ALV_CONFIG_TABLE  type REF TO CL_SALV_WD_CONFIG_TABLE.
  DATA: wd_table_usage TYPE REF TO if_wd_component_usage.
  DATA: wd_table TYPE REF TO iwci_salv_wd_table.
  DATA: column_settings TYPE REF TO if_salv_wd_column_settings,
             column  TYPE REF TO cl_salv_wd_column.
Create an instance of ALV component created ALV_COMP is usage name
  wd_table_usage = wd_this->wd_cpuse_alv_comp( ).
  IF wd_table_usage->has_active_component( ) IS INITIAL.
    wd_table_usage->create_component( ).
  ENDIF.
  wd_table = wd_this->wd_cpifc_alv_comp( ).
  alv_config_table = wd_table->get_model( ).
  column = column_settings->get_column( 'MANDT' ).
  column->set_visible( if_wdl_core=>visibility_none ).
There are many other Methods in class cl_salv_wd_column.
For editable Colums (and DropDown e.g.) have a look at this tutorial:
[SND-Tutorial - Conditionally Assigning Colors and Input Enable to ALV Columns|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/f0625002-596c-2b10-46af-91cb31b71393]
Hope it helps!

Similar Messages

  • How to set a change pointer for a perticular table?

    Hi,
    Please let me know how to set a change pointer for a perticular table.

    what do you mean by 'change pointer'? normally this idiom is used for sending ÍDOCs from one system/client/org-unit to another ...
    do you generally want to record changes to a specific table? then set parameter rec/client using RZ10 for your instance profiles and restart the instances in order for the parameter to take effect.
    set the table to 'record all changes' using SE11.
    you might re-consider if the table has a lot of  data and is accessed very often for performance-resons.
    change protocols can be evaluated using tx, SCU3.

  • How do I set a BG Image for a specific Table Cell?

    Hello...
    How do I set a Background Image for a specific table cell
    without it affecting the main page background image?
    thanks
    J

    Use CSS -
    td.special { background-image:url(foo.gif); }
    will style this table cell only -
    <td class="special">
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "JSloanSDRE" <[email protected]> wrote in
    message
    news:g2dl7n$pf5$[email protected]..
    > Hello...
    >
    > How do I set a Background Image for a specific table
    cell without it
    > affecting the main page background image?
    >
    > thanks
    > J

  • Setting column count dynamically for a Group

    Hi Experts,
    i want to set the column count dynamically for a group.
    Thnks,
    Ramani.

    You probably mean you want to change the colCount value for a GridLayout (assigned to a Group), right?
    To change this property from a view controller method, you can
    - create a boolean context attribute "changeColCount" and set it to true in the controller method
    - check this flag in method wdDoModifyView(), access the GridLayout instance and change the colCount value
    - reset the flag afterwards
    Armin

  • How to set up a server for PPro editing (and AE finishing)?

    Hello everyone,
    I may be a bit offtopic with this question, but at the same time it's really related to PPro.
    I never worked in any post-house facility, and I come from a very indy background, so I never had a chance to see any edit suite hook up to a server.
    I am wondering how great it is, how it could help our projects? And also what are the basics to know, the stuff to avoid when you're a newbie like me (in term of server network settings)?
    Right now, we're running 3 Mac Pros to edit our projects. They are all connected through Gigabit ethernet.
    Our workflow involves that all Mac have the entire footage in there own drives. We're using the network only when importing new content to copy it on the 2 other Machines.
    We found out that if we use Mac #1 to open a PPro project contained within Mac #2 drives (as well as the footage), it's okay but the performances are not as great as opening a project in its own drives.
    So we try to copy (move) the projects in the right Mac before to work on it. Of course, everytime, we have to relink everything if we don't want Mac #1 to read the footage from Mac #2…
    When it come to big projects, with lots of Red footage, it is a pain, and we usually end up using only one master machine for the edit, and it's only when it comes to finish in AE that we really start to split the project onto the 3 platforms.
    So this is where the idea of a server comes in mind. Mac #1 would work on a project A, then when moving to work on project B, Mac #2 could open project A and keep working on it - no relink: the project AND the footage are all on the server.
    That is my basic idea. Sound simple, but really I have no idea if it really works. Is it something I can really do on a server?
    How the server really helps to keep the performance? If I see PPro's performance lowering down when accessing projects and footage from our actual simple network, is it going to be better accessing the same datas from a dedicated server.
    I'm looking at the Mac Mini server with Lion Server. What Lion Server does that Lion OS doesn't do already?
    I know, it sounds like completely newbie questions, but I honestly have no idea.
    Can a Mac Mini with Lion Server serve the 3 Macs running Snow leopard? Or do we need to update them?
    My idea is to use Pegasus thunderbolts for storage drives, plugged in the Mac Mini, then plug all the 3 Mac into the Mac Mini, with what I believe should be Gigabit Ethernet…
    Am I right? A least a bit? What did I miss?
    Thanks in advance for sharing your knowledge guys
    Julien

    If you are going DIY route, this is your only option: http://magazine.creativecow.net/article/build-your-own-affordable-san-that-iworksi
    However that probably won't work with RED footage.

  • Setting new cell variant for an alv table column

    Hi,
    I want to set a new cell variant for a column. Therefore I did the following steps:
    1. Create an object of CL_SALV_WD_CV_STANDARD
    2. SET_KEY( 'CELLVAR1 )
    3. set_cell_design([..]-goodvalue_medium )
    4. SET_EDITOR( lr_alv_input_field )
    After that I added the cell variant to the column by using the method "add_cell_variant".
    The last step is to call method SET_SELECTED_CELL_VARIANT.
    I checked my program by using get_selected_cell_variant( ) and the return string was okay.
    But when the table is displayed, the new cell variant isn't working. I defined an input field as the cell editor for my new cell variant but when the table is shown, it is just text - no input possible. In addition to that the selected cell design (goodvalue_medium , step 3) isn't working. So I think the cell variant is not used.
    Can you help me?
    Thanks & Regards,
    Hendrik

    Hi
    I wonder if you can help me please, I too am having issues implementing ALV cell changes in WDA?
    I am basically trying to dynamically change the individual color of a cell (not the entire column or row) dependant on certain criteria. I apologies but find that you are the closest resource for any potential information. Please see screen shot below.
    Currently my code is as follows:
    see: www.picasaweb.google.co.uk/dave.alexander69/Pictures#5244416971466907938
    data: lr_cv TYPE REF TO cl_salv_wd_cv_standard.
    loop at table 1 row data
            loop at table columns
              for the date columns only...
              IF <fs_column>-id(4) = 'CELL'.
               get and set column header dates from select option user input - done
                loop at table 2 row data (table 2 contains date ranges for row concerned)
                  MOVE: ls_zdata-variance TO lv_variance.
                  method 1 - as in sap press WD4A -:
                  lr_cv = cl_wd_table_standard_cell=>new_table_standard_cell(
                                                     view        = view
                                                    variant_key = lv_variance ).
                 as mentioned...
                  CREATE OBJECT lr_cv.
                  lr_cv->set_key( 'VARIANCE' ).
                  lr_cv->set_cell_design( '09' ).
                  lr_cv->set_editor( lr_input_field ).
                  lr_column->add_cell_variant( lr_cv ).
                  lr_column->set_cell_editor( lr_input_field ).
                  lr_column->set_sel_cell_variant_fieldname( 'VARIANCE' ).
                  lr_column->set_cell_design_fieldname( value = 'COLOR_CELL' ).
                  lr_field = lr_table->if_salv_wd_field_settings~get_field( <fs_column>-id ).
                  lr_field->if_salv_wd_sort~set_sort_allowed( abap_false ).
                  the only way I get cell coloring to work - but this is for entire column?
                  ls_zdata-color_cell = cl_wd_table_standard_cell=>e_cell_design-one.
                  MODIFY lt_zdata FROM ls_zdata..
                ENDLOOP.
              ENDIF.
              IF <fs_column>-id = 'COLOR_CELL'.
                CALL METHOD lr_column->set_visible( EXPORTING value = '00' ).
              ENDIF.
            ENDLOOP
          ENDLOOP.
    As you see I am in the dark a bit regarding cell variants and wonder if you can point me in a better direction.
    Many thanks for any help,
    Dave Alexander

  • Suggestions for setting up external storage for video editing please?

    I am just starting up as a one-man video-editing business, using a 24 inch iMac running Snow Leopard, with Final Cut Studio. I have realised I'll need an external hard drive for HD footage, and I also need to get some back-up solution in place. Looking for speedy i/o, I would like to connect via the ethernet port (if only eSata was included in the iMac, eh!)
    I've been planning to get a Drobo, but looking around the forums I see that people say it's too slow for using as a working drive to keep all my source footage, so I've been looking at the G-tech 4 Tb, as it says it is designed for media-content production. Does anyone know if I could use two of the drives for working from and two as back up? Or would it be better to keep back-up entirely seperate, and get a Drobo for that for the G-tech to back up to?
    But I am also wondering whether a Mac Mini could be a worthwhile addition to this set up? I find myself sitting around waiting for rendering to complete on clips in my timeline (not to mention exporting to Quicktime conversion!), and I wondered if I put a Mac mini with Xserve installed (Apple store offers this with two 500gb hard drives inside), maybe I could farm the rendering out to the mini while I get on with editing on my iMac? That would require two installations of FCP, which I thought was allowed, but just today in a forum I saw that one would have to be a laptop... anyone have any suggestions for getting rendering done without stopping FCP from doing other things simultaneously?
    Also I don't know if that arrangement is even feasible... I see all these things like Xsan and Artbox... as a one workstation editing suite, does FCP handle all the dataflows for external working drive and external back ups okay without having to introduce more controllers?
    And can anyone explain to me how I could set up an ethernet connection to an external hard drive, or does that require the extra controllers mentioned above? I've seen it said that you can do it via ethernet, but haven't seen how you can actually go about doing it.
    Thanks for overlooking my newbie quality, any answers received with humble gratitude!
    Cheers, Syd

    Hi there,
    as NLEdit said, there will be loads of answers to this.
    IMO i'd avoid drobo like the plague. G tech drives have served me incredibly well working on a huge variety of broadcast projects (just over the water from you in Bristol), I've had no probs with FW800 when using DVCproHD, pro res is ok, sometimes a little slow with multiple layers and of course it eats up storage space. so I'd go for 2 4tb drives, keep the backup one in a different location.
    one tip that has saved me countless times is to format them as follows:-
    mac os extended (not journalled)
    create 2 partitions
    partition 1 - make this small (1gig) and call it "drive a - do not use"
    partition 2 - the rest of available storage and call "drive a"
    this is because the boot sector of the drive is within the first partition and with this method if it goes down it can be re erased without losing all your footage.
    If you call your backup drive the exact same name and have the exact same folder structure, you will not have to relink if you get a problem.
    Ignore getting a mac mini for rendering, won't help at all in FCP. instead I would make every attempt you can at buying a mac pro rather than an imac. much more expansion/speed possibilities and a more robust solution.
    best of luck
    Andy

  • Alternative to a Named Sets in Microsoft Cube for Analysis Edition for OLAP

    SAP has told me via there support system that they do not support Named Sets in Microsoft Analysis cubes and I need to be able to create specific time parameters to ease reporting requirements.  We are migrating off ProClarity and onto Analysis Edition for OLAP and need to be able to create these specific time dimensions.  I don't want to use custom groups as this would be hardcoding the values for the dates.  Is there any alternative to have these dates available in the Analysis application?  Any help would be greatly appreciated. 
    Please note that the Business Layer on the Webi side supports named sets and I have already implemented this for scheduled reports. Below is the MDX Name Set query for the Previous month based on our time dimension.
    ---- [Previous Month] ----
    Intersect ([Time].[Time Fiscal Year].[Month].Members, LastPeriods (1, Tail(Filter([Time].[Time Fiscal Year].[Month].Members, NOT IsEmpty(([Time].[Time Fiscal Year].CurrentMember, [Measures].DefaultMember))), 1).item(0).Lag(1)))
    Our Current Version:
    SAP Business Objects BI Platform 4.1 Support Pack 2 Patch 2

    When connecting to SSAS in a cluster, you do not specify an instance name.  In your case, you would use the name of the SSAS IP address to connect.
    See:
    http://msdn.microsoft.com/en-us/library/dn141153.aspx
    For servers deployed in a failover cluster, connect using the network name of the SSAS cluster. This name is specified during SQL Server setup, as
    SQL Server Network Name. Note that if you installed SSAS as a named instance onto a Windows Server Failover Cluster (WSFC), you never add the instance name on the connection. This practice is unique to SSAS; in contrast, a named
    instance of a clustered relational database engine does include the instance name. For example, if you installed both SSAS and the database engine as named instance (Contoso-Accounting) with a SQL Server Network Name of SQL-CLU, you would connect to SSAS using
    "SQL-CLU" and to the database engine as "SQL-CLU\Contoso-Accounting". See
    How to Cluster SQL Server Analysis Services for more information and examples.

  • Set Output Dir Dynamically for File Adapter

    Hi,
    How can we set the output dir depending on a variable from the BPEL process the to write a file to a dynamic directory?
    As we can do for the filename...
    Please advise
    Thanks
    JO

    judging by the lack of responses to your post, i think it's safe to assume that it is not currently possible to dynamically set the directory used.
    Toby

  • Setting an endpoint dynamically for a business service

    I need to set an endpoint for a business service dynamically in the message flow of a proxy service. I'm basically doing what it says in this article(page 9 under heading - Registry per Individual Domain):
    http://e-docs.bea.com/alsb/docs26/pdf/deploybestprac.pdf
    I've gone to the link to the User guide that it gives in there for "Using Dynamic Routing". And I've pieced together most of what I need to do. I have a dummy business service with a dummy URL. I'm making a service callout and getting and endpoint back and saving that endpoint address to a variable. (that's all in a stage in a pipeline node.) Then I dynamically route it to dummy business service. The part I don't know how/where to do is reassign the dummy business service's endpoint to the endpoint I got back from my service callout.
    Can anyone help me with this?
    Thanks,
    Brittany

    Try with a 'Dynamic publish to service' action with:
    <ctx:route isProxy="false">
    <ctx:service>{ $yourBusinessService }</ctx:service>
    </ctx:route>
    where $yourBusinessService is the variable hosting the uri of your business service.
    Regards
    ferp

  • How to set queue names dynamically for MQ Adapter - SAP XI

    Hi Friends
      I have a scenario where I should send a message to multiple queues ( more like broadcasting ) using a single communication channel of MQ Adapter. The scenario is like this
    1. If the message content contains value '111' then message should go into Queue A, Queue B, Queue C
    2. If the message content contains value '222' then message should go into Queue A, Queue B
    I will store the content values inside a table ( value and queue names ) and can pick it up inside BPM but want to know how to change the queue name property of MQ series adapter. I will do this inside a loop so the message can be sent to multiple queue names but want to know how to change the queue name property of receiver communciation channel.
    I appreciate the help in providing the answer.
    thanks
    Kannan

    Amaresh
      Thanks for your answer but my question is specifically targeted towards MQ adapter and the queue name which has to be dynamically changed. I can do the dynamic changes for file adapters but want to know how to change the queue names in message mapping or inside BPM.
    regards
    Kannan

  • Setting the runtime environment for MySQL & creating tables,compile query

    Hi....
    i am a new user of MySQL server.i don't know the Rutime Environment on my machine.so please tell me how can i set the environment for MySQL.
    How can i create tables & compile query please tell me?

    All of those are MySQL only questions. Nothing to do with JDBC.
    There are MySQL forums. And there is certainly lots of MySQL documentation. So what of that have you read?

  • Field Dominance settings for rough edit

    I'm working on a project that will be finalized in HD elsewhere from a variety of sources, HDcam, Targa files, SD, etc. I'm doing the rough edit and will export an EDL (possibly through Automatic Duck to be finalized in Avid, not sure about that yet). I'm not doing any effects, just getting the right clips in the right order. I'm working from DVcam dubs only (firewire import)of the source material. I know the post house already has some of the HD material on hand and it is upper field dominant. DVcam of course is lower field dominant. Do I need to change the settings to upper field or not set, or is this something the post house will deal with when it imports the final video?

    Don't change any settings... it won't affect the EDL anyway.
    Jerry

  • Setting Page Break dynamically for oracle reports10g

    Hi..
    I need to get patient details in same page or different patient details in different pages based on User parameter
    I am using Oracle Reports 10g.
    I need it as soon as possible.
    Thnx in advance..
    noc

    Hi I achived this requirement. Thanks.

  • Dynamic forms from 2 tables

    Hi, (Sorry for the long post)
    DB Table one contains 4 fields:
    EventName
    Venue
    Price
    Date
    Form one is used by the owner to enter the data for an event into the DB Table One - there are several different events.
    DB Table two contains 7 fields (4 of the fields to retrieve data from table one)
    Name
    contact
    email
    Event Name
    Venue
    Price
    Date
    Form two is for a person registering for one of the events entered into DB table one.
    I set up a recordset called rsListEvents and then used the "Insert Record Form Wizard" to create form two with the following fields:
    EventName
    Venue
    Price
    eDate
    which I set to defaults
    {rsListEvents.EventName}
    {rsListEvents.Venue}
    {rsListEvents.Price}
    {rsListEvents.eDate}
    I have a page listing the events and when register for this event is clicked I was hoping the data from table one would be entered into form two and the user then fills in the rest manually where all the data is entered into DB table two.
    Unfortunately even though the URL indicates that the correct information from table one should be entered into form two .php?id_event=2
    The data from DB table one row id_event=1 is always displayed no matter what the record number is.
    Can anyone tell me where I have gone wrong
    Thanks
    laurence

    I am simplyfing this so I can get help on a basic level ( Mr basic)
    Why does this not work?
    I set up a Dynamic List using DB Table 1 and set the detailed page.
    I set up a record set on the detailed page using the same table.
    SELECT *
    FROM addEvents
    When I test I get the results from ID 1 no matter which one I choose. But when I test the RS I get both dummy entries 1 and 2
    So I am missing something that needs to be appended to the URL.
    L

Maybe you are looking for

  • Initial Time Machine backup never finishes

    I started the first backup and left my macbook on over night to let it continue. I had tried to sync it via an ethernet cable but for some reason it won't backup any way other than via wireless. It recognises that there is a connection via cable but

  • How to read all files from a folder Diadem

    Hello, Can somebody tell me how to load automatic some .csv file form a folder to Data Portal in Diadem. I do some tests and during this tests I record  data ( .csv files), files that I load manual now (*FileNameGet  command), but I want when the tes

  • HELP: ERROR MSGS WHEN TRY TO SYNC IPOD 160GB CLASSIC

    I have done the following: Installed the latest version of Itunes Restored my IPOD (multiple times) Restarted computer Tried both USB ports on CPU Made sure I check Sync Music and Apply Results: A few albums are on IPOD Get error message above Thanks

  • Asynchronous ABAP proxy

    hello everybody! i'm working with PI 7.1 i create a interface ABAP proxy -> PI -> file so is a async interface. every step was created succesfully. When i try to call proxy from my abap program or from test tool in SPROXY transaction i don't see any

  • Set a file icon from image file of same name

    I have a folder of files and I have another folder of images that have the same names as the files. What I would like to do is apply an icon of each image to it's corresponding file. Is this possible? Any help would be greatly appreciated. Ian