Example Fade effect for data change?

Is there an example of how to use the fade effect when
transitioning from one record to another in a dataset?
What I have now is causing a blinking. The old data fades
out, new data appears then fades in.
<script type="text/javascript">
<!-- // special effects - Fade in/out -->
var fadePOout = new Spry.Effect.Fade('PO',{duration: 1000,
from: 100, to: 0});
var fadePOin = new Spry.Effect.Fade('PO',{duration: 1000,
from: 0, to: 100});
function observerPO(notificationType, notifier, data) {
if (notificationType == "onPreLoad") {
fadePOout.start();
if (notificationType == "onPostLoad") {
fadePOin.start();
dsPO.addObserver(observerPO);
</script>
REF: Spry 1.5

Yes, the example is what I want to happen. Am just not sure
it can work with a pagedview dataset as the master. Tried very hard
to follow your directions; Corrected the code in the
SpryEffects.js. Made the CSS entry for the 'PO' region to have
opacity:0. Copied your code and changed ds1 to my detail dataset
(dsPO) (also tried my master dataset, dsPOrders, out of
frustration). Changed the region name from 'description' to 'PO'
(which is the name of my region to fade in and out). Added
onclick="fadeOutContentThenSetRow('{ds_RowID}');" to the master
dataset record. (Yes, I added it. I still have no clue as to how
changes from the pagedview master dataset can update a detail
dataset, but it does.)
End result is the detail dataset appears as though the CSS
was not read. I know this because I can see spry:state="loading"
graphic. Then the data appears. It then disappears and fades in.
Clicking on a master dataset record repeats the above result.
Via Firebug am able to see that the function
fadeOutContentThenSetRow never runs. The function fadeInContent
runs several times. It appears to run through all events of the
data region twice (Accounting for why the data is seen
twice.)

Similar Messages

  • Is there any retro effect for this changes we made in 2001 Infotype for

    HI Experts...
    Please advice me on the follwing absence issue.
    In my clients company.... .... one of Personnel areas employees Earned leave records are not updating in 2001 Infotype from the begining.
    Now they wish to have to update in 2001 Infotype.
    What  are the  Retro effects after updating the EL s in 2001 IT for previous dates.
    Is there any retro effect for this changes we made in 2001 Infotype for the past dates.
    We dont need retro effected from those changes.
    Please advice...
    Sai.

    HI Vincent....
    Thanks for the reply.
    Last month professional tax rates were shown up correctly only.
    For the employees slab rates are similar  that is  200 per month.
    Last month professional  tax rates  were correct only.
    For the current month also the prof tax amount is showing up correctly only.
    Please advice to get the professional tax amount in the payslip.
    Regards,
    V Sai.

  • Problem With Fade Effect For JTextField

    Hello Friends !
    I am putting a 'bounty' of 10 Duke dollars
    for the clever clogs who can help me out !
    I want to create a 'fade in' effect when a
    textfield has the focus and a 'fade out'
    effect when it looses focus.
    The code for what I have done so far is
    listed below, but it leaves nasty 'artifacts'
    behind when painting.
    regards, Asad.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class RunProgramAgain{
    public static void main(String[] args){
    JFrame frame = new MyFrame();
    class MyField extends JTextField{
    public MyField(){
    setPreferredSize(new Dimension(100, 30));
    public void paintComponent(Graphics g){
    super.paintComponent(g);
    if(hasFocus())
    fadeIn();
    else
    fadeOut();
    private synchronized void fadeIn(){
    for(alpha = MIN; alpha <= MAX; ++alpha)
    setBackground(new Color(RED, GREEN, BLUE, alpha));
    private synchronized void fadeOut(){
    for(alpha = MAX; alpha >= MIN; --alpha)
    setBackground(new Color(RED, GREEN, BLUE, alpha));
    private int alpha = MIN;
    private static final int MIN = 0;
    private static final int MAX = 10;
    private static final int RED = 0;
    private static final int GREEN = 255;
    private static final int BLUE = 0;
    class MyButton extends JButton{
    public MyButton(){
    super("Start");
    class MyFrame extends JFrame{
    public MyFrame(){
    setSize(new Dimension(300,250));
    getContentPane().setLayout(new FlowLayout());
    getContentPane().add(new MyButton());
    getContentPane().add(new MyField());
    show();
    }

    Played some more and came up with a class that will allow you to fade the background color of any JComponent:
    import java.awt.*;
    import java.awt.event.*;
    import java.util.Hashtable;
    import java.util.Vector;
    import javax.swing.*;
    public class Fader
         private static final int MIN = 0;
         private static final int MAX = 10;
         private Color fadeFrom;
         private Color fadeTo;
         private Hashtable backgroundColors = new Hashtable();
         **  The background of any Component added to this Fader
         **  will be set/reset to the fadeFrom color.
         public Fader(Color fadeTo, Color fadeFrom)
              this(fadeTo);
              this.fadeFrom = fadeFrom;
         **  The original background of any Component added to this Fader
         **  will be preserved.
         public Fader(Color fadeTo)
              this.fadeTo = fadeTo;
         **  Fading will be applied to this component on gained/lost focus
         public Fader add(JComponent component)
              //  Set background of all components to the fadeFrom color
              if (fadeFrom != null)
                   component.setBackground( fadeFrom );
              //  Get colors to be used for fading
              Vector colors = getColors( component.getBackground() );
              //     FaderTimer will apply colors to the component
              new FaderTimer( colors, component );
              return this;
         **  Get the colors used to fade this background
         private Vector getColors(Color background)
              //  Check if the color Vector already exists
              Object o = backgroundColors.get( background );
              if (o != null)
                   return (Vector)o;
              //  Doesn't exist, create fader colors for this background
              int rIncrement = ( background.getRed() - fadeTo.getRed() ) / MAX;
              int gIncrement = ( background.getGreen() - fadeTo.getGreen() ) / MAX;
              int bIncrement = ( background.getBlue() - fadeTo.getBlue() ) / MAX;
              Vector colors = new Vector( MAX + 1 );
              colors.addElement( background );
              for (int i = 1; i <= MAX; i++)
                   int rValue = background.getRed() - (i * rIncrement);
                   int gValue = background.getGreen() - (i * gIncrement);
                   int bValue = background.getBlue() - (i * bIncrement);
                   colors.addElement( new Color(rValue, gValue, bValue) );
              backgroundColors.put(background, colors);
              return colors;
         class FaderTimer implements FocusListener, ActionListener
              private Vector colors;
              private JComponent component;
              private Timer timer;
              private int alpha;
              private int increment;
              FaderTimer(Vector colors, JComponent component)
                   this.colors = colors;
                   this.component = component;
                   component.addFocusListener( this );
                   timer = new Timer(5, this);
              public void focusGained(FocusEvent e)
                   alpha = MIN;
                   increment = 1;
                   timer.start();
              public void focusLost(FocusEvent e)
                   alpha = MAX;
                   increment = -1;
                   timer.start();
              public void actionPerformed(ActionEvent e)
                   alpha += increment;
                   component.setBackground( (Color)colors.elementAt(alpha) );
                   if (alpha == MAX || alpha == MIN)
                        timer.stop();
         public static void main(String[] args)
              // Create test components
              JComponent textField1 = new JTextField(10);
              JComponent textField3 = new JTextField(10);
              JComponent textField4 = new JTextField(10);
              JComponent button = new JButton("Start");
              JComponent checkBox = new JCheckBox("Check Box");
              JFrame frame = new JFrame("Fading Background");
              frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
              frame.getContentPane().add(textField1, BorderLayout.NORTH );
              frame.getContentPane().add(button, BorderLayout.SOUTH );
              frame.getContentPane().add(textField3, BorderLayout.EAST );
              frame.getContentPane().add(textField4, BorderLayout.WEST );
              frame.getContentPane().add(checkBox);
              //  Fader preserving component background
              Fader fader = new Fader( new Color(155, 255, 155) );
              fader.add( textField1 );
              fader.add( button );
              fader.add( checkBox );
              //  Fader resetting component background
              fader = new Fader( new Color(155, 255, 155), Color.yellow );
              fader.add( textField3 );
              fader.add( textField4 );
              frame.pack();
              frame.setVisible( true );
    }

  • Enhancement for Date changes on IW52

    Hi All,
       I have been looking for an exit or a BADI in the forum for transaction IW51 or IW52, and I couldn't find one which meets the requirement. The requirement is:
    On the IW51/IW52 screen, when user changes the Begin Date and hits the 'Enter' key or navigates away from the screen, he should get a popup message asking to continue changing the date or discard the change (Course I am able to add the popup just before saving).
    SAP does provide this functionality, when user changes the priority type and hits enter, but I haven't been able to find a place where I can do the same when the date is manually changed.
    Can anyone help. Let me know, if my question is not clear.
    Thank you,
    Richa

    Hi Nagaraju,
    Do the following,
    go to SMOD -> LMR1M001 -> click on components -> display
    Double click on EXIT_SAPLMRMP_010 -> click on include zxm08u16 . -> a warning message will come -> press enter and we have a an editable screen
    if sy-tcode = 'MIRO' and E_TRBKPV-bldat > sy-datum.
    Message 'BLDAT cannot be greater than current date'  type 'W'.
    endif.
    Based on the requirement change the code inside the if condition...giving error message is not recommended inside exits...you can also try a pop_up_to_confirm  to get user confirmation
    Remember that we can do only validation here since BLDAT is an importing parameter only(we cannot change it)..see the function EXIT_SAPLMRMP_010 tabs for importing and table parameters....
    We can also try the BADI "INVOICE_UPDATE" in se18
    by using the interface CHANGE_BEFORE_UPDATE ...to do similar validations....
    For this approach,create an implementation for this badi and write code in CHANGE_BEFORE_UPDATE
    based on the table\structure from where we get bldat
    Hope it helps,
    Regards
    Byju

  • For date change of posting

    hii...
    i have done a entry by OASV.
    after post it i have found that posting date is wrong?
    by which t.code i can do it correct .i do this for correct the opening bal. of asset.
    thanks
    Rekha sharma

    Hi
    You need to reverse the entry and then creat a fresh entry in OASV itself
    Thanks & Best Regards
    Sanil K Bhandari

  • Date changes for variant in se38

    Hi Experts,
    Can you please share me the reasons how release dates changes in variant while downloading CSV file for PO in se38.
    In our system automatically release ddates has changed to past in the varainat in se38.
    Will tehre be any effect while downloading CSV files for PO? What might be reasons for dates changes? And how can system pick the dates abnormally??
    Thanks,
    Shruthi.

    Hi,
    Appreciate for the response.
    Actually our system is POs which cretaed in SAP picks up automatically through programs running on daily basis. There is a middleware connector which picks this POs in CSV format and send to the vendor.
    If some times program fails to pick them, we will manually download CSV file and transmit manually through middle ware connector.  We use se38 for this purpose.
    We do this activity regularly. But now we are facing  a problem like release dates got updated in this variant which are in Past ( 6months) back dates got updated and the POs relased on that dates transfreed to vendor. (There is a check with release date in programming).
    Now my questions are:
    1) How those past dates got updated?
    2) Is there any relation ship with manually downloading to update these dates?
    Please clarify.
    Thanks
    Swetha.

  • Data Changes / Transports for Customizing Requests

    Hello,
    I am working on building a report which will fetch the transport related data such as Release Date & Time, Import Date & Time along with the Objects in that particular Transport.
    It works fine in case of Workbench requests because I browse through the VRSD table to fetch the previous transports for the given object.
    However, for Customizing, as we know that we cannot find information in the VRSD table, is there any place where I can look for data changes / previous data for the given Table Content / View Content via any Class or Function Module? Please let me know.
    Regards,
    Venkata Phani Prasad K

    Hello Thomas,
    Thanks for the inputs. Basically, here is what my requirement is.
    1. Let us say we have a view T582L in which we have a record that changed and the change is on a transport (Customizing).
    2. Now, I would like to know whether there is any place where the previous record (Old Record) for the same entry exists on a different transport.
    3. So, it would be to track the changes happened to any of the T-Tables.
    Thats what I wanted to know. Any further inputs would be of great help.
    Regards,
    Venkata Phani Prasad K

  • Fade effect with DataGrid. Header text are visible ... :(

    Hi,
    the problem with DataGrid.
    If I specify the Fade effect for showing DataGrid, all lines
    are showing correct, so the fade works, but the headers text and
    the data texts are showing immediately (like without Fade).
    Is it possible to avoid this effect? I want to show my
    datagrid from alpha 0.00 to 1.00 for ALL elements (for lines, for
    headers, for headers TEXT and of course of data TEXT)
    Is it a bug?

    I had the same problem. I havent fixed it but I did a work
    around and used a WipeDown effect in parallel. It eliminates the
    headers of appearing immediately.

  • Does a Master Data Change Log or Report Exist?

    Does anyone know of a master data change log or report?
    Such a log or report would show all changes made to cons units, cons groups, and items; including additions, deletions and changes to a hierarchy.
    We hope to use this to synchronize cons group/unit and item hierarchies between BCS systems: Production and Development.
    For example, if a master data change was made in the Production system, we would like to log the change, and synch this change back to the Development system.
    Thanks for any insight.

    Thanks, TheScotsman, for really helpful information!
    Some detail of the findings for those who interested:
    There is a "How to... trace changes to master-data  and settings for SEM-BCS" which describes all nuances of tracking changes in MD.
    The HowTo mentions the reports RSVTPROT , UGMD_DB_LOG_DISPLAY, and a t-code SCU3 that may show the changes.
    Certainly the code of the reports might be taken as an example for writing your own code.
    Though, the reports and the SCU3 are useful when the logging of DB tables changes is activated.

  • How to schedule the webi report based on data changes in the report data

    Hello,
    I want  to schedule a webi report based on data change in a column in the report.
    The scenario is something like below:
    1. If a data of a particular column changes from 2 to 3 than I would like to schedule this report and sent it to users mail box.
    I know how to apply alerts or schedule a report or data tracking for capturing changes in the report but I dont know how to schedule the report only for data changes.
    Anybody done this before.
    Thanks
    Gaurav

    Hi,
    May be these links can help you:
    http://devnet.magicsoftware.com/en/library?book=en/iBOLT/&page=SAP_R_3_Master_Data_Distribution_Defining_Change_Pointers.htm
    SEM-BCS: Load from data stream schedule
    Attribute Change Run

  • No Data Change event generated for a XControl in a Type Def.

    Hello,
    Maybe I am missing something but the Data Change event of a XControl is not called when the XControl is used in a Type Def. or Strictly Type Def. (see the attached file).
    There may be some logics behind it but it eludes me. Any idea of why or any idea of a workaround still keeping the Type Def. ?
    Best Regards.
    Julian
    Windows XP SP2 & Windows Vista 64 - LV 8.5 & LV 8.5.1
    Attachments:
    XControl No Data Change event.zip ‏45 KB

    Hi TWGomez,
    Thank you for addressing this issue. It must be a XControl because it carries many implemented functions/methods (though there is none in the provided example).
    Also consider that the provided non-working example is in fact a reduction of my actual problem (in a 1000-VI large application) to the smallest relevant elements. In fact I use a  typedef of a mix of a lot of different XControls and normal controls, some of them being typedef, strictly typedef or normal controls and other XControls of XControls (of XControls...) in a object oriented like approach...
    Hi Prashant,
    I use a typedef to propagate its modifications automatically everywhere it is used in the application (a lot of places). As you imply a XControl would do the same, though one would like to construct a simple typedef when no additional functionality is wanted.
    The remark "XControl=typedef+block diagram" is actually very neat (never thought of it that way) because it provides a workaround by transforming every typedef into a XControl. Thanks very much, I will explore this solution.
    One issue remains: All normal controls update their displayed value when inserted into a typedef but not XControls. Data change event is not triggered. I known that XControls have some limitations (no array of XControls) but I would say, like TWGomez, that this is a “bug” considering the expected functionality.

  • How to fetch data for the Change Request in PROCESS_EVENT

    Hi All,
    I need to write some custom logic on Save/Submit button. For this I am planning to enhance the PROCESS_EVENT method of class CL_USMD_CR_MASTER. Within this method I need to access runtime data of the change request currently being processed.
    I am going to create a post-method exit for this PROCESS_EVENT method. Is this correct?
    I have heard we have APIs in MDG which can be used to fetch data, however I do not know how to use the same.
    Can someone please help me with sample code how to fetch the runtime data of the Change Request
    Thanks in advance.
    Regards,
    Vanessa

    What MDG domain are you working on? What you are trying to do is called "reuse mode" enhancement and you do NOT want to tinker with the FPM feeder classes in this case. SCN document Configuration and Enhancement of SAP Master Data Governance contains many examples on how to achieve this.
    This is a how-to document for MDG-M reuse mode enhancement: Extend MDG-M Data Model by a New Entity Type (Reuse Option)
    This is a how-to document for MDG-C/S reuse mode enhancement: SAP How-To Guide: Extend the MDG Business Partner - Node Extension (Reuse Option)
    Keep in mind, these examples are mainly for additional "master data" fields. If you need additional fields that are not master data but are more related to the Change Request itself, you should use this how-to document: Enhancement of the User Interface Building Block for Change Requests
    Again, all of these documents can be found on the first document I referenced above. I suggest that you bookmark it.

  • ECM : Effective Date change via the portal - ECC 4.0

    Hi ,
    We did configure V_T71ADM10 , so the Effective Date cannot be changed , it look like each time we scroll down in the portal, or we complete the Amount or Percentage in the Plan for one persone , the ECM page is refreshed , and an new "Effective on" date is calculated and decremented by 1 Day  . ... DATE - 1 day , DATE - 1 day , ......
    Anyone run into the same problem ?
    Regard's
    Christophe.

    Hi Deb,
    Check this wiki link for creating different type of iView in Portal including Transaction iView.
    http://wiki.sdn.sap.com/wiki/display/EP/CreationofDifferentTypesofiViewsinEP7.0
    Regards,

  • BC4J Query by example for dates uses wrong date format

    When querying by example on date fields, I get the following nested exceptions:
    oracle.jbo.SQLStmtException: JBO-27121: SQL error during statement execution.
    JBO-26044: Error while getting estimated row count for view object
    and
    java.sql.SQLException: ORA-01830: date format picture ends before converting entire input string.
    It would seem to be caused by the following clause added to the end of the entity object's query:
    "QRSLT WHERE ( ( (DATE_FIELD = TO_DATE('23/12/2003', 'yyyy-mm-dd')) ) )"
    which causes problems as our entity objects use a 'dd/MM/yyyy' date format.
    Is there a way we can make the query by example use the same date format as the rest of our app?

    I‘m not an expert on this but I see nobody is replying so this might help you. I've been having problems with dates as well and I‘m pretty sure that the attached formatter isn't used in find mode. That is because the java date class (can't remember which one) used by the BC4J has the format yyyy-mm-dd. I don't now if it is possible to change it but I got around the problem by writing my own domain. You can take a look at Toystore demo, by Steve Muench, that uses a custom date domain, ExpirationDate (see the code below). It is mapped to a VARCHAR column in the database but it is possible to map it to a DATE column.
    I have been watching the postings with questions about dates and I have noticed that a lot of people have problems with this but I haven’t seen an answer yet.
    package toystore.model.datatypes.common;
    import java.io.Serializable;
    import java.text.SimpleDateFormat;
    import java.util.Calendar;
    import java.util.Date;
    import oracle.jbo.Transaction;
    import oracle.jbo.domain.DataCreationException;
    import oracle.jbo.domain.DomainInterface;
    import oracle.jbo.domain.DomainOwnerInterface;
    // --- File generated by Oracle Business Components for Java.
    * This custom datatype implements an immutable domain class that
    * maps to a VARCHAR column containing values like '10/2004' representing
    * expiration dates of credit cards. We could have chosen to implement
    * this as a domain that stores itself in a DATE column instead of a
    * VARCHAR column, but since the Java Pet Store demo schema stored the
    * information in a VARCHAR column, we decided to illustrate how to
    * accommodate that case using domains.
    public class ExpirationDate implements DomainInterface, Serializable {
    private Date mDate;
    private String mDateAsString;
    protected ExpirationDate() {
    mDate = new Date();
    convertDateToStringFormat();
    * Return the value of the expiration date as a java.util.Date
    public Date getDateValue() {
    return mDate;
    * Allow expiration date to be constructed from two
    * strings representing month and year
    public ExpirationDate(String monthVal, String yearVal) {
    this(monthVal+'/'+yearVal);
    public ExpirationDate(String val) {
    validate(val);
    convertDateToStringFormat();
    * The getData() method must return the type of object that JDBC will
    * see for storage in the database. Since we want this ExpirationDate
    * datatype to map to a VARCHAR column in the database, we return the
    * string format of the date
    public Object getData() {
    return mDateAsString;
    * <b>Internal:</b> <em>Applications should not use this method.</em>
    public void setContext(DomainOwnerInterface owner, Transaction trans, Object obj) {
    * Performs basic validation on strings that represent expiration dates
    * in the format of MM/YYYY. Note that in the process of testing whether
    * the string represents a valid month and year, we end up setting
    * the private member variable mDate with the date value, so if the
    * validate() method does not throw an exception, the mDate will be setup.
    protected void validate(String val) {
    if (val != null) {
    if (val.length() != 7 ||
    val.charAt(2) != '/' ||
    !isAllDigitsExceptSlashAtPositionTwo(val) ||
    !isValidMonthAndYear(val)) {
    throw new DataCreationException(ErrorMessages.class,
    ErrorMessages.INVALID_EXPRDATE,
    null,null);
    * Returns true if all digits except position 2 (zero-based) are digits
    private boolean isAllDigitsExceptSlashAtPositionTwo(String val) {
    for (int z=0, max = val.length(); z < max; z++) {
    if (z != 2 && !Character.isDigit(val.charAt(z))) {
    return false;
    return true;
    * Returns true if the val string, assumed to be in "MM/YYYY" format
    * is a valid month and year value, setting the mDate member variable
    * if they are valid.
    private boolean isValidMonthAndYear(String val) {
    try {
    int month = Integer.parseInt(val.substring(0,2));
    int year = Integer.parseInt(val.substring(3));
    Calendar c = Calendar.getInstance();
    c.setLenient(false);
    c.set(year,month-1,1); // Month is zero-based !
    mDate = c.getTime();
    catch (IllegalArgumentException i) {
    return false;
    return true;
    public String toString() {
    return mDateAsString;
    * Convert mDate to String format
    private void convertDateToStringFormat() {
    if (mDate != null) {
    SimpleDateFormat sdf = new SimpleDateFormat("MM/yyyy");
    mDateAsString = sdf.format(mDate);
    * Return true if the expiration date is in the future
    public boolean isFutureDate() {
    return mDate.compareTo(new Date())> 0;
    * Compare the Expiration Dates by comparing their respective
    * getData() values
    public boolean equals(Object obj) {
    if (obj instanceof DomainInterface) {
    Object thisData = getData();
    if (thisData != null) {
    return thisData.equals(((DomainInterface)obj).getData());
    return ((DomainInterface)obj).getData() == null;
    return false;

  • BOM data refresh for a change in material master

    Hi!!
    I would like to ask for your help..
    I have to change frequently procurement type in material master (view "MRP 2")
    How can I, afterwards, refresh the BOM linked to that material, so to have new procurement updated for my production order??
    Thanks for your kind answer!!!
    Regards
    Chiara

    Dear Chiara,
    For the already existing production orders,after entering the order no in CO02,click on Functions--->Read PP Master Data,so
    that the made changes become effective.
    For the change which you have made can be seen during the next MRP run in the system.
    Check and revert back.
    Regards
    Mangalraj.S

Maybe you are looking for