Appframe Knowledge Base


1 hits
0

How to use prompt in Appframe

	af.controls.prompt({
            title: "Add Period",
            message: "Enter period for monthly points",
            defaultValue: ((new Date()).getFullYear() * 100) + (new Date()).getMonth()+1,
            callback: function(pPeriod) {
				af.article.procedures.procAddMontlyPoints.execute({"Period": pPeriod}, function (e,res){
					alert("Montly points added");
				}, "", true);
            }
        });

components web · Perma link post comment Posted by: Peter Øren (29-jan-2013)