Oracle dbms.set_role does not work in APEX application

Hi, in our j2ee applications, we use secure application role. Basically, the data source use the app user schema to connect to the database. the app user only has create session privileges. the database logon trigger will copy a set of attribute to the local secure context. (ip address, session user, client id, application name). The applications explicitly invoke the stored procedure sec_mgr.set_role before any DMLs are executed.
the sec_mgr.set_role will check the local context attribute , authorize the ip, application name, and set an appreciated role to this session based on session user.
we want to apply the same framework to the APEX application. First, we change the paring schema to the app schema which only has create session privilege. then we put the plsql code in which sec_mgr.set_role is called in the application builder --> shared components ---> edit security attribute ---> Virtual Private Database (VPD).
however, we got the error ORA-06565: cannot execute SET ROLE from within stored procedure
the sec_mgr.set_role is defined as invoker's right(AUTHID CURRENT_USER)
do i missing something in APEX to get it work?
Thanks

Please explain it does not work in APEX? Is the application updating tables that have a trigger? APEX does NOT override trigger actions. Is it possible the values your trigger is looking for are NOT available in your APEX application? Can you post the trigger code here for review?
Thank you,
Tony Miller
Webster, TX
What if you really were stalking a paranoid schizophrenic... Would they know?
If this question is answered, please mark the thread as closed and assign points where earned..

Similar Messages

  • [svn:fx-trunk] 5019: ASDoc updates to indicate that some Halo containers do not work with the Spark equiv (ControlBar does not work with Spark Panel/ AppControlBar does not work with Spark Application), and indicate that Canvas, Box, Tile, Panel have Spa

    Revision: 5019
    Author: [email protected]
    Date: 2009-02-19 13:17:21 -0800 (Thu, 19 Feb 2009)
    Log Message:
    ASDoc updates to indicate that some Halo containers do not work with the Spark equiv (ControlBar does not work with Spark Panel/AppControlBar does not work with Spark Application), and indicate that Canvas, Box, Tile, Panel have Spark equivs
    QE Notes: None
    Doc Notes: None
    Bugs: -
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Accordion.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ApplicationControlBar.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Box.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Canvas.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ControlBar.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/HBox.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Panel.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/TabNavigator.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Tile.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/VBox.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ViewStack.as

    Hi DST
    This is a great effort and gesture. thank you on behalf of all the newbies.
    PJ

  • My camera works with the photobooth and with skype but does not work with online applications such as "lolcam from facebook" or "faceonthehole" application. Please help

    My camera works with the photobooth and with skype but does not work with other applications like the "lolcam" from facebook or the " faceonthe hole" application. Can anyone help?

    There was a issue with school computers being used to spy on kids in their bedrooms, Mac's were involved.
    So Apple most likely tightened the API's to only select, trustworthy companies as not to abuse the web cam access priviledge.
    If you want to use a web cam with these other programs and services, you'll likely have to buy a third party USB one, so you can manually disconnect it.
    There isn't a way to physcially disconnect the built in web cam on Mac's without busting open the machine.

  • The link to a user defined oracle stored procedure does not work

    This is based on the HowTo Download a file
    http://otn.oracle.com/products/database/htmldb/howtos/howto_file_upload.html
    I have given a link to a procedure as follows, which will download the file (as given in the HowTo):
    #OWNER#.download_my_file?p_file=#ID#.
    However, this does not work. It tries to open a page rather than executing the procedure. It displays the page not found message

    that page not found message is a generic one. you'd want to check your apache logs for more info on what really happened. my guess is that you missed step 5 of that how-to, "grant execute on download_my_file to public"
    hope this helps,
    raj

  • BUG: Oracle Schema Processor does not work in Servlets

    We found a bug with Oracle's Schema Processor. It does not work in Servlets.
    When we try to validate a XML document in a Servlet it does not work, but we can execute the same code in a stand alone application and it works.
    The following is the code we are using:
    try {
    File f =new File(filename);
    FileReader r = new FileReader(f);
    DOMParser dp = new DOMParser();
    URL url = createURL (filename);
    dp.setValidationMode(false);
    dp.setSchemaValidationMode(true);
    dp.setPreserveWhitespace(true);
    dp.parse(url);
    System.out.println("it is parsed");
    } catch(Exception e){System.out.println("there is Error"+e.getMessage());}
    null

    I don't think this is related to Servlets per se.
    Check that the Schema processor classes used by the servlet container, and your application are the same.
    Java does not have proper versioning of classes, I have seen many applications collapse. People compiled their code on developer machines, where it worked fine, but when moved to a production machine they failed because the production machine had a different version of classes. Usually the name of the class doesn't change, but either a method or a variable is missing in several classes. VM doesn't complain but simply crashes.
    In your Schema Processor classes that are used by the servlet engine might be different from the one that the app uses. Do a search on the file system to see how many copy of the same class bundle (zip, jar) you have on the system.

  • 32-bit Oracle ODBC Driver does not work under Windows 64-bit

    We have both Oracle Server 64-bit (10.2.0.3) and Oracle Client 32-bit (10.2.0.1) installed on the same Windows 2003 64-bit server.
    We can create and test 64-bit Oracle ODBC System DSN using 64-bit ODBC Administrator.
    We can also create a 32-bit Oracle ODBC System DSN using 32-bit ODBC Administrator.
    However, the "test connection" does not work:
    Unable to connect
    SQLState=IM003
    Specified driver could not be loaded due to system error 998 (Oracle in OraClient10g_home32)
    We need the 32-bit driver due to 32-bit applications acessing the local 64-bit Oracle server.
    How should we accomplish this?
    Thanks.

    I applied 10.2.0.3 path to Oracle Client 32-bit and now the error is different.
    This error message appears 3 times before configuring, creating or testing a System DNS:
    "An unsupported operation was attempted."
    I just click OK 3 times and then can configure, create or test the DSN.
    However the 32-bit application still cannot access Oracle...
    Yours.

  • Sys_context not working from APEX application / environment

    I am struggling to retrieve a user-defined context value using sys_context(...) from APEX application / environment
    I have created a global context to be used as a storage mechanism for log severity to be recorded.
    CREATE OR REPLACE CONTEXT PA_LOGGER_CTX USING PA_LOGGER ACCESSED GLOBALLY;It is seeded through a function pa_logger.set_severity(1) within the package pa_logger through (excerpt):
      dbms_session.set_context(c_ctx_context_label, c_ctx_severity_label, TO_CHAR(p_severity_in));
      with:
      c_ctx_context_label     CONSTANT NVARCHAR2(16) := 'PA_LOGGER_CTX';
      c_ctx_severity_label    CONSTANT NVARCHAR2(8) := 'SEVERITY';
      p_severity_in   IN  PLS_INTEGERusing the following from sqlplus, other DB-tools, works as expected:
    -- setting it
    BEGIN
      pa_logger.set_severity(2);
    END;
    -- displaying it
    SELECT sys_context('PA_LOGGER_CTX', 'SEVERITY') FROM DUAL;returns 2
    This works from different sessions, different users ... no problem.
    Using it from within an APEX (accessed via embedded gateway/XE11.2 or OHS/11.2.0.2.0 ) application or even from the "SQL Commands" from the APEX Workspace returns a NULL value for :
    SELECT sys_context('PA_LOGGER_CTX', 'SEVERITY') FROM DUAL;And
       SELECT value  FROM GLOBAL_CONTEXT WHERE NAMESPACE='PA_LOGGER_CTX' and ATTRIBUTE = 'SEVERITY';returns the right value, which obviously defies the purpose of using the CONTEXT.
    It is as well possible to set the CONTEXT to a different value, which is picked up outside APEX, but even so using sys_context does not work, always returning NULL
    As a note aside: using sys_context with a standard CONTEXT, e.g. SELECT sys_context('USERENV', 'NLS_DATE_FORMAT') from DUAL works without any problems.
    I guess I have a conceptual break somewhere. Does this have to do with the APEX user used, wrapping within the APEX environment, the way the context is defined ....
    Any help is appreciated.
    Many thanks,
    - Thomas

    Hi Rod,
    Thanks for the time to answer. Meanwhile I found some more hints on the subject (Retrieve values from my own global context in Apex and I do now understand the concept.
    I understand that I can even clear the specific CLIENT_IDENTIFIER by issuing a "dbms_session.clear_identifier()", which then subsequently works
    Looking at the CLIENT_IDENTIFIER as set by APEX it is "<apex_login_user><apex_session>";
    I understand it is set for every DISPLAY-SUBMIT it is reset by the APEX framework.
    Hence it is not sufficient to set it for a user session; it needs to be changed for every display-submit. I can achieve this through application processes, but I am really reluctant to do so, because I do not know, if APEX relies on the CLIENT_IDENTIFIER to be set the way it is done. I suspect a purpose behind this, causing me problems elsewhere. I post this as a seprate question as this question has been answered.
    On to your point about: Using a table variable. This is the way it works currently, but allegedly using the CONTEXT would give us for the logging configuration a performance gain of about 1 dimension..... but unfortunately other problems..
    Thanks!
    - Thomas

  • FileUpload does not work in MVC application

    I created an MVC application with controllers and views for the different frames (header.do/header.htm, menu.do/menu.htm, toolbar.do/toolbar.htm, statusdo./status.htm, detail.do/detail.htm). The main-controller is front.do, the main-view is front.htm
    The detail-view is realized as a "sub-MVC-application" because it is rather complex (subfront.do/subfront.htm).
    This sub-MVC uses some controllers and views for the detail-frame.
    My problem is that fileUpload does not work in this sub-sub-view. I cannot get the attributes like filename.
    In a page with flowlogic it works fine. I also tried to put the code for the fileUpload in a page fragment and include it in the page with flowlogic which also works fine.
    But when I include this page fragment in the view it does not work either. The code in the layout-section of the page fragment looks as follows
    <%@page language="ABAP" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <%@extension name="bsp" prefix="bsp" %>
    <htmlb:gridLayout columnSize="2" rowSize="1" cellSpacing="5" cellPadding="5" width="100%">
      <htmlb:gridLayoutCell columnIndex="1" rowIndex="1">
        <htmlb:fileUpload id="fuDokument"/>
        <htmlb:button id="submitButton" text="Upload" onClick="HandleUpload"/>
      </htmlb:gridLayoutCell>
      <htmlb:gridLayoutCell columnIndex="2" rowIndex="1">
        <%
      DATA: ref_htmlb_fileupload TYPE REF TO CL_HTMLB_FILEUPLOAD.
      ref_htmlb_fileupload ?= CL_HTMLB_MANAGER=>GET_DATA( request = request id = 'fuDokument' name = 'fileUpload' ).
      IF ref_htmlb_fileupload->file_name         IS INITIAL. ref_htmlb_fileupload->file_name = ' '.         ENDIF.
      IF ref_htmlb_fileupload->file_content_type IS INITIAL. ref_htmlb_fileupload->file_content_type = ' '. ENDIF.
         %>
        <htmlb:textView text="Uploaded:"/>
        <htmlb:textView text="<%=ref_htmlb_fileupload->file_name %>"/>
        <htmlb:textView text="Content-Type:"/>
        <htmlb:textView text="<%=ref_htmlb_fileupload->file_content_type %>"/>
        <htmlb:textView text="Length:"/>
        <htmlb:textView text="<%=ref_htmlb_fileupload->file_length %>"/>
      </htmlb:gridLayoutCell>
    </htmlb:gridLayout>
    Any help would be highly appreciated
    Markus

    Hi,
    Info: I'm just learning bsp for 2 weeks...
    I've a question related to fileUpload in MVC application.
    Actually I created a tableView with an iterator.
    In the IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START method of this iterator I want to display an input field for file upload if the third line of my table is selected.
    This is my code:
    DATA: lo_file TYPE REF TO CL_HTMLB_FILEUPLOAD.
    lo_file = CL_HTMLB_FILEUPLOAD=>FACTORY(
    *              ACCEPT        =
                  ID            = p_cell_id
    *              ID_POSTFIX    =
    *              MAXLENGTH     =
                 ONUPLOAD      = 'upload'
                  SIZE          = '100'
    *              TEXTDIRECTION =
                  TOOLTIP       = 'Result file'
    *              UPLOAD_TEXT   =
                p_replacement_bee ?= lo_file.
    but I don't get anything. My row is selected, but I don't see a input field.
    Can someone help me?

  • Include in Export does not work in APEX 3.1

    I have a report with many columns. On screen I only show several columns, but on export to CSV I want to include all columns.
    However, when "Show on Report" is set to No, and I want to set "Include in Export" to Yes on the "Print Attributes" tab, it does not get updated.
    It only gets updated when the "Show on Report" is set to Yes.
    It also seems that the "Include in Export" on the "Report Attributes" tab is not in sync with the "Include in Export" on the "Print Attributes" tab the first time you access the "Print Attributes" tab.
    Question: Does "Include in Export" only works for columns which has the "Show on Report" set to Yes? If Yes, how can I achieve the above mentioned?
    Guido

    Marc,
    After some investigations the following can be concluded:
    On the Report Attributes tab, pick a column, and set "Show Column" to Yes, "Include in Export" to Yes, and no conditions.
    I do not want this column to be printed, so on the Print Attributes tab, set the "Column Width" to 0.
    When you run the report, you will notice that the column is not included in the export to CSV and not printed.
    Setting the "Column Width" to a value greater than 0, the export to CSV works fine, but the column is also printed.
    You can have a look at page 1 at at http://apex.oracle.com/pls/otn/f?p=261 (demo/ankpm)
    Thanks Patrick for your solution (:REQUEST LIKE 'FLOW_EXCEL_OUTPUT_%'), it works great. The column is now not show on screen but included in the export to CSV. However, you have to set the column width to a value greater than 0.
    An enhancement request for 4.0 could be to also have a property "Include in Print", and that this property and "Include in Export" are not dependent on the "Show Column" value.
    Guido

  • Wwv_flow_custom_auth_std.login does not work in APEX 3.0

    I am trying to fire this from a browser and it returns a blank screen.
    http://dr1-depsup01-xen2:7777/pls/htmldb/wwv_flow_custom_auth_std.login?p_uname=dfdfc&p_password=dfdd&p_flow_page=105:4
    When I check the Apache logsit shows a 200 ok message which means that authentication has been successful but does not direct to the next page? Why?

    Oracle Security patches applied to Oracle-Application-Server-10g/10.1.3.5.0 .
    APEX version is Application Express 4.0.1.00.03
    The APEX application after the patch was applied on OAS was raising Error (Getting Http-400 Bad Name In The Request: Not A Legal Plsql Identifier ).
    Implemented metalink Doc ID 1327343.1 to resolve this error.
    Created a new procedure without parameters which calls the original procedure using parameters. Changed the DAD.conf to reflect the new Procedure
    for the variable PlsqlDefaultPage instead of the format PlsqlDefaultPage f?p=AppID:PageID.
    Apparently, there is this custom login screen which is called On-Load before Header on the Default Page 71 like this. And instead of rendering page 71 gives out the error.
    begin
    if app_security_pkg.is_user_authenticated(null,null)
    then
    wwv_flow_custom_auth_std.login( p_uname => v('APP_USER_NAME')
    , p_password => null
    , p_session_id => v('APP_SESSION')
    , p_flow_page => :app_id||':71'
    end if;
    exception
    when others then
    dbms_output.put_line(sqlcode);
    end;

  • Printing does not work in OSX applications, but did work in OS 9

    As the name of this thread implies, I cannot print from any OSX applications, but printing does work in OS 9 applications. I recently upgraded to Adobe Creative suite 3 (I know, i know, I am behind) and have had nothing but problems printing (even with native apps like preview). Before I upgraded I didn't have as many issues printing. Since the upgrage, When I attempt to print from Adobe Illustrator I get the error message "cant print the illustration". When I attempt to print from native MacOS Apps (like Preview) I get the error message " Error while Printing". Additionally, every time I attempt to use my scanner I get the error message "Scanner not found". Can anyone help me out there?

    It would have been helpful if you had included the manufacturer and model of your printer and scanner along with details on how they are connected to your Mac. Without that information there's little else for anyone else to work with along the lines of assisting you.
    How does your printer and scanner connect to your Mac - serial port or USB? If they use a serial port you're kind of out of luck as Mac OS X does not natively support serial ports. There may be some third-party software drivers available that could "turn on" serial ports within Mac OS X however.
    If your devices connect via USB, have you installed the Mac OS X version of their drivers? Older USB-equipped printers and scanners may not be supported by their manufacturers for use with Mac OS X. Again, if one looks hard enough, there may be some other third-party or open source drivers available that may let older USB equipment work with Mac OS X.

  • 'Check Spelling While Typing' does not work for any applications

    Earlier I had a problem with misspelled words underlined but when I right-click it does not offer spelling suggestions.
    Now, none of my applications underline misspelled words. Even if I select the option to "Check Spelling While Typing" it does not change anything. This applies to all applications (Mail, TextEdit, EverNote, Firefox, etc).

    Update: Inexplicably the underline for misspelled words now works but now when I right-click for corrections it shows 'No Guesses Found' for any word.

  • Oracle 10g - Database does not respond to the application users

    Hi all,
    I am using ORACLE 10g database with 75 users connections 50 local and 20 remote users using ADSL and dial up modem. Operating system on server is
    Windows 2003.
    All of a sudden users making the entry get disconnected getting the error as
    ORA-12516: TNS:listener could not find available handler with matching protocol stack
    Other case users when using the appliaction get their PC hanged and connection
    to oracle fails again. they cannot login to the application that time, the error is
    ORA-04031: unable to allocate %s bytes of shared memory ("%s","%s","%s","%s")
    Twice a day the users trying to login cannot access the database server.
    Front end application is in VB using exe file. When the users cannot logon
    to the database. I manually stop the ORACLE services(including DB console) and
    then stop the listener.
    This practice is going on since last two months.
    Server Scenario
    After Installing Oracle Standard Edition 10g.
    System tablespace utilization is 98.5% which is 465 MB out of total 470 MB.
    There is only one Rollback Segment named as SYSTEM.
    when we install 9i 4 rollback segments as RO1, RO2, RO3, RO4 are created
    by default.
    Do I need to add the datafile to SYSTEM table space as its current usage is 99.15% and its auto extend is ticked on using auto extent as 10 MB. I tried adding another datafile during weekend downtime. when I resumed on saturday morning I found it did not add any datafile which I had put on thursday eveninig as system02.dbf.
    Do I need to add a new datafile to the SYSTEM tablespace ?
    Do I need to create new rollback segments apart from SYSTEM rollback segment ?
    My current schema size 15360Mb with its usage as 9.32% (1432.25 Mb).
    Please reply !!!

    Hi Paul
    My Server configuration is
    Compaq ML 370
    3.4 Ghz Processor
    3.5 GB RAM
    SQL> show sga
    Total System Global Area 171966464 bytes
    Fixed Size 787988 bytes
    Variable Size 145488364 bytes
    Database Buffers 25165824 bytes
    Redo Buffers 524288 bytes
    SQL> select * from v$sgastat;
    POOL NAME BYTES
    fixed_sga 787988
    buffer_cache 25165824
    log_buffer 524288
    shared pool subheap 55600
    shared pool KQR L SO 218160
    shared pool KQR M PO 1329244
    shared pool KQR M SO 605364
    shared pool KQR S PO 164156
    shared pool KQR S SO 6144
    shared pool KTI-UNDO 1235304
    shared pool sql area 5368208
    shared pool KGLS heap 1597560
    shared pool joxs heap 6004
    shared pool row cache 3707272
    shared pool parameters 17520
    shared pool repository 19396
    shared pool ASH buffers 4194304
    shared pool free memory 16586072
    shared pool PL/SQL DIANA 679456
    shared pool KSPD key heap 4220
    shared pool PL/SQL MPCODE 1167992
    shared pool library cache 11368964
    shared pool miscellaneous 25942980
    shared pool pl/sql source 88
    shared pool PLS non-lib hp 29816
    shared pool XDB Schema Cac 3594144
    shared pool alert threshol 3460
    shared pool joxlod exec hp 355820
    shared pool table definiti 5880
    shared pool temporary tabl 4932
    shared pool trigger defini 12848
    shared pool trigger inform 1892
    shared pool type object de 20256
    shared pool private strands 1198080
    shared pool event statistics per sess 4384640
    shared pool fixed allocation callback 304
    large pool free memory 8388608
    java pool joxs heap 233856
    java pool free memory 44743296
    java pool joxlod exec hp 5354496
    40 rows selected.
    SQL> select segment_name, owner, status
    2 from dba_rollback_segs;
    SEGMENT_NAME OWNER STATUS
    SYSTEM SYS ONLINE
    _SYSSMU1$                      PUBLIC ONLINE
    _SYSSMU2$                      PUBLIC ONLINE
    _SYSSMU3$                      PUBLIC ONLINE
    _SYSSMU4$                      PUBLIC ONLINE
    _SYSSMU5$                      PUBLIC ONLINE
    _SYSSMU6$                      PUBLIC ONLINE
    _SYSSMU7$                      PUBLIC ONLINE
    _SYSSMU8$                      PUBLIC ONLINE
    _SYSSMU9$                      PUBLIC ONLINE
    _SYSSMU10$                     PUBLIC ONLINE
    SEGMENT_NAME OWNER STATUS
    _SYSSMU11$                     PUBLIC ONLINE
    _SYSSMU12$                     PUBLIC ONLINE
    _SYSSMU13$                     PUBLIC ONLINE
    _SYSSMU14$                     PUBLIC ONLINE
    _SYSSMU15$                     PUBLIC OFFLINE
    _SYSSMU16$                     PUBLIC OFFLINE
    _SYSSMU17$                     PUBLIC OFFLINE
    _SYSSMU18$                     PUBLIC OFFLINE
    _SYSSMU19$                     PUBLIC OFFLINE
    _SYSSMU20$                     PUBLIC OFFLINE
    _SYSSMU21$                     PUBLIC OFFLINE
    SEGMENT_NAME OWNER STATUS
    _SYSSMU22$                     PUBLIC OFFLINE
    _SYSSMU23$                     PUBLIC OFFLINE
    _SYSSMU24$                     PUBLIC OFFLINE
    _SYSSMU25$                     PUBLIC OFFLINE
    _SYSSMU26$                     PUBLIC OFFLINE
    27 rows selected.
    Currently AUTOEXTEND is ticked as on for SYSTEM tablespace and its size is showing as 99.16% (466.06 mb) used which is very much nearing to its full capacity of 470 mb.
    Currently 75 users - 50 Local users and 20 Remote Users are connected to the server. Is there any limit that Server should have limited connections.
    Server has Windows 2003 Standard Edition. Has Windows 2003 anything to do
    with the no. of users getting connected ?

  • Report Printing Does not work on Apex 3.0.1

    Hi Everyone,
    I have a report on apex page,i just set "Print Attributes" to Yes and format to PDF.
    But when i got the pdf output and try to open with adobe reader ,a message comes on like:
    "Adobe reader coudl not open 'xxx.pdf' because it is not either supported file type or because the file has been damaged ..."
    Then i set the format to word ,then the output is an empty page ?
    What should i do?
    Here is the query:
    select initcap(u.name),upper(u.surname),g.email,c.city_name,y.year,sec.job_tname,jt.type_name,ps.ps_name,sf.s_name from grad_info g,users u,city c,years y,sector_type sec,job_type jt,positions ps,sfact_degree sf
    WHERE
         CASE WHEN TO_NUMBER(:P16_NAME) = -1 THEN u.USER_ID
         ELSE TO_NUMBER(:P16_NAME)
         END = u.USER_ID
    AND
         CASE WHEN TO_NUMBER(:P16_GENDER)=-1 THEN g.GENDER
         ELSE TO_NUMBER(:P16_GENDER)
         END=g.GENDER
    AND
         CASE WHEN TO_NUMBER(:P16_GRADYEAR)=-1 THEN g.GRAD_YEAR
         ELSE TO_NUMBER(:P16_GRADYEAR)
         END=g.GRAD_YEAR
    AND
         CASE WHEN TO_NUMBER(:P16_CITY)=-1 THEN g.CITY
         ELSE TO_NUMBER(:P16_CITY)
         END=g.CITY
    AND
         CASE WHEN TO_NUMBER(:P16_SECTOR)=-1 THEN g.SECTOR
         ELSE TO_NUMBER(:P16_SECTOR)
         END=g.SECTOR
    AND
         CASE WHEN TO_NUMBER(:P16_JOBTYPE)=-1 THEN g.JOB_TYPE
         ELSE TO_NUMBER(:P16_JOBTYPE)
         END=g.JOB_TYPE
    AND
         CASE WHEN TO_NUMBER(:P16_SATISTACT)=-1 THEN g.SATISFACT
         ELSE TO_NUMBER(:P16_SATISTACT)
         END=g.SATISFACT
    AND
         CASE WHEN TO_NUMBER(:P16_POSITION)=-1 THEN g.POSITION
         ELSE TO_NUMBER(:P16_POSITION)
         END=g.POSITION
    AND
         CASE WHEN TO_NUMBER(:P16_LOKNG4JOB)=-1 THEN g.LOKNG_4_JOB
         ELSE TO_NUMBER(:P16_LOKNG4JOB)
         END=g.LOKNG_4_JOB
    AND
    ----------------Join Starts Here------------------------------
    g.sector=sec.job_id and g.job_type=jt.type_id and
    g.user_id=u.user_id and g.grad_year=y.year_id and g.current_flag=1 and g.city=c.city_id
    and ps.ps_id=g.position and g.satisfact=sf.s_id
    *************************************************************

    Try asking this question in the APEX forum, this forum is for Oracle Portal questions.

  • Set_lov_column_property through Oracle Forms Personalization does not work

    Oracle EBS 11.5.10
    I need to change the LOV column title in an existing form using Forms Personalization technique. I am using BuiltIn->Call Custom Library option to invoke set_lov_column_property in WHEN-NEW-FORMS-INSTANCE event. It is not changing the LOV column title. I have attempted to use Synchronize following set_lov_column_property action and it has no impact. I have not tried using CUSTOM.pll changes and I feel it may work. At our client site, we have used only Forms Personalization to implement extensions instead of CUSTOM.pll changes as a standard practice.
    Has anyone attempted this technique in Forms Personalization and know whether this works?
    Any help is greatly appreciated.
    Gopal

    Hi Oleh,
    I was just returning to the thread to report that I'd found the issue (actually a colleague did) - and it is exactly what you said - the in-house documentation for the translations library says to add an ON-ERROR trigger to capture (and ignore) 41364, but whoever developed this form apparently forgot to perform this step.
    You still get the brownie points for the answer though =)
    Thanks for the help, my mind is more restful now because I was going nuts trying to find this!
    Alan.

Maybe you are looking for