Changing dataProvider of custom dataGrid to XCelsius Cells

Hi everybody,
I have quite a simple question, however, I do not really get a solution for that on my own.
Actually, all I want to do is extend a usual Datagrid to display my data from XCelsius using the standard propertysheet. The way I tried to do this was to make the dataProvider inspectable.
My actionscript file:
package myPackage
     import mx.controls.DataGrid;
     [CxInspectableList("dataProvider")]
     public class MyDG extends DataGrid
          public function MyDG()
               super();
          [Inspectable(defaultValue="undefined", type="Array2D")]
        [ArrayElementType("Number")]
          override public function get dataProvider():Object
               return super.dataProvider;
          override public function set dataProvider(value:Object):void
               super.dataProvider(value);
When I pack this into an .xlx, I can view it and preview it as long as I do not try to change the dataProvider. When changing it, the preview window stops to load at some point.
Thanks for your help in advance!

Hi Sreelekha,
This is how Flex creates 2d arrays so Xcelsius does the same when it passes a 2d array.
var cells:Array =
   /* row 1 */   [ column 1, column 2, column 3],
   /* row 2 */   [ column 1, column 2, column 3],
   /* row 3 */   [ column 1, column 2, column 3]
So in your case:
var cells:Array =
    [P1, C1],
    [P2, C2]
So cells.length tells you how many rows are in the 2d array.
And cells[0].length tells you how many columns are in the first row of the array (assuming there is at least one row).
So as in Flex if you want to process a Flex 2d array you do something like this:
for (var i:int = 0; i < cells.length; i++)
    var row:Array = cells<i> as Array;
    for (var j:int = 0; j < row.length; j++)
       var rowColCell:* = row[j];
       // rowColCell has the value for this row/column cell.
Regards
Matt

Similar Messages

  • Sort Arrow for custom datagrid

    Hi,
    I have a custom datagrid where i am handling the  DataGridEvent.HEADER_RELEASE event . Also i have created custom data grid header which is assigned to the header class of custom datagrid.
    But i am facing problem while showing sortArrow. sortArrow is not visible for datagrid headers. How to show sortArrow??

    Thanks Alex.
    I managed to get the function to work when I applied it to a button, but it only works when the datagrid has a dataprovider already set for it.
    My issue is that I will have several buttons, each button will supply the datagrid with a new dataprovider.  The sort function will need to sort the first row of each column, and display the arrow each time the dataprovider is changed.
    I have added this code to one of the buttons for testing:
    private function grid_sort():void
                array1.sort = new Sort();
                array1.fields = [new SortField("column1", false, false)];
                array1.refresh();
    private function buttonClick(event:MouseEvent):void
                    grid1.dataProvider = array1;
                    grid_sort();  
    Specifically, the buttonClick function is what I added to the button's Click event.
    The code populated the datagrid when the button is clicked, however, the grid_sort() function does not execute and the arrow does not appear.
    How can I make this function work, while dynamically changing the dataprovider?

  • Custom DataGrid problems with Comboboxes

    I am using a custom datagrid with comboboxes and
    colorpickers. I found this code on the web and adapted it to work
    with my code. The only problem is that if you pull down a combobox
    and then click somewhere outside without selecting anything, it
    seems to erase the data in the dataprovider arraycollection and so
    'value' in the set data method becomes null.

    This is not a bug if I understand you properly. I believe most people would wish anything which is obtained via the tv to be backed up, which is why the content is transferred. If you want it to remain available on the tv you will need to sync it back to it.

  • Is there a recommended limit on the number of custom sections and the cells per table so that there are no performance issues with the UI?

    Is there a recommended limit on the number of custom sections and the cells per table so that there are no performance issues with the UI?

    Thanks Kelly,
    The answers would be the following:
    1200 cells per custom section (NEW COUNT), and up to 30 custom sections per spec.
    Assuming all will be populated, and this would apply to all final material specs in the system which could be ~25% of all material specs.
    The cells will be numeric, free text, drop downs, and some calculated numeric.
    Are we reaching the limits for UI performance?
    Thanks

  • How do I change the colour of text in a cell in a JTable?

    I am trying to change the color of the text in a single cell in a JTable. I have tried not adding a cell renderer and it changes the colour of text in all cells.
    I have tried adding a cell renderer to the table and it does the same ie all cells text colour changes.
    I am able to add a cell renderer to a column and it changes all the cells in the column.
    I cannot figure out how to change just one single cell's text colour without effecting the other cells.

    Ok, so if i create my own cell renderer do I set it as the default renderer for the whole table i.e.
    table.setDefaultRenderer(MyCellRenderer, renderer);
    Does this set one cell renderer for the whole table or is there an individual one for each cell?

  • How to get changes of a custom PL/SQL package updated in ISG?

    Hi All,
    I need some help on how to change a custom PL/SQL package in ISG integration repository:
    I already uploaded my custom PL/SQL package to the integration repositoy some time ago. Now I have made some changes to PL/SQL record/table types defined in the package (added some fields and removed some others). These changed record/table types are used by a procedure I already uploaded to the integration repository. When regenerating the WSDL for my PL/SQL package in integration repository I get an error that the wrapper for respective procedure can't be found. When checking up the SQL types that were automatically generated (by JPublisher) for corresponding PL/SQL types, these generated SQL types are invalid...
    So it seems that in one case JPublisher generated an empty SQL type (with no attributes). In another case JPublisher generated the SQL type with old attribute list, so it didn't adopt the changes of corresponding PL/SQL type in the package...
    Can anybody tell me how to get the changes of a cusotm PL/SQL package updated in ISG? Or is there any possibility to first remove a whole PL/SQL package from the ISG integration repository (and getting rid of all old automatically generated SQL types), so that I can newly upload my PL/SQL package afterwards?
    Thanks
    Konrad
    Edited by: Konrad on 24.10.2011 10:51

    Thanks Daniel, for your reply...
    (-> for info: I'm a colleague of Konrad...)
    Yes, we used a higher version number - and the upload of iLDT file works fine...
    But, the problem occured when generating the WSDL...
    However, I think we have found an approach of how to get the changes of a custom PL/SQL package updated correctly in ISG:
    1. Save a copy of PL/SQL package and then delete it in the database
    2. Regenerate the WSDL for PL/SQL package in ISG (seems that all atutomatically generated JPub wrappers and SQL types are also deleted)
    3. Restart all processes
    4. Create the changed version of PL/SQL package in the database again
    5. upload of iLDT
    6. Regenerate the WSDL for PL/SQL package in ISG
    Best Regards
    Carolin

  • How to display success message when data is changed in the custom tab in MM

    Hi,
    I have added a new custom data tab in the MM01/MM02/MM03 transactions. Whenever I do changes to fields in the custom tab in MM02 transaction, and no changes in the standard tabs, I will get a message stating "No Changes Made".
    But if I do changes in the standard tabs, it works as usual with display of message "Changes to particular material has been done.
    Please let me know, if anyone of you know, how to display the success message if the changes to the custom tab is done.
    Thanks in advance,
    sudhanva

    Hi Sudhanva,
    The exit EXIT_SAPLMGMU_0001 is a function exit that you can use for custom validation but not to add custom tab/screen.
    But the message issued by SAP is not related to this Function Exit.
    If you have used a Screen Exit, then there must be some Function Exits also in the same Enhancement using which you can assign the value of custom fields to/from the standard structure. Thus when the value of any custom field is changed the system can understand that the some changes have been changed and will  not issue the message.
    In case you have used a BADI, there can be other methods in the BADi using whcih you can assign the value of custom fields to/from the standard structure. This might also prevent the message from being displayed.
    I could try giving you further details if you can provide the name of the Enhancement/BADi that you used to add the additional tab.
    Hope this helps.
    Regards,
    Abhisek.

  • Logging the changes of a custom table into CDHDR and CDPOS

    Hi all,
               What is the strucutre that is to be passed while creation of a ChangeDocument(Object Class) for the parameter
    Name of Ref. tab in SCDO tcode.And what other steps are to be done for logging the changes of a custom table.

    How do you maintain the first table? Did you create the maintenance module yourself or did you get it generated by SAP? If you have your own maintenace module, all you have to do is get the values from the table at the time when you update it and seve the necessary values in the second table. If you have a generated maintenance module, then you would have to do this in there, problem is you will need to register the onject when you change it.
    Let me know if this helps.

  • Change Logs for customer master data in 3.1 H version

    Hello All
    Are they any existing reports or change logs for viewing changes to customer master data in 3.1h version.  I want to be able to report based on changes made to customer master.
    I know there is a good report in 6.0 version for this- S_ALR_87012182.
    If I have to develop a custom program for this in 3.1h. Which table I should use? KNA1 or CDPOS.
    Any ideas will be appreciated.
    Hema.

    Hi,
    Please check the filter settings maintained for the adapter object CUSTOMER in R3AC1. The same filter settings can be referred in tables Table: CRMFILTAB (R/3) and SMOFFILTAB(CRM) as per srinivas's reply.
    Check the sales area of the customer maintained (Sales Area, Division, Distribution Channel etc.) and see if the current filter settings are restricting the customer from getting replicated in CRM. If everything is maintained fine then check for any failure Bdocs in SMW01 or SMW02.
    Regards,
    K

  • How do you change/adjust border width for all the cells in a table created in Pages?

    How do you change/adjust border width for all the cells in a table created in Pages?
    Note- I am trying to figure out how to create and format tables in the latest version of the Pages app on an iPad air (iOS 8.1.1.1) . Creating tables, adding or removing borders for individual/all cells in a table seems straight forward. However the default border style seems to be a heavy black line. How do I change this?
    I found the option add or remove borders for all/ individual cells in a table, however I can't find any option within style/format dialogue screens for changing colour or line thickness for table cells. Likewise I can't find any clear instructions on how to do this in apple help pages or support website
    Btw- I'm assuming  it is possible to customize/adjust the colour & thickness of selected lines in a table created in this app (it's fairly easy to do this word processing apps like MS Word) please let me  know if this is not actually possible in Pages

    They know perfectly well what they took out of Pages '09.
    Well over 90 features.
    Do you think you posting feedback is going to remind them of what they did?
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
    Pages '09 should still be in your Applications/iWork folder.
    Archive/trash Pages 5 and rate/review it in the App Store, then get back to work.
    Peter

  • Field exit showing---not allowed to change cross client customizing

    hi all ,
    when im trying to activate field exit . Its showing---not allowed to change cross client customizing.
    how to correct that.
    thanks in advance.
    sg

    hi SG,
       first and foremost thing while using field exit is, ask your basis person to include the parameter abap/fieldexit = Y in your instance profile.
    Otherwise u can't use the field exits.
    Regards....
    Arun.
    Reward points if useful.

  • To change Font size and style in a cell

    HI! .
    I would to know if it is possible to change to the source and the text of alv.
    I have seen that with class CL_SALV_WD_UIE_TEXT_VIEW and method SET_DESIGN, Font size and style in a cell can be changed, but i don´t know how do it and what objects and methods have I to use. Somebody me can write the code necessary to change the style of source of a cell, or row, or of the whole table, please?
    Thanks in advance.

    Hi Maksim!.
    Thanks for your answer. I have followed the manuals. My code is this:
    DATA: lr_column TYPE REF TO cl_salv_wd_column,
           ld_text type ref to CL_SALV_WD_UIE_TEXT_VIEW.
    CREATE OBJECT ld_texto.
    lr_column =
    l_value->if_salv_wd_column_settings~get_column( 'name_column' ) .
    ld_text->SET_DESIGN ( '06' ).
    lr_column->set_cell_editor( ld_text ).
    I don´t know that I have incorrect, but when executing it shows the column with any data.

  • Change the background color in a report cell - td bgcolor

    Hi.
    I have a report in which I would like to change the background color of a table cell based on some values in the underlying query
    If Column A > Column B and Column C > 10, I want to color the background green. In my cgi , this was easy, but in apex, even if I write the query to output html, won't everything already be wrapped in the <td></td> tags? Is there any way around this?
    Thanks

    Mike ,
    With the above solution you can conditionally fill the report cell with a particular color and not the entire row set. If you want to highlight entire row, you have to do something different. Take a look at this jQuery function
    Step 1 . Download jquery http://code.jquery.com/jquery-1.4.2.min.js
    Step 2. Upload it to apex image folder using shared component.
    Step 3. In the page header put the following code
    <script src="#WORKSPACE_IMAGES#jquery-1.4.js" type="text/javascript" ></script>
    <script type="text/javascript">
    $(document).ready(function(){
         if ($('.apexir_WORKSHEET_DATA').length > 0) {
              function HighLightRows(){
                                       $("table.apexir_WORKSHEET_DATA tbody td:has(COLOR_GRAY)").siblings().addClass('greentd');
                                       $("table.apexir_WORKSHEET_DATA tbody td:has(COLOR_GRAY)").addClass('greentd');
                                       $("table.apexir_WORKSHEET_DATA tbody td:has(COLOR_GREEN)").siblings().addClass('graytd');
                                       $("table.apexir_WORKSHEET_DATA tbody td:has(COLOR_GREEN)").addClass('graytd');
         // This time out is required since after the report is refreshed via AJAX,
                                  setTimeout(function(){HighLightRows();},1000);
         }//if
    HighLightRows();
    </script>
    <style type="text/css">
    .apexir_WORKSHEET_DATA td.greentd
    background-color: green !important;
    .apexir_WORKSHEET_DATA td.graytd
    background-color: gray !important;
    </style>
    Step 4. Change the SQL Query to
    SELECT
         SALE_DATE
         ,PRODUCT_NAME
         ,PRODUCT_ID
         , CASE WHEN SALE_DATE > ADD_MONTHS(SYSDATE,-2) THEN
                     '<COLOR_GREEN>&#38;nbsp;</COLOR_GREEN>'
              ELSE
                      '<COLOR_GRAY>&#38;nbsp;</COLOR_GRAY>'
         PRODUCT_NAME_COLOR
    FROM SALES;
    Step 5. Make this new column PRODUCT_NAME_COLOR visible and in the column heading u can just put &#38;nbsp;.
    As long as this column will be available for display you will see the conditional highlighting.Thanks,
    Manish

  • Changes in the Custom include do not reflect in testing client

    Hi All,
    I have added some custom fields in Infotype 21 in the dev environment. But, the changes are not reflecting in the testing environment. Can anyone share their thoughts.
    Thanks in advance,
    Guru.

    Hi Appana,
    Yes, we can identify any screen changes from sy-datar. It is set when I make any changes in the custom screen also. But I dont want to give a pop up every time I leave the custom screen. I want to give raise a pop up for saving the delivery document just like any other SAP screen (For eg. SAP Screens do not give a pop up when we move from one screen to another screen, but it gives a pop up if we try to do a subsequent functions like picking without saving the changes in delivery).
    Thanks
    Anil

  • Change Log for Custom fields

    Hi All,
    I need the change log for custom fields added in BP transaction codes.
    Basically, for tracking the changes of master data in CDHDR and CDPOS tables we will enable the checkbox of dataelement related to custom field.
    As for SAP fields in BP transaction code the change history is reflecting in CDHDR/CDPOS tables. i have enabled that for custom fields added to BP transaction code but i could not see the change history for such fields.
    Please let us know if iam missing any other thing?

    Hi Amit Singh,
    Apart from clicking the checkbox in dataelement...
    There are some settings need to be done by BASIS
    and some settings and entries should be made in SCOD t-code
    create entriy for change document here..
    also hv a look on below links...
    http://help.sap.com/saphelp_nw2004s/helpdata/en/2a/fa015b493111d182b70000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_erp2004/helpdata/en/db/7a2a40ce93185de10000000a1550b0/content.htm
    Custom Table values in CDPOS and CDHDR
    scdo
    wat do these fields in scdo stand for?
    Hope it will solve your problem..
    Thanks & Regards
    ilesh 24x7

Maybe you are looking for

  • Creation of PM equipment per batch

    Hi PM experts, I have a scenario where I need to create an equipment automatically during goods receipt of a material.  The unit of measure of the material is EA. My GR quantity is 10 but to a single batch. Is it possible to create a single equipment

  • Error logging for servlets in Weblogic 5.1?

    Where are errors that occur in servlets logged in 5.1? I have a servlet           that one of the classes it instantiates during the init() method to load a           native library (.dll). On the console, there is a message saying           "unavail

  • Brush Preview issue with Intuos 4 and CS4

    Hi sorry if this has been addressed before but I couldn't find it anywhere. When using Illustrator I can't get my brush to preview in real time as I draw. It has a little 'x' next to it and I had this problem before i think but i can't remember what

  • How to enable MUltiple asset tab in T.code ABT1N

    Hi, We need to transfer assets from company 1 to company 2 and we are using the T.code ABT1n for this is intercompany transfer. 1.I want to know how to enable the Multiple assets tab in T.code ABT1N 2.Then when I transfer of 1 asset  with( NO REVENUE

  • Segfault using char pointer array

    Hi, My project was just migrated to a SUN M9000 server running Solaris 10 with Sun Studio 12.1. Here is the cc -V output: Sun C 5.10 SunOS_sparc 2009/06/03 Here is a simple example of code to demonstrate the problem. The compile command used is: cc -