How can I access user defined column(in query) inside the trigger?

Hi
I have 3 unions and each query displays different records on some criteria. I also have a column hard-coded
Ex:
select a.col1, a.col2,
add as update
from table1 a
where ...
union
select a.col1, a.col2,
change as update
from table1 a
where ...
union
select a.col1, a.col2,
del as update
from table1 a
where ...
And I need to display a column in the report only if update is Add. I was thinking of writing a format trigger for that field. But I do not know how can I access this user defined column named update in the trigger?
Any help?

Try ":update" minus the double-quotes. Ex:
    IF :update = 'add' THEN
      RETURN(TRUE);
    ELSE
      RETURN FALSE;
    END IF;
You'll want to place your hard-coded values in single-quotes. Ex:
    select a.col1, a.col2,
    'add' as update
- Brian

Similar Messages

  • How can I use User-Defined Aggregate Functions in Timesten 11? such as ODCI

    Hi
    we are using Timesten 11 version and as per the documentation, it doesn't support User-Defined Aggregate Functions.
    So we are looking for alternatives to do it. Could you please provide your expert voice on this.
    Thanks a lot.
    As the following:
    create or replace type strcat_type as object (
    cat_string varchar2(32767),
    static function ODCIAggregateInitialize(cs_ctx In Out strcat_type) return number,
    member function ODCIAggregateIterate(self In Out strcat_type,value in varchar2) return number,
    member function ODCIAggregateMerge(self In Out strcat_type,ctx2 In Out strcat_type) return number,
    member function ODCIAggregateTerminate(self In Out strcat_type,returnValue Out varchar2,flags in number) return
    number
    How can I use User-Defined Aggregate Functions in Timesten 11? such as ODCIAggregateInitialize ?

    Dear user6258915,
    You absolutely right, TimesTen doesnt support object types (http://docs.oracle.com/cd/E13085_01/doc/timesten.1121/e13076/plsqldiffs.htm) and User-Defined Aggregate Functions.
    Is it crucial for your application? Could you rewrite this functionality by using standart SQL or PL/SQL?
    Best regards,
    Gennady

  • HT201269 Hi. I have shared an Apple ID with my children for some time.  As they are getting older they do not wnat me seeing all their messages, photos etc so want their own accounts.  How can they access their purchased music and apps on the new account

    Hi. I have shared an Apple ID with my children for some time.  As they are getting older they do not wnat me seeing all their messages, photos etc so want their own accounts.  How can they access their purchased music and apps on the new account please?

    Yes.
    On their iOS devices, under Settings>iTunes & App Store, they should use your Apple ID. When they log into iCloud, iMessage and Facetime, they should use their personal Apple IDs.

  • Elements 11 opens in the Import Media Screen. How can I access setting to make it open in the original Organizer / Photo Editor screen?

    Elements 11 opens in the Import Media Screen. How can I access setting to make it open in the original Organizer / Photo Editor screen?

    Elements 11 opens in the Import Media Screen. How can I access setting to make it open in the original Organizer / Photo Editor screen?

  • How to Insert a User Defined Column with CheckBox In ADF Swings

    I have create JTable by dragging a view object from Data Control Palette .But apart from columns listed in JTable i need to insert a User Defined column with Check Box selection option in each row .
    Can any one help me out to sort the problem.
    Regards
    Bhanu Prakash
    Message was edited by:
    user579125

    I retrieve 10 column from Database and build JTable. But apart from 10 column displayed i need to display one more column( User Defined) at run time with the check box option for each row . Because on select of corresponding check box i need to do some mathematical calculation. add also How do i know whether check box is selected or not.
    Regards
    Bhanu Prakash

  • How can we handle user defined exceptions in ejbStore() of entity bean

    Accroding to my knowledge in ejbStore we can not handle user defined exceptions. Can anybody help on this????

    In my case I am calling a method from ejbsotre() . In that method i wanted to put some checks according to that i wanted to throw exceptions.
    In this case how would I handle exceptions.
    Can you suggest in this case,please !!!

  • How can I enter user defined info into a seq file

    I would like to insert some user defined information that I can extract either viac C-code (step invoked) or from the Operator Interface once the seq file has been loaded into memory.

    Hi hurst,
    You probably want to create a dialog panel that will allow the user to enter the information.
    Where you store this information really depends on how much of the sequencefile needs to have access to this information.
    If its global then writing it to either StationGlobals or to FileGlobals. Writting to StationGlobals means it going to be available after the execution of your sequencefile has finished. Writing to FileGlobals means its only going to be available during the execution of your sequencefile and also only in scope for the sequencefile its contained in. Unless you change the default setting so that all sequencefiles use the same FileGlobals.
    To get the information to the SequenceFile will be by TestStand API calls using the PropertySetValue.
    Another way would be to use the propertyloader.
    There are plenty of examples either with TestStand or on the NI website on transferring data of all types from a step during execution.
    This is a bit general. Maybe if you can expand on your query.
    hope this helps
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • How can I access user permission for specific items in Sharepoint 2013 via REST API?

    I want to access user permissions for specific items like lists, documents, folders etc. via the REST API.
    Currently I am hitting the following endpoint:
    http://win-5a8pp4v402g/sharepoint_test/site_1/_api/web/getUserEffectivePermissions('win-5a8pp4v402g\\Sharepoint User 2')
    However the response looks like this:
       "d":
           "GetUserEffectivePermissions":
               "__metadata":
                   "type": "SP.BasePermissions"
               "High": "0",
               "Low": "0"
    I cant understand why high and low are both 0? I have added the user to a specific group. Also this is the same result for each of the users. Another thing to note is that I havent added the "Guest" user in the sharepoint server. So when I hit the endpoint for the Guest user, it still shows the same response. So I know there is something I am doing wrong.I want to access permission of a user for a specific item, say a document using the REST API. Can someone tell me how? What would be the endpoint?

    Thanks for the reply. Although this works for Lists, I need to get permissions of documents too. Here is what I have tried:
    http://win-5a8pp4v402g/sharepoint_test/site_1/_api/web/GetFileByServerRelativeUrl('/sharepoint_test/site_1/Documents/file1.txt')/GetUserEffectivePermissions(@user)?@user='i%3A0%23%2Ew%7Cwin-5a8pp4v402g%5Csharepoint%20user%201'
    And the response is:
       "error":
           "code": "-1, Microsoft.SharePoint.Client.ResourceNotFoundException",
           "message":
               "lang": "en-US",
               "value": "Cannot find resource for the request GetUserEffectivePermissions."
    Clearly this doesnt work for a file. Whats wrong?

  • How can I set user-defined characteristics's range in pa cycle's receiver?

    I created user-defined characteristics in PA which have no check validation.
    When I create PA assessment cycle, I want to set it's range in cycle's receivers side.
    User-defined characteristics in PA which have no check validation don't have range selection function in cycle's receivers side.
    How can I set it's range in cycle's receivers side ?

    Hi,
    You can do the same by creating SETS. You can create the same from header menu at the time of entering receivers during creation of assessment cycles.
    Regards
    Hemant

  • How can we access workflow status column out of the box (OOTB).

    I have a problem that few of the workflows in production are failed at last stage have status set to "Workflow Errored". Someway I have fixed issue with workflow but I need to modify this status.
    I tried adding a custom column and access workflow status column so that I can modify custom column as I want, and show this in views.
    But I can't access this without using code, anybody has any idea?
    My task is to modify workflow status which are errored out.

    You can rerun the workflow once you've fixed it up.  This'll change the status to something more successful.
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • How can i send user defined Object as a argument to the MBean methods in authentication provider to create user?

    I developed our own Authentication, Identity Assertion & Authorization providers
    for weblogic 8.1 SP1. In the authenticator MBean i have one method which takes
    user defined object as a argument and returns a user defined object. i am able
    to call all the methods which takes java objects(for example: String, int, ArrayList,
    HashMap, Etc...) as a argument and returns also a java object but when i user
    any user defined object then it gives exception. if in the argument i used user
    defined object then it is not able to call that method telling NoSuchMethodException.
    Is there any way to use user defined object as an argument to MBean method?
    can anyone please help us as we r in the final stage of the project?
    Thanks
    Lakshmi

    "Lakshmi Padhy" <[email protected]> wrote in message
    news:3fc2f50c$[email protected]..
    >
    I developed our own Authentication, Identity Assertion & Authorizationproviders
    for weblogic 8.1 SP1. In the authenticator MBean i have one method whichtakes
    user defined object as a argument and returns a user defined object. i amable
    to call all the methods which takes java objects(for example: String, int,ArrayList,
    HashMap, Etc...) as a argument and returns also a java object but when iuser
    any user defined object then it gives exception. if in the argument i useduser
    defined object then it is not able to call that method tellingNoSuchMethodException.
    >
    Is there any way to use user defined object as an argument to MBeanmethod?
    >
    I seem to remember that jmx only supports scalar datatypes. Ask in the
    weblogic.developer.interest.management newsgroup.

  • How can we add user defined fields in My Account Profile?

    Hi,
    When adding new field for user,user groups,my resource,organizations and request all exist in the drop down menu list but the MyAccount(In the page where we add user defined fields).
    Please help me to add user defined field in MyAccount also.
    Thanks in advance.

    Hi,
    As I said before it is not that straight forward.If you will decompile tcViewProfileAction .class using any java decompiler you will find out that data in setAccountProfile method is not getting set through formmetadata.xml . If you are well verse with struts then only you can achieve what you are trying to do.You need to extend tcViewProfileAction class and also tcViewProfileForm class and then you need to modify tjspViewProfileTiles.jsp .It will not be easy job.Usually in implementation we do not change action class until its absolutely required as oracle also do not recommend that so now its between you and your client to make a call if they want to go for such customization.I won't recommend you do that.
    Regards
    Nitesh

  • How can I find user defined functions in oracle

    Hello All,
    I need to find out what are the user defined functions available in my schema?
    Please let me know on what system tables shall I query and find out the user defined functions?
    Thanks,
    Milind.

    Thanks Satish,
    One more query. Can I find what are the parameters that needs to be passed?
    Here is what I have to do..
    I have to find all the accessible user defined functions. If I select one of them in my UI, I need to show the parameters used in the respective function.
    Please let me know if these parameters are stored anywhere..
    Thanks again,
    Milind

  • How can i mark user defined points in amplitude versus frequency graph?

    i have an array of frequencies and amplitudes . i need these values to be displayed on x-axis frequency values and y axis amplitude values . one fixed default plot should be continuously visible in this graph and then i wish to mark few user defined points in the same graph, save these two plots in the same graph and then take a print out of the graph.
    Kindly help this is regarding my master of engineering project where i am trying to biuld an audiometer (for testing hearing sensitivity) and i am going to interface labview with ardiuno micrcontroller and my hardware devices.
    so kindly help.
    thank you.
    vanashree
    Solved!
    Go to Solution.

    hey....m able to generate a multiplot...
    it works...
    i have placed two fixed plots on it...
    now just one thing remains..i need to place user defined points on the same plot...i have attached my work..i have labview 7.1
    Attachments:
    24th home try me.vi ‏157 KB

  • How can i access any kind of java control inside ejb

    I want to access an ejb control of a session bean inside another session bean. Can anybody tell me how can i do that as the weblogic workshop doesnot give any option to add that.
    Thanks
    Sachin

    Hi,
    We can not able to add any type of javaControls inside the ejb project.
    Instead of that we can write our own code to get ejbs in an existing ejb's.
    Regards
    Anilkumar kari

Maybe you are looking for

  • How to view individual art board in Bridge CS4?

    Hi. Can somebody tell me how to configure the Adobe Bridge CS4 so that it shows/views/displays individual art boards (that I can scroll thru) and NOT the whole *.ai file (which contains ALL the art boards)? I want to preview the individual art boards

  • The SYSVAL table entry for the database version (16) does not match the required version

    We upgraded from Tidal Enterprise Scheduler (TES) 5.31 to 6.1 on fresh Windows x64 2008 R2 servers.  I did a fresh install but our DBA restored a copy of our database from pre-prod which was at 5.31.  I get the error below.  Note, SQL went from 2005

  • OracleBI Spreadsheet Add-in Not Working With ROLAP TIME Dimension

    Hello, I've been trying to figure this bizarre behavior for a while now. I have created a TIME dimension (based on a relational table) using OEM and defined the metadata etc. My hierarchy has 4 levels: day->month->quarter->year. I have end_date and t

  • IWeb and non-iWeb files @ same site?

    I have modified my CNAME at my personal domain site to forward to MobileMe, and I am not having any problems with that aspect. What I am wondering is ... can I have both iWeb files and non-iWeb files at the same site and still use MobileMe? Basically

  • DBIF_RSQL_INVALID_RSQL CX_SY_OPEN_SQL_DB

    Hi friends, I searched in sdn , i came t o know that it is because of select query with select-options ( Having large number of single values )   . My select query will be like this..    SELECT abelnr akunnr abukrs azuonr axblnr ahbkid abudat avbeln