Create Journal Upload with Batch Form


just duplicate class tutorial_runBaseBatch, then modify the following class :

on class declaration :

public class JournalUploadExcextends RunBaseBatch
    DialogField         dfFileName;
    FileName            fileName  ;


on dialog() :

public Object dialog()
    DialogRunbase       dialog = super();
    dfFileName = dialog.addFieldValue(extendedTypeStr(FileNameOpen),fileName);
    dialog.filenameLookupFilter(["All files", #AllFiles]);

    return dialog;

on method getFromDialog() :

public boolean getFromDialog()
    //do what ever you want in this class. i call upload journal method with PathFile as parameter
    return super();

voila.. !! done.. !!


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s