SE80 problem in ECC with custom function groups

We are in the process of upgrading from 4.64 to ECC 6 and have encountered an unusual situation.
When we bring up a custom function group in SE80, we can no longer see the custom includes in the include section.  We can see all other sections.  We can still use SE38 to look at an include.  The automatically-generated includes are there, such as the TOP, F01 and UXX, but see none of the ones that go with the function modules we've created.  When we look at the UXX include, we can see each of the function modules with the include it belongs to.  These are function groups that existed in the 4.64 system; they are not new to the ECC system.
We've tried rebuilding the object list at the function group and package levels.  We receive no errors and the processes work fine.
Maybe there is a setting somewhere that needs to be updated?

See the solution that Srini has suggested in this thread
OA Framework & JTT Request Parameters
you need to use jtfcrmchrome.jsp to navigate between JTF and OA pages.
Thanks
Tapash

Similar Messages

  • Import Custom Function Group

    Hello,
    We modified an ESS Webdynpro application by importing a new Z Custom Function Group and changed the bindings to point to it....we didn't checkin the activity after that but the Z Model was added to the DTR when I checked in the DTR perspective with a blue hut icon along with the class files....I just want to know what des it signify...? and why was the Z Model added to the DTR...?
    Any help would be highly appreciated...

    Anil,
    When you create a model it will ask you to create activity or shows the existing activity and when you select that it automatically adds all the files to DTR and you can check this in the General Output view in the bottom right corner

  • Could not find Model while pointing to a custom Function Group

    Hello ,
    I am on EP7.0 ERP05 NW04s and trying to modify ESS Address application  to point to a custom function group rather than the standard one . When I tried to do that by changing the mapping for the ReadInfotype I got certain compilation errors ,I fixed those and then got the following error at runtime:
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Couldnt find info for class com.sap.xss.hr.per.us.address.custom_model_custom.Zhrxss_Per_Read_P0006_Us_Input in model com.sap.xss.hr.per.us.address.model.HRXSS_PER_P0006_US@10c7f0a[scope=APPLICATION_SCOPE]
         at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass.associatedModelClassInfo(DynamicRFCModelClass.java:220)
         at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass.elementIndexForFrontendName(DynamicRFCModelClass.java:1359)
         at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass.setAttributeValueAsString(DynamicRFCModelClass.java:664)
         at com.sap.xss.hr.per.us.address.custom_model_custom.Zhrxss_Per_Read_P0006_Us_Input.setInfty(Zhrxss_Per_Read_P0006_Us_Input.java:162)
         at com.sap.xss.hr.per.us.address.fc.wdp.IPublicFcPerAddressUS$IReadInfotypeElement.setInfty(IPublicFcPerAddressUS.java:11824)
         at com.sap.xss.hr.per.us.address.fc.FcPerAddressUS.readRecord(FcPerAddressUS.java:271)
         at com.sap.xss.hr.per.us.address.fc.wdp.InternalFcPerAddressUS.readRecord(InternalFcPerAddressUS.java:692)
         at com.sap.xss.hr.per.us.address.fc.FcPerAddressUSInterface.readRecord(FcPerAddressUSInterface.java:150)
         at com.sap.xss.hr.per.us.address.fc.wdp.InternalFcPerAddressUSInterface.readRecord(InternalFcPerAddressUSInterface.java:230)
         at com.sap.xss.hr.per.us.address.fc.wdp.InternalFcPerAddressUSInterface$External.readRecord(InternalFcPerAddressUSInterface.java:306)
         at com.sap.xss.hr.per.us.address.overview.VcPerAddressUSOverview.onBeforeOutput(VcPerAddressUSOverview.java:267)
         at com.sap.xss.hr.per.us.address.overview.wdp.InternalVcPerAddressUSOverview.onBeforeOutput(InternalVcPerAddressUSOverview.java:275)
         at com.sap.xss.hr.per.us.address.overview.VcPerAddressUSOverviewInterface.onBeforeOutput(VcPerAddressUSOverviewInterface.java:158)
         at com.sap.xss.hr.per.us.address.overview.wdp.InternalVcPerAddressUSOverviewInterface.onBeforeOutput(InternalVcPerAddressUSOverviewInterface.java:140)
         at com.sap.xss.hr.per.us.address.overview.wdp.InternalVcPerAddressUSOverviewInterface$External.onBeforeOutput(InternalVcPerAddressUSOverviewInterface.java:224)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.callOnBeforeOutput(FPMComponent.java:602)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.doProcessEvent(FPMComponent.java:568)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.doEventLoop(FPMComponent.java:437)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.wdDoInit(FPMComponent.java:195)
         at com.sap.pcuigp.xssfpm.wd.wdp.InternalFPMComponent.wdDoInit(InternalFPMComponent.java:110)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:108)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:430)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:362)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:748)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:283)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:759)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:712)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:261)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    I wonder what's the cause of this ...
    Any help would be highly appreciated.

    Do below things.
    1. Re-import your Model.
    2. Restart your J2ee server
    3. Re-load & Rebuild your project.
    It should work now..
    Raja T
    Message was edited by:
            Armin Reichert

  • Problem in discoverer  with analytic function created non-additive YTD

    I have problem with discoverer desktop which show me wrong ytdact, ytdbgt figure after i rollup/pivoting
    on custom folder i did in discoverer admin:
    SELECT a.year, a.month, c.deptno, b.glaccount, bgt.mthbgt, bgt.ytdbgt, bgt.fullbgt, bgt.lastyr_fullbgt,
    act.mthact, act.ytdact
    FROM (
    SELECT
    a.amount mthbgt,
    SUM(a.amount) OVER (PARTITION BY ...) fullbgt,
    SUM(a.amount) OVER (PARTITION BY ...) ytdbgt,
    LAG(SUM(a.amount),1) OVER (PARTITION BY...) lstyr_fullbgt
    FROM gltrans_bgt a, gl_master b, dept c
    WHERE a.glaccount=b.glaccount AND a.deptno=c.deptno GROUP BY a.year, a.month, c.deptno, b.glaccount
    ) bgt
    FULL OUTER JOIN
    SELECT a.year, a.month, c.deptno, b.glaccount,
    a.amount mthact,
    SUM(a.amount) OVER (PARTITION BY...) ytdact,
    LAG(SUM(a.amount),1) OVER (PARTITION BY...) lstyr_ytdact
    FROM gltrans_act a, gl_master b, dept c
    WHERE a.glaccount=b.glaccount AND a.deptno=c.deptno
    GROUP BY a.year, a.month, c.deptno, b.glaccount
    ) act
    ON
    bgt.year=act.year AND
    bgt.month=bgt.month AND
    bgt.deptno=act.deptno AND
    bgt.glaccount=act.glaccount
    In discoverer desktop, sometime i would like to remove deptno or month to see the rollup figure. But it seems discoverer tried to sum the ytd to give me wrong figure.
    I know that to ask oracle rewrite the query in order to roll up the figure, one may need to create dimension and specify the hierarchy for the related .
    Anyway to do on this MV so that oracle can rewrite the query for me automatically?

    I suspect if your FY runs not from Jan - Dec, then someone has had to come to grips with this before and has created some kind of custom FUNCTION to determine the fiscal year from the date entered. Or maybe a table that populated with the same info.
    Nevertheless, if there isn't one, then you'd just change the TRUNC(SYSDATE,'YYYY') logic to your fiscal year with a direct calculation.
    ie:
    calculation: what_fiscal_year
    CASE WHEN to_char(sysdate,'MMM') IN ('JAN','FEB','MAR','APR','MAY','JUN','JUL','AUG','SEP') THEN to_char(sysdate,'YY')
    WHEN to_char(sysdate,'MMM') IN ('OCT','NOV','DEC') then to_char(sysdate,'YY')-1
    ELSE '99' END
    Something like that - I haven't tested it so treat as pseudo-code first (ie: the last to_char may need to have a to_char(to_number(to_char instead to substract the 1 but might work - Oracle's good with powerful date functions). It should give you an idea of what I'm referring to.
    So once each record has an associated FY either by a calculation such as shown or by a calculation calling your corporate FY function, you just do the same thing as described early (ie: range between FY and FY-1).
    Russ

  • How to point to a Custom Function Group

    Hello,
    I am on EP7.0 ERP05 NW04s and trying to modify ESS Address Application .The standard application points to the standard Function group HRXSS_PER_P0006_US and I want to point to a Custom(a copy of it) with name ZHRXSS_PER_P0006_US.. What's the right procedure to do it.....?
    Any help would be highly appreciated.

    Hi Subash,
    I really doubt wether we can achieve this, i mean pointing a standard webdynpro to Custom RFC instead of Standard RFC.
    If you want to use standard RFC  along with Z, this is possible. But modifying the existing model and pointing it to Z model is difficult, as the standard model nodes and attributes are mapped upto the views. You have to delete the mapping one by one without any error.This is a tedious process....
    Thanks & Regards
    Srikanth

  • Modify standard include of Custom Function Group

    Hi experts!
    I have a include LZFG_VT00 into ZFG Function group.
    SAP created this include when I set Table maintenance generator in SE11 for table ZFG_TABLE1.
    SAP wrotes this code in include automatic:
       view related data declarations
      generation date: 13.08.2007 at 13:17:25 by user DJLU
      view maintenance generator version: #001407#
    ...processing: ZFG_TABLE1......................................
    DATA:  BEGIN OF STATUS_ZFG_TABLE1                    .   "state vector
             INCLUDE STRUCTURE VIMSTATUS.
    DATA:  END OF STATUS_ZFG_TABLE1                    .
    CONTROLS: TCTRL_ZFG_TABLE1
                TYPE TABLEVIEW USING SCREEN '0001'.
    .........table declarations:.................................
    TABLES: *ZFG_TABLE1                    .
    TABLES: ZFG_TABLE1                     .
    The problem is:
    Table ZFG_TABLE1 is deleted.
    View  ZFG_TABLE1 is deleted.
    But, you can see, include LZFG_VT00 declares ZFG_TABLE1 and I can not change it because is a SAP standard program.
    Any suggestions?
    A lot of thanks in advance.
    Regards.
    djlu

    Hi,
    IF the table is deleted, then goto SE80 & delete the corresponding function group as well.
    Best regards,
    Prashant

  • Doubt with Customer pricing group

    Hi ,
              I have  maintained a customer pricing group in customer master. say x is my customer so i maintained  c.p.g as A1(regular cust).  so when ever mr x place an order he gets some discount  which i am maitaining in condition type k020 . so now i create a new material in the same sales area but i dont want to  give Mr x any kind of discount.. not ever k020 disc..  how do i do this ..  becoz by default this cus belongs to group A1.
    Any solution ??
    Edited by: jagadisha14 on Jul 14, 2009 6:16 PM

    Hi jagadisha14,
                  Well, in your case if you don't want to determine in all cases the condition type K020 when your c.p.g is A1 you should create a condition table for that condition type K020 with an additional field to distinguish for which materials you want the discount, this field can be the material pricing group or the material number or other, it should be a field with different value between these material, because the same result as now will be get.
    Example: 
    Material XX             YY
    MPG       B1             B2
    So if you have a condition record for K020
    CPG                A1
    MPG                B1
    The condition K020 will be only determine for material XX.
    On other hand I don't think condition exclusion works in this case because it has other functionality.
    Thanks,
    Mariano.
    Edited by: Mariano Adalberto Sorrentino on Jul 14, 2009 7:47 PM

  • Drag-n-Drop problem in DataGrid with custom ItemRenderer

    Hi,
    I am trying to use a DataGrid to set the ordering of a group
    of images.
    I want to do this with a DataGrid which will show me some
    properties of
    the images in different columns including a thumbnail of the
    image. The
    problem is when I use any custom renderer for any column, the
    draging is
    not working. It works fine when I don't use any ItemRenderer.
    My code looks something like this:
    <mx:DataGrid dragEnabled= "true" dropEnabled= "true"
    dragMoveEnabled= "true">
    <mx:columns>
    <mx:DataGridColumn headerText="Thumb" itemRenderer=
    "component. GridImageRenderer"/>
    <mx:DataGridColumn headerText="Current name" width="100"
    itemRenderer= "component. NameRenderer" />
    <mx:DataGridColumn headerText="New name" width="150"
    dataField="nameNew" />
    </mx:columns>
    </mx:DataGrid>
    Can anyone please give me any clue how to fix this?
    Regards,
    ~ Arif

    Hello again, BinaryDigit.
    I thought we need to apply Drag n drop API for this case.
    Without wasting too much time,
    I tried out as your source code from the previous reply,,,
    Instead of getting it clearly, I got another Confusion... (pardon me)
    Let me clarify this with the examples given,
    I try to adopt previous source code
    and it was this detail;
    1) Taking the X and Y coordinate (from the mouseEvent) Plus jLabel1 coordinate (both X and Y).
    2) Positioning a Coordinate taken to JLabel1
    3) Passing the Coordinate taken to jLabelX, and jLabelY.
    The problem found was;
    if we make 3rd become comments, now the jLabel1
    could works!
    I mean, jLabel1 could be dragged to another Coordinate (by dragging it to another location)
    But,
    if we un-comments the 3rd source code,
    The effect would be no movement of the jLabel1.
    BinaryDigit, is this related to the layout you mentioned before?
    Correct, DarrylBurke! :D
    I thought also the same thing,
    but setLocation() give me another Confusion....
    the coordinate seems taking its basement as a reference.
    I mean, the jLabel Coordinate's is referenced
    from the panel where the jLabel is attached to,
    rather than the Coordinate's of the base jFrame (main base -what should I call this?)
    Sorry, the Details number three (3) is my preference, Since I wanted to see the X, Y movements also.

  • Queries with custom functions

    Hi, Oracle gurus,
    I experienced recently an issue with SQL performance when playing with queries using PL/SQL functions.
    Let’s look at the following query:
    SELECT my_package.my_function(x)
    FROM Xvalues
    This query returns values calculated by a PL/SQL function “my_function” in “my_package” package. The function performs some CPU intensive computations so that it takes it approx. 1 second to return a value. If the “Xvalues” table contains 100 rows then it takes Oracle 100 seconds to complete the query. OK.
    Now I want to filter only non null results so that my query may look as:
    SELECT y
    FROM (
    SELECT my_package.my_function(x) y
    FROM Xvalues
    WHERE y IS NOT NULL
    It was surprising for me that it took Oracle ca. 200 seconds to complete this query, twice as long as the original one. I believe that the optimizer resolves this query to something like this:
    SELECT my_package.my_function(x) y
    FROM Xvalues
    WHERE my_package.my_function(x) IS NOT NULL
    When processing such a query Oracle first evaluates the WHERE clause to decide to return output values specified in the SELECT clause or not. That’s logical in most situations, but in this particular case it leads to longer execution time.
    What I do to workaround this problem is splitting the query. First I put all values into a temporary table using
    INSERT INTO TempTable
    (SELECT my_package.my_function(x)
    FROM Xvalues)
    and then select non null results with another query
    SELECT y
    FROM TempTable
    WHERE y IS NOT NULL
    The whole execution time shrinks to original ca. 100 seconds what I wanted to achieve. Nevertheless I am not satisfied with this solution because it introduces some intermediate steps. This is only a simplified example but in fact my query is much more complex, consists of many nested subqueries, etc. and this approach – although effective – would require dozens of temporary tables and make the whole query unclear.
    I wonder if there is a simpler solution possible, for example to have one single hierarchical query like above one and force Oracle first to fully process the nested subquery and then the embracing one? The goal is to decrease waiting for filtered results down to original 100 seconds (or a bit longer) …
    Any suggestions will be greatly appreciated!
    Greg

    Maybe Tom Kyte's "trick" of the "select pl_sql_function () from dual" to invoke scalar subquery caching can help you:
    select ename
      from emp, dept
    where (select dname_lookup(emp.deptno) from dual) = 'SALES'
       and dept.deptno = 30
       and emp.deptno = dept.deptno;http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1547006324238
    As Tom says, in 11g you'll be able to cache that function (new 11g feature) which removes the need for the "trick":
    Oracle® Database PL/SQL Language Reference 11g Release 1 (11.1)
    - 8 Using PL/SQL Subprograms
    -- Using the Cross-Session PL/SQL Function Result Cache
    http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28370/subprograms.htm#BABFHACJ
    "On the PL/SQL Function Result Cache" by Steven Feuerstein
    http://www.oracle.com/technology/oramag/oracle/07-sep/o57plsql.html
    Regards,
    Zlatko

  • Problem in Query with JOIN Function in OCRD CRD1 OCPR tables

    Hello Dear Forum Users,
    I want to make a query which shows me per business partner from OCRD - Addres; CRD1 - Delivery Address and from OCPR - Contactperson information
    Is it possible to show it in one row per Business Partner. Now I get (the classic problem) of several rows and a duplication of the contact persons per (delivery) address.
    My query is:
    SELECT T0.[CardCode], T0.[CardName], T1.[Address], T1.[Street], T1.[ZipCode], T1.[City], T1.[Country], T1.[U_TelNr], T1.[U_MobNr], T1.[U_OpenTijd], T1.[U_LosIns_1], T1.[U_LosIns_2],T2.[Title],  T2.[Name] as 'Voornaam', T2.[Address] as 'Achternaam', T2.[Position] as 'Functie', T2.[Tel1], T2.[Cellolar], T2.[E_MailL], T2.[BirthDate] FROM OCRD T0 LEFT OUTER JOIN CRD1 T1 ON T0.CardCode = T1.CardCode LEFT OUTER JOIN OCPR T2 ON T0.CardCode = T2.CardCode
    Can you help me ?
    Jos Dielemans - Maastricht
    Edited by: J. Dielemans on Apr 29, 2011 4:28 PM
    Changed the query with Left Outer Join

    I have found the solution myself:
    By using the Union All function I could combine two queries. Here is the result:
    SELECT
    T0.[CardCode], T0.[CardName], T1.[Address] , T1.[Street], T1.[ZipCode], T1.[City], T1.[Country], T1.[U_TelNr], T1.[U_OpenTijd] , T1.[U_LosIns_1] , T1.[U_LosIns_2]'
    FROM OCRD T0 LEFT OUTER JOIN CRD1 T1 ON T0.CardCode = T1.CardCode
    WHERE T0.[CardCode] >= 'D00000'
    Union all
    SELECT
    T0.[CardCode], T0.[CardName], T2.[Position], T2.[Tel1], T2.[Title],  T2.[Name], T2.[Address], T2.[Position], T2.[Tel1], T2.[Cellolar], T2.[E_MailL]
    FROM OCRD T0 LEFT OUTER JOIN OCPR T2 ON T0.CardCode = T2.CardCode
    WHERE T0.[CardCode] >= 'D00000'
    Order by 1
    Now i got the result I was looking for.

  • Connection to ECC with SAP Logon Group failing

    I'm creating a new system connection to an ECC backend using a logon group (transaction SMLG in ABAP stack).  I have created the connection with the wizard as a SAP_R3_LoadBalancing connection and given it the appropriate Group, Logical System Name, Message Server, Remote Host Tppe and SAP Client.  Also I've given it an Alias.
    SSO is working correctly between the portal and ECC.
    The System Connection Tests > Connection Test for Connectors works, as can been seen::
    Test Connection with Connector
      Test Details:
    The test consists of the following steps:
    1. Retrieve the default alias of the system
    2. Check the connection to the backend application using the connector defined in this system object
      Results
    Retrieval of default alias successful
    Connection successful
    However, if I try to connection to this system with the Alias, it fails.  If I change the alias to a system with a standard R3 connection with a specified hostname, it works.  The /etc/services is correct and contains the appropriate entries.  Any ideas?
    Regards,
    Graham

    Hi Srikishan,
    Thanks for the response. When user from CRM logged in another language than EN for eg. FR, clicks on external link in CRM, takes to EN, only if that language FR is not installed in ECC, else it will take to the same language in which CRM user logged in. This cannot be controlled in SSO configuration. Is this correct?
    In case if FR is installed in both the systems, ie CRM and ECC, but user wants to log only to EN when clicked the external link(to ECC) from CRM, how we can configure this, Is any parameter can control or SSO setup configuration available? Please advice.
    Regards,
    Shahul Hameed

  • 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.

  • [solved] Compilation problems - virtualbox module with custom 2.6.37..

    Hi all
    I have some problems compiling the vbox drivers on my custom kernel26-n130 (http://aur.archlinux.org/packages.php?ID=32042). From /var/log/vbox-install.log:
    gcc -Wp,-MD,/tmp/vbox.0/linux/.SUPDrv-linux.o.d  -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.5.2/include -I/usr/src/linux-2.6.37-N130/arch/x86/include -Iinclude
    In file included from include/linux/io.h:22:0,
                     from include/linux/pci.h:54,
                     from /tmp/vbox.0/r0drv/linux/the-linux-kernel.h:99,
                     from /tmp/vbox.0/linux/SUPDrv-linux.c:32:
    /usr/src/linux-2.6.37-N130/arch/x86/include/asm/io.h:45:21: fatal error: xen/xen.h: No such file or directory
    compilation terminated.
    I built the kernel without xen support. It's the same config I used with 2.6.36.2. I found a similar problem here: https://bbs.archlinux.org/viewtopic.php … 61#p871261 . I did the same as .:B:. did and commented out the  "#include <xen/xen.h>" line in  the file mentioned above. Compilation  runs fine and virtualbox seems to run with the drivers compiled this way. Though I don't think this is a very elegant way.
    Any other suggestions?
    Vlad
    PS: Sry for the noise!
    Had to install the xen header file...
    Last edited by DonVla (2011-01-08 16:26:36)

    I found the solution on http://communities.vmware.com/thread/29 … 0&tstart=0
    Linux x201 2.6.37-ARCH #1 SMP PREEMPT Fri Feb 18 16:58:42 UTC 2011 i686 Intel(R) Core(TM) i7 CPU M 620 @ 2.67GHz GenuineIntel GNU/Linux
    VMware Workstation 7.1.3 build-324285

  • Where do I send a long list of problems I have with non-functionality with the Lion OSX and new Safari for Lion.

    In the past two weeks I have been documenting my Lion problems.
    First, Arrows gone from finder windows; makes it difficult in comparing long lists of files in folder, or compare documents when reviewing line by line. This is obviously a change by people who do not compare long lists in windows comparing files between versions of projects ... the click to next screen is NOT equal to arrows.
    Second, Finder Redreaw - doesn't. Move files to a fold, if there are a lot of files, they image of the files being moved remains in finder (see attached screen capture) until Finder is restarted and if COPY function is running. last files in Copy queue are not copied.
    Screen capture 5 minutes after moving files to a folder - the selected file images are still in Finder after the move was completed.
    Third, it is SLOW, particularly going to an "Attach file" in email, drawing the content of a folder to select an attachment is long enough for me to go to the kitchen, get a drink and come back. Just like the old days of OS7.
    Fourth, shifting/recentering screen away from where I am working. Several programs, browsers, Adobe Photoshop/inDesign, and dear old Pages re center my screen - not to the center, but if I choose 30 of 70 images in a folder, it will shift … somewhere else in the folder instead of where I just clicked. If I am working on a document in inDesign or PhotoShop it will do the same - the cursor and screen drift elsewhere to find something it has been amused by. Sometimes it is a word, or a file, but often it is off the pastboard and on the etherial pasteboard on which the pages sit. Or if I'm zoomed in on an image, it moves to somewhere else.
    I use a mouse and keyboard, both Apple wireless. I do not use a trackpad, but have a tablet/stylus I am afraid to put into the mix until this crap is stopped.
    Fifth, SAVE AS… is gone. You must unlock, duplicate and edit the duplicate … and must rename it in Finder, or use EXPORT to save as the same format under a new name. SAVE AS… worked. Not broke, why fix it?
    Personal Comment: The problems seem to be the triumph of coked up software engineers ooohing and aaahing over "Wouldn't it be cool if..."   Cool, if they were Microsoft, and required everyone change how they have worked on Macs for the past (almost) three decades. Triumph of brainstorming over functionality.
    Sixth, I can't use Cocoa Booklet, but that really started in OSX 10.6 "Snow Leopard". Most of my X11/Cocoa programs stopped worked about that time. Apple is no longer supporting "open source"?
    But Wait! There's More...
    Seventh, Tonight, trying to download a 1.7 gig archive onto a disk where 280 Gigs were supposedly free, it would not download because, according to the wonderful new Safari and the wonderful new Lion, there is not enough disk space to download a 1.7 gig file in a mere 280 Gigs of free space.
    I might be able to move Snow Leopard onto the iMac, but my deciding factor was that Apple, in its wisdom, decided to make iBook Author unable to run under Snow Leopard. So moving to Snow Leopard means I have lost the ONLY benefit I get from the new computer and the new system.
    This really stinks.

    bigbookjoe wrote:
    In the past two weeks I have been documenting my Lion problems.
    First, Arrows gone from finder windows; makes it difficult in comparing long lists of files in folder, or compare documents when reviewing line by line. This is obviously a change by people who do not compare long lists in windows comparing files between versions of projects ... the click to next screen is NOT equal to arrows.
    Second, Finder Redreaw - doesn't. Move files to a fold, if there are a lot of files, they image of the files being moved remains in finder (see attached screen capture) until Finder is restarted and if COPY function is running. last files in Copy queue are not copied.
    Screen capture 5 minutes after moving files to a folder - the selected file images are still in Finder after the move was completed.
    Third, it is SLOW, particularly going to an "Attach file" in email, drawing the content of a folder to select an attachment is long enough for me to go to the kitchen, get a drink and come back. Just like the old days of OS7.
    Fourth, shifting/recentering screen away from where I am working. Several programs, browsers, Adobe Photoshop/inDesign, and dear old Pages re center my screen - not to the center, but if I choose 30 of 70 images in a folder, it will shift … somewhere else in the folder instead of where I just clicked. If I am working on a document in inDesign or PhotoShop it will do the same - the cursor and screen drift elsewhere to find something it has been amused by. Sometimes it is a word, or a file, but often it is off the pastboard and on the etherial pasteboard on which the pages sit. Or if I'm zoomed in on an image, it moves to somewhere else.
    I use a mouse and keyboard, both Apple wireless. I do not use a trackpad, but have a tablet/stylus I am afraid to put into the mix until this crap is stopped.
    Fifth, SAVE AS… is gone. You must unlock, duplicate and edit the duplicate … and must rename it in Finder, or use EXPORT to save as the same format under a new name. SAVE AS… worked. Not broke, why fix it?
    Personal Comment: The problems seem to be the triumph of coked up software engineers ooohing and aaahing over "Wouldn't it be cool if..."   Cool, if they were Microsoft, and required everyone change how they have worked on Macs for the past (almost) three decades. Triumph of brainstorming over functionality.
    Sixth, I can't use Cocoa Booklet, but that really started in OSX 10.6 "Snow Leopard". Most of my X11/Cocoa programs stopped worked about that time. Apple is no longer supporting "open source"?
    But Wait! There's More...
    Seventh, Tonight, trying to download a 1.7 gig archive onto a disk where 280 Gigs were supposedly free, it would not download because, according to the wonderful new Safari and the wonderful new Lion, there is not enough disk space to download a 1.7 gig file in a mere 280 Gigs of free space.
    I might be able to move Snow Leopard onto the iMac, but my deciding factor was that Apple, in its wisdom, decided to make iBook Author unable to run under Snow Leopard. So moving to Snow Leopard means I have lost the ONLY benefit I get from the new computer and the new system.
    This really stinks.
    http://www.apple.com/feedback/macosx.html

  • Sorting table with custom function

    Hi,
    I am using JDev 11.1.1.4.0
    I have a table with records.
    public Record(int id, String desc) {
    this.id = id;
    this.description = desc;
    I want to implement a sorting function, for the description column, based on the length of the String.
    Any ideas how to do it?

    Hi Pedro,
    In that case the class Record should be "comparable" as you said.
    You can replace the current collection by an ordered list/set, and then implement the interface Comparator.
    This is an example:
    public java.util.TreeSet<Record> getRecords() {
      TreeSet<Record> records = new TreeSet<Record>(new RecordComparator());
      // routine to get the records
      return records;
    class RecordComparator implements Comparator<Record> {
      @Override
      public int compare(Record o1, Record o2) {
        // be careful with null records/attributes!
        return o1.getDescription().length() > o2.getDescription().length() ? 1 : o1.getDescription().length() < o2.getDescription().length() ? -1 : 0;
    }After that, try this:
    http://technology.amis.nl/2012/03/01/adf-11g-programmatically-configuring-sort-for-rich-table/
    AP
    Correction:
    Just add a transient attribute to class Record and try this with that new attribute: http://technology.amis.nl/2012/03/01/adf-11g-programmatically-configuring-sort-for-rich-table/
    AP
    Edited by: Alejandro Profet on Nov 12, 2012 3:32 PM

Maybe you are looking for