Print Page | Close Window

Create Report User Parameter

Printed From: ORCL Toolbox
Category: ORCL Toolbox
Forum Name: FormsAPI Master
Forum Description: FormsAPI Master related questions and answers
URL: http://www.orcl-toolbox.com/forums/forum_posts.asp?TID=992
Printed Date: 21-September-2021 at 11:06am
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Create Report User Parameter
Posted By: pgutierrez
Subject: Create Report User Parameter
Date Posted: 26-January-2021 at 8:09am
Hello,

I am trying to create an user parameter in a report but when I run the script it shows an error (REP-0015:This object type cannot be created!)

The script is:

DECLARE
  filename :varchar2;
  rep: number;
  vNewParam : number;
BEGIN
  --
  try
    filename := 'Q:\tmp\fapi\1\esi05900.rdf';
    rep := RepAPI_LoadModule( filename );
    vNewParam := RepGeneric_Create(rep, 'PARAM1', D2RRO_USER_PARAM);
    RepAPI_SaveModule(rep, filename);
    --
  except
    LogAddError;
    RepAPI_FreeModule(rep);
  end;
  --
END;

The output is:

165737 [Info]    Script execution started
165741 [Error]   [ReportsAPIException] REP-0015:This object type cannot be created!(lin:10|col:18)
165741 [Info]    Script execution finished in 3,64 seconds


Thanks in advance!




Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk