[svn:fx-trunk] 5798: Push button subcomponent of DropDownList should not be explicitly focusable .

Revision: 5798
Author: [email protected]
Date: 2009-03-31 08:45:39 -0700 (Tue, 31 Mar 2009)
Log Message:
Push button subcomponent of DropDownList should not be explicitly focusable.
Bugs: SDK-20171
QE Notes: None
Doc Notes: None
Reviewer: Jason
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-20171
Modified Paths:
flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/DropDownListSkin.mxml

Problem solved.  Actually, the NewEntryArrayCollection pointed to an outside function within the DataEntryDataGrid component to be used as a factory function for new objects.  I just set the factory function to scan the previous row's values and base the new row's values off of them.  Thanks again, Flex!
New private function generateObject() to replace the previous one in DataEntryDataGrid.mxml, just in case others are curious:
private function generateObject():Object
  // Returns a new object to the datagrid with filled in slide and
  // specimen no. columns and the rest of the columns blank
  var obj:Object = new Object();
  var thisDP:Object;
  for each(var item:Object in this.columns) {
    var df:String = item.dataField.toString();
    if(df == "slideNo") {
      thisDP = this.dataProvider;
      var newSlideNo:int;
      if(thisDP.length > 1) {
     // looking for the last row of the DataGrid's dataProvider, but as
        // length is calculated differently in NewEntryArrayCollection.as
        // to account for the "dummy" row, we need to go back 2 rows.
        newSlideNo = int(thisDP[thisDP.length -2].slideNo);
      } else {
        newSlideNo = 1;
      obj[df] = newSlideNo;
    } else if(df == "specimenNo") {
      thisDP = this.dataProvider;
      var newSpecimenNo:int;
      if(thisDP.length > 1) {
        newSpecimenNo = int(thisDP[thisDP.length -2].specimenNo) + 1;
      } else {
        newSpecimenNo = 1;
      obj[df] = newSpecimenNo;
    } else {
      obj[df] = "";
  return obj;

Similar Messages

  • [svn:fx-trunk] 8190: make sure the HaloClassic theme is not copied into the package b/ c it is no longer supported in flex 4

    Revision: 8190
    Author:   [email protected]
    Date:     2009-06-24 12:26:02 -0700 (Wed, 24 Jun 2009)
    Log Message:
    make sure the HaloClassic theme is not copied into the package b/c it is no longer supported in flex 4
    bug: https://bugs.adobe.com/jira/browse/SDK-20729
    qa: no
    doc:
    checkintests: pass
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-20729
    Modified Paths:
        flex/sdk/trunk/build.xml

    Gordon, it looks like its been a while since you made this post.  Not sure how valid it is now...   I am particularly interested in the LigatureLevel.NONE value.  It seems that it is no longer supported.
    How do I turn of ligatures in the font rendering?
    My flex project involves trying to match the font rendering of Apache's Batik rendering of SVG and ligatures have been turned off in that codebase.  Is there any way (even roundabout) to turn ligatures off in flash?
    Thanks,
    Om

  • [svn:fx-trunk] 9328: Fixing SDK-22462: Event dispatched is not as expected in Tree

    Revision: 9328
    Author:   [email protected]
    Date:     2009-08-14 17:02:35 -0700 (Fri, 14 Aug 2009)
    Log Message:
    Fixing SDK-22462: Event dispatched is not as expected in Tree
    For this, the issue is really that TreeItemRenderers assume that no click event can occur on the disclosureIcon.  This is because the discolsureIcon is added and removed each time it goes through invalidation in commitProperties(), so a new discolsureIcon gets created and replaces the old one after they mouseDown (meaning no click event actually occurs).  Automation replays some mouse events on one disclosureIcon only (which is an automation bug because that?\226?\128?\153s not how it actually works in the real world) and when a ?\226?\128?\156click?\226?\128?\157 occurs, that causes an itemClick on the Tree, when it shouldn?\226?\128?\153t.  For Flex 3, this wasn?\226?\128?\153t a problem because the IR was getting invalidated through a different codepath because openDuration did not default to 0.  If you set it to 0, you?\226?\128?\153d see the same problem in Flex 3.  Anyways, the fix is just to block all click events that occur on the disclosureIcon.
    QE notes: -
    Doc notes: -
    Bugs: SDK-22462
    Reviewer: Alex
    Tests run: checkintests, mustella Tree
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22462
        http://bugs.adobe.com/jira/browse/SDK-22462
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/treeClasses/TreeItemRenderer .as

    error dateField not selecion date 27/11/2002 ?
    This is bug flex 3 ?
    thanks

  • [svn:fx-trunk] 13129: ASDoc bug fixes, and added a note that Scroller no longer has a default value of hasFocusableChildren ="false" and focusEnabled="true"

    Revision: 13129
    Revision: 13129
    Author:   [email protected]
    Date:     2009-12-21 13:50:37 -0800 (Mon, 21 Dec 2009)
    Log Message:
    ASDoc bug fixes, and added a note that Scroller no longer has a default value of hasFocusableChildren="false" and focusEnabled="true"
    QE notes: -
    Doc notes: -
    Bugs: - FLEXDOCS-386
    Reviewer: -
    Tests run: - checkintests
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FLEXDOCS-386
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/VideoDisplay.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/events/VideoEvent.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/interpolation/MultiValueInterp olator.as

    I had a while ago similar problem with USB memory stick. At the end, I don't know why, just formatting it using WinXP helped me.
    S-
    Last edited by StenM (2011-07-22 17:56:32)

  • [svn:fx-trunk] 11593: Advanced CSS fix - descendant selectors should search for arbitrary ancestors including when the universal selector is used .

    Revision: 11593
    Author:   [email protected]
    Date:     2009-11-09 15:20:36 -0800 (Mon, 09 Nov 2009)
    Log Message:
    Advanced CSS fix - descendant selectors should search for arbitrary ancestors including when the universal selector is used.
    QE notes: Please add test cases for arbitrary ancestor depth that involve using the universal * selector. Thanks for the additional testing on this patch too!
    Doc notes: N/A
    Bugs:
    SDK-23213 - descendent selectors can't catch components more than one level down
    Reviewer: Corey
    Tests run: Checkintests, test case
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-23213
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSSelector.as

    Welcome guy -
    Unless you are using Spry menus as a learning experience, you should move forward to a menus system that will display properly on the millions of portable devices that won't work with Spry which was deprecated 2 years ago.
    Many are using JQuery menus or pure HTML/CSS menus.
    If you wish to continue your Spry for learning experience, we'll be glad to assist; please let us know.
    By the way, your submenus are not showing because you need to add the red value to this rule in your vertical CSS
    ul.MenuBarVertical ul.MenuBarSubmenuVisible{
        width: 220px;
        left: 180px;

  • [svn:fx-trunk] 11546: fix so the textLayout. swc does not get modified during the build process.

    Revision: 11546
    Author:   [email protected]
    Date:     2009-11-06 15:42:05 -0800 (Fri, 06 Nov 2009)
    Log Message:
    fix so the textLayout.swc does not get modified during the build process.
    QE notes: no
    Doc notes: no
    Bugs: no
    Reviewer:
    Tests run: checkintests
    Is noteworthy for integration: no
    Modified Paths:
        flex/sdk/trunk/build.xml

  • [svn:fx-trunk] 7669: merging over beta1 changes that did not make it to trunk.

    Revision: 7669
    Author:   [email protected]
    Date:     2009-06-09 06:35:01 -0700 (Tue, 09 Jun 2009)
    Log Message:
    merging over beta1 changes that did not make it to trunk.  I'm not sure why they didn't make especially since they were my changes! (I will investigate)
    bugs: no
    qa: no
    checkintests: good
    Modified Paths:
        flex/sdk/trunk/frameworks/air-config.xml
        flex/sdk/trunk/frameworks/flex-config.xml

    Gordon, it looks like its been a while since you made this post.  Not sure how valid it is now...   I am particularly interested in the LigatureLevel.NONE value.  It seems that it is no longer supported.
    How do I turn of ligatures in the font rendering?
    My flex project involves trying to match the font rendering of Apache's Batik rendering of SVG and ligatures have been turned off in that codebase.  Is there any way (even roundabout) to turn ligatures off in flash?
    Thanks,
    Om

  • [svn:fx-trunk] 10156: Resubmitting change for SDK-22035, should perform much better.

    Revision: 10156
    Author:   [email protected]
    Date:     2009-09-11 09:22:09 -0700 (Fri, 11 Sep 2009)
    Log Message:
    Resubmitting change for SDK-22035, should perform much better.
    QE notes: None
    Doc notes: None
    Bugs: SDK-22035
    Reviewer: Paul
    Tests run: Binding cyclone, performance suite
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22035
        http://bugs.adobe.com/jira/browse/SDK-22035
    Modified Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationGenerator.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/gen/ClassDefLib.vm
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/BindingExpression.java

    If you're still using Buckminster 3.6, I strongly suggest switching to 3.7 - it has a number of bug fixes and improvements. This applies to both headless, and the IDE (assuming Eclipse 3.7 Indigo).
    Matthew

  • Regarding push button

    initially there are two push buttons and the parameters should not be displayed.
    when any one push button is clicked on one parameter should be displayed.
    TABLES : SSCRFIELDS.
    PARAMETERS : P  LIKE MARA-MATNR MODIF ID ABC.
    PARAMETERS : P1 LIKE MARC-WERKS MODIF ID ABC.
    SELECTION-SCREEN : begin of line,
                       PUSHBUTTON 2(10)  PB1 USER-COMMAND A,
                       PUSHBUTTON 20(10) PB2 USER-COMMAND B,
                       end of line.
    AT SELECTION-SCREEN ." OUTPUT.
      CASE SSCRFIELDS-UCOMM.
        WHEN 'A'.
          LOOP AT SCREEN.
           IF SCREEN-NAME = 'P'.
              SCREEN-INPUT = '0'.
              MODIFY SCREEN.
            ENDIF.
          ENDLOOP.
    endcase.

    REPORT  znrw_pbut                               .
    SELECTION-SCREEN PUSHBUTTON 15(5) pbut_1 USER-COMMAND pb1.
    SELECTION-SCREEN PUSHBUTTON 35(5) pbut_2 USER-COMMAND pb2.
    parameters: pbut1a type matnr  MODIF ID pb1,
                pbut1b type sydatum MODIF ID pb1.
    parameters: pbut2a type vbeln  MODIF ID pb2.
    TABLES:  sscrfields.
    data l_button like sy-ucomm.
    INITIALIZATION.
      MOVE 'PB 1' TO pbut_1.
      MOVE 'PB 2' TO pbut_2.
      l_button = 'PB1'
    AT SELECTION-SCREEN.
      IF sscrfields-ucomm = 'PB1'
      OR sscrfields-ucomm = 'PB2'.
        l_button = sscrfields-ucomm.
      ENDIF.
    AT SELECTION-SCREEN OUTPUT.
      loop at screen.
        IF SCREEN-GROUP1 =  'PB1'
        OR SCREEN-GROUP1 = 'PB2'.
          IF SCREEN-GROUP1 <> L_BUTTON.
             SCREEN-ACTIVE = '0'.
             MODIFY SCREEN.
          ENDIF.
        ENDIF.

  • Regarding push button for parameters

    initially there are two push buttons and the parameters should not be displayed.
    when any one push button is clicked on one parameter should be displayed.
    i had written the following code but is not working
    please help me
    with regards
    bob
    TABLES : SSCRFIELDS.
    PARAMETERS : P LIKE MARA-MATNR MODIF ID ABC.
    PARAMETERS : P1 LIKE MARC-WERKS MODIF ID ABC.
    SELECTION-SCREEN : begin of line,
    PUSHBUTTON 2(10) PB1 USER-COMMAND A,
    PUSHBUTTON 20(10) PB2 USER-COMMAND B,
    end of line.
    AT SELECTION-SCREEN ." OUTPUT.
    CASE SSCRFIELDS-UCOMM.
    WHEN 'A'.
    LOOP AT SCREEN.
    IF SCREEN-NAME = 'P'.
    SCREEN-INPUT = '0'.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    endcase.

    Hi Gangadhar,
    Try the following code. Its working on my side.
    TABLES : SSCRFIELDS.
    PARAMETERS : P LIKE MARA-MATNR MODIF ID ABC.
    PARAMETERS : P1 LIKE MARC-WERKS MODIF ID ABC.
    SELECTION-SCREEN : begin of line,
    PUSHBUTTON 2(10) PB1 USER-COMMAND A,
    PUSHBUTTON 20(10) PB2 USER-COMMAND B,
    end of line.
    DATA : FLAG TYPE C.
    AT SELECTION-SCREEN OUTPUT.
      IF FLAG IS INITIAL..
        LOOP AT SCREEN.
          IF SCREEN-NAME = 'P'.
            SCREEN-ACTIVE = '1'.
            SCREEN-INPUT = '0'.
            SCREEN-OUTPUT = '1'.
            SCREEN-INVISIBLE = '1'.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.
    AT SELECTION-SCREEN .
      CASE SSCRFIELDS-UCOMM.
        WHEN 'A'.
        FLAG = '1'.
          LOOP AT SCREEN.
            IF SCREEN-NAME = 'P'.
              SCREEN-ACTIVE = '1'.
              SCREEN-INPUT = '1'.
              SCREEN-OUTPUT = '1'.
              SCREEN-INVISIBLE = '0'.
              MODIFY SCREEN.
            ENDIF.
          ENDLOOP.
      Endcase.
    Hope this helps,
    Pragya

  • Push button not visible in Quality

    Hi,
    We have created one push button for the tcode fbl1n and fbl5n using the standard BADi  "FI_ITEMS_MENUE01".
    Now, the problem is the button is visible in Development server but not in Quality server.
    We have checked the version management but the code is very much visible in Quality.
    But, the push button is not visible in the Quality.
    Could anyone please provide with a solution to this problem.
    Thanks in advance,
    Kalyani.

    Hi,
    We have transported the Class name as well as BADi name to Quality.
    The implemented code along with the Fcode is visible in Quality.
    But while executing the tcodes FBL1N and FBL5N the push button which was implemented, is not visible in Quality.
    Thanks,
    Kalyani

  • Push button in the selection screen

    Hi folks,
              I need to display a push button the selection screen.its not on the application tool bar..but in one of the selection block in the selection screen..could anybody guide how to do this...
               Thanks in advance,
               shyam.
    Edited by: shyam prasad on Jan 15, 2009 7:34 AM

    Hi Shyam,
    Try the following code..
    TABLES sscrfields.
    TYPE-POOLS icon.
    *SELECTION-SCREEN:
      BEGIN OF SCREEN 500 AS WINDOW TITLE title,
        PUSHBUTTON 2(10)  but1 USER-COMMAND cli1,
        PUSHBUTTON 28(30) but2 USER-COMMAND cli2
                               VISIBLE LENGTH 10.
      END OF SCREEN 500.
    AT SELECTION-SCREEN.
      CASE sscrfields.
        WHEN 'CLI1'.
        WHEN 'CLI2'.
      ENDCASE.
    START-OF-SELECTION.
      title  = 'Push button'.
      but1 = 'Button 1'.
      CALL FUNCTION 'ICON_CREATE'
        EXPORTING
          name   = icon_information
          text   = 'Button 2'
          info   = 'My Quickinfo'
        IMPORTING
          RESULT = but2
       EXCEPTIONS
         OTHERS = 0.
    Hope it will be useful..
    Regards,
    Lakshman.
    Edited by: Lakshman N on Jan 15, 2009 7:39 AM

  • How to show traffic lights on push button in ALV Grid?

    Hi Experts,
    I have an requirement where I have to show traffic lights on push button in ALV grid of a container. I am showing access sequence for each condition type in my grid. Now, if the access sequence contains 'PLANT', it should show 'green' on push button or else it should show 'red'. How I can I achieve this?
    Thanks in advance.

    Try This One.
    DATA: gs_fieldcat TYPE slis_fieldcat_alv,
              gt_fieldcat TYPE slis_t_fieldcat_alv,
              gs_layout   TYPE  slis_layout_alv.
    TYPES :BEGIN OF gty_temp,
                col(10) TYPE c,
               END OF gty_temp.
    DATA : gt_temp TYPE STANDARD TABLE OF gty_temp,
                gs_temp TYPE gty_temp.
       gs_temp-col  ='@0A@'. "ERROR RED LIGHT
           APPEND gs_temp TO   gt_temp.
        CLEAR GS_TEMP.
    gs_temp-col  = '@08@'." SUCCESS GREEN LIGHT
    APPEND gs_temp TO   gt_temp.
    CLAER GS_TEMP.
    gs_temp-col  = '@09@'. WARNING YELLOW LIGHT
    APPEND gs_temp TO   gt_temp.
    CLAER GS_TEMP.
    gs_fieldcat-fieldname   = ' COL'.
    gs_fieldcat-tabname   =  'GT_TEMP'.
    gs_fieldcat-seltext_m = 'ERROR'."
    APPEND gs_fieldcat TO gt_fieldcat.
    CLEAR gs_fieldcat.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
         i_callback_program = 'ZPROG1' " PROGRAM NAME
         i_grid_title       = 'Details'
    *   is_layout          = gs_layout
         it_fieldcat        = gt_fieldcat
       TABLES
         t_outtab           = gt_temp.
    * EXCEPTIONS
    *   PROGRAM_ERROR                     = 1
    *   OTHERS                            = 2
    IF sy-subrc <> 0.
    * Implement suitable error handling here
    ENDIF.

  • Enabling Push Buttons

    Hi Gurus,
    I have a column of push buttons in my table control, each push button for each line item.
    According to my requirement, I disabled the push button column initially, it will only get enable depending
    upon each line item's condition.
    Like, 1st row, if rad2 = 'x' , then the push button for that line should get enabled.
            2nd row, if rad2 = 'X', then the push button for that line should get enabled.
            3rd row, if rad2 NE 'X', then the push button for that line should be disabled.
    I tried a lot , but its not happening. May be because I disabled the column based on the screen group.
    Can anyone please help me on this ?
    Thanks
    Chandan

    Hi,
    First assign some function keys for Radio buttons..
    and assign the Logic for enabling and disabling screen logic in the PBO..
    Refer:
    Take the group1 for the screen fields that you have taken on screen as ABC and then follow code to disable fields, in PBO:-
    IF <condition>. "as per your condition
      IF screen-group1 = 'ABC'.
        LOOP AT SCREEN.
          screen-invisible = 0. "to disable screen fields
        ENDLOOP.
        MODIFY SCREEN.
      ENDIF.
    ENDIF.
    Now say if you want to enable fields on some condition then you may use:-
    IF <condition>. "as per your condition
      IF screen-group1 = 'ABC'.
        LOOP AT SCREEN.
          screen-invisible = 1.  "to enable Push Button
        ENDLOOP.
        MODIFY SCREEN.
      ENDIF.
    ENDIF.
    Regards,
    Prabhudas
    Edited by: Prabhu Das on May 11, 2009 7:51 PM

  • Need push button in output screen

    Hi Friends,
    I need to have a pushbutton in the output screen,how can i display it ? and if that push button is pressed ,it should perform an operation and display the output in next screen.
    I have a condition that the select-option should act as parameter,How can I get it.
    Thank you.
    I Promise to Reward.

    Hi
    See this code.
    SELECTION-SCREEN  BEGIN OF SCREEN 1001.
    SELECTION-SCREEN: BEGIN OF BLOCK BL WITH FRAME TITLE TIT,
                      COMMENT /30(30) WEL,
                      SKIP 3.
      PARAMETERS : FLIGHTNO  LIKE ZFLIGHT-FNO,
                   FNAME LIKE ZFLIGHT-FNAME.
      SELECTION-SCREEN: SKIP 2,
    END OF BLOCK BL.
      SELECTION-SCREEN : PUSHBUTTON 15(10) SH USER-COMMAND SHOW1,
                         PUSHBUTTON 30(10) IN USER-COMMAND INS1,
                         PUSHBUTTON 45(10) CL USER-COMMAND CLR1,
                        PUSHBUTTON  60(10) EX USER-COMMAND EX1,
                        PUSHBUTTON  73(10) NE USER-COMMAND NE1,
        END OF SCREEN 1001.
    INITIALIZATION.
    TIT = 'WELCOME TO BLOCK'.
    WEL = 'WELCOME TO SELECTION SCREEN'.
    SH = 'SHOW'.
    IN = 'INSERT'.
    CL = 'CLEAR'.
    EX = 'EXIT'.
    NE = 'NEXT SCREEN'.
    NEX = 'NEXT SCREEN1'.
    CALL SELECTION-SCREEN 1001.
    AT SELECTION-SCREEN.
    CASE SY-UCOMM.
       WHEN 'SHOW1'.
              SELECT * FROM ZFLIGHT WHERE FNO = FLIGHTNO.
              FNAME = ZFLIGHT-FNAME.
              ENDSELECT.
       WHEN 'INS1'.
             ZFLIGHT-FNO = FLIGHTNO.
             ZFLIGHT-FNAME = FNAME.
             INSERT  ZFLIGHT.
             MESSAGE  'RECORD INSERTED' TYPE  'S'.
       WHEN 'CLR1'.
             FLIGHTNO = ' '.
             FNAME = ' '.
       WHEN 'EX1'.
           LEAVE PROGRAM.
       WHEN 'NE1'.
            CALL SELECTION-SCREEN 1002.
       WHEN 'NE2'.
            CALL SELECTION-SCREEN 1001.
        ENDCASE.

Maybe you are looking for

  • Elements Serial Number

    I apologise. Looking back at my comments, you're right. Here is my situation. I have a three computer situation and process hundreds of photos a week. I have used Elements back to No. 6, as I recall. When Elements 12 came out, I  purchased it for two

  • JDBC & Oracle

    I have a Java program writes user data into a table in an Oracle database, using JDBC as the API. Before writing, it will check for the duplication in primary key data field. Therefore, if the user enters an existing data for that field, it won't wri

  • My ipad mini is stuck on the connect to itunes screen. Will apple replace my iPad if it continues not to work?

    I recieved an iPad mini as gift this past spring (2013). I tried to upate my iPad to the new iOS 7.0.4 software. It seemed work fine, but when it reboted it got stuck on the connect to itunes screen. I've connected my iPad to itunes and it does not r

  • SQL Query to get All AD Groups and its users in Active Directory

    Hi,    Is there any query to get all AD groups and its user in an instance of a SQL server?

  • Will indexes be used on the both sides of the join?

    SELECT * FROM emp a, dept b WHERE a.dept_no = b.dept_no Assume we have bitmap index on emp (dept_no) and we have binary index on dept (dept_no), will both the indexes be used for searching when equated?