Problem in sorting advacned table attribute

Hello everyone,
Would anyone please help me to sort the column of advanced table becoz I need readonly type columns but when I sort in converts into writeable format...
thanks in advance

Hi,
In coloumnHeaderPrompt ther is one property ;Sort All and Initila Staus set them,,,
wht is the style of the columns in AdvancE Table RN...? IF u want only read only make it to "MessageStyledText"
Nani
Edited by: Nani652595 on Feb 24, 2010 10:06 PM

Similar Messages

  • Problem in sorting of table data

    Hi all,
    I had gone through the PDF given (Developing with tables in webdynpro).
    i got struck in creating TableSorter.java file...
    can any one tell me how to create that java file in my project and how to send the colum which i want to sort to TableSorter.java
    Regards
    Padma

    To implement it ,create a value attribute say "sorter" of java native type
    com.sap.tc.webdynpro.tests.utils.TableSorter. (The package name MIGHT be different.)
    In wdDoModifyView,obtaine a refernce to the table objject like
    table = (IWDTable)view.getElement("table ui name);
    and use
    wdContext.currentContextElement().setSorter(
    new TableSorter(table, wdThis.wdGet
    <action name for sort>Action(), null));
    Now inside that action handler,
    wdContext.currentContextElement().getTableSorter().sort(wdEvent,
    wdContext.node<nodename>());
    also chk it
    Re: Sort a table
    sort table columns
    Table Sorting ( In Case Insensitive order)
    null

  • Problem in sorting of table

    Hi Friends:
        Below are the records in my table:
    a...|b|c...... |d.....|e................|f
    100||25000|......|0000012998|0002259999
    100|*|25000|1405|0000012998|0002251405
    100|*|25000|1406|0000012998|0002251406
    100|*|25000|1407|0000012998|0002251407
    100|*|25000|1409|0000012998|0002251409
    100|*|25000|1410|0000012998|0002251410
    100|*|25000|1411|0000012998|0002251411
    100|*|25000|1419|0000012998|0002251419
    100|*|25000|1420|0000012998|0002251420
    100|*|25000|1421|0000012998|0002251421
    a = client
    b=  Leg.Dept Code
    c= Legacy Product
    d= Legacy Location
    e= Cost Center
    f= Profit Center
    Please consider '.' as space.
    The problem arises in the sorting of the table records.  The first record shown in the record set above has the following entry:
    a...|b|c...... |d.....|e................|f
    100||25000|......|0000012998|0002259999
    This is the default entry that is to be used if there is no Leg.Location (where Leg. Location = *).  If there is an entry for the specific Leg. Location, then it should be used prior to using this record.
    Problem appears to be that the ABAP program locates this default record prior to encountering the specific record, for example:
    a...|b|c...... |d.....|e................|f
    100|*|25000|1419|0000012998|0002251419
    Because the program encounters the wildcard one first, even if the Leg. Location that the program is searching for is 1419 (which appears in the table, just lower in the listing) the program returns a Profit Center of 2259999 instead of the correct value of 2251419.
    Is it possible to change the native sort of this table so that the wildcard entries appear at the bottom of the listing instead of the top? If yes, can it be done permanently.
    This would allow the program to encounter the specific entries prior to encountering the wildcard ones.

    Hi Paul:
       Thanks for your response. Can you please look at the code below. Actually I've got this issue in the form of a ticket.
    FORM resolve_product_code TABLES pt_accntmap TYPE gtty_accntmap
                               USING p_structraw TYPE gty_structraw.
      DATA: lwa_structraw TYPE gty_structraw,
            lwa_accntmap TYPE gty_accntmap,
            lt_accntmap TYPE gtty_accntmap.
      MOVE  p_structraw              TO  lwa_structraw.
      lt_accntmap[] = pt_accntmap[].
      LOOP AT lt_accntmap INTO lwa_accntmap.
        CLEAR: lwa_accntmap-accntcompstr,
               lwa_accntmap-fndtype,
               lwa_accntmap-posi2.
        IF lwa_accntmap-z_product CA '*_'.
          TRANSLATE lwa_accntmap-z_product USING '_+'.
         SEARCH lwa_structraw-proddiv FOR lwa_accntmap-z_product.
          IF lwa_structraw-proddiv CP lwa_accntmap-z_product.
          IF sy-subrc EQ 0.
            lwa_accntmap-accntcompstr = lwa_structraw-proddiv.
            lwa_accntmap-fndtype      = '*'.
            lwa_accntmap-posi2        = sy-fdpos.
          ENDIF.
        ELSE.
        Must be a full match to win
          IF lwa_structraw-proddiv EQ lwa_accntmap-z_product.
            lwa_accntmap-accntcompstr = lwa_structraw-proddiv.
            lwa_accntmap-fndtype      = space.
            lwa_accntmap-posi2        = 6.
          ENDIF.
        ENDIF.
        MODIFY lt_accntmap FROM lwa_accntmap
             TRANSPORTING accntcompstr fndtype posi2.
      ENDLOOP.
      IF sy-subrc EQ 0.
      Remove any unresolved entries based on Natural Account Code
        DELETE lt_accntmap WHERE  accntcompstr NE lwa_structraw-proddiv.
      ENDIF.
      pt_accntmap[] = lt_accntmap[].
    ENDFORM.                    " resolve_product_code
    Can you please help me with the exact problem in this code.Or if you can give me some idea. It would be a great help.

  • Problem in sorting Advanced Table

    Hi,
    I unable to sort the data in advanced table.The data in the table is populated from an external LOV.When i set the initial sort sequence attribute of the sortable column of the table it is sorting in desecnding order by default.How to sort the data in the ascending order.Please help me it is very urgent.
    Thanks in advance
    Regards
    Srikanth

    The sorting on the table is done by adding the order by clauase and then re querying the vo.
    However here the data is coming from an LOV not from VO.
    Hence what you need to do is add the order by clause to the VO of the multiselect LOV.
    By making the LOV columns sortable (OR ASCENDING BY DEFAULT) and then sorting them in ascending order, see what comes to the base page?..
    IF sorting on lov does not suffices and the need is to provide sorting on the base table is also needed then my suggestion is to associate the same vo of the lov with the advanced table (or put the same query of the lov vo for the advanced table vo)

  • Sorting WD table

    Hi all,
    I have a small problem with sorting WD tables.
    I have java bean model as datasource for table. In this bean, I have non-string attributes like date, etc. I want to format them, so I've added additional String attribute for every attribute I want to format.
    When i'm click to sort (I use standard TableSorter) by some of additional String attribute (column with original attr. is invisible and I put that invisible column name to sortBy method to achieve correct sorting behaviour), I lost ascending/descending icon on that substituted column...
    Have somebody solution for this?
    Best Regards,
    Michal

    Hi,
    If not how can I turn off sorting on such a columns.
    As far, there is no such provision for table columns!. However in ALV, you can use IF_SALV_WD_SORT~SET_SORT_ALLOWED method to set sort on/off for ALV column.
    Regards,
    Kiran

  • Dynamic Sort on table control

    Hi friends,
    I am having a problem when sorting the table control dynamically based on the fields selectd.
    sorting is not working, when you select multiple fields ( one numeric field and one character field )  I have written code for handling multiple field sort,gettting field names correctly, everything looks fine but internal table is not getting sorted.
    Is it related unicode issue..?
    Any help will be appreciated.
    Sample code:
    loop at tc_control into lc_cols.
      case lc_cols-selected.
             wehn 'X'.
        split lc_cols-screen-name at '-' into gv_tabname gv_fieldname.
        move gv_fieldname gs_struc+lv_off(20)
        add 20 to lv_off.
      endcase.
    endloop.
    if ok_code = 'ASCE'.
      sort itab by (gs_struc-field1) (gs_struc-field2) ..... ascending
    endif.
    Thanks in advance
    Thiru.p

    Hi
    Try using an internal table for the field names..
    Example
    DATA: BEGIN OF ITAB OCCURS 0,
            MATNR TYPE MATNR,
            WERKS TYPE WERKS_D,
          END OF ITAB.
    DATA: ITAB_FIELD(30) OCCURS 0 WITH HEADER LINE.
    DATA
    ITAB-MATNR = 'ABC'.
    ITAB-WERKS = 'ABCD'.
    APPEND ITAB.
    ITAB-MATNR = 'ABC'.
    ITAB-WERKS = 'ABC'.
    APPEND ITAB.
    SORT INTERNAL TABLE
    ITAB_FIELD = 'MATNR'.
    <b>APPEND ITAB_FIELD.</b>
    ITAB_FIELD = 'WERKS'.
    <b>APPEND ITAB_FIELD.</b>
    <b>SORT ITAB BY (ITAB_FIELD).</b>
    LOOP AT ITAB.
      WRITE: / ITAB-MATNR,ITAB-WERKS.
    ENDLOOP.
    Thanks
    Naren

  • Problem of sorting month name in pivot table

    Hello,
    I have a month name that is sorted by month number in my repository.
    When I select Year + month name + measure sorted by year then by month name and I look the result in a table, everything works perfectly but when I switch to a pivot table the sorting doesn't work : the pivot table sorts my month name in an alphabetical order instead of using the month number .... Is it normal ?
    To find a solution, I have added my month number and I have sorted by year then by month number and I have hidden my column month number. This have solved my problem for the pivot table but if I attached a chart to it (by selecting "Chart Pivoted Results"), the label of the bottom axis contains the month number and the month name and I haven't found where I can hide this month number. Why the hidden option only works on the pivot table and not on the pivot chart ? And how I can do that ?
    Thanks in advance for your help.

    No there is no Transient attribute involved , could you please tell me what might cause this error .
    Basically this page is for inserting a record.
    Thanks ,
    Keerthi
    Edited by: user1140193 on Oct 21, 2011 7:15 AM
    Edited by: user1140193 on Oct 21, 2011 7:16 AM

  • Problem with sorting and filtering of table

    Hello,
    using VC 7.1 SP5 I have created [this|http://img232.imageshack.us/img232/2460/screenshotsr0.png] model. The webservice returns a collection of structured elements. The table is meant to display values of top-level attributes. This works as expected.
    However, the table cannot be sorted or filtered. What is the reason for this? How can I fix that?
    I tried to store the result of the web service in a data bridge. That did not succeed.
    Best regards
    Alexander

    Hi Natty,
    How are you trying to sort it?
    I want to be able to sort the table by clicking on the table column headers. Furthermore, I want be able to filter the table by using the built-in table feature. However, table sorting and filtering seem to be disabled for this particular table, whereas other tables in my model provide the desired features.
    Best regards
    Alexander

  • Issue with value of  transient attribute after filtering or sorting a table

    Hi guys,
      i'm using jdev 11.1.1.4.0 .
      i've the use case :
             - a table with a column containing a checkbox to mark the selection of  a row
    <af:column align="center" sortProperty="TemIsChosen" filterable="true"
    sortable="true" id="c6">
    <af:selectBooleanCheckbox value="#{row.bindings.TemIsChosen.inputValue}" autoSubmit="true"
    shortDesc="#{bindings.ServersIndicTempVVO.hints.TemIsChosen.tooltip}"
    id="sbc1"
    valueChangeListener="#{backing_initIndicatorsTemp.onSelectTemp}"/>
    </af:column>
             - i select one or more rows with checkboxes
             - if i filter  or sort the table, the selection of the checkboxes reset to not selected (value false by default).
         I understand that for the framework, it's a normal behavior because for filtering or sorting , it re-executes the query from database. And transient attribute is not persistent, so it goes back to the default initial value "false".
         What i would appreciate, it's that filtering or sorting has no effect on the value of the transient attribute, ie end user selection remains.
          I tried to modify query mode of the ViewObject to filter with in-memory data. It works fine but if you reset filter inputs you can't retrieve correct RowSet. Only new RowSet is stored, old is lost.
           So  now it's the filtering feature that doesn't work as expected.
       How can i implement  my use case withouth the troubles i've described.
    Best regards,
    David

    Hi Frank,
       no it's a view object level attribute inside a read-only view object.
      The view object doesn't use any entity.
      Here is the definition of the attribute in the xml file of the VO, if can help you :
    <ViewAttribute
        Name="TemIsChosen"
        IsSelected="false"
        IsPersistent="false"
        PrecisionRule="true"
        Type="java.lang.Boolean"
        ColumnType="BIT"
        AliasName="VIEW_ATTR"
        SQLType="BIT"
        Passivate="true">
        <Properties>
          <SchemaBasedProperties>
            <TOOLTIP
              ResId="ADD"/>
            <DISPLAYWIDTH
              Value="50"/>
          </SchemaBasedProperties>
        </Properties>
      </ViewAttribute>
    David

  • JDev 10.1.3.0.4 studio problem: table attribute not found in @JoinTable

    Hi,
    I tried to compile a EJB3 application in JDev 10.1.3.0.4 Studio version, but the compiler
    complains about the table attribute of the @JoinTable annotation.
    The following code is not accepted:
    * Retrieve the list of clubs this player played for
    * @return List of clubs this player played for
    @ManyToMany(fetch=EAGER,targetEntity=nl.company.contractadmin.Club.class)
    @JoinTable(table=@Table(name = "CONTRACTPERIOD")
    joinColumns = {@JoinColumn(name = "PYR_ID",
    referencedColumnName = "ID")}
    inverseJoinColumns = {     @JoinColumn(name = "CUB_ID",
    referencedColumnName = "ID")
    public Collection getClubs() {
    return clubs;
    public void setClubs(Collection<Club> clubs){
    this.clubs=clubs;
    This code compiles in the EA release of JDev 10.1.3..
    Can anyone tell me if there is something changed in the implementation of EJB3??

    On the latest build of JDeveloper, the backspace key mapping is still NOT WORKING. I've been trying to fix this since the early access release, but I failed.
    Backspace key is already mapped by default, but still not working.
    Did I missed something during the installation here? The installation documentation said that I should only extract the archive then edit the jdev.conf file to set the JDK to use.
    I already pointed my installed JDK and JDeveloper's JDK but the backspace is still not working.
    Help!

  • MVC Problem with getter method of table attribute in model class

    Hi,
    I am on 620 SP34. I am writing a bsp application with mvc. One of the model classes has an attribute of type table. I use this attribute in a htmlb-tableview and '//MODEL/ZMY_TAB' for data binding. If I try to activate a getter method for this attribute, the application dumps with exception <i>BSP exception: Structure component with name "ZMY_TAB" does not exist</i>. I find the SAP source, that raising this exception (see below). The source code looks like: <i>"I don't support getter methods for tables in attribute path"</i>! The setter method works fine, so I am at a loss. Has anyone of you wrote a getter method for an table attribute in bsp-mvc? Have I to consider anything special?
    Thanks,
    Carsten
    Main Program CL_BSP_MODEL==================CP
    Source code of CL_BSP_MODEL==================CM00Z
    METHOD IF_BSP_MODEL_BINDING~GET_ATTRIBUTE_DATA_REF
           * check if attribute exists for binding!                                   
             if exists_attribute( l_name ) is initial.                                
               return.                                                                
             endif.                                                                               
    * setter or getter defined? Not supported for DATA REF requests            
             if get_getter( attribute_name = l_name ) is not initial.                 
               raise exception type cx_bsp_inv_component                              
                 exporting name = l_name.                                             
             endif.                                                   

    You have two options:
    1. Make your attributes public. It should work fine.
    2. If you need to process the attribute values before it is used, you can make the attribute private but will need three methods
    GET_T_ZMY_TAB that returns the table
    SET_T_ZMY_TAB that sets the values
    GET_M_T_ZMY_TAB that returns DDIC information about the attribute. The same holds good for structures(Change to GET_S_ and GET_M_S_ ) and simple attributes(Change to GET_ and GET_M_).
    The set and get methods are kind of documented at http://help.sap.com/saphelp_nw04/helpdata/en/fb/fbb84c20df274aa52a0b0833769057/content.htm but there is no mention of the GET_M_ methods. I could not find one single document on the Model part MVC.
    Once I added the GET_M_XYZ methods to my attributes, my BSPs started to work fine.
    Cheers
    Sreekanth

  • Problem sorting the table .

    hi
    iam trying to sort the table in ascending
    and descending order ,
    but  iam not able to sort my model node  table .
    below is the code i have written
    and other thing i have created a class called Tablesorter.java
    and  copied the code of the TableSorter present in
      IDE\eclipse\examples   as  i was not able to copy and
    paste the TableSorter Class  ,  in the 
      src\pkg.
    import com.sap.tc.webdynpro.tests.utils.TableSorter;
    if(firstTime)
               view.nowCreateAllCustomExtensionFields();
          IWDTable tab= (IWDTable)view.getElement("Table");
          wdContext.currentContextElement().setCustomerTableSorter(new TableSorter(tab,wdThis.wdGetTableSortAction(),null,new String[] {"Customers") ));     
    in the above coding i am getting error as  Constructor TableSorter  is undefined.
    wdContext.currentContextElement().getCustomerTableSorter().sort(wdEvent,wdContext.nodeCustomers());
    can any one help me out ?

    hi
    thanks for the response 
        i cannot copy the model node data to the value node 
       as  i am performing some operations in the itemlistbox
      and then populating the model node  table  
    and there will be  thousands of  data  , so copying
    the data to the value node will affect the performance
      and other thing is i have one more table of model node
    where i have to perform sorting  , so is there a way
    that TABLESORTING  can be directly performed on the
    model node ,  i have to perform ascending and descending order  sorting on the two tables w.r.t the columns 
    can any one help me out ?

  • EJB3 Problem: table attribute of @JoinTable not accepted in JDEV 10.1.3..

    Hi,
    I tried to compile a EJB3 application in JDev 10.1.3.0.4 Studio version, but the compiler
    complains about the table attribute of the @JoinTable annotation.
    The following code is not accepted:
    * Retrieve the list of clubs this player played for
    * @return List of clubs this player played for
    @ManyToMany(fetch=EAGER,targetEntity=nl.company.contractadmin.Club.class)
    @JoinTable(table=@Table(name = "CONTRACTPERIOD")
    joinColumns = {@JoinColumn(name = "PYR_ID",
    referencedColumnName = "ID")}
    inverseJoinColumns = { @JoinColumn(name = "CUB_ID",
    referencedColumnName = "ID")
    public Collection getClubs() {
    return clubs;
    public void setClubs(Collection<Club> clubs){
    this.clubs=clubs;
    This code compiles in the EA release of JDev 10.1.3..
    Can anyone tell me if there is something changed in the implementation of EJB3??

    Use @JoinTable(name, catalog, schema, uniqueConstraints) instead of @JoinTable(table=@Table())
    http://www.hibernate.org/hib_docs/ejb3-api/javax/persistence/JoinTable.html

  • Unable to set default table attributes in Keynote

    I've been trying to change the default table attributes in one of my themes, and as per the description in the Keynote manual (page 237-8), this should be a straightforward process:
    1) In the slide navigator, create a new slide.
    2) If you're setting up default attributes for a particular master slide (rather than all the masters in the current theme), click Masters in the toolbar and choose the master slide. [I want to change the table attributes in all master slides in the particular theme, I skip this step.)
    3) Place a table on the slide.
    4) Select the table and set its attributes.
    5) Do one of the following: To make the table the default for only the current master slide, choose Format>Advanced>Define Table for Current Master. To make the table the default for all masters slides in the current theme, choose Format>Advanced>Define Table for All Masters.
    6) If you don't want the table on the slide, delete the table.
    Step 1) through 4) is unproblematic, but the second I try to execute step 5), the new formatting is all mixed up, and I am left with a table that looks nothing like the one I have just created in step 4). (Choosing to make the new table layout valid only in the current master doesn't help.)
    Any thoughts on how to sort this out would be greatly appreciated!  I should mention that following a similar procedure for diagrams works like a dream.

    Hi!
              We have same problem!
             The layout can be selected in application, but it is not taken as default.
         We appreciate your feedback
    Best Regards.
    Angelica

  • Issue with Sorting by Custom Attributes

    In our custom SES query application, I am trying to implement sorting at the custom attribute level. I am having difficulty in understanding exactly how to set the options on doOracleOrganizedSearch() to achieve the desired result.
    We have a table based content source and allow a user to search via custom search attribute. We are also going to allow them to sort by custom attribute.
    For example, say we have a Project content source and one of the attributes is "Client Name". Users are going to be able to sort by client name (A-Z and Z-A). I have a prototype working but it only seems to work if I set topN to a very high number.
    I want to bring back the first 10 documents sorted by Client Name A - Z and allowing paging to the next set of sorted results. My prototype works if I set topN to 1000 (more than the # of results) but does not work if I set it to 10 (# of results I want to display per page).
    Below if my code. Note I am not setting the group attribute or the cluster list. Perhaps this is the issue?
    Many thanks in advance!
    OracleResultContainer results = service.doOracleOrganizedSearch
    (this.m_query, // query
    this.m_docsRequested, // topN
    this.m_startIndex, // startIndex
    new Integer(10), // docsRequested
    this.m_dupRemoved, // dupRemoved
    this.m_dupMarked, // dupMarked
    this.m_searchDataGroup, // groups
    this.m_queryLang, // queryLang
    this.m_docLang, // docLang
    this.m_returnCount, // returnCount
    this.m_filterConnector, // filterConnector
    filters, // filters
    this.m_fetchAttributeNames, // fetchAttributeNames
    null, // searchControls
    null, // groupAttr
    this.m_sortAttributes, // sortAttrList
    null); // clusterList

    Hi Nikola,
    in 9.0.1 even if you rewrite the web interface you can't sort files by custom attributes setting a SortSpecification to a Folder. You can only sort by base attributes with getItems(). To get item sorted on custom attributes you must perform a search (a lot more codelines).
    Regards, Alessandro

Maybe you are looking for