able to run in batch
It has everything ready, you only need to modify the classname, description
method and main method.
It has also implemented dialogmethods.
Its a perfect starter!
Good luck
Jacob
At 23:43 07.07.2004, you wrote:
>Does anybody has an example of how to implement or use RunBaseBatch
>class?? I need to execute a process on a form throught a class, but I
>don�t know how can I program this batch.
>
>I'm have to run a batch process every day at 8:00 a.m, so I need to
>implement a way to do this automaticaly.
>
>Or If anybody has other way to do this??
>
>Thanks in advance!!!
>
>Best Regards.
>
>Gonzalo
>
>
>
>Yahoo! Groups Sponsor
>ADVERTISEMENT
><http://us.ard.yahoo.com/SIG=129nmh1gg/M=295196.4901138.6071305.3001176/D=groups/S=1705006764:HM/EXP=1089357608/A=2128215/R=0/SIG=10se96mf6/*http://companion.yahoo.com>
>278aa73e.jpg
>
>278aa824.jpg
>
>
>
>----------
>Yahoo! Groups Links
> * To visit your group on the web, go to:
> *
> <http://groups.yahoo.com/group/development-axapta/>http://groups.yahoo.com/group/development-axapta/
>
> *
> * To unsubscribe from this group, send an email to:
> *
> <mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED]
>
> *
> * Your use of Yahoo! Groups is subject to the
> <http://docs.yahoo.com/info/terms/>Yahoo! Terms of Service.
----------
Exportfile for AOT version 1.0 or later
Formatversion: 1
***Element: CLS
; Microsoft Business Solutions-Axapta Class: SPA_DEMOBatchClass eksportert Torsdag 08.07.2004
; --------------------------------------------------------------------------------
CLSVERSION 1
CLASS #SPA_DEMOBatchClass
PROPERTIES
Name #SPA_DEMOBatchClass
Extends #RunBaseBatch
RunOn #Called from
ENDPROPERTIES
METHODS
Version: 3
SOURCE #CanGoBatchJournal
#public boolean canGoBatchJournal()
#{
# return true;
#}
ENDSOURCE
SOURCE #classDeclaration
#class SPA_DEMOBatchClass extends RunBaseBatch
#{
# str dummyValue;
# DialogField dfDummy;
#
# #DEFINE.CurrentVersion(2)
# #LOCALMACRO.CurrentList
# dummyValue
# #ENDMACRO
#}
ENDSOURCE
SOURCE #dialog
#// AOSRunMode::Server
#Object dialog()
#{
# DialogRunbase dialog = super();
# ;
# dfDummy = dialog.addField(typeId(Name),"Dummy");
# dfDummy.value(dummyValue);
#
# return dialog;
#}
ENDSOURCE
SOURCE #getFromDialog
#// AOSRunMode::Server
#boolean getFromDialog()
#{
# boolean ret = super();
# ;
#
# dummyValue = dfDummy.value();
#
# return ret;
#}
ENDSOURCE
SOURCE #pack
#public container pack()
#{
# return [#CurrentVersion, #CurrentList];
#}
ENDSOURCE
SOURCE #run
#public void run()
#{
# super();
#
# this.setProgress("",0);
#
# //while ....
# {
# progress.incCount();
# }
#}
ENDSOURCE
SOURCE #setProgress
#void setProgress(str text,int total)
#{
# ;
# progress = RunbaseProgress::construct(1);
# progress.setCaption(text);
# progress.setTotal(total);
# progress.setAnimation(#AviUpdate);
# progress.updateInterval(1);
#}
ENDSOURCE
SOURCE #unpack
#public boolean unpack(container _packedClass)
#{
# Integer version = conPeek(_packedClass,1);
#
# switch (version)
# {
# case #CurrentVersion:
# [version,#CurrentList] = _packedClass;
# break;
#
# default:
# return false;
# }
# return true;
#}
ENDSOURCE
SOURCE #description
#static ClassDescription description()
#{
# ;
# return "";
#}
ENDSOURCE
SOURCE #main
#static void main(Args args)
#{
# SPA_DEMOBatchClass classObject = new SPA_DEMOBatchClass();
# ;
#
# if(!classObject.prompt())
# return;
#
# classObject.run();
#}
ENDSOURCE
ENDMETHODS
ENDCLASS
***Element: END
[Non-text portions of this message have been removed]
| Yahoo! Groups Sponsor | |
|
|
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

