TableView: sort="server" with iterator-generated cell content

I have an htmlb:tableView that uses an iterator and sort ="SERVER".
In one of the columns, I change the text that is displayed a little bit in RENDER_CELL_START of the iterator.
  DATA lr_text  TYPE REF TO cl_htmlb_textview.
  FIELD-SYMBOLS <fs_row>  LIKE LINE OF me->t_bla.
  ASSIGN p_row_data_ref->* TO <fs_row>.
  CASE p_column_key.
    WHEN 'MY_FIELDNAME'.
      CREATE OBJECT lr_text.
      lr_text->id     = p_cell_id.
      lr_text->text   = me->get_name( <fs_row>-id ).
      p_replacement_bee = lr_text.
Now, if I click on the sort icon of the column, the table is sorted by the field 'MY_FIELDNAME', but not by the actual content of the column.
How would I achieve that?

this sounds almost possible.
I cannot write the new value into the original field of the table though, because I cannot be sure that the datatypes fit to each other and because I stil need the original values.
But I could of course add some more fields to the table structure (which I would not like so much), loop at the table before I use it in the tableView and write the new values into these fields.
Then, I wouldn't even need RENDER_CELL_START at all.

Similar Messages

  • TableView : sort = "SERVER" ...does not work for "TIME"

    Hi,
    TableView sort = "Server" works automatically for "Date" Fields and "Text" Fields.
    But it does not work for "Time" field with data element "CDUZEIT". It shows the below error message:
    Note
    The following error text was processed in the system IFD : Invalid sort field type in "SORT ... AS TEXT".
    The error occurred on the application server ifdmain_IFD_01 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Form: IF_HTMLB_ELEMENT_DELEGATED~DO_AT_END of program CL_HTMLB_TABLEVIEW============CP
    Form: DELEGATED_END of program CL_HTMLB_ELEMENT==============CP
    Form: IF_BSP_ELEMENT~DO_AT_END of program CL_HTMLB_TABLEVIEW============CP
    Form: ONLAYOUT of program CLO27OLHO7EA9KVWPONPDC2NLTDFHCP
    Form: %_ONLAYOUT of program CL_O27OLHO7EA9KVWPONPDC2NLTDFHCP
    Form: DO_REQUEST of program CL_BSP_PAGE===================CP
    Form: CALL_VIEW of program CL_BSP_PAGE_BASE==============CP
    Form: CALL_VIEW of program CL_BSP_CONTROLLER=============CP
    Form: DO_REQUEST of program ZCL_ZPR_C_ACTION_LOG==========CP
    Form: DO_REQUEST of program CL_BSP_CTRL_ADAPTER===========CP
    Thanks and Regards,
    Bindiya

    Welcome to SDN.
    This problem and solution to it is exaplined in the following oss note number.
    <a href="https://service.sap.com/~form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=893210&_NLANG=E">893210</a>
    Regards
    Raja

  • Content Server with File System Based Content Repository

    Typically the SAP Content Server is installed with a SAPDB database. The content server software serves the content from the content repository - the SAPDB database.
    I recall reading a few years ago about (unofficial?) plans from SAP to support file system based repositories, with the content server controlling access. So from a KPRO application perspective, whether the document was in a database or on a filesystem is hidden.
    Can anyone tell me whether this is available yet? And if so, under Windows operating systems?
    Regards
    Andrew

    HI Frank Weitzdörfer  ,
    Could you share about architecture of this scenario ?
    Can I use a simple PC as content repository and keep content server  and R/3 System in the same box and define some link between CS & PC based repository.
    Regards
    Gopal Jaiswal

  • Problem with iterator in tableview

    Hi, Im having a problem with an iterator in a tableview. Sometime ago I use an iterator in a BSP with flow logic, I created the class fill the methods GET_COLUMN_DEFINITIONS and RENDER_CELL_START. And worked fine.
    Now, Im working in another BSP and this time I wanted to use MVC, so I have been reading but cant figure it out what Im missing out.
    In the controller of my page I add the Interface IF_HTMLB_TABLEVIEW_ITERATOR
    I ridefine the methods GET_COLUMN_DEFINITIONS and RENDER_CELL_START (I think that you dont have to redifine GET_COLUMN_DEFINITIONS but did it anyway just in case).
    This is my RENDER_CELL_START
      IF NOT ( p_column_key = 'ICON' ).
        RETURN.
      ENDIF.
      FIELD-SYMBOLS: <row> TYPE ANY, <col> TYPE ANY.
      DATA: ti_results TYPE ZBSPREP_VEND_T,
                 wa_results TYPE ZBSPREP_VEND.
      ASSIGN p_row_data_ref->* TO <row>.
      ASSIGN COMPONENT p_column_key OF STRUCTURE <row> TO <col>.
      wa_results = <col>.
      DATA: html_bee TYPE REF TO CL_BSP_BEE_HTML.
      CREATE OBJECT html_bee.
      LOOP AT it_results INTO wa_results.
        icon = CL_BSP_MIMES=>SAP_ICON( id = 'ICON_GREEN_LIGHT' ).
      ENDLOOP.
      p_replacement_bee = CL_HTMLB_IMAGE=>FACTORY( id = p_cell_id src = icon ).
    In my table view the column ICON doesnt show anything and the rare part is if I put breakpoint in the method and execute the page doesnt stop.
    So I dont know if Im missing something.
    My tableview layout is this:
    <htmlb:tableView id             = "Monitor"
                                     selectionMode  = "SINGLESELECT"
                                     onRowSelection = "rowSelection"
                                     table          = "<%= it_results %>"
                                     iterator        = "<%= iterator  %>"
                                     design         = "ALTERNATING"
                                     filter         = "SERVER"
                                     sort           = "SERVER"
                                     headerVisible  = "FALSE"
                                     footerVisible  = "FALSE">
    I declare a attribute iterator TYPE IF_HTMLB_TABLEVIEW_ITERATOR.
    Someone could give a hand ?

    Solved, I forget to set the attribute of the view in the REQUEST Method.
    result_view->set_attribute( name = 'iterator' value = me ).

  • TableView auto resize columns based on header text width or cell content

    Is there a method on the tableview or tablecolumn to automatically resize based on the content of the hearder or data?
    If not what approach can used used with JavaFX to calculate the string width based on the current font?

    The table column size is inconsistent, I set the columns in the table view and the items in the initialize method. I execute a service and task from a button action that loads data into the list, if I don't reset the columns in the table view in the succeed method then each column is the same width regardless of the content in the cells. If I do reset the table columns in the succeed method then the columns are resized based on content.
    I don't think it should be a requirement to reset the columns just to get the column widths to set based on the content in the cells. Is there a method on the table column or view that will resize the cells based on the cell content? I would prefer the largest value; column header content or the longest cell content for a column.

  • Creating documents with SCMS_DOC_URL_CREATE in SAP Content Server

    Hi there,
    I have a Problem here  with the Knowledge Provider concerning SCMS_DOC_URL_CREATE and hope anyone could help me out.
    For a SAP Records Management document I am calling BAPI_SRM_DOC_CREATE and get a LOIO and a PHIO ID for my new document. The PHIO-ID I pass to SCMS_DOC_URL_CREATE which then creates the URL to put the file on a SAP Content Server with a 3rd party tool. That works totally fine and I can see the file on the Content Server with its metadata,
    Unfortunately SAP Records Management doesn't recognize that a file has been uploaded. When I open the file in the transaction ORGANIZER it has no content and no components.
    Is there any function call I am missing to tell the Records Management document that I have uploaded something?
    All is working fine when I get the uploaded content into NetWeaver with SCMS_GET... and call BAPI_SRM_CHECKIN_DOCUMENT. But of course this is not what I want (transferring the file directly in the local network area where the content server stands, then getting it back to NetWeaver and back again to the content server).
    Any help would really be appreciated.
    Thank you
    Marcus

    Answer: because SCMS_DOC_URL_CREATE is not remote enabled by default.

  • OLM on content server with ias (10.1.3) java.lang.OutOfMemoryError

    Dears,
    we have set up OLM on content server with ias (10.1.3)
    I'm Facing the following error when uploading 100 M learning material although i have changed the server properties of OC4J java heap size to 1024 - 2048 and maxpermsize to 1024
    JSP Error:
    Request URI:/OA_HTML/OA.jsp
    Exception:
    java.lang.OutOfMemoryError
    Thanks,
    Regards.

    PLease refer Husain comments below
    "Please see these docs.
    OLM Content Import Erroring with java.lang.outofmemoryerror for Large Files [ID 368479.1]
    When Importing And/Or Uploading Large Upk-Type Files Fail to Unzip [ID 735653.1]
    Out Of Memory Errors While Uploading Large Content [ID 1130960.1]
    Utilizing Content Servers with Oracle Learning Management [ID 374677.1]
    Thanks,
    Hussein"
    apart from the above what I would normally is, while zipping the file I would exclude heavy content file and upload the file.
    after uploading file, just go and paste excluded file in respective folder.
    sathish

  • Details: Numbers not translating an Excel document with column headings where the text is rotated counter clockwise 90 degrees with-in the cell.  Can you tell me how I can rotate the contents with-in a cell?

    Details: Numbers not translating an Excel document with column headings where the text is rotated counter clockwise 90 degrees with-in the cell.  Can you tell me how I can rotate the contents with-in a cell?

    Numbers does not have rotated text within cells.  You can place a text box over the cell that has rotated text but you cannot rotate text within a cell.

  • Configure content server with  DMS

    i have a content server setup by BASIS team , i need to use this server as a storage category for DMS to store Documents on it .
    what is the required configurations to integrate the content server with DMS . 

    Dear Reda,
    for this information please see the online documentation at
    Knowledge Provider (BC-SRV-KPR) - SAP Library
    SAP Library - SAP Content Server
    I hope that this could answer your questions and help your basis team.
    Regards,
    Christoph

  • Use JSP update MSSQL server with Chinese content

    Hi,
    I am using weblogic 7.0 server
    win2k english version with Trad.Chinese support. Default encoding is en.
    MS SQL server with database collate in Chinese_Taiwan_Stroke
    I can use SQl server's query analyser to insert Chinese characters
    and after modifying
    web.xml and weblogic.xml
    to include InputChar as Big5 and encoding as Big5
    I can also use JSP's getParameter() to get Chinese characters from form
    input.
    Now the problem is,
    when I use JSP to execute a UPDATE or INSERT statement to the database, and
    if the SQL statement contains chinese characters as content
    (like INSERT into table1 (field1) values ('some chinese characters'))
    the statement is executed without error,
    but the content updated in SQL server becomes "???" for all Chinese
    characters.
    Would anyone please kindly help? Thanks!

    Hi,
    Have you checked that your DOS panel that starts your windows is correctly
    set ? (see CHCP values)
    I guess that can have some influence on the Java processes when updating and
    insterting.
    Best regards
    Nohmenn BABAI
    "newsgroups.bea.com" <[email protected]> a écrit dans le message de
    news: [email protected]..
    Hi,
    I am using weblogic 7.0 server
    win2k english version with Trad.Chinese support. Default encoding is en.
    MS SQL server with database collate in Chinese_Taiwan_Stroke
    I can use SQl server's query analyser to insert Chinese characters
    and after modifying
    web.xml and weblogic.xml
    to include InputChar as Big5 and encoding as Big5
    I can also use JSP's getParameter() to get Chinese characters from form
    input.
    Now the problem is,
    when I use JSP to execute a UPDATE or INSERT statement to the database,and
    if the SQL statement contains chinese characters as content
    (like INSERT into table1 (field1) values ('some chinese characters'))
    the statement is executed without error,
    but the content updated in SQL server becomes "???" for all Chinese
    characters.
    Would anyone please kindly help? Thanks!

  • MicroSoft Content Management Server with WL Portal 10

    Hello,
    Has anyone got experience with integrating MS Content Management Server with the BEA WL Portal 10?
    i need develop a custom SPI?
    Comments, Issues, opinions?
    Best Regards,
    Zarco

    ------- Pallav Tandon wrote on 1/18/05 1:37 PM -------Cam you elaborate more on the type of integration you are looking for.WE have done integration at portlet level...crawler level etc for MCMS .. I can share my experiences if you can provide some direct queries
    Hi Pallav, we are also contemplating integration of MSCMS 2002 with plumtree. Can you describe what types of integration you have done?
    - Brandt

  • Problem sorting JTable with custom cell editor

    Greetings,
    I have created a JTable with a JComboBox as the cell editor for the first column. However, I couldn't simply set the default cell editor for the column to be a JComboBox, since the values within the list were different for each row. So instead, I implemented a custom cell editor that is basically just a hashtable of cell editors that allows you to have a different editor for each row in the table (based on the ideas in the EachRowEditor I've seen in some FAQs - see the code below). I also used a custom table model that is essentially like the JDBCAdapter in the Java examples that populates the table with a query to a database.
    The problem comes when I try to sort the table using the TableSorter and TableMap classes recommended in the Java Tutorials on JTables. All of the static (uneditable) columns in the JTable sort fine, but the custom cell editor column doesn't sort at all. I think that the problem is that the hashtable storing the cell editors never gets re-ordered, but I can't see a simple way to do that (how to know the old row index verses the new row index after a sort). I think that I could implement this manually, if I knew the old/new indexes...
    Here's the code I use to create the JTable:
    // Create the Table Model
    modelCRM = new ContactTableModel();
    // Create the Table Sorter
    sorterCRM = new TableSorter(modelCRM);
    // Create the table
    tblCRM = new JTable(sorterCRM);
    // Add the event listener for the sorter
    sorterCRM.addMouseListenerToHeaderInTable(tblCRM);
    Then, I populate the column for the custom cell editor like this:
    // Add the combo box for editing company
    TableColumn matchColumn = getTable().getColumn("Match");
    RowCellEditor rowEditor = new RowCellEditor();
    // loop through and build the combobox for each row
    for (int i = 0; i < getTable().getRowCount(); i++) {
    JComboBox cb = new JComboBox();
    cb.addItem("New");
    //... code to populate the combo box (removed for clarity)
    rowEditor.add(i,new DefaultCellEditor(cb, i))); //TF
    } // end for
    matchColumn.setCellEditor(rowEditor);
    Any ideas how to do this, or is there a better way to either sort the JTable or use a combobox with different values for each row? Please let me know if more code would help make this clearer...
    Thanks,
    Ted
    import java.util.*;
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.table.*;
    import javax.swing.event.*;
    public class RowCellEditor implements TableCellEditor
    protected Hashtable editors;
    protected TableCellEditor editor, defaultEditor;
    public RowCellEditor()
    editors = new Hashtable();
    defaultEditor = new DefaultCellEditor(new JTextField());
    public void add(int row, TableCellEditor editor)
    editors.put(new Integer(row), editor);
    public Component getTableCellEditorComponent(JTable table,
    Object value,
    boolean isSelected,
    int row,
    int column)
    editor = (TableCellEditor) editors.get(new Integer(row));
    if (editor == null)
    editor = defaultEditor;
    return editor.getTableCellEditorComponent(table,
    value,
    isSelected,
    row,
    column);
    public Object getCellEditorValue() {
    return editor.getCellEditorValue();
    public boolean stopCellEditing() {
    return editor.stopCellEditing();
    public void cancelCellEditing() {
    editor.cancelCellEditing();
    public boolean isCellEditable(EventObject anEvent) {
    return true; //TF
    //return editor.isCellEditable(anEvent);
    public void addCellEditorListener(CellEditorListener l) {
    editor.addCellEditorListener(l);
    public void removeCellEditorListener(CellEditorListener l) {
    editor.removeCellEditorListener(l);
    public boolean shouldSelectCell(EventObject anEvent) {
    return editor.shouldSelectCell(anEvent);
    -------------------

    Well, I found a solution in another post
    (see http://forum.java.sun.com/thread.jsp?forum=57&thread=175984&message=953833#955064 for more details).
    Basically, I use the table sorter to translate the row index for the hashtable of my custom cell editors. I did this by adding this method to the sorter:
    // This method is used to get the correct row for the custom cell
    // editor (after the table has been sorted)
    public int translateRow(int sortedRowIndex)
    checkModel();
    return indexes[sortedRowIndex];
    } // end translateRow()
    Then, when I create the custom cell editor, I pass in a reference to the sorter so that when the getTableCellEditorComponent() method is called I can translate the row to the newly sorted row before returning the editor from the hashtable.

  • How to configure Content server with Oracle Portal

    I am working on oracle portal using JDeveloper 11.1.1.5.0. I need to configure Content server to work with UCM. Which content server version should i use and what basic steps required to configure it.
    OS environment is Windows XP SP3.
    Database server is Oracle 10gR2

    Hi
    "I need to configure Content server to work with UCM." - I am not clear on this .
    UCM is content server .
    Now if you are looking to have UCM contents rendered on Oracle Portal then you will need to use Content Portlet Suite .
    Hope this helps .
    Thanks
    Srinath

  • Moving DP Content to a New Server With Same Name

    We are currently in the middle of a server OS refresh from 2k8 to 2k12 R2. Some of the servers are DPs so I need to move the content from one server to another. The big problem is that the new server must have the same name.
    I've read this thread http://social.technet.microsoft.com/Forums/en-US/1ffcaa47-9bf8-476d-965e-28350a6bef1b/move-content-from-old-dp-to-new-dp-at-same-remote-site?forum=configmanagerapps which kind of covers my issue but I presume this person was going to
    a server with a new name.
    Has anyone done this? Is it possible?
    Unless there is something clever the only way I see to do this is to uninstall the DP role from the current server, remove the current server from the domain, add the new server with the same name, re-install the DP role and then re-distribute all the content
    to the new server. I'd rather not do this as the DP is on a remote site so all the content will be going over the WAN.
    I am running SCCM 2012 SP1 CU3.
    Any ideas?

    Hi,
    >>So can I pre-stage from the old server to the new server or does the pre-staging have to be done from the site server?
    Yes, you could prestage content from the old server to the new server. Prestaged content files could be created from Configuration Manager Administrator Console.
    >>What is the order of the process?
    The following blog could help you to prestage content.
    http://blogs.technet.com/b/inside_osd/archive/2011/04/11/configuration-manger-2012-content-prestaging.aspx
    Best Regards,
    Joyce
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Is it possible to use wildcards to match cell contents in an if statement?

    I need to return a ID along with some other information on a page by page basis, so that the information comes out linked by position.  I use a couple of loops and if statements to navigate through the document.  I am able to use exact matches of cell contents which is fine when the contents doesn't vary.  But the IDs, though they have a similar pattern, are all different. In a menu driven search, I am able to find what I need with '150^9^9^9^9^9-^9^9^9' But when I try putting this (or any number of [0-9], *, ? combinations) it fails.  Is it possible to use wildcards?  The symbol used for the match (==) makes me suspect that it is not possible and that only literal, exact matches will work.  But I wanted to check with the experts before giving up.
    Thanks
    pcbaz

    Thanks for the input.  You're right, a GREP search is much more efficient.  But what I'm trying to do and the circumstances here don't allow me, I think,  to go that route. I am trying to generate a list of values coming from several textframes on a single page and have them come out so that I can tell which values belong together.
    I'm using an inherited document with masters that were created 'manually';  the index numbering for textframes and tables is random. I navigate through the pages, looping through textframe indices asking ' does this textframe exist?' If so, I ask if it is a table -- if no, it is a simple textframe and I ask about the ID, if yes, I ask if the contents of cell (0,0) (invariant position and contents) are equal to the table I want..  I am sending the ID and other pieces of information from the table to one row of a new table on a new page.  So the ID and other information from a single page are linked by being in the same row.
    I know this a little 'off-normal' -- I'm using the search to navigate through the document and find things by location the way you do with a spreadsheet.  I have devised a work-around that helps me get around the fact that the ID is not invariant.  I create a list of the (exact) IDs from another document, equating them to a variable ('a').  I then loop through the list of IDs and ask if the contents of the textframe is equal to 'a'..This works o.k, unless there happens to be an extra space, a different kind of hyphen, etc. It would be so much easier if I could use the wildcards that work in a menu-driven text or GREP search in script just to ask about the contents of the textframe.
    Thanks again
    pcbaz (Peter BIerly)
    P.S. we have since rewritten the masters so this problem will not exist in the future -- we now know exactly which textframe and/or table indices to refer to to get any particular bits of information and don't need to ask questions about the contents.

Maybe you are looking for