Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
running report from LAPI
Mahesh_Pinnamaneni
PLease review the below code to run the report and let me know what is wrong... LLValue repInput = new LLValue().setList(); LLValue repInputChilds2 = (new LLValue()).setAssoc(); repInputChilds2.add("inputType","Number"); repInputChilds2.add("label","inputLabel1"); repInputChilds2.add("prompt","EmployeeNodeId"); repInputChilds2.add("Value","33599"); repInput.add(repInputChilds2); LLValue repOutput = (new LLValue()).setAssocNotSet(); doc.RunReport(-2000, 33384, repInput, repOutput); -------------------------------------------Thanks,Mahesh
Find more posts tagged with
Comments
Appu_Nair
according to the APIDOC the repOutPut is expected to be a RecarrayRecType rather than an assoc.So in lapi it would probably be LLValue repOutput = (new LLValue()).setTable();Could that be the problem or would you export your LR and I will try and see what it is trying to do
Appu_Nair
I really don't thik the prototype mismatch has a difference.Sorry for posting that. I looked at this link and it said that the documentation is wrong
https://knowledge.opentext.com/knowledge/llisapi.dll?func=ll&objId=3728655&objAction=ArticleView&viewType=1From
that"Label Attribute:The documentation states the "Label" attribute for each report input should be the input parameter label. This is not actually the input prompt setup in the report. Instead, it's the string "inputLabelX" where X is an integer representing the input number. For instance, if you have three inputs, the labels should be inputLabel1, inputLabel2, and inputLabel3."maybe the prompt is not needed .I don't know.Post your LR and somebody may help you
Appu_Nair
I think I know where your error is coming from you are defining input type as Number and then passing a string on this linerepInputChilds2.add("Value","33599");change that to repInputChilds2.add("Value",33599);and run it and see if you have output
Mahesh_Pinnamaneni
absolutely correct. This is what I made a mistake.. passed String instead of Number.