Dropdwon in a table view

Hi All,
I have started my application with this link. /people/brian.mckellar/blog/2003/10/31/bsp-programming-htmlb-tableview-iterator
However I have some questions.
bit confused where Do I write the code that is mentioned below
   GET_COLUMN_DEFINITIONS 
Does any one has an solution to this. .
I have a table  with 2 columns.
the second column should have the drop down list with some pre populated values from a table.
Please suggest
Ster

Hi Ster,
Code a tableview in the layout which is displayed on selection of 12141101   .
In the iterator class , create a new method CONSTRUCTOR , in which you have to poulate internal table for DDLBS of valuedesc(all values required in ddlb like red/purple/orange/12 inches/14 inches/32c etc.) ,as described in the weblog.
For currency, we are again only interested in handling the Edit mode. For this, we want to render a dropdown listbox. There are a number of techniques to fill the data. For this test, we created a name/value table (type TIHTTPNVP) in the class constructor, and already filled it with the currencies that we support. A reference to this table is stored in m_currencies_ref (ABAP statement u201CGET REFERENCE OF var INTO refu201D).
the code will look something like:
data: wa type ihttpnvp.
wa-name = 'Red'.
wa-value = 'Red'.
append wa to itab_valdesc.
wa-name = 'Purple'.
wa-value = 'Purple'.
append wa to itab_valdesc.
wa-name = 'Orange'.
wa-value = 'Orange'.
append wa to itab_valdesc.
wa-name = '12 Inch'.
wa-value = '12 inches'.
append wa to itab_valdesc.
wa-name = '32 C'.
wa-value = '32 C'.
append wa to itab_valdesc.
get reference of itab_valdesc into m_valdesc_ref.
you have to use this refrence table m_valuedesc_ref in the method RENDER_CELL_START to fill the DDLB .
Hope it helps.
Regards,
Anubhav

Similar Messages

  • Dynamically Hiding Column in a Table View in VC Model

    How to dynamacally hide the columns in a table view in a VC model. Through the expression in Control Property, Form element/field or table view as a whole can be made hidden, however, the individual column can not seem to be hidden.
    I am using VC server version 700.8.0.1.
    Any help would be much appreciated.
    Kind Regards
    Sanjoy

    In this scenario, if the source is SAP BI, you can use the webapi commands. If not, you would have to have 2 separate tables in different layers and you can show and hide those layers or UI elements...

  • How to use a Table View in AppleScriptObjC

    How can I use a table view and add data to it? And how can I display a button cell and image cell in the table? Thanks.

    Hi all,
    Actually i need some more clarification. How to use the same select statement, if i've to use the tabname in the where clause too?
    for ex : select * from (tab_name) where....?
    Can we do inner join on such select statements? If so how?
    Thanks & Regards,
    Mallik.

  • Deleting data from a table view

    I have a data source that is in dictionary form (for why, see here). I have the following code that gets called in the commitEditing method for the table view:
    - (void)removeObjectFromListAtIndex:(NSIndexPath *)indexPath {
    NSMutableDictionary *mutableDataDictionary = [[NSMutableDictionary alloc] initWithDictionary:[listContent mutableCopy]];
    dNSLog (@"listContent: %@, mutableDataDictionary: %@", listContent, mutableDataDictionary);
    dNSLog (@"indexPath.section is %d", indexPath.section);
    NSString *section = [[NSString alloc] init];
    switch (indexPath.section) {
    case 0:
    dNSLog (@"Case Zero");
    section = @"A";
    break;
    case 1:
    dNSLog (@"Case One");
    section = @"B";
    break;
    case 2:
    section = @"C";
    break;
    case 3:
    section = @"D";
    break;
    case 4:
    section = @"E";
    break;
    case 5:
    section = @"F";
    break;
    case 6:
    section = @"G";
    break;
    case 7:
    section = @"H";
    break;
    case 8:
    section = @"I";
    break;
    case 9:
    section = @"J";
    break;
    case 10:
    section = @"K";
    break;
    case 11:
    section = @"L";
    break;
    case 12:
    section = @"M";
    break;
    case 13:
    section = @"N";
    break;
    case 14:
    section = @"O";
    break;
    case 15:
    section = @"P";
    break;
    case 16:
    section = @"Q";
    break;
    case 17:
    section = @"R";
    break;
    case 18:
    section = @"S";
    break;
    case 19:
    section = @"T";
    break;
    case 20:
    section = @"U";
    break;
    case 21:
    section = @"V";
    break;
    case 22:
    section = @"W";
    break;
    case 23:
    section = @"X";
    break;
    case 24:
    section = @"Y";
    break;
    case 25:
    section = @"Z";
    break;
    default:
    dNSLog (@"Default");
    section = nil;
    break;
    if (mutableDataDictionary) {
    NSMutableArray *arrayForNameSection = [[[NSMutableArray alloc] initWithArray:[mutableDataDictionary objectForKey:section]] mutableCopy];
    [arrayForNameSection removeObjectAtIndex:indexPath.row];
    NSArray *array = [[NSArray alloc] initWithArray:arrayForNameSection];
    [mutableDataDictionary setObject:array forKey:section];
    listContent = [NSDictionary dictionaryWithDictionary:mutableDataDictionary];
    [array release];
    [arrayForNameSection release];
    [section release];
    [mutableDataDictionary release];
    The code works flawlessly the first time through, but when I try to delete a second item, it crashes with a CALayer exception involving copyWithZone. The analyzer in Xcode (3.2) is telling me something's going on with the NSString section, but I'm not sure what...I'd appreciate any help!
    BTW, Ray if you happen to get this, the code is identical to what I emailed you, except that I added this code. The method name is the same.

    I have a data source that is in dictionary form (for why, see here). I have the following code that gets called in the commitEditing method for the table view:
    - (void)removeObjectFromListAtIndex:(NSIndexPath *)indexPath {
    NSMutableDictionary *mutableDataDictionary = [[NSMutableDictionary alloc] initWithDictionary:[listContent mutableCopy]];
    // What happens to the mutableCopy? Looks like a leak.
    dNSLog (@"listContent: %@, mutableDataDictionary: %@", listContent, mutableDataDictionary);
    dNSLog (@"indexPath.section is %d", indexPath.section);
    NSString *section = [[NSString alloc] init];
    // Memory leak because in all cases you re-assign the variable.
    // Arrrgggg!
    NSString * section = nil;
    if((indexPath.section >= 0) || (indexPath.section < 26))
    section = [NSString stringWithFormat: @"%c", 'A' + indexPath.section];
    switch (indexPath.section) {
    case 0:
    dNSLog (@"Case Zero");
    section = @"A";
    break;
    case 1:
    dNSLog (@"Case One");
    section = @"B";
    break;
    case 2:
    section = @"C";
    break;
    case 3:
    section = @"D";
    break;
    case 4:
    section = @"E";
    break;
    case 5:
    section = @"F";
    break;
    case 6:
    section = @"G";
    break;
    case 7:
    section = @"H";
    break;
    case 8:
    section = @"I";
    break;
    case 9:
    section = @"J";
    break;
    case 10:
    section = @"K";
    break;
    case 11:
    section = @"L";
    break;
    case 12:
    section = @"M";
    break;
    case 13:
    section = @"N";
    break;
    case 14:
    section = @"O";
    break;
    case 15:
    section = @"P";
    break;
    case 16:
    section = @"Q";
    break;
    case 17:
    section = @"R";
    break;
    case 18:
    section = @"S";
    break;
    case 19:
    section = @"T";
    break;
    case 20:
    section = @"U";
    break;
    case 21:
    section = @"V";
    break;
    case 22:
    section = @"W";
    break;
    case 23:
    section = @"X";
    break;
    case 24:
    section = @"Y";
    break;
    case 25:
    section = @"Z";
    break;
    default:
    dNSLog (@"Default");
    section = nil;
    break;
    if (mutableDataDictionary) {
    NSMutableArray *arrayForNameSection = [[[NSMutableArray alloc] initWithArray:[mutableDataDictionary objectForKey:section]] mutableCopy];
    // Get rid of this copy too.
    [arrayForNameSection removeObjectAtIndex:indexPath.row];
    NSArray *array = [[NSArray alloc] initWithArray:arrayForNameSection];
    [mutableDataDictionary setObject:array forKey:section];
    listContent = [NSDictionary dictionaryWithDictionary:mutableDataDictionary];
    // This is autoreleased. You might want to retain it.
    [array release];
    [arrayForNameSection release];
    [section release];
    [mutableDataDictionary release];

  • Error while creating a hyperlink for a field in a table view

    Hi all,
    I have created a table view to display the lead information.Now i wanted to make the lead number to be made as a hyperlink.I have tried the delow code
    <htmlb:tableView id = "tvX"
    headerText = "Leads Details"
    headerVisible = "true"
    design = "alternating"
    visibleRowCount = "5"
    visibleFirstRow = "<%= firstvisiblerow %>"
    fillUpEmptyRows = "true"
    onHeaderClick = "MyEventHeaderClick"
    onRowSelection = "select"
    selectionMode = "singleselect"
    table = "<%= activities %>"
    iterator = "<%= z_it %>"
    sort = "SERVER" >
    <htmlb:tableViewColumns>
    <htmlb:tableViewColumn
    columnName = "object_id"
    type = "link" >
    </htmlb:tableViewColumn>
    </htmlb:tableViewColumns>
    </htmlb:tableView>
    But am getting the following error whlle am activating the code
    Internal error occured during runtime generation
    of Class CL_O2D59X6KFES8AMMPAFQ6AV1R3WF (Dump ID:
    DBIF_REPO_SQL_ERROR).
    When i remove the code for <htmlb:tableViewColumns> this error does not exist
    Can canyone help me in solving this?
    Thanks

    Hi,
    in iterator method IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START.
    you need to call method  cl_hrrcf_iterator=>get_bee_link to define the link for a specific filed.
    for example check the below code.
    IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START.
      CASE p_column_key.
        WHEN 'PERNR'.
        CALL METHOD cl_hrrcf_iterator=>get_bee_link
            EXPORTING
              p_cell_id       = p_cell_id
              p_onclientclick =link_url
              p_column_key    = p_column_key
              p_row_data_ref  = p_row_data_ref
              p_tooltip_alias = l_alias
            IMPORTING
              po_bee          = p_replacement_bee.
        ENDCASE.
    endmethod.
    vijay

  • Access the nodes data in a table view (generated by aet).

    Hi all ,
    I have created a table view in bp overview page.
    so it has created new component /ztable/zbol entity .
    Now how can i access the nodes of BP page..in the new component created?.

    thanks vishal ,
    but as per the thread,when we create table view using aet ,
    Table view in EHP1 CRM 7.0
    You dont need to worry about the component usage nor you need to create or handle anything like that for AET compoent for table extension. SAP has a special way to handle it in WD_USAGE_INITIALIZE of component controller for AET extension generated component so its nothing for us to do about it. Thanks to SAP
    so still i need to redefine..or can directly access the nodes in do_prepare_output.?

  • Hide data in a table view

    Hi,
    I need to hide data in a table..Only column headers required to display.. I tried by (display column headers only) in view..It is showing only column header in the view ..But when iam displaying the table in dashboard it displays data also..another approach i took is to hide data from column properties ...Custom css display:none.. it is working fine..But the thing is it will not display data in other views also.I need to hide data only in table view..any helps will be appreciated.. Thank you

    Hi Aswin,
    Try this....
    Take columns twice and first set which is use in table view (use display:none)
    and second set use in pivot table and exclude first set columns........
    Cheers,
    Aravind

  • BSP: How to create check box in a column of a Table View

    Hi All,
    I have a table view in Web IC scenario. my requirement is to display check box in one of the column of the table view.. so that i can select multiple lines from the table and do some calculations!.
    Anybody have any hint/clue
    Thanks in advance,
    sudeep v d.

    Hi,
    This can be achieved by using a Table iterator.
    Please check the standard examples for this.
    Thanks,
    Rashmi.

  • How do I use the option "table view" in NetWeaver 2004s Query Designer?

    Dear,
    We have used NetWeaver 2004s Query Designer, We found a strange problem. The option to select table view is not available. It is greyed out. How can you select table view (tabular) in 2004s Query Designer?
    I have read the help doc about tabular view of NetWeaver 2004s Query Designer, I check my query, it has only one structure . but the option is still greyed out. I rebuild the query with 3.x Query Designer in tabular view, and reopen it with 2004s Query Designer, So there is a tab named "tabular view" display, but the option to select table view is still not available, and when users view the query result in web , it is still not in tabular view display. So I am confused, is there a bug with NetWeaver 2004s Query Designer?
    Please help me. Thanks!

    Note 1002271. Seach this note to use key word "table view"

  • How to get the List of Database Objects (Table/View) for a given APEX Page.

    Hi,
    I have an application and that consist of pages like page1,2,3,.....
    *1.* I want a report which can give me the list of all the Pages1,2,3,....
    I am using the following query to acheive this.... THIS IS FINE..
    select a.workspace, a.owner, a.application_name, b.page_id, b.page_name
      from apex_applications a,
           apex_application_pages b
    where a.workspace = b.workspace
       and a.application_id = b.application_id*2. Now, I want for each individual page*, the list all the database objects (tables/views), which that page is using.
    I am using ALL_DEPENDENCIES , but I am not getting the result.
    So, want to know if there any view/table, where I can get the Application Pages & there database object list...
    Thanks,
    Deepak

    Hari,
    Thanks for the response.
    The view APEX_APPLICATION_PAGE_DB_ITEMS will only give me the table name related to any Page Items defined to that page..It will not give me all the database objects..
    suppose we have a Page, having a report based on multiple tables and there is no Page items defined on that page, we will not have any value in this ....DB_ITEMS table. same thing if we have define some PL|SQL(using some table/view) in a Process, that will not be populated in .....DB_ITEMS table. I want some thing like all the database objects (table/views/function/procedure/.....) for a particular Page ID.
    Thanks,
    Deepak

  • Help needed with conditions in Table View

    Another question regarding the dashboard we are building:
    We use a custom function module to display marketing attributes for a particular customer. There are three kinds of marketing attributes of which we want to display the value:
    - Z_QUADRANT
    - Z_SOW
    - Z_WALLET
    If I use the function module as a data service in Visual Composer and use a standard table view as ouput, we get these kind of output:
    Atnam - Atwrt - Atflv - Atzhl (<-- these are the column labels)
    Z_QUADRANT - 4 - 0 - 0
    Z_SOW - 0 - 5 - 0
    Z_WALLET - 0 - 75.000 - 0
    I just want to display the data as follows:
    QUADRANT: 4
    SOW: 5%
    WALLET: 75.000
    So I need to hide the obsolete fields and values and just need to display the relevant values. How can I achieve this? I was guessing I needed to implement some sort of conditional formula like "IF atnam = Z_QUADRANT, display Atwrt(value)" or something, but I am terrible at these kind of things. Can somebody explain it to me or point in the right direction of some good documentation or guide on this? Thanks in advance!
    Best regards,
    Jan Laros

    I now chose to use a form which uses the output from the tables. This is the table I use as input for the form:
    http://tweakers.net/ext/f/DWmYaePz4gdzVhwMJ3naA5UQ/full.jpg
    I use the following formula for the quadrant:
    IF(@ATNAM=="EU_BP_NPS_QUADRANT",@ATWRT,"0")
    This returns a value of "4" which is correct.
    For SOW I use the following formula:
    IF(@ATNAM=="EU_BP_NPS_SOW",@ATFLV,"WRONG")
    Strangely enough the return value is "WRONG" in the form. What am I missing here?
    Regards,
    Jan

  • :: NWA does not show table view for monitoring reports ::

    Hi,
    We are facing an issue in one of our portal system.
    I click on Portal index page, then I go to Net weaver Administrator --> Monitoring --> Java system reports.
    Here I get the resource utilization graphs.
    The graphs show proper values however when I click on table view it does not show any value or table at all.
    Then I click on Settings button, and click on Persistent radio button.
    It asks to enter the number of days for which the the data should be stored.
    I gave it as 2 days and click on Apply button.
    It shows a message saying "changes would be effective after restarting monitoring service".
    However when I go there i.e. NWA --> Administration --> Applications
    I get below services
    cafruntimemonitoring~ear                 
    com.sap.ip.bi.sdk.monitoring                 
    tclmwebadminmonitoravail~wd            
    tclmwebadminmonitorcomplib~wd            
    tclmwebadminmonitorprovider_ear            
    tclmwebadminmonitorstate~wd            
    tclmwebadminoverviewmonitoring~wd           
    tcmonitoringsysteminfo
    Would you kindly suggest which service from above list should be restarted ?
    Thank you, Regards,
    Girish Garje.

    I think what is being asked is "How do I expose a database view as a schema table in Configuration Manager?"
    This is accomplished by creating a database view within the WCC database schema (and with the WCC schema user as the view owner). The view then will appear as a table in the "table" tab in Configuration Manager.
    One caveat in 11g is that the user created by RCU does not have any privileges to read/create views in its own schema. You may need to grant privileges to views for the WCC schema user before this will work.

  • Row Total issue in table view

    Hi,
    I am using 11.1.1.5. In table view we have 4 dim and 5 facts. I need row total only for 3 facts. Whenever I set total using sigma(E) I am getting total for all 5 facts. How to calculate row total only for 3 facts only?.
    Thanks.

    977610 wrote:
    Hi,
    I am using 11.1.1.5. In table view we have 4 dim and 5 facts. I need row total only for 3 facts. Whenever I set total using sigma(E) I am getting total for all 5 facts. How to calculate row total only for 3 facts only?.
    Thanks.In Criteria mode, click on the fx button and change the aggregation rule from "Default" to "None."

  • Display of missing values in a table view.

    Hi everyone,
    I have a table view with 7 columns and 10 rows which displays only those values which are missing in the DataBase Table.
    Is it possible to show only the missing values as '-' in a table view, the table view is having 7 different fields.
    Also when the value is inserted at run time the corresponding field should be updated accordingly and the value will no longer be displayed in the table view as '-'
    please advice.
    Regards
    Neo.

    Welcome to SDN.
    do you mean to say that in some rows some column values will be blank and you want to replace the blanks with '-'.
    loop thru the itab which you are passing to tableview and for the blank cells pass '-'.
    <i>Also when the value is inserted at run time</i>
    so you are having editable tableview. to update the value back to the dbtable, you have to read it in oninputprocessing and update it to dbtable .
    search the forum on how to read the user entered value from the table view so that you can update the dbtable.
    Regards
    Raja

  • Minimise Server Click in a Table view in  BSP

    Hello All
    I have a issue related to TableView in a BSP Application
    Our requirement is :
    User want to edit a coolumn value for  few records displayed in a Table View . as per My knowledge , when a row is selected in a table view , system go to server side and takes time . user did not liked that. He want to get it done faster that is selection of rows should be faster.
    How can we achiew row selection in a tableview without server clicks....we also want to find selected rows.
    can we achieve this and how ? Please let me know at the earliest.
    Thanks
    Rajiv

    don't implement the onRowSelection handler for the table view. Let the user choose the several lines and add a button called 'Choose' for e.g. Only when the button is clicked you start processing the selection.

Maybe you are looking for

  • How to identify the field value has been changed to new value?

    Hi, I am adding a custom field through CI include for 171 info type. But I need to identify that whenever user enters into change mode and changes the value(Custom field) then I have to populate an error message(i.e Manitain date type in 41.). I know

  • How to use DataSource and External transaction in 9ias?

    I'm working on a project that the application server needs to connect to over 100 databases. I'd like to use connection pooling and external transaction service defined in OC4J's Datasources. I wonder if anyone has an example of using datasource and

  • Help on validation

    hey guyz! i have a requirement..... in one enhancement i have added some 7 fileds with check boxes in a screen of which 1 must be checked while creating WBS. if niether of them is checked we have to throw a message. 1) my Q is how can we check that 1

  • Sending Variable and paging html files

    Dear All, Thank you for taking time and taking a look at the post. Please have look at File One File Two. What i was trying to achieve is the user will click on the image from file one which will be called from an xml. On click the user will be taken

  • Utility for Managing iTunes Music Folder

    Hello, I am looking for a MAC utility program (Apple or 3rd party) that will help me more easily manage my iTunes Music folder and playlists. For example, does anyone know of a utility that will make a list of songs in the Music folder that do NOT ap