Max no of parameters in cgicmd.dat

Hi,
It has been observed that the max no of parameters that can be
passed thro'key mapping is 9.
If the no of parameters r more than 9, an error "Error parsing
parameters to command line" is flashed.
What r the options available in case one has to pass more than 9
parameters thro'key mapping.
The problem is concerned with reports6i
Thanx
Yogesh

We encounter problems on Oracle 8.05 when attempting to have more then 30 parameters.
("Invalid parameter type (sqlstate=S1105)").
Slobodan
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Jay ([email protected]):
Is there a limit on the number of parameters that can be used in the PL/SQL procedure declaration?
Jay<HR></BLOCKQUOTE>
null

Similar Messages

  • Number of parameters possible in cgicmd.dat?

    Is it possible to have more than 10 parameters in the cgicmd.dat keyfile?
    I have a query that requires a lot of joins and would like to use parameters like
    param1=%1
    param20=%20.
    The problem seems to be that I can't use 2-digit parameters - I run into trouble as soon as I use something like %10. The cgi then substitutes the %1 value and errors on the '0' part.
    any help much appreciated!
    null

    Hi, Alan and John
    The following is written in the cgicmd.dat file ITSELF:
    ; Currently recognized special parameters:
    ; %0 - %9 - 0..9 arguments from original RWCGI60 URL request. Note that %0 refers to the key itself.Remember that you can also create different key maps for the same report (again in cgimap.dat) with some of the parameters already filled.
    Or you can use PARAMFORM=YES and use an HTML FORM to enter the parameters (if you are not calling the reports in BATCH mode).
    The limit of 9 parameters only applies for parameters that you would want to enter in the URL itself.
    Hope this helps,
    Pedro

  • Problem with cgicmd.dat in reports 10g

    Dear Sir/Mam,
    I've configured report serve on solaris 10. When executing reports using web url with key map given in cgicmd.dat file, I'm getting a very strange problem. Whatever parameters m passing to the reports through web url an additional "=" character is appended automatically. I'm giving details of the files below. Please help me out. Thanks in advance.
    Content of rwservlet.properties:-
    SERVER_IN_PROCESS=YES
    RELOAD_KEYMAP=YES
    DIAGNOSTIC=YES
    TRACEOPTS=TRACE_ALL
    TRACEFILE=rwservlet.trc
    TRACEMODE=TRACE_REPLACE
    SERVER=test
    #IMAGEURL=http://<web_server_name>:<port_num>/reports/rwservlet
    KEYMAPFILE=cgicmd.dat
    #DBAUTH=RWDBAUTH.HTM
    #SYSAUTH=RWSYSAUTH.HTM
    #ERRORTEMPLATE=RWERROR.HTM
    #COOKIEEXPIRE=30
    ENCRYPTIONKEY=reports9i
    #DIAGBODYTAGS=<reports_servlet_help_file_title>
    #DIAGHEADTAGS=<reports_servlet_help_file_body_tag>
    #HELPURL=<url_of_customized_help_file_for_reports_servlet>
    #SINGLESIGNON=YES
    OID_ENTITY=%REPORTS_OID_ENTITY%
    #ALLOWHTMLTAGS=NO
    #REPORTS_NETWORK_CONFIG=rwnetwork.conf
    #OIDCON_INIT=10
    #OIDCON_INCREMENT=10
    #OIDCON_TIMEOUT=0
    DEFAULTCHARSET=JA16EUC
    #DEFAULTCHARSET=EUC-JP
    Content of cgicmd.dat:-
    osk47zgenp: report=%1 userid=utimainapp/utimainapp@testdb rundebug=NO desformat=delimited destype=cache mode=bitmap mast_ext=roymask.xls p_start_dt=%2 p_end_dt=%3 p_srvc_id=%4 p_sch_id=%5 p_agnt_cd=%6 p_user_id=%7 p_sesn_id=%8
    Report URL is:-
    http://10.10.100.110:8890/reports/rwservlet?osk47zgenp+rp_os424_mat_recon.rdf+30-JUN-2009+01-JAN-2010++31++shashi+1492544
    Error coming on browser:-
    REP-110: File 'rp_os424_mat_recon.rdf=' not found.
    REP-0110: Unable to open file 'rp_os424_mat_recon.rdf='.
    Content of rwservlet.trc:-
    [2011/1/19 7:37:1:624] (RWClient:doGet) enter...
    [2011/1/19 7:37:1:625] Debug 50103 (RWClient:doGet): QueryString: osk47zgenp+rp_os424_mat_recon.rdf+30-JUN-2009+01-JAN-2010++31+
    shashi1492544
    [2011/1/19 7:37:1:625] Info 50103 (RWClient:processRequest): reload key map file: s_reloadKeyMap: YES
    [2011/1/19 7:37:1:626] Debug 50103 (KeyEntry:replaceParams): report=rp_os424_mat_recon.rdf= userid=utimainapp@testdb rundebug=N
    O desformat=delimited destype=cache mode=bitmap mast_ext=roymask.xls p_start_dt=30-JUN-2009= p_end_dt=01-JAN-2010= p_srvc_id=31=
    p_sch_id=shashi= p_agnt_cd=1492544= p_user_id= p_sesn_id=
    [2011/1/19 7:37:1:626] Debug 50103 (RWClientUtility:isFromPortal): portal: null
    [2011/1/19 7:37:1:626] Debug 50103 (RWClientUtility:isFromPortal): webdbversion: null
    [2011/1/19 7:37:1:627] Info 50103 (RWClientUtility:findServer): Failed to bind to server: test
    [2011/1/19 7:37:1:627] Warning 50103 (RWClient:startInProcessServer): start inprocess server test
    [2011/1/19 7:37:1:657] Debug 50103 (NetworkUtility:getIOR): Found a server and returning the IOR
    [2011/1/19 7:37:1:658] Debug 50103 (ServerManager:getServer): Found server class object
    [2011/1/19 7:37:1:659] Debug 50103 (ServerManager:getServer): ping server successfully
    [2011/1/19 7:37:1:660] Debug 50103 (RWClientUtility:getReportsServer): server: test
    [2011/1/19 7:37:1:660] Debug 50103 (ServerManager:getServer): Found server class object
    [2011/1/19 7:37:1:660] Debug 50103 (ServerManager:getServer): ping server successfully
    [2011/1/19 7:37:1:661] Debug 50103 (AuthManager:getAuthId): server secure: false
    [2011/1/19 7:37:1:663] Debug 50103 (RWClientUtility:getReportsServer): server: test
    [2011/1/19 7:37:1:664] Debug 50103 (RWClientUtility:getReportsServer): server: test
    [2011/1/19 7:37:1:664] Debug 50103 (ServerManager:getServer): Found server class object
    [2011/1/19 7:37:1:665] Debug 50103 (ServerManager:getServer): ping server successfully
    [2011/1/19 7:37:1:666] Debug 50103 (RWClientUtility:isFromPortal): portal: null
    [2011/1/19 7:37:1:666] Debug 50103 (RWClientUtility:isFromPortal): webdbversion: null
    [2011/1/19 7:37:1:667] Debug 50103 (RWClient:runReport): cmdline: p_end_dt=01-JAN-2010= baseUrl=http://10.10.100.110:8890/report
    s/rwservlet/getfile/ userid=utimainapp@testdb USER_AGENT="Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0)" p_srv
    c_id=31= SERVER_NAME=10.10.100.110 jobname="rp_os424_mat_recon.rdf=" p_sesn_id= mast_ext=roymask.xls getFilestr=/no> imagekey=re
    ports9i p_user_id= REMOTE_ADDR=10.10.105.54 SERVER_PROTOCOL=HTTP/1.1 authid=RWUser p_start_dt=30-JUN-2009= mode=bitmap REMOTE_HO
    ST=10.10.105.54 destype=cache SERVER_PORT=8890 p_sch_id=shashi= report="rp_os424_mat_recon.rdf=" expiredays=0 ACCEPT_LANGUAGE=en
    -us desformat=delimited p_agnt_cd=1492544= SCRIPT_NAME=/rwservlet rundebug=NO
    [2011/1/19 7:37:1:668] Debug 50103 (ServerManager:getServer): Found server class object
    [2011/1/19 7:37:1:669] Debug 50103 (ServerManager:getServer): ping server successfully
    [2011/1/19 7:37:1:669] Debug 50103 (ReportRunner:connectToServer): New Connection request for userid: RWUser to server: test
    [2011/1/19 7:37:1:673] Debug 50103 (ReportRunner:connectToServer): Connection succeeded for user: RWUser to server: test
    [2011/1/19 7:37:1:709] Info 51022 (ReportRunner:Release): Connection object has been released
    [2011/1/19 7:37:1:711] Exception 110 (): File 'rp_os424_mat_recon.rdf=' not found.
    REP-0110: Unable to open file 'rp_os424_mat_recon.rdf='.
    oracle.reports.RWException: IDL:oracle/reports/RWException:1.0
    at oracle.reports.RWExceptionHelper.read(RWExceptionHelper.java:67)
    at oracle.reports.server._ConnectionStub.runJob(_ConnectionStub.java:504)
    at oracle.reports.client.ReportRunner.dispatchReport(ReportRunner.java:288)
    at oracle.reports.rwclient.RWReportRunner.dispatchReport(RWReportRunner.java:86)
    at oracle.reports.rwclient.RWClient.runReport(RWClient.java:1671)
    at oracle.reports.rwclient.RWClient.processRequest(RWClient.java:1525)
    at oracle.reports.rwclient.RWClient.doGet(RWClient.java:366)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:534)
    [2011/1/19 7:37:1:711] Debug 50103 (RWClientUtility:isFromPortal): portal: null
    [2011/1/19 7:37:1:711] Debug 50103 (RWClientUtility:isFromPortal): webdbversion: null
    [2011/1/19 7:37:1:716] Debug 50103 (RWClientUtility:isStatusFormat): statusformat: null
    [2011/1/19 7:37:1:717] Debug 50103 (RWClientUtility:isStatusFormat): statusformat: null
    [2011/1/19 7:37:1:717] (RWClient:doGet) ...exit

    HI,
    From where can I get access of the Doc id 341188.1. Could u tell me the solution? I'm stuck with it for more than 2 weeks.
    Thanks in advance.
    Regards,
    Shashi Ranjan

  • Cgicmd.dat file usage

    Hi,
    I am generating my reports using the cgicmd.dat file in pdf format and my application is in web-based html.
    I have a report which passes 4 paramters and 2 of it is considered imortant (and dynamic according to user interaction in the begining) and should not be changed by the users. I have found out that by using the parameter forms like %P, %PT and %PC entry in the cgicmd.dat file would means that I cannot use other user parameters in the file entry, and so also in the reverse situation.
    But when I tried to put both of them (%P and %1..%4 for user parameters) together, then call up the reports with the parameter values included in the entry (like http://server/repserver/?repname+value1+v2+v3+v4), I seems to be able to pass the important values to the displayed parameter form while hiding them and asking the users to enter only the other 2 parameters which they may change.
    But then, when I submit the form, it gave me an error:
    ======================================================
    Error: The requested URL was not found, or cannot be served at this time.
    Oracle Reports Server CGI - Error occurred while parsing the Reports Server command line.
    ======================================================
    May anyone assist me on how I can make use of the parameter form and also passing in some values that are dynamic and cannot be changed by the users?
    Thank you in advance for your assistance!

    FYI...
    Our dev and prod are at the same levels. I was able to narrow the problem down further, however. It appears to be a row size problem. If I force a rownum < 1500 in my report's query, then it works fine on dev and prod. If I force a rownum < 2000, then it crashes the engine on prod. The reason it works on dev and not on prod is that the amount of data on dev is far less than prod. Also, I ran the report locally on my PC against the prod database and it gave me a little more info. The report appears to query all of the rows fine, but it gets an ArrayIndexOutOfBounds exception. Since the report comes back with all rows just fine using a DESFORMAT other than DELIMITED, I believe it's a bug with applying the delimiter when formatting the report. The admins say that we are a few patchsets behind, so I'm guessing it is a fixed bug already.
    Thanks.

  • Manupulation in  cgicmd.dat file...!

    Hi all I'm using Forms/Reports 9.0.1 ..My question is wether is it possible to make a key in cgicmd.dat file for "HOST" i.e.
    mykey:http://local11:8888/reports/rwservlet
    can i make a key like that ...???? If yes, then how to use it ... I have referred the mannual for that it says 'Key must be defined for parameters after the "?" sign in URL '...
    I want to hide the HOST path in URL of web.show_document command..
    Anybody,
    Thanx in advance
    Regards
    Percy

    Thanx for reply ..
    can i make key for whatever written on LEFT of "?"...
    Let me tell u first why i want to do this .. It might be possible that my host server might get changed in future & if it happens i ve to change the host name in every form where i wrote the web.show_document statement ... that could be a big headache...i dont want to do that..... So instead of modifying the statement in every form can i make a KEY in cgicmd.dat so that i will modify only the KEY and subsequent changes will reflect in every form...!!

  • Cgicmd.dat and do what with it???

    What do i need to put into the CGI and what do i need to add to my html string to hide the uname and pword.

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by the oracle reports team:
    hello,
    the cgicmd.dat is exactly for this reason.
    if you have in your cgicmd.dat e.g.
    foo: server=myserver1.world report=foo.rdf username=test/test@db
    foo2: server=myserver1.world report=foo2.rdf username=test/test@db
    you the invoke the reports using http://server.com/dev60cgi/rwcgi60.exe?foo
    or http://server.com/dev60cgi/rwcgi60.exe?foo2
    see online documentation for further details. there are multiple other parameters you can add to the CGI-key file
    regards,
    the oracle reports team<HR></BLOCKQUOTE>
    Hey,
    I have everything set up just like above and i keep getting a report server not specified error in the browser. I KNOW the server is specified in the .dat file. Help soon.

  • Using the cgicmd.dat file

    In using the 9i report (pdf) format as a portlet
    for portal we are required to supply the OID resource
    under the ssoconn parameter . Since the numbers of users
    are high and there seems to be no way other assigning programatically the resources ..
    am wondering if i could use the cgicmd.dat file
    i have seen examples for thing for jsp's but i dint see one for the rdf( pdf) formats run via rwservlet..
    any pointer examplese would greatly help..
    deepa

    Hi Deepa,
    Take a look at the cgicmd.dat file that comes with the iAS installation
    ORACLE_HOME/reports/conf/
    This file has examples for rwservlet as well as for jsp's. To quote from this file:
    ; Oracle9iAS Reports Services ;
    ; CGICMD.DAT ;
    ; Example CGICMD.DAT Mapping file ;
    ; Syntax:
    ; KEY : VALUE
    ; Where:
    ;     KEY - the first argument of the rwservlet URL request (case insensitive).
    ;     VALUE - command line parameters and/or special parameters.
    ; Keys can be referenced in the following ways:
    ; 1. Parameter on command line to the reports servlet
    ; e.g. http://machine/servlet/rwservlet?KEY
    ; 2. Parameter on command line to a reports jsp
    ; e.g. http://machine/mydir/myreport.jsp?KEY
    ; 3. Within a reports jsp - in the rw:report custom tag
    ; e.g. <rw:report parameters="KEY">
    Also, you could take a look at the Publishing reports manual, Section 8.9
    http://otn.oracle.com/documentation/reports.html
    Navneet.

  • Oracle Reports 10g cgicmd.dat

    Hello!
    We are migrating from oracle reports 6i to 10g. The URL before looked like this:
    http://localhost:7778/cgi-bin/rwcgi60.exe?ebib_dev+BibArve.rep+44252
    We use now rwservlet instead, thus the link is the following:
    http://localhost:7778/reports/rwservlet?ebib_dev+BibArve.rep+44252
    The appropriate record in cgicmd.dat is:
    ebib_dev: report=%1 P1=%2 desformat=pdf destype=cache userid=user/passwd@MYDB
    When executing the URL we get the following error:
    REP-110: File 'BibArve.rep=' not found.
    REP-0110: Unable to open file 'BibArve.rep='.
    Why this extra "=" appears? I have no idea :( I tried "&" instead of "+", same effect
    Please help!
    Thanks in advance,
    Andrei

    Andrei,
    this is filed as bug 4671569
    To work around this issue, use %* and add the parameters to the Reports URL
    e.g.
    http://localhost:7778/reports/rwservlet?ebib_dev&report=BibArve.rep...
    cgicmd.dat
    ebib_dev: desformat=pdf destype=cache userid=user/passwd@MYDB %*
    For more information regarding the bug, please contact customer support at metalink.oracle.com
    Frank

  • Failing to call report with envid in cgicmd.dat

    I am trying to use the envid parameter in my cgicmd.dat file but I can’t get it to work with the REPORTS_PATH environment variable. This is on Solaris with Oracle 10G.
    I have a report called activityreport.pdf in the directory /olm/carefirst/test92exec.
    When I run the Oracle Reports Paper Report Tester with these parameters:
    Reports Server rep_sunbox36_FRHome1
    Report activityreport.pdf
    DB connect string <id>/<pwd>@<instance>
    DesType cache
    DesFormat     PDF
    Other Parameters     envid=test92
    I get these errors:
    REP-110: Unable to open file 'activityreport.rdf'.
    REP-1070: Error while opening or saving a document.
    REP-0110: Unable to open file 'activityreport.rdf'.
    When I run it with these parameters:
    Reports Server rep_sunbox36_FRHome1
    Report /olm/carefirst/test92exec/activityreport.pdf
    DB connect string <id>/<pwd>@<instance>
    DesType cache
    DesFormat     PDF
    Other Parameters     envid=test92
    It works.
    In $ORACLE_HOME/reports/conf we have a file called rep_sunbox36_frhome1.conf which includes these lines:
    <environment id="test92">
    <envVariable name="REPORTS_PATH" value="/olm/carefirst/test92exec;"/>
    </environment>
    Is it significant that the Reports Server is called rep_sunbox36_FRHome1 (upper case FRH) & the config file is called rep_sunbox36_frhome1.conf (lower case FRH)? (I’ve renamed the file to lower case and I got the same errors so I’m assuming not).
    Any advice appreciated. Chris

    Hello,
    Check if REPORTS_PATH is set in the file $ORACLE_HOME/bin/reports.sh
    http://download-uk.oracle.com/docs/cd/B14099_17/bi.1012/b14048/pbr_conf.htm
    For engines used by the standalone server, the order of precedence for environment variables from highest to lowest is as follows:
    reports.sh (UNIX only)
    environment element in the Reports Server configuration file
    So, if REPORTS_PATH is set in reports.sh, the value define in "environment element in the Reports Server configuration file" will not be taken into account ...
    Regards

  • Key map problem (cgicmd.dat)

    I am trying to set the server name in the key map file but am not having any luck (i.e. the report always comes back with
    a request for the server name).
    Here is the key:
    epcdb_run: server=rptsvwww008 destype=cache desformat=HTMLCSS %*
    The cgicmd.dat file is found but no matter what I do, I always have to specify the server on the actual URL.
    (this works http://..//epcdb_run?server=rptsvwww008, this doesn't http://...//epcdb_run
    We have a large number of drill-down reports and I am trying to set the server name in one place for portability reasons.
    Thanks,
    Jason

    Some suggestions,
    (1). First of all, make sure your url is like:
    http://<server-name>:<port>/<cgi-bin>/rwcgi60.exe?epcdb_run
    Not
    http://<server-name>:<port>/<cgi-bin>/rwcgi60.exe//epcdb_run (as you said in your message).
    (2). Please do a showmap: http://....../rwcgi60.exe/showmap, and verify key epcdb_run's content is correct. Sometimes you may have more than one keymap file in your system, and you may accidentally use another key map file.
    (3). Please do a parsequery: http://...../rwcgi60.exe/parsequery?epcdb_run. Web command "parsequery" is for diagnostic purpose, you can see what parameters reports CGI is received and will be passed to Reports Server. You should be able to see if the server name is there.
    Hope this helps,
    -Jeff Tang

  • How to use multiple selection parameters in the data model

    Hi, after have looked all the previous threads about how to use multiple selection parameters , I still have a problem;
    I'm using Oracle BI Publisher 10.1.3.3.2 and I'm tried to define more than one multiple selection parameters inside the data template;
    Inside a simple SQL queries they work perfectly....but inside the data template I have errors.
    My data template is the following (it's very simple...I am just testing how the parameters work):
    <dataTemplate name="Test" defaultPackage="bip_departments_2_parameters">
    <parameters>
    <parameter name="p_dep_2_param" include_in_output="false" datatype="character"/>
    <parameter name="p_loc_1_param" include_in_output="false" datatype="character"/>
    </parameters>
    <dataTrigger name="beforeReport" source="bip_departments_2_parameters.beforeReportTrigger"/>
    <dataQuery>
    <sqlStatement name="Q2">
    <![CDATA[
    select deptno, dname,loc
    from dept
    &p_where_clause
    ]]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="G_DEPT" source="Q2">
    <element name="deptno" value="deptno"/>
    <element name="dname" value="dname"/>
    <element name="loc" value="loc"/>
    </group>
    </dataStructure>
    </dataTemplate>
    The 2 parameters are based on these LOV:
    1) select distinct dname from dept (p_dep_2_param)
    2) select distinct loc from dept (p_loc_1_param)
    and both of them have checked the "Multiple selection" and "Can select all" boxes
    The package I created, in order to use the lexical refence is:
    CREATE OR REPLACE package SCOTT.bip_departments_2_parameters
    as
    p_dep_2_param varchar2(14);
    p_loc_1_param varchar2(20);
    p_where_clause varchar2(100);
    function beforereporttrigger
    return boolean;
    end bip_departments_2_parameters;
    CREATE OR REPLACE package body SCOTT.bip_departments_2_parameters
    as
    function beforereporttrigger
    return boolean
    is
    l_return boolean := true;
    begin
    if (p_dep_2_param is not null) --and (p_loc_1_param is not null)
    then
    p_where_clause := 'where (dname in (' || replace (p_dep_1_param, '''') || ') and loc in (' || replace (p_loc_1_param, '''') || '))';
    else
    p_where_clause := 'where 1=1';
    end if;
    return (l_return);
    end beforereporttrigger;
    end bip_departments_2_parameters;
    As you see, I tried to have only one p_where_clause (with more than one parameter inside)....but it doesn't work...
    Using only the first parameter (based on deptno (which is number), the p_where_clause is: p_where_clause := 'where (deptno in (' || replace (p_dep_2_param, '''') || '))';
    it works perfectly....
    Now I don't know if the problem is the datatype, but I noticed that with a single parameter (deptno is number), the lexical refence (inside the data template) works.....with a varchar parameter it doesn't work....
    So my questions are these:
    1) how can I define the p_where_clause (inside the package) with a single varchar parameter (for example, the department location name)
    2) how can I define the p_where_clause using more than one parameter (for example, the department location name and the department name) not number.
    Thanks in advance for any suggestion
    Alex

    Alex,
    the missing thing in your example is the fact, that if only one value is selected, the parameter has exact this value like BOSTON. If you choose more than one value, the parameter includes the *'*, so that it looks like *'BOSTON','NEW YORK'*. So you need to check in the package, if there's a *,* in the parameter or not. If yes there's more than one value, if not it's only one value or it's null.
    So change your package to (you need to expand your variables)
    create or replace package bip_departments_2_parameters
    as
    p_dep_2_param varchar2(1000);
    p_loc_1_param varchar2(1000);
    p_where_clause varchar2(1000);
    function beforereporttrigger
    return boolean;
    end bip_departments_2_parameters;
    create or replace package body bip_departments_2_parameters
    as
    function beforereporttrigger
    return boolean
    is
    l_return boolean := true;
    begin
    p_where_clause := ' ';
    if p_dep_2_param is not null then
    if instr(p_dep_2_param,',')>0 then
    p_where_clause := 'WHERE DNAME in ('||p_dep_2_param||')';
    else
    p_where_clause := 'WHERE DNAME = '''||p_dep_2_param||'''';
    end if;
    if p_loc_1_param is not null then
    if instr(p_loc_1_param,',')>0 then
    p_where_clause := p_where_clause || ' AND LOC IN ('||p_loc_1_param||')';
    else
    p_where_clause := p_where_clause || ' AND LOC = '''||p_loc_1_param||'''';
    end if;
    end if;
    else
    if p_loc_1_param is not null then
    if instr(p_loc_1_param,',')>0 then
    p_where_clause := p_where_clause || 'WHERE LOC in ('||p_loc_1_param||')';
    else
    p_where_clause := p_where_clause || 'WHERE LOC = '''||p_loc_1_param||'''';
    end if;
    end if;
    end if;
    return (l_return);
    end beforereporttrigger;
    end bip_departments_2_parameters;
    I've written a similar example at http://www.oracle.com/global/de/community/bip/tipps/Dynamische_Queries/index.html ... but it's in german.
    Regards
    Rainer

  • How to update cgicmd.dat file during runtime?

    I'd like to know how do update cgicmd.dat file during runtime. For example, I run a report one.jsp as
    http://<machine>:<port>/reports/rwservlet?one.jsp&USERID=uid/pwd@db&DESTYPE=cache&mode=bitmap&desformat=htmlcss
    within this report there is a hyperlink to open another report named two.jsp.
    before creating this hyperlink, I'd like to update cgicmd.dat file with passed in userID, pwd, and connection, so two.jsp can use this key for userinfo
    so I can create hyperlink as follows
    srw.set_hyperlink('/reports/rwservlet?report=two.jsp'||
    '&cmdkey=userinfo&DESTYPE=cache&mode=bitmap&desformat=htmlcss');
    Thanks

    To my knowledge the cgicmd.dat is only read when the OC4J starts, so you would have to come up with another solution. Using Single-Sign-On (SSO) is quite a good idea, and it's there for cases like this.
    Regards,
    Martin Malmstrom

  • Cgicmd.dat in formsweb.cfg?

    Hi,
    in my formsweb.cfg i have two alias that point to two different database.
    I have only one cgicmd.dat and don't want to change code of forms for invoking reports.
    I can put two different cgicmd.dat for pointing the two database ?
    Thanks.
    Best regards.
    Francesco

    I don't see any issue here. You have two alias in formsweb.cfg, each can point to its own database. And since you want to use the same codes for Forms and Reports that make it even more easier.

  • How to use the cgicmd.dat to specify a directory name for desname

    Hi folks,
    What I'm trying to do is use a command key to specify the directory for a file, specified via desname. Here's an example.
    cgicmd.dat
    custom_reports_dir: /some/directory/custom_reports
    Then I want to reference it via something like this..
    http://server:7777/reports/rwservlet?cmdkey=rpt_connect&destype=file&desname=custom_reports_dir/test.pdf&desformat=pdf
    Where in the above example, I'm trying to use the command key to specify a directory name, and then append a file name to it. It isn't working for me, is this possible to do? I figure since it's not an argument in itsself, it's being interpreted literally, rather than being substituted for the parameter.
    Thanks very much,
    -Adam vonNieda

    That depends on how you actually run your program in the first place. If you just use a batch file you could simply make the path to the javaw.exe relative (e.g. jre\javaw.exe �cp lib\myJar.jar com.MyClass). Or you could look into some third-party software that allows you to create installations packages for Java. I have used Zero G's InstallAnywhere before and they have support for you setting up their executables to use a bundled jre. I am sure all the other java install makers have similar functionality.
    Lance

  • LSMW -File Name 'Converted Data': Max. 45 Characters. Remaining data saved

    Hi to all,
    I am facing the error message while specifying the file(7th step) in LSMW as below
    <b>File Name 'Converted Data': Max. 45 Characters. Remaining data saved.
    Message no. /SAPDMC/LSMW_OBJ_060028</b>
    Diagnosis
    Some import interfaces only accept file names (including path) that have a maximum of 45 characters.
    System Response
    All data except the file name of the converted data is saved.
    Procedure
    Adjust the file name for the converted data.
    I am not able proceed further steps in LSMW..
    please give your valuable suggation and solutions.
    Thanks in advance..
    Amar.

    HI
    Even I am facing this error. I tried from the root directory also. But I am getting the same error. (D:\LSMW\t.txt).
    Also,  another text file with the path name C:\Documents and Settings\Desktop\testmass.txt was uploaded without any problem.
    Can anyone please help in solving this?
    Regards

Maybe you are looking for

  • Explorer issue with video swf

    Hi can anybody tell me why Internet explorer did not open the video, before I had accept to open this site, in firefox it just open, I have tried Amara slide show bouilder, and here there is no problem with the swf files in explorer. I know that I in

  • MacBook Pro error when trying to update Apps in Appstore

    I keep getting an Error that won't allow me to update the App--pop up tells me to use the Purchases Page to try again, which I've done, but I keep getting the same error. I updated my billing information, and have tried multiple procedures I've found

  • SDO_RELATE ERROR QUESTION 2

    I posted a question about the SDO_RELATE function on April 4th, and got back a response that worked, but now I have another one that utilizes the function, but the difference is that now I am relating a table with a MDSYS.SDO_GEOMETRY column with a t

  • About hiding url in webdynpro applications

    hi guys,           i have done an application in which data is tranferred from one applicaiton to the another by using a URL. (we could say this application as interapplication  navigation).         Here the datas are stored in the url..and i could s

  • Song information popup behind other windows

    I normally minimize iTunes to the system tray. When I want to know which song I'm listening to, I'll hover my mouse over the iTunes icon to see a popup window with the artist, album, and title. However, every once in awhile, iTunes gets confused and