Repository add report (OpenInsight)
At 12 DEC 2000 06:55:40PM Jim Vaughan wrote:
I am using the 3.7.3 version of OI.
I am using the following code to add a report to the list of reports in report builder.
RET_VAL=REPOSITORY("NEW",REPORT_NAME,"",1,1,"","","","","",REC_NAME,REPORT_REC)
It adds OK, however when I run the report by calling OR_VIEW. Instead of seeing the report, the viewer terminates immediately and the status line shows "CHmust be followed by a quoted string."
I can correct this by going into report builder, opening the report and saving the report.
So what does the saving of the report do that corrects this?
At 14 DEC 2000 12:19PM Jim Vaughan wrote:
Maybe I am missing something but I thought getting you questions answered on here the main point of being a member of the Works program?
If not, should I drop my Works membership and ask the question on the main discussion board?
At 14 DEC 2000 01:43PM Don Miller - C3 Inc. wrote:
Jim ..
My suspicion is that nobody knows the right answer and would rather not lead you astray .. at least I hope this is the case. Have you tried analyzing the "before" and "after" versions of the repository version with System Editor? Also, the source code for OR_VIEW, etc. is available without joining the "collaborative development" thingie. You might be able to go into the source to see where this error occurs and why. This might lead you to figgering out what else you have to add in your code.
Don Miller
C3 Inc.
At 14 DEC 2000 02:04PM Jim Vaughan wrote:
Good idea, I'll take a look at the source.
At 14 DEC 2000 02:18PM Jim Vaughan wrote:
OK, the error is occuring in RLIST. Do we have the source to that available?
At 14 DEC 2000 02:26PM Jim Vaughan wrote:
"before" and "after" versions of the repository version with System Editor"
That of course was the trick, my code was stripping out quotes and the save put them back.
I found the answer, but no one from Revelation answered the question. Doesn't say much for the value of "The Works" does it. Unless Don would have ignored my question on the regular board.
At 14 DEC 2000 02:47PM WinWin/Revelation Technical Support wrote:
Jim-
Sorry for the delay.
When you create a new RBLAYOUT , TRY the following FUNCTION call:
X=REPOS.OIREPORT..NEW (charstr message, charstr entid, integer state, integer publish, integer share, charstr super, charstr sub, charstr document, charstr accessPermit, charstr updatePermit, charstr title, charstr source)
Hope it Helps
Mike Ruane