Hi, I have the following issue
- I successfully created and installed LL Attribute for Category using examples from the Attribute Package 1 v.1.0.0 for LiveLink 9.70
- Also My Attibute can be selected in WorkFlow Attributes and also Forms
- The main idea of my attribute is Auto Complete - an input field to enable users quickly finding and selecting some value, leveraging searching and filtering
- The value passes to the LiveLink using AJAX from the input filed by OnPressKey event. Here is an example //set parametrs for Fieldname, pressed value, and attribute ID pars+="&fldname="+fieldname+"&pressedval="+val+"&aid="+attrid+"&VerNum=`verNum`&objid=`objID`";//call request handler getDBData url='?func=dmautocomplete.getDBData'; //Send url with param using Ajax request to return ComboBox with values i var myAjaxS = new Ajax.Updater( fieldname+'-content', encodeURI(url), { method: 'get', parameters: encodeURI(pars),requestHeaders:['If-Modified-Since', '0'],evalScripts:true });
- But when I add the autocomplete attribute to WorkFlow in the Work flow Attributes, try to press any char on the keyboard, i get an error
HTTP_ACCEPT_LANGUAGE = 'lv-LV,lv;q=0.8,en-US;q=0.6,en;q=0.4,en-GB;q=0.2'
HTTP_CACHE_CONTROL = 'max-age=0'
HTTP_CONNECTION = 'keep-alive'
HTTP_COOKIE = 'LLCookie=9Is7MpXRKRERwpmi%2Bl%2Br4pzXMV0DxyPTkDIOIkf%2BbCA%3D; LLTZCookie=0; ASPSESSIONIDQCBCQARQ=OCCNBOMBGAEGLPBBJ
HTTP_HOST = 'lltest2'
HTTP_IF_MODIFIED_SINCE = '0'
HTTP_REFERER = 'http://lltest2/livelink/livelink.exe?func=work.framestarttaskright&mapid=309576&MICacheID=1354284750&nextURL=/li
HTTP_USER_AGENT = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safa
HTTP_X_PROTOTYPE_VERSION = '1.4.0'
HTTP_X_REQUESTED_WITH = 'XMLHttpRequest'
objid = 'An unknown feature was specified'
PATH_TRANSLATED = 'C:\Inetpub\wwwroot'
pressedval = 'a'
QUERY_STRING = 'func=dmautocomplete.getDBData&&fldname=_1_1_2_1&pressedval=a&aid=2&VerNum=An%20unknown%20feature%20was%20specified
REMOTE_ADDR = '10.20.30.235'
REMOTE_HOST = '10.20.30.235'
REQUEST_METHOD = 'GET'
SCRIPT_NAME = '/livelink/livelink.exe'
SERVER_NAME = 'lltest2'
SERVER_PORT = '80'
SERVER_PROTOCOL = 'HTTP/1.1'
SERVER_SOFTWARE = 'Microsoft-IIS/5.1'
VerNum = 'An unknown feature was specified'
_ = ''
_REQUEST = 'llweb'
Dispatcher error: Invalid datatype specified for argument "objid".
Mon Mar 21 13:34:23 2011 - 423188142Func='dmautocomplete.getDBData'Timing:0.015 0.010 0.015
Here is the Code from LLRequestHandler of my attribute
function Dynamic Execute( Dynamic ctxIn, Dynamic ctxOut, Record r )
Assocresult
DAPINODEnode
DAPIVERSIONversion
Dynamiccontent
Booleanok = TRUE
IntegercacheID = 0
ObjectprgCtx = .PrgSession()
if IsFeature( r, "CacheID" )
cacheID = Str.StringToInteger( r.CacheID )
if IsUndefined( cacheID )
cacheID = 0
end
end
if cacheID > 0
result = $LLIApi.CacheUtil.Load( prgCtx, cacheID )
if !result.OK
ok = FALSE
.fError = result.ErrMsg
else
content = result.ObjectValue
end
else
node = DAPI.GetNodeByID( prgCtx.DSession().fSession, DAPI.BY_DATAID, r.objid )
if IsError( node )
ok = FALSE
.fError = 'Error retrieving the definition.'
else
//Get the attribute valid values from the database.
version = DAPI.GetVersion( node, r.VerNum)
//Get the current version of the node.
if IsError( version )
ok = FALSE
.fError = 'Error retrieving a version of attributes definition.'
else
result = $LLIApi.LLNodeSubsystem.GetItem( node.pSubType ).NodeFetchVersion( node, version)
if !result.OK
ok = FALSE
.fError = result.ErrMsg
else
content = Assoc.CreateAssoc()
content.RootSet = result.Content
end
end
end
end
if ok
...........
I understand the issue, that I use VerNum and objId for LL Category, but I can find info how to make it is worked for Work Flows and Forms
How can I make that my attribute would work in WorkFlowsand Forms?
Could somebody help me, thanks a lot?