Focus on Complex Table ListView

Dear community,
We are trying to make a complex table listview with focus row like a standard object listview but we cannot succeed. Anyone had an example or any experience with that issue?
Thx a lot for answers.
Mx.
Tags edited by: Michael Appleby

Max,
What do you mean that you cannot succeed?  What is the problem exactly?  You cannot display the data, or you cannot get the styles to work on the list?
What platform are you using?  What version of Agentry Client?
Jason Latko - Senior Product Developer at SAP

Similar Messages

  • Populating a complex table from another object collection in Syclo Agentry applications

    Hello Experts,
    I have an object which contains a table data as part of a collection property.
    Can I use this object to insert the data in another complex table? I am unable to use a separate bapi wrapper to populate the complex table in this case.
    As I have seen the existing complex tables in the Work Manager applications, they all get populated at the beginning of the main transmit.
    at this instant, I don't have the data in one of my objects based on which I have to populate my complex table.
    So, after the object is filled using a BAPI call, I have to fill up this complex table.
    Is it possible to populate this table this way?
    Any help will be appreciated.
    Thanks,
    Arihant Kothari

    Arihant,
    Yes.  You can create an Update Complex Table transaction.  It works against the Main Object, but then you choose which complex table you want to update on the transaction.  Add the properties you want to update and populate them.  To populate from your object collection, use "From other object property" for your initial value on a property, then point to the object and property you want to populate from: Whatever Object -> Whatever property.  Use a looping sub-action to loop over your object collection and create/update complex table records with your new transaction.  Finish the original sub-action with an Apply.  Don't apply after each CT record create because that is much slower.  Use a single Apply step after your Loop in the main action.  If the CT record already exists, it will be updated.  If it does not exist, it will be created.
    Jason Latko - Senior Product Developer at SAP

  • Work Manager 6.1 - Complex table Enhancement

    Hi All,
    I had created a custom class for a Complex Table - CodeGroup - which is attached - on top of Work Manager 5.3 Java Code.
    Now we are upgrading to SMP 3.0 and Work Manager 6.1, and this class is throwing this error during transmit:
    JAVA EXCEPTION CAUGHT: java.lang.AbstractMethodError: Missing implementation of interface method "com.syclo.sap.ComplexTableObject.setProperties(Lcom/syclo/sap/jco/JCO$Table;)V"
    I am not sure which method am missing to implement.
    Kindly help.
    Regards
    Ankur
    Tags edited by: Michael Appleby

    Hi Stephen,
    Yes I am using the same call that I had on WM 5.3 on WM 6.1.
    How do I implement the changes without having the source code of WM 6.1?
    I have been pointed to some documentation by SAP, but it is not helping me much.
    Please advice.

  • How to change the sort order of complex table in drop down

    Hi Team,
    I have a complex table which is working but the sort order i want in a different way. How can i change?
    Regards,
    Gupta

    Gupta,
    My screen field definitions are as follows:
    1. Location
    2. Partner
    --In my previous reply, the first screen shot is without any parent index. So it is giving all values in alphabetical order only.
    --After that I created parent index for partner with location, So the partner values are depend on location chosen.
    In my TEST1:
    --I just selected "Andhra pradesh" as location, In partner field drop down it is showing "Ragava" "Suman" "Sunitha" only.
    --Because these are only the values belong to "andhra pradesh" location and these are coming in alphabetical order only.
    TEST2:
    --Here I selected "Gujrat" as location, In partner field drop down it is showing "Avinash" "Mohan" "Suman" which are belong to "Gujrat" location, These are also in alphabetical order only.
    Hope this clears now. Still any query please post.
    Thanks,
    Swaroopa.

  • How to increase width of the complex table column in Agentry?

    I am using Agentry 6.0.38.1 client and Smart service manager 3.0 and Agentry 6.0.32 plugin, developing for Android client
    I increased no of characters for that complex table column in Agentry editor still its width is same in Android device.
    How can I increase the displayed width so that values in that column will not truncate?
    Tags edited by: Michael Appleby

    Hi Merten,
    I'm using Agentry Android client v6.1.4.179 (latest one). In Work Manager Add Component screen, Plant and Item ID fields's edit type is Complex table drop down and Complex table search respectively.
    Now we have requirement to fixed Column Width of this fields. Kindly let me know if there is any way to fix this. if than how?
    Thanks-
    Dipak Jotaneeya

  • How can we give a placeholder to the complex table like "Please Select" in WPF

    How can we give a placeholder to the complex table like "Please Select" in WPF. Actually i have to give a default value like "please select" to the complex table in WPF. I tried with placeholder but its not working.
    Tags edited by: Michael Appleby

    Manu,
    What version of Agentry and WPF client?  If placeholder is not working, it is probably a WPF bug in your version.  There is no other way to do it.  Try it on a current release, and if still broken then file a bug ticket so this can be fixed.
    Jason Latko - Senior Product Developer at SAP

  • Help Needed Tagging Complex Tables

    I am often asked to create accessible versions of PDFs for clients that contain complex tables -- e.g., merged and/or blank cells, multiple levels of subcategory headings. Are there any online resources that might help me understand (a) IF it is possible to create accessible versions of these tables and, if so, (b) HOW to tag them. In the ideal world, we would go back to the original document and revise the table, but that's not always possible.
    For example, a document I am working on currently includes a table that looks something like this:
    Category
    Period 1
    Period 2
    FTE
    $
    FTE
    $
    A. First Heading
        1. First Subhead
            a. Topic A
    34
    45
            b. Topic B
    54
    63
    Subtotal
    108
       2. Second Subhead
           a. Topic A
    etc.
    I understand how to tag the "Period 1" and "Period 2" headings as column headings that span 2 columns, but I'm not clear on how to handle the blank cells and/or the subheadings. Sorry for such an open-ended questions, but I'm not sure where to look - all the documentation I've seen seems to address fairly simple tables. I am using Acrobat XI for Mac.
    Any guidance would be greatly appreciated. Thank you!

    Yes, it is possible to create accessible versions of the these tables. There are several possible solutions.  In the example above, you are correct that Period 1 and Period 2 need to be tagged as <TH> with Span = 2 Column. Scope also needs to be set to Column.  FTE and $ also need to be tagged as TH with Scope = Column. All the cells in Column 1 (A. First Heading, 1. First Subhead, etc.) are <TH> with Scope = Row. 
    Because this is a complex table you need to Associate the table content with these headings using <ID> tags. 
    This is unfortunately where things can get a little time consuming.  The process can be done within Acrobat using the Touch Up Reading Order (TOR) tool (Accessibility Tool Panel). To briefly summarize -- Select the TOR, select the Table, and click the Table Button on the TOR Menu to open up the Table Editor.  The TOR Menu will disappear, and the table will be visible. You can click on individual cells, right click and select Cell Properties. 
    Select one of the header cells, right click and then select Table Cell Properties. There you will see the ID, which is usually something memorable like TD_08934_121.  Changes this to something meaningful like PERIOD_1 and P1_FTE. The name must be unique within the file. 
    Click OK to save and exit the Table Cell Properties window.
    Using the TOR select all of the content cells beneath that header and right click to open the Cell Properties.  Acrobat will let you select more than one cell by using the Shift Key, if there are no conflicting values in Cell Properties. Note: At times you may need to work one cell at a time.
    Once the Table Cell Properties is open, click the plus next to Associate Header Cell IDs and select the appropriate Heading ID that you defined above.
    Repeat until all the content cells are associated with their appropriate column headings, subheadings and row headings.
    That's method 1. 
    Method 2 would be to use the CommonLook plug-in.  Adding Table Cell IDs is CommonLook's strong point, but the price is high and there is a learning curve. And I've experienced some troublesome issues involving borders and shading in some files.  Still if you have Commonlook available it can be a REAL timesaver for tagging complex tables.
    Lastly, there are some tricks and workarounds that would make the structure of this table simple and therefore accessible without all of this.  If you are experienced  working in the Tags Panel in Acrobat. In the example above you could convert the first row of content  Headings Period 1 and Period 2 to Artifacts and then entirely delete that row from the table within the tags panel,  Then add alternative text to the second row of headings so FTE will always read as "Period 1 FTE" or Period 2 FTE" and so forth. Some purists may object to this method, but it would work.
    NOTE: Any of these methods require further checking with a screen reader to ensure the tables are recognized by tables and no mistakes were made in assigning the headings to the cells and I would also check to make sure any blank cells read as "Blank" as they may be mistagged in the tags panel by the authoring application (e.g., MS Word). 

  • Add a standard field in Complex table ctPart

    Hi All,
    I want to add transaction fields (like unloading point) in a complex table ctPart, so that the these fields appear in my search parameters along with other parameters in SAP Work Manager 6.0 App
    I want to know how to link it to the back end. I just have added the fields at agentry end
    I can find those fields in config panel AFVC and RESB tables. I have extended the Part POJO class to get these values in the Component object. But i need these values in complex table also.
    Please help me to proceed

    Vinuta,
    You need to extend the POJO responsible for ctPart CT (look in the config panel parameters for the CT_SAPOBJECT that matches), and make sure your new fields are even available in the BAPI that populates that complex table.  Figure out which BAPI that is by looking up the CT_BAPI_WRAPPER record matching ctParts.  Since your are adding UnloadingPoint, this field must be added to the POJO and must be populated from the BAPI if available.  Use transaction SE37 in SAP to examine the BAPI return table.  If not available, this would require a BAPI code change.
    Jason Latko - Senior Product Developer at SAP

  • Error when working with Agentry Complex table

    Hello Gurus,
    I follow the tutorial Flight Booking and try to load a complex table onto my Agentry client. However, when I transmit from Agentry server, it display the error in the log:
    Exception: 11:20:06 07/24/2014 : 20 (Agentry3), JavaBackEndError (java.lang.NoSuchMethodException: com.syclo.sap.mm.object.VendorCT.<init>(com.syclo.agentry.ComplexTableSession, java.util.GregorianCalendar)),
    VendorCT is the complex table.
    Please help me. Thank  you.

    Hi,
    Create a class handler and bapi wrapper in sap
    Create a mobile data object, assign the class handler and check the active flag for the data object
    Create a bapi wrapper,assign the bapi and check the active flag
    Create a class in java for complex table,make sure the field names are correct
    Create a complex table in agentry , assign the java class created, field name ( make sure they are correct),define indexes(check weather they are mapped correctly to the fields)   
    Check in ate view-toolbar-localization
    Once check weather the above steps are performed correctly
    Thanks & Regards,
    Sravanthi Polu

  • Filtering data in data/complex table before showing it under dropdown in Syclo Agentry applications

    Hello experts,
    I wish to import the data present in a table in ECC and store it in a data/complex table.
    The data in this table would look like as follows:
    Field1                                   Field2
    Characteristic1                    value1
    Characteristic1                    Value2
    Characteristic1                    Value3
    Characteristic2                    Value4
    Characteristic2                    Value5
    Now, I have to pick up the data from this table and o display the data in a dropdown.
    Before I display the data in dropdown, I wish to filter this table so that at any given time, It only displays the data for a particular characteristic.
    So, if a text box in my screen has "Characteristic1" set in it, the dropdown below should display following entries:
    Value1
    Value2
    Value3
    My question is, is it possible to filter the data table dynamically so that the dropdown values can be adjusted?
    as I understand, dropdown fields can ONLY be populated using a data table or a complex table. Is this correct?
    Can I use Java side code to manipulate the entries in data/complex table?
    What would be the best approach to fulfill this requirement?
    Really appreciate your help on this.
    Best,
    Arihant Kothari

    Arihant,
    This is the classic example of a parent / child filtering relationship in the complex table.  You have your Complex table structured perfectly already to fit this use case.  This is best done on in the Agentry application and will work exactly as you describe assuming you have the necessary indexes setup.
    In your complex table you will want to create two indexes.
    An index on Field1 (your parent).  I'll call it Field1Idx (you can call it anything you want)
    An index on Field2 with a Parent index selection of Field1Idx.  I'll call it Field2byField1Idx (the convention is to name it so it indicates what the parent is)
    Now on your screen you have your text box field and your drop down field.  In the properties of your Complex Table Drop Down you will specify:
    Table Index: Field2byField1Idx
    Cascade Parent: text box (select your text box field from the screen.  Can also be set by a rule)
    Display Field: probably Field2 or the description for field two if a code value
    Return Field: Field2
    Now the complex table drop down will use the value in the text box as a filter to show only those records from the Field2byField1Idx index where the parent value matches the value from your text box field.
    Good Luck!
    --Bill

  • Agentry complex table tree additional field

    Hello)
    I added for complex table one field and modified the sql. Now I'm trying to make that field to be displayed in complex table tree. I modified tree format as "%location - %myNewField" but in the Test environment it is shown as "1000 - err:myNewField". What else I need to check? I don't want to modify indexes, cause they are fine as is. I just need additional data to be present.

    ok, I made it =) for some reason when my field name was "CUS_business" - it couldn't understand it, so when I renamed table field to "cusbusiness" - it works

  • Complex Table Transmit

    Hi SCN,
    We have a new requirement where we need to transmit only one complex table from a group of ten without data table and data object too. Any configuration on Agentry can do that? Or on every transmit wee need to synchronize all data table, complex table and data objects?
    Regards,
    Dagoberto
    Tags edited by: Michael Appleby

    Based on the comments above, it depends on what your definition of your requirements are. You can write your own mobile application from scratch if you want to build your own mobile application to communicate with your custom customer enterprise environment (popular integration is to a custom environment is either via Java, SQL, HTTPXML, File).
    In SAP, we provided out of the box solution like Work Manager, Inventory Manager and others for SAP or IBM. Each product (or mobile solutions) were designed to do different things based on the back-ends and popular business needs. You could have a custom flavor of the out of the box or something unique to yours.
    Let us assume you are customizing the out of the box Work Manager for SAP for Complex Tables:
    If you are using SAP as your backend, the main communication between Agentry and SAP is using Java and it communicates with the built-in SAP Agentry config panel (that takes care of all the Bapi and Abap). So all the complex table is driven by Java + config panel. The example above for javaBE.ini by Mallina is based on the ini file configuration where you can state either to turn on or off the complex table download. You can see this setup under the javaBE.ini. 
    The picture above can be set either ini or SAP. So Mallina's example is base on ini setup. Another way to do it is through (Source = SAP) which is  the Agentry Config Panel tied to your out of the box application where you can state to turn on or off the complex table download. You may check the Work Manager setup or documentation on how to turn on or how often to check the complex table.
    If you are not using out of the box Java code (or extending the libraries) then you can write your own Java code to do the logic you require to either update or reload or do any download you wish base on your triggers. If you are at this level it may be harder because you have to do all the logic and you have to have a tie-in the back end enterprise to flag to download or not.
    Let us assume your backend is SQL (Microsoft SQL or Oracle or SQLAnywhere or other SQL type).
    When you create a Complex Table in the Agentry Editor you will be presented with something like this picture:
    You will notice two major tabs: Reload State Query - if you return true on this query it will reload the complex table and the Data Query: The typical query when you sync from scratch or do a delta sync.
    In the example above, you will see special characters "<< >>" called flunkies or SDML (SAP Data Markup language) where you can do a quick query against your backend to do some logical queries before you do your main query. Most of the SQL design is based on what you specify as your where clause or your where logic. So you can officially create your own custom table (CTReload) in your backend and setup  custom columns (TableName, Reload) and indicate if your table name = Parts then Reload = 1 or Y then reload it.  For DataTable you have the Sync Query and Data Query for control.
    The link that Mallina gave above  is also a study on what occurs when you turn on or off certain features of Agentry and what the server does with it.
    The Main transmit of the Agentry clients does all of them Objects (base on fetch), Data Table (base on data and sync query or java or chosen backend system connection) and Complex Table (base on reload state or data query or Java or chosen backend System Connection).  You can start adding the smartness or logic in the actual Complex Table and Data Table setup to not download or when to download it base on your conditions.
    Regards,
    Mark

  • How to get the focus in a Table Control

    Hello Experts,
                         I have a simple Table control in my screen . I want to know under which column my cursor is ? Basically i want to get the focus the table control . How can i achieve this  ?
    Thanks
    Vivek

    >
    Vivek Joshi wrote:
    > Hello Router ,
    >                      I do not want to set the focus , I want to get focus . User can click on any cell in the table and then press a button in the toolbar . Now in the event handler of the button i want to under which column User has set the focus .
    > I hope , I am clear now .
    > Thanks for your help
    > Regards
    > Vivek
    An yet you keep getting suggestions of how to set the focus.   I looked through the API documentation and I don't see anything that would suggest you can request to see where the current focus is.  Perhaps someone might still come along with a solution, but my hopes wouldn't be too high at this point.  I can pass the requirement onto Product Definition, as the use case does seem interesting.  Perhaps it is something we have even considered in the past. 
    But for now, there might be a better way to solve your problem.  It will probably mean redesign the interaction.  What exactly are your requirements?  Do you need to be able to get the data in a particular cell of table when a button is clicked?  Just throwing out some ideas here, but maybe just use the lead selection to select the row, but then have a button choice to choose the action associated with the column you want. A hack for sure - but it might work.  Also it doesn't help you right now, but in the near future update to NetWeaver 7.0, WDA does have a onColSelect event for the table.

  • How to keep the focus in a table cell as long as it is invalid?

    Hello,
    if you run the following code and enter some alphabetic characters in the Integer column,
    you can't get out of the cell as long as focus transfer is within the table. But if you click in the textfield,
    the cell is left invalid. (If you click in the textfield immediately after the false edit, the cell even doesn't
    show the red border)
    I tried to attach a focusListener to the table, but that makes editing the table impossible.
    I also could attach a focusListener to each and every other component of the form,
    and checking the table there in focusGained - but that looks rather awkward.
    How would you proceed?
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.table.*;
    public class InvalidInput extends JFrame {
      public InvalidInput() {
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        setLayout(new FlowLayout());
        setSize(200, 200);
        setTitle("InvalidInput");
        final String HEADER[] = {"Integer", "String"};
        DefaultTableModel dtm= createTableModel(HEADER);
        dtm.addRow(new Object[] {new Integer(100), "Item 1"});
        dtm.addRow(new Object[] {new Integer(200), "Item 2"});
        final JTable table= new JTable(dtm);
        table.addFocusListener(new FocusAdapter() {
          public void focusLost(FocusEvent e) {
         System.out.println(table.isEditing());
         if (table.isEditing()) {
           boolean b= table.getCellEditor().stopCellEditing();
           System.out.println(b);
    //       if (!b) table.requestFocusInWindow();
    //       if (!b) table.changeSelection(table.getEditingRow(),
    //                         table.getEditingColumn(), false, false);
           if (!b) {
             DefaultCellEditor editor= (DefaultCellEditor)table.getCellEditor();
             editor.getComponent().requestFocusInWindow();
        JScrollPane scrollPane = new JScrollPane(table);
        scrollPane.setPreferredSize(new Dimension(195,55));
        add(scrollPane);
        JTextField tf= new JTextField(10);
        add(tf);
        setVisible(true);
      public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
          public void run() {
         new InvalidInput();
      private DefaultTableModel createTableModel(Object[] columnNames) {
        DefaultTableModel tblModel= new DefaultTableModel(columnNames, 0) {
          public Class getColumnClass(int column) {
         return getValueAt(0, column)==null ? Object.class :
                                   getValueAt(0, column).getClass();
        return tblModel;
    }Edited by: Jörg on 04.03.2012 14:52
    A big improvement is to apply
    table.putClientProperty("terminateEditOnFocusLost", Boolean.TRUE);for this at least reverts the erroneous input to the last valid value.
    Still I would prefer either to inform the user of this reversion or to red-border the erroneous cell;
    for sometimes the [OK] button is at the bottom of a long form and putting one's eyes there for
    clicking, one doesn't necessarily notice the reversion which happens at the top.

    Thanks to both of you!
    @Jeanette
    In my real application I use a JFormattedTextField as editor. Checking my overridden stopCellEditing() method I become aware that the contents of JFormattedTextField (getText() or super.getCellEditorValue()) arrives there already reverted. Thus it's no wonder that I cannot return false.
    simply removes the editor on column resizingYikes! - Fortunately the table in question is not resizable.
    SwingX has a NumberEditorExHow would you proceed if you didn't know that class and were looking for it? I still don't manage to navigate successfully on java.net.
    @Walter
    Never thought of this. Seeing that someone is checking for me (red border), I'd rather lazily let him continue doing the job. But a DocumentListener looks like being a way out.

  • Tab focus on af:table

    We have an af:table component on a page. In order to make the page keyboard accessible, we should be able to tab to that component using the Tab key on keyboard. However, when the af:table component is selected using Tab key, it does not get visual tab focus. So it is hard to tell that af:table component is currently selected by the Tab order.
    Is there any way to enforce visual tab focus (dotted lines) around the af:table component?
    Thanks

    We have an af:table component on a page. In order to make the page keyboard accessible, we should be able to tab to that component using the Tab key on keyboard. However, when the af:table component is selected using Tab key, it does not get visual tab focus. So it is hard to tell that af:table component is currently selected by the Tab order.
    Is there any way to enforce visual tab focus (dotted lines) around the af:table component?
    Thanks

Maybe you are looking for

  • Is there a way to set the iPhone to have a black screen with white text?

    I found the "Invert Colors" option under Settings > General > Accessibility, and like it a lot. It provides enhanced readability. The problem is that it inverts all colors, even for apps. So when I view a web page in Safari, all the colors are invert

  • MagicTrackPad Problem with Mavericks

    Howdy, All to often my Magic Track Pad locks up shortly after waking from sleep. Most of time I can shut it off, wait untilthat is recognized (up to a minute) and then turn it back on. But there are times when it is locked up so badly I've had to re-

  • Crash Report: Preview Theme Crashes with Chrome

    Hi guys, Playing with the extension I discovered that if Chrome is your default browser (on iMac Lion) when you go to Commands>jQuery Mobile>Preview Theme it crashes Fireworks. I switched my system default browser to Firefox and Safari and it worked

  • Classical Music Purchasers Left out in cold by itunes 11

    I have been posting this question/complaint everywhere I can about the itunes 11 as have many others.  Classical music purchasers apparently can no longer purchase musicbecause the option of listing composer and/or artist and/or piece and/or across a

  • Track control bar

    does anyone know how the track control bar works with Mackie Control? how can I decide which group of tracks should be displayed in mackie control? in my situation I have a totally unpredictable behaviour of what is colored and what is not. how can I