Modifiy column in value help

Hello Experts,
i am using value help in my web dynpro application.
key | Display Text
001 | test1
002 | test2
I can modify the key column title with method setFieldLabel:
ISimpleTypeModifiable valueType = attInfo.getModifiableSimpleType();
valueType.setFieldLabel("Test Key");
Can i also modify the display text column title?
regards

hi,
thanks for your quick answer.
If i create a new Simple Type in local dictonary can i modify the column label, but i want added the values at run-time and the dynamic add is not supported for Simple Types - or?

Similar Messages

  • How can I sum the values in a given column on sheet 1 i.e. A1:A50 based on the adjacent columns specific value i.e. B1:B50 = "Living Room" on sheet 2

    How can I sum the values in a given column on sheet 1 i.e. A1:A50 based on the adjacent columns specific value i.e. B1:B50 = “Dinning Room” on sheet 2
    For Example:
    SHEET 1
    A
    B
    $50
    Dinning Room
    $800
    Dinning Room
    $300
    Kitchen
    $1,000
    Master Bedroom
    $100
    Dinning Room
    SHEET 2
    Display the total SUM amount of each Project based on Sheet 1
    Project Name
    Total Cost
    Dinning Room
    $950
    Kitchen
    $300

    Would be a good idea to open iWork Formulas and Functions User Guide and search for the description of the function named SUMIF
    The Guide is available for every user thru the Help menu.
    Yvan KOENIG (VALLAURIS, France) jeudi 19 mai 2011 17:32:42
    Please :
    Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • Variables/Input Parameters Value help not showing texts

    Hello,
    I have created a crystal report based on a calculation view in Crystal Reports for Enterprise 4.1 SP5, which has a input parameter on the field "Region". For the value help, I am using a custom view based on T005U in which I have made sure that RegionName field is present in the "Label Column" property of the Region field.(Required for viewing descriptions of LOVs).
    In the crystal report, while previewing data in the query builder, I am able to see the value help for the input parameter in the prompt screen, which displays only the key part, but does not display the description of it. Moreover, after accepting the prompt value, the preview runs into an error(as shown below). Please note that I get the error below only when Region is a part of the output fields of the query.
    Instead of input parameter, when I create a variable on the region field in the main calculation view, with the same value help view, I am able to do data preview in the query builder as also data appears in the report on running the query. But, just as in the case of input parameter value help in the prompt screen, even over here, I am only able to see the key part and not the description.
    Are variables/input parameter LOV's supposed to display descriptions or just the key part? As also, any reason why I should be getting this error while using Input parameter?
    Kindly let me know if I am missing something in the development of this report.
    Regards,
    Alston

    Hi,
              I hope you are taking the BEx Query as a source to the crystal report. In the BEx query check region info object  should is maintained as  Text and Key. If text is not maintained over there you will not be getting text in Crystal reports.
    Krishna.

  • Reg :getting values loaded in value help in runtime based on user input

    I have a table column named partners with a drop down.when i select a value from the drop down i need to load the values in value help in next column(partner fun) in the table based the the user selection made in the 1st column.plz help me.
    currently the coding used by me is
    try
        String partfn=wdContext.currentTablepartnersElement().getPartnerfn();
        if(partfn.equals("ShiptoParty"))
          wdComponentAPI.getMessageManager().reportSuccess("1");
         IWDAttributeInfo partattributeInfo = wdContext.getNodeInfo().getAttribute(IPrivateSalesdet.ITablepartnersElement.PARTNER);
         wdComponentAPI.getMessageManager().reportSuccess("2");
    //from this part its not working
         ISimpleTypeModifiable part = partattributeInfo.getModifiableSimpleType();
         //ISimpleType part=partattributeInfo.getSimpleType();
         wdComponentAPI.getMessageManager().reportSuccess("3");
    //     Set field label and populate valueset
        part.setFieldLabel("key");
         IModifiableSimpleValueSet partvalueSet =  part.getSVServices().getModifiableSimpleValueSet();     
         wdComponentAPI.getMessageManager().reportSuccess("4");     
         for (int i = 0; i < wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Kna1().size();i++)
    wdComponentAPI.getMessageManager().reportSuccess("5");
    partvalueSet.put(wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Kna1().getLt_Kna1ElementAt(i).getKunnr(),wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Kna1().getLt_Kna1ElementAt(i).getName1());
                 wdComponentAPI.getMessageManager().reportSuccess("custid"+wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Kna1().getLt_Kna1ElementAt(i).getKunnr());
        catch(Exception ex)
              wdComponentAPI.getMessageManager().reportSuccess("error in partfn table rfc"+ex);

    hai ayappa,
                  my context structure is
                        partnertable
    _subnode
    _Attribute1
    _Attribute2
                         |_attribute(attribute of partnertable node)
    when i set the singleton property of subnode to false i have another table in the same view wch is getting affected.also when i select the value from partners table attribute i need the subnode s attribute get populated.

  • Icon in Dictionary Value Help List

    Hi
    I would like to add a Status-Icon like 'WEBICON_LED_RED' to the Result List of a Value Help. However, the Result List contains only of 'TextView' UI_Elements. Is there any possibility to get UI-Elements like 'Image' for displaying icons?
    Thanks in advance
    Daniel

    Baskaran,
          I think we can do with OVS, by adding new image column. correct me , if i am wrong

  • When I quit itunes it restarts again with the dot under the itunes logo but the iTunes window doesn't open until I click the icon on the dock.  Also in the middle of the size vale in the size column the value starts with a number then a ? then a number.

    When I quit itunes it restarts again with the dot under the itunes logo but the iTunes window doesn't open until I click the icon on the dock.  Also in the middle of the size vale in the size column the value starts with a number then a ? then a number.

    This forum is for questions from those managing sites on iTunes U, Apple's service for colleges and universities to post educational material in the iTunes Store. You'll be most likely to get help with this issue if you ask in the general iTunes for Mac forums.
    Regards.

  • Value help in ABAP Webdynpro

    Hi Experts,
    I have to create a value help for an icon in a table.
    The full story is:
    There is a table with a filed, which has the proper standard value help, which works perfectly
    The problem is that this column in the table  is just a "technical" field, becase it isn't displayed by the webdynpro, because in the next column  an icon is displayed for the field.
    Example:
    FieldName = ready
    Possible values: 0, 1.
    The AWD display the "red Light" icon for value 0 and "Green light" icon for value 1 in the table
    I'd like to display the value help for this field (it's an information for the user, what does the green/red light means)
    How can I do that? Is this even possible?
    Thanks
    N.

    Is it possible to have both thing in my field (display the icon and use the value help)
    No - not really...
    you can launch the value help from the link to action (in the action handler call the value help -  I think I've posted on how to do this before - have a search, but if you can't find it post another question)- but it won't display that nice little dropdown icon and I'm guessing you want two types of interaction - one on click and one just to explain/choose the current value. I'd probably go with the previously mentioned solution of using a tooltip - although again you have the issue of not being able to have anything other than text in a tooltip. Alternately I'd have the custom value help launched on click of the icon and then have another button to launch any other actions
    A legend somewhere in your screen might be useful - but perhaps your screen layout won't like that very much.
    If you're looking for a more graphical representation of a multi state option - you might want to consider the [Threshold Slider|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/dc/a65ca1b6054f06929ee40ac59f8a40/frameset.htm] rather than your own icons - but I guess it depends on your requirement.
    Cheers,
    Chris

  • Freely-programmed value help for a single ALV cell

    Greetings everyone,
    I have a freely-programmed value help that works beautifully when attached to the context element of a single field, but now I'm needing to use it in an ALV for a specific cell.  Is there a way to shut off the dropdown for all of the rows (cells) in the column where I don't need it?  Or, is there an appropriate workaround that can deliver the same results?
    I've found several posts that address similar issues, but nothing for this exact problem.
    Thanks,
    Jason Block

    I take it from reading your description what you want is a little more complicated than just controlling the read-only property on the input field. If I read you properly you still want to have all the cells in a column to be open for input, just on some of them you want to disable the value help.  Is that correct?  See these screen shots for clarification:
    If you focus on the the input field in the first row, you get the value help:
    http://www.flickr.com/photos/tjung/2714133068/
    However if you go to the second row and focus on the same input field in this column, you don't get the value help:
    http://www.flickr.com/photos/tjung/2714133094/
    If this is what you want, then buckel up because this was a challenging one.  The problem is that the value help specification is not done at the UI element level, but instead at the context attribute level.  Therefore it can't be as simple as controlling a property on the inputField itself.  What you will need to do is extend the context node that you have bound to the ALV.  You need to add a second version of the attribute that is bound to your input field.  In this second version you can set the value help specification to Disabled:
    http://www.flickr.com/photos/tjung/2713320505
    Notice from the screen shot that I also added another attirbute called CVAR (type STRING).  We will need that later.  It will be used to store which cell variant show be used on a particular row.
    Now we must go to the place in your code where you fill the context node with data.  You will need to copy the data from your primary attribute to your secondary one.  In my case I was copying the values from CARRID to CARRID2.  Of course for update, you would need to merge the data back together before saving it back to the database.  I also set a simple odd/even pattern of controller in the cell variant.  I assume you will have some actual business logic that controls this:
    data odd type boolean value abap_true.
       loop at lt_f_r_sflight[] assigning <ls_f_r_sflight>.
        clear ls_c_r_sflight.
        move-corresponding <ls_f_r_sflight> to ls_c_r_sflight.
        move <ls_f_r_sflight>-carrid to ls_c_r_sflight-carrid2.
        if odd = abap_true.
          odd = abap_false.
        else.
          odd = abap_true.
          ls_c_r_sflight-cvar = 'NOVH'.
        endif.
        insert ls_c_r_sflight into table lt_c_r_sflight[].
      endloop.
      lo_r_sflight->bind_table( lt_c_r_sflight[] ).
    Next is the logic in the initialization of the ALV.  We will need to create two input fields - each bound to the different context attributes. We will make the one the primary cell editor.  The other will become the cell editor of the cell variant.  We then tell the column where it can get its cell variant value from:
    DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.
      lo_cmp_usage =   wd_this->wd_cpuse_alv( ).
      IF lo_cmp_usage->has_active_component( ) IS INITIAL.
        lo_cmp_usage->create_component( ).
      ENDIF.
      DATA l_salv_wd_table TYPE REF TO iwci_salv_wd_table.
      l_salv_wd_table = wd_this->wd_cpifc_alv( ).
      DATA l_table TYPE REF TO cl_salv_wd_config_table.
      l_table = l_salv_wd_table->get_model( ).
      l_table->if_salv_wd_table_settings~set_read_only( abap_false ).
      DATA input1 TYPE REF TO cl_salv_wd_uie_input_field.
      DATA l_column TYPE REF TO cl_salv_wd_column.
      l_column = l_table->if_salv_wd_column_settings~get_column( 'CARRID' ).
      CREATE OBJECT input1
        EXPORTING
          value_fieldname = 'CARRID'.
      l_column->set_cell_editor( input1 ).
      DATA input2 TYPE REF TO cl_salv_wd_uie_input_field.
      CREATE OBJECT input2
        EXPORTING
          value_fieldname = 'CARRID2'.
      DATA l_cv TYPE REF TO cl_salv_wd_cv_standard.
      CREATE OBJECT l_cv.
      l_cv->set_key( 'NOVH' ).
      l_cv->set_editor(  input2 ).
      l_column->add_cell_variant( l_cv ).
      l_column->set_sel_cell_variant_fieldname( 'CVAR' ).

  • How to get column default value define on table?

    Hi,
    I am trying to get a table column default value with no success. I am using the Oracle Data Provider for .NET 10g Release 2 (10.2.0.2)
    1). OracleConnection.GetSchema( "Columns", New System.String() {"<Owner>", "<Table_Name>"} returns everything BUT default value.
    2). I tried querying oracle directly (sample below) but the default value comes back blank even though the column has one defined.
    Dim oracleConnection As Oracle.DataAccess.Client.OracleConnection = factory.CreateConnection
    Dim oracleCommand As New Oracle.DataAccess.Client.OracleCommand( _
    "SELECT data_default FROM DBA_TAB_COLUMNS WHERE OWNER = 'TEST_SCHEMA' AND UPPER( TABLE_NAME ) = 'TEST' AND UPPER(COLUMN_NAM) = 'TESTCOL'")
    oracleConnection.Open()
    oracleCommand.Connection = oracleConnection
    Dim oracleReader As Oracle.DataAccess.Client.OracleDataReader = oracleCommand.ExecuteReader
    oracleReader.GetValue(0) 'This will return blank rather than default value for the column.
    oracleReader.Read()
    oracleReader.Close()
    oracleConnection.Close()
    Any help would be appreciated.
    Thanks,
    Rob Panosh
    Advanced Software Designs

    Hi Rob,
    I just ran up a quick test and I can't duplicate the behavior you describe.
    I created a simple table as "scott":
    SQL> create table def_test(c varchar2(32) default 'hello, world');
    Table created.In my simple test I used the following C# code:
    NOTE: There is an error in this code if using ODP.NET (see my post below for details on this)
    using System;
    using System.Data;
    using System.Data.OracleClient;
    class Program
      static void Main(string[] args)
        string constr = "user id=scott;" +
                        "password=tiger;" +
                        "data source=orademo;" +
                        "pooling=false;" +
                        "enlist=false";
        OracleConnection con = new OracleConnection(constr);
        con.Open();
        OracleCommand cmd = con.CreateCommand();
        cmd.CommandText = "select   data_default " +
                          "from     all_tab_columns " +
                          "where    owner='SCOTT' " +
                          "and      table_name='DEF_TEST' " +
                          "and      column_name='C'";
        OracleDataReader dr = cmd.ExecuteReader();
        dr.Read();
        string defaultValue = (string) dr.GetValue(0);
        Console.WriteLine("Default value is: {0}", defaultValue);
        dr.Dispose();
        cmd.Dispose();
        con.Dispose();
    }Since the GetValue method returns an "object" I cast the value to a string and got the correct result.
    However, I don't have a 10.2 ODP.NET environment right now so I was using 11.1 for this.
    In your real code I suspect that you assign "oracleReader.GetValue(0)" to something - when you say "blank" do you mean zero length or a space or something else?
    Regards,
    Mark
    Edited by: Mark Williams on Jul 31, 2009 10:02 AM

  • Deactivate F4-Value help in transaction PR05?

    Hello,
    is there any way to disable the value help for the personnel number in transaction PR05 (or at least to remove columns inside the value help)?
    Thanks.

    Hi,
    You might have a look at its definition using transaction SE11. Click the Radio Button for SEARCH HELP and enter PREM, then click
    DISPLAY. On the following screen you find the tabstrip "Included search helps" and in the list the search help PREMK for the
    organizational assignment. Double-Click on PREMK to enter the search help. In the tabstrip DEFINITION you can remove
    selection-method M_PREMK.
    Regards
    Ravinagh Boni

  • Runtime error with column default value settings

    I have one SP2010 (enterprise) document library which gives me a runtime error if I click on "column default value settings" in the settings. Other document libraries' column default value settings are working fine. I use managed metadata
    and created libraries from templates. I deleted all custom columns from the site, only title is left over (content types are document and link to a document) but runtime error still shows up. How can I fix this?
    Server Error in '/' Application.
    Description:
    An application error occurred on the server. The current custom error
    settings for this application prevent the details of the application error from
    being viewed remotely (for security reasons). It could, however, be viewed by
    browsers running on the local server machine.
    Details: To enable
    the details of this specific error message to be viewable on remote machines,
    please create a <customErrors> tag within a "web.config" configuration
    file located in the root directory of the current web application. This
    <customErrors> tag should then have its "mode" attribute set to
    "Off".
    <!-- Web.Config Configuration File -->
    <configuration>
    <system.web>
    <customErrors mode="Off"/>
    </system.web>
    </configuration>
    Notes:
    The current error page you are seeing can be replaced by a custom error page by
    modifying the "defaultRedirect" attribute of the application's
    <customErrors> configuration tag to point to a custom error page
    URL.
    <!-- Web.Config Configuration File -->
    <configuration>
    <system.web>
    <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
    </configuration>
    Runtime Error

    Thanks for your suggestions. I found the log but don't know what it means. Can anybody help?
    System.ArgumentOutOfRangeException:   startIndex cannot be larger than length of string. Parameter name: startIndex  
      at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length,   Boolean fAlwaysCopy)
      at   Microsoft.Office.DocumentManagement.MetadataNavigation.PerLocationViewManager.HumanReadablePath(SPList   list, Guid fieldId, String uniqueNodeId, String pathDelimiter)
      at   Microsoft.Office.Server.WebControls.MetaDataNavTree.TreeViewDataBound(Object   sender, EventArgs e)
      at System.Web.UI.WebControls.BaseDataBoundControl.OnDataBound(EventArgs e)
      at System.Web.UI.WebControls.HierarchicalDataBoundControl.PerformSelect()
      at   Microsoft.Office.DocumentManagement.MetadataNavigation.MetadataNavigationContext.OnTreeViewLoad(SPTreeView   spTreeView)
      at Microsoft.Office.Server.WebControls.MetaDataNavTree.PerLocationPageLoad()
      at   Microsoft.Office.DocumentManagement.Pages.ColumnDefaultsPage.OnLoad(EventArgs   e)
      at System.Web.UI.Control.LoadRecursive()
      at System.Web.UI.Page.ProcessRequestMain(Boolean   includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 

  • Need to change color of one column's value depending on the other column

    Hi,
    i have a search form which displays two column values
    First column value's colour should be based on second column's value
    For example, if second column has values 'Active', 'Inactive' and 'Pending'
    If 'Active' , the first column value's color sholud be 'red'
    If 'inacitve, another color ....
    Thanks in advance,

    Hi!
    What we did was we added a column on the VO that returns kind of a css part (for example if a column value is 'Active' the value of this column should be "background-color:rgb(255,0,0);")
    Than you use something like this on your column:
    inlineStyle="#{row.StatusStyle}"where StatusStyle is the name of the column with "background-color:rgb(255,0,0);" value.
    The problem here can be that the background color doesn't cover the whole column but only the text in it (so if it is null, the color is default).
    If you want the whole column to be of this color you use something like this:
                                        <af:column ...>
                                          <afh:tableLayout ...>
                                            <afh:rowLayout ...>
                                              <afh:cellFormat inlineStyle="#{row.StatusStyle}" ...>
                                                <af:outputText ...>
                                                </af:outputText>
                                              </afh:cellFormat>
                                            </afh:rowLayout>
                                          </afh:tableLayout>
                                        </af:column>Basically you put another table layout inside a column instead just a outputText (or whatever control you use)
    Hope this is understandable and it helps :)
    It works for us.
    BB

  • Custom Error Message in Value Help

    Hi,
    In my application i have a Inputfield called "CLASS", for which i have added a value help..it has these values
    B    Business
    E    Economy
    F    First Class
    When the user enters a value(say "X") other than B, E, and F, it displays a message
    <b>String "X" does not match the enumeration</b>
    I want to put my own message like " Please enter a valid value" instead of the above message.
    Please let me know how to do this ?
    Thanks
    Senthil

    Senthil,
    First, "looping through the list and checking the user entered value with values in the list" is possible only with non-validating actions. Using non-validating actions is a tricky task in real life.
    Second, workarounds are possible, but they involves calculated attributes (like here: /people/valery.silaev/blog/2005/11/29/800format-your-way). Solving this problem generically (45 attributes is a good number to start with a generic solution) will result in solution with complexity comparable to this: https://weblogs.sdn.sap.com/pub/wlg/3309. [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] Do you need such thing just to alter error message?
    Valery Silaev
    EPAM Systems
    http://www.NetWeaverTeam.com

  • From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?

    From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?

    Hi,
    Use NVL or COALESCE:
    NVL (col_a, col_b)
    Returns col_a if col_a is not NULL; otherwise, it returns col_b.
    Col_a and col_b must have similar (if not identical) datatypes; for example, if col_a is a DATE, then col_b can be another DATE or it can be a TIMESTAMP, but it can't be a VARCHAR2.
    For more about NVL and COALESCE, see the SQL Language manual: http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions119.htm#sthref1310
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • How do you use user defined error messages in Value Help?

    Hi,
    I'm currently working on a Modifiable Value Help Selector in Web Dynpro Java, and I want to use a user defined error message when I validate the values entered by a user. Currently, it's returning its default error message ("Character <string> does not match...").
    Since the project requires a different error message, is there a way to override the default error message and use my defined error message instead?
    Thanks!

    Hi Angelo,
    I am not sure why message area is showing both Custom and inbuilt messages but you can try the following:
    i guess you must be using reportContextAttribute exception for showing Error messages on the input fields as well.in that case you can disable the message area so messages will appear only on the Context level ie; on input fields.
    For other messages apart from validation messages you can enable the message area before reporting the exception.
    make sure the boolean context variable which will be used for enabling and disabling the message area should have Readonly property set as true.
    I am not sure whether this is the only solution for this but you can try and see if it works.
    Siddharth

Maybe you are looking for

  • Looking for more samples of spry xml data in use

    I was curious if there's a resource out there that shows more samples of using the spry xml data widget. Almost like a template or sample gallery. Am I dreaming?

  • Video Streaming from Server

    My configuration at school: 20 iPads connected by Wifi to Server ( Mac Mini Server ML ) So i can upload and download iWork-Documents via WebDav. This document pool works fine My next idea is to set up a media pool. I download a lot of relevant videos

  • Maximum size of a Java String

    Hello Can anyone please tell me what would be the maximum size for a java string.... Thanks Tapan

  • AVCaptureDevice adjustingExposure is False but captured image is dark

    The facetime camera is supposed to automatically set exposure but the adjustingExposure parameter of AVCaptureDevice is always "NO" and the observer is never called. So my app does not now when it's safe to capture the image. I've described my code i

  • Transform XML without validating

    Hi, I use Xalan to transform an XML file. I use Tranformer.class, I just want to tranform the XML without validating the file. In the parser class, you can use setValidate to avoid or not the validating action. Do you know how to do the same with Tra