// generated by FBuilder
package flexa.ff;
import flexa.fb.*;
import java.util.Map;
import java.util.HashMap;
import javax.script.*;
import java.util.ArrayList;
public class step extends FComponent {
    //
    // CONSTRUCTOR
    //
    public step() {
        super("ff.step");
    }
    
    // 
    // Methods
    //
    
    // 
    // Events
    //
	public void event(String aAction, FContext aContext) throws Exception {
        // Events
        
    
        // onopen EVENT
        if( LibText.stringToArray("" + this.id + ".select," + this.id + ".refresh,onopen,start").contains(aAction) ) {
        			if( this.status <= 0 && hasValue("datasource") ) {
			    Log.getInstance().info("STEP event " + aAction + " datasource : " + (String)getValue("datasource") );
			    FResult result = this.processDatasource(aContext); //Util.sqltoarrayddtotal(aContext, (String)getValue("datasource"));  // Execute ds
			    this.clonefromresult(result, aContext); // Clone me
			}

        }
    


	    super.event(aAction, aContext);
	}
	
	
}