You are viewing limited content. For full access, please sign in.

Question

Question

me.Entry

asked on April 2, 2014

Imports System

Imports System.Collections.Generic

Imports System.ComponentModel

Imports System.Data

Imports System.Data.SqlClient

Imports System.Text

Imports Laserfiche.RepositoryAccess

Imports LFSO90Lib

Imports Microsoft.VisualBasic

 

Namespace WorkflowActivity.Scripting.SDKScript

'''<summary>

'''Provides one or more methods that can be run when the workflow scripting activity is performed.

'''</summary>

Public Class Script1

Inherits RAScriptClass91

'''<summary>

'''This method is run when the activity is performed.

'''</summary>

Protected Overrides Sub Execute()

MsgBox("1")

SetTokenValue("ValidGLCoding", False)

Dim Doc As LFDocument = me.Entry

'Get the collection of fields for the doc

Dim FD As ILFFieldData = Doc.FieldData

Dim SqlId as String = string.Empty

MsgBox(FD.Field("GLCoding").ToString)

SqlId = FD.Field("SqlId").ToString()

 

causes error

 

Error 1 'Entry' is not a member of 'WorkflowActivity.Scripting.SDKScript.Script1'. \SDKScript\Script 1.vb 24  Workflow 2
 

 

 

 

me.Entry needs to be replace with ???? to work now in LFSO90Lib

 

0 0

Replies

replied on April 2, 2014

Workflow 9.1 scripts default to using RepositoryAccess by default rather than LFSO90. You can either use me.BoundEntryInfo to work with RA or you can switch the base class of the script to SDKScriptClass90 ("Inherits RAScriptClass91" becomes "Inherits SDKScriptClass90" - case sensitive!) to make the script use LFSO90 as its primary way of interacting with LF.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.