Problem using Page items in trigger

Hello all,
I have a requirement in my application in which I need to use a page item in my trigger..
My basic requiremtn is I have 2 forms to enter data..I need the name entered int he first form to be displayed in the second form, since am associating the data entered in the 2nd form to the name entered in the 1st form..
In my 2nd form where I need this, am setting the Source of Server_Name to P105_DEVICE_NAME. But I need this info to enter the details to the table..So I ve created the folowwing trigger.
create or replace TRIGGER "cts_apps_temp_insert"
BEFORE INSERT ON CTS_APPS_TEMP
FOR EACH ROW
DECLARE
vComputer_ID NUMBER;
vTemp varchar(200);
BEGIN
vTemp := :P105_DEVICE_NAME;
select computer_id into vComputer_ID from cts_hardware_info where computer_name = vtemp;
INSERT INTO CTS_SERVER_APP_CUSTOMER(SERVER_ID,DEPT_APP_REL_ID,TECHNICAL_MANAGER,FUNCTIONAL,APPLICATION_COORDINATOR,MODIFYUSERID,DATEOFMODIFICATION)
VALUES (vComputer_ID,:NEW.DEP_APP_REL_ID,:NEW.TECHNICAL_MANAGER,:NEW.FUCNTIONAL_MANAGER,:NEW.APPLICATION_COORDINATOR,v('APP_USER'),sysdate);
END;
But am getting an error executing this
Compilation failed, line 5 (10:44:08) The line numbers associated with compilation errors are relative to the first BEGIN statement. This only affects the compilation of database triggers.
PLS-00049: bad bind variable 'P105_DEVICE_NAME'
Is there any other way to access the Page Items from the trigger?
Thanks,
Nehal

Thanks Tyson. I have changed it but I still get the same error.
For some reason, The value of P105_DEVICE_NAME is becoming null.
I tried executing the following in SQL workshop.
begin
dbms_output.put_line('skdjaldjakdjalkdj');
dbms_output.put_line(v('P105_DEVICE_NAME'));
end;
and got the following output
skdjaldjakdjalkdj
Statement processed.
0.00 seconds
It doesnt print anything for v('P105_DEVICE_NAME').
Any idea why this is happening?
Thanks,
Nehal

Similar Messages

  • Enhancement Request : Subscriptions where IR uses Page Items.

    I'd like to request an Enhancement.
    I'd like report subscriptions to keep track of the current values of any page items in the sql statement when the subscription is stored.
    Currently any Interactive Reports that use page items run fine interactively, but subscriptions fail due to the page items having no values.

    Oh ok I see what you're trying to do but that's not what I meant.
    1. If your IR filters based on a page item and is a subscribable report, you have no choice but to work a NVL (or some other means) in there in order to make a true condition when the page item is null or nonexistent in order for the report to work at all during subscription.
    2. If you never want the user to be able to query all rows in the application (that is, force them to enter something in the page item), you'll need a not-null validation on the page so when they submit their page item change that it validates not-null.
    3. Use the filter in the IR (but NOT referencing a page item) such that the user can save/subscribe to an IR with the desired filter such that they get the properly-filtered named IR.
    Does that make sense?

  • I have a problem using Pages. Whenever I type fl I get a symbol instead. Does anyone else have this problem?

    I have a problem using Pages. Whenever I type fl I get a symbol instead. Does anyone else have this problem?

    Hi Tom
    On my machine it seems that the fi ligature doesn't exist with Times New Roman (installed version is 5.01.3x)
    It's available in Warnock Pro but the st one which is designed in Warnock doesn't apply.
    This last screenshot was made from Linotype Explore, the old free version.
    Typography isn't really easy, even with modern tools
    Yvan KOENIG (VALLAURIS, France) lundi 6 juin 2011 14:53:01
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.7
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • List of Values using page item variable

    I know there has to be a simple solution to my problem but I cannot figure it out. Any assistance would be greatly appreciated.
    I have a Shared list of values that I want to reuse on several of my pages. I have tried (I thought) all the variable possibilities but cannot figure out how to reference the page item in my list of values.
    Original code:
    select app_name d, app_sys_id f
    from ops_application
    where :P32_RADIO2 = 'Application'
    union
    select db_name d, db_id f
    from ops_database
    where :P32_RADIO2 = 'Database'
    Doesn't work:
    select app_name d, app_sys_id f
    from ops_application
    where 'P'||:APP_PAGE_ID||'_RADIO' = 'Application'
    union
    select db_name d, db_id f
    from ops_database
    where 'P'||:APP_PAGE_ID||'_RADIO' = 'Database'
    I also have tried 'P'||v('APP_PAGE_ID')||'_RADIO'
    'P'||&APP_PAGE_ID.||'_RADIO'
    'P&APP_PAGE_ID._RADIO'
    'P'||:APP_PAGE_ID||'_RADIO'
    Thanks,
    Gayle
    Edited by: user8116955 on Sep 27, 2010 12:25 PM

    Gayle,
    I haven't tried this, but what about
    where v('P'||:APP_PAGE_ID||'_RADIO') = 'Application'That should allow you to build up the name of the page item dynamically, and then test the value...
    A lower-quality solution would be to use an application item rather than a page item, as then you'd know the name ahead of time.
    Let me know if this works,
    -David

  • Error using Page Items in PL/SQL Triggers

    Hello all,
    I am trying to use a page item value in my PL/SQl trigger statement.Following is my trigger
    create or replace TRIGGER "cts_apps_temp_insert"
    BEFORE INSERT ON CTS_APPS_TEMP
    FOR EACH ROW
    DECLARE
    vComputer_ID NUMBER;
    vTemp varchar(200);
    BEGIN
    select computer_id into vComputer_ID from cts_hardware_info where computer_name = v('P105_DEVICE_NAME');
    INSERT INTO CTS_SERVER_APP_CUSTOMER(SERVER_ID,DEPT_APP_REL_ID,TECHNICAL_MANAGER,FUNCTIONAL,APPLICATION_COORDINATOR,MODIFYUSERID,DATEOFMODIFICATION)
    VALUES (vComputer_ID,:NEW.DEP_APP_REL_ID,:NEW.TECHNICAL_MANAGER,:NEW.FUCNTIONAL_MANAGER,:NEW.APPLICATION_COORDINATOR,v('APP_USER'),sysdate);
    END;
    But am getting an error when I try to insert the data from the form
    ORA-01403: no data found ORA-01403: no data found ORA-06512: at "ESDBA.cts_apps_temp_insert", line 5 ORA-04088: error during execution of trigger 'ESDBA.cts_apps_temp_insert'
    Error Unable to process row of table CTS_APPS_TEMP.
    OK
    I tried printing the value of v('P105_DEVICE_NAME'); from a pl/sql block...It doesnt print anything..
    Can anyone please tell mw why the page item value is becoming null?
    Is there any other way I can use the Page item value in the trigger?
    Thanks in Advance,
    Nehal
    Edited by: user11122439 on Jun 23, 2009 11:27 AM

    Thanks for helping me out Tony.
    It is a single row form. But the same form is used many time to add records for that particular server..
    In the first form the user enters the server details. In the second form they need to associate applications with the server name they entered in the first form.
    They can add any number of such applications.
    The contenst in my form are
    Server_name: ( read only field populated by the name they entered in the first form)
    application_name:
    Manger1:
    Manager2:
    When the user clicks on add button the applcaition should be associated to the server he added in the first form.For this I need the Id of the Server_name he added in the first form.
    I also need to store this info in a temporary table apart from the original Server-App relationt able. Thats the reason I had database trigger which was also adding stuff to a temporary table apart from adding the relationships to the main table.
    But even if we frget about hte temporary table can you please tell me how I can use the Page item value in form 1 and get its id from database and use it to insert server-app relation in second form?

  • Using page items in a report region

    Hi all,
    I am attempting to query a database table using values from two page items.
    SEARCH_FIELD is the field in which a query constraint is being applied
    SEARCH_CONDITION is the the query constraint condition being applied
    So, for example, I tried setting SEARCH_FIELD to AMOUNT and SEARCH_CONDITION to %22%.
    When I put the line 'AMOUNT LIKE :SEARCH_CONDITION' at the end of the query it returns the rows that do match the constraint.
    When I put the line ':SEARCH_FIELD LIKE :SEARCH_CONDITION' it displays "no data found."
    The debug shows it parse query, bind SEARCH_FIELD, bind SEARCH_CONDITION, determine column headings, then parse and bind again, and print column headings, and row loop: 15 row(s). Then the message "no data found." It should return a single row, but it does not.
    Any reason why apex doesn't like this?
    Thanks in advance,
    T.

    Sorry for the reply delay...
    The region is an SQL Query. The source is:
    Select NUMBER, DATE_LOGIN, DATE_LOGOUT, FORM.FORM_NAME as "Form", Person.L_Name||', '||Person.F_Name as "REQUESTER", DEPARTMENT.DEPARTMENT_NAME, ACCOUNT#, SUBCODE.SUBCODE as "Subcode", AMOUNT, DESCRIPTION, SENTTO.LOCATION as "Sent To", (Select Person.L_Name||', '||Person.F_Name from PERSON WHERE AUTHORIZED_BY=PERSON.ID) as "Authorized By" from SIGNATURETBL, PERSON, DEPARTMENT, FORM, SENTTO, SUBCODE WHERE REQUESTER=PERSON.ID AND DEPARTMENT=DEPARTMENT.ID AND FORM=FORM.ID AND SENT_TO=SENTTO.ID AND SIGNATURETBL.SUBCODE=SUBCODE.ID AND :SEARCH_FIELD LIKE :SEARCH_CONDITION
    If :SEARCH_FIELD has the value of 'AMOUNT' and :SEARCH_CONDITION has the value of '%22%' the regions says that no data was found. If :SEARCH_FIELD, in the query, is replaced by AMOUNT then the query does return the proper rows.
    Can you not reference an item to determine a column constraint?
    Thanks for any input

  • Re: Problems using page fragments

    Hi,
    Have you gone through the tutorial titled "Using Page Fragments". This is available at:
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/index.jsp
    This might be of help to you
    Cheers
    Girish

    solve the problem using the design pattern Tab
    http://www.oracle.com/technetwork/developer-tools/adf/uishell-093084.html

  • Is anyone having problems using pages app with iPad mini?

    I have to use a template report for my job- which other people with normal sized iPads also use- I use pages to convert the word doc - which contains writing and boxes - I complete the report and send it back to work, when they open it all the writing can't be seen down the right hand side, so I'm having to write three words per line in each box so they can read it when they open it, this is not ideal and wondered if its the iPad mini that can't cope ? Wondering weather to get the standard size iPad although I don't really want to do that.
    I also need a way of password protecting my work can anyone help ?
    Thanks

    I have an HP Scanjet 8390 with the same problem ($1600 new when I bought it). Using the "HP Scan.app", I am able to scan but not save - something about a read only file.
    The HP Scanjet 8390 is a business class **DUPLEX document scanner built like a tank, critical to my business (and personal). ie. I scan 100's of duplex pages a day for the last 6 years with no problems. It has a 14" glass for legal documents, 48-bit, +programmable hard buttons to scan and copy, or scan and print, OCR...
    I called 1-800-633-3600.. HP told me they do not support legacy products, have no intention of updating the drivers for legacy products and suggested I buy a new scanner (even though my old scanner works perfectly and is faster and not ).
    What is considered a legacy product? 1 year? 2 years? Am I to buy a new ($1000) scanner every 1-2 years?  What benefit do I get from a new equivalent scanner?

  • Problem with Page-Item

    Description:
    I created a database link with our Production-Database to publish some data
    via Intranet.
    Some pages got links to open Popup-Windows for a detailed description of the
    data. Every page was built in the same way - a list with data and the ID got a link like this:
    #ID#
    In this case I created a link to open page 2 in a different window. On page 2 I use &P2_ID. as title and use :P2_ID for my sql-statement.
    Problem:
    On my popup-page 104 I see my title &104_ID. but my sql-statement returns nothing. The sql-statement itself works if I change :P104_ID to the value I can see in my title.
    So I have really no idea why I can see the value of P104_ID if I use &P104_ID. or if I change the hidden item P104_ID to a textbox and if I use it in my SQL-Statement as :P104_ID I'll get no result. All other pages work fine.
    Any idea?
    Dietmar

    Hi!<br>
    This one should be my list I link from to page 104. The first row is my ID I store in P104_ID:<br>
    <br>
    AV8B<br>
    C-160<br>
    C130H<br>
    E3A<br>
    <br>
    My link again:<br>
    <href="javascript:popupURL('f?p=&APP_ID.:104:&APP_SESSION.::::P104_ID:#AC_ID#')">#AC_ID#</>
    <br>Remark: I did'n forget the A in front of HREF!<br>
    My Page 104 looks like the other pages I did it in the same way:<br>
    Page-Title:  &P104_ID.<br>
    It shows allways my data "AV8B" or "C-160" or "C130H" etc.<br>
    My SQL-Statement looks as follows:<br>
    select UNIT_NAME<br>
    from AIR_UNIT@BLUE<br>
    where AC_ID = :P104_ID<br>
    I can not understand why I can see in my title "AV8B" and the result of any SQL-Statement is the same: no data found!<br>
    If I replace in SQL :P104_ID with AV8B I get my result list. The obove statement was just a simple test script but doesn't work even if I use:<br>
    select AIR_UNIT.UNIT_NAME<br>
    from AIR_UNIT@BLUE<br>
    where AIR_UNIT.AC_ID = :P104_ID<br>
    or using instead of the unit_name ac_id doesn't work either!<br>
    I've got really no idea!

  • Problems using "open items" command in ARD

    Hi,
    Having problems while using the "open items" command from ARD. The "Copy" function works well but when trying to open the file I get the message "Failed".
    I suppose I am doing something wrong, any help is appreciated!

    ...  having problems ...
    We don't know what problems you are having

  • Problem using pages created by Muse in Eclipse

    Hi,
    I created a website using Muse and exported that to HTML into my workspace of eclipse.
    I get an error when i do that; I have posted a snapshot of the same here, can somebody please tell me what I need to do in order to get rid of the error and run the website on a server?
    Thanks,
    Shripad D

    I didn't get a good answer, but I have a workaround.  I downloaded FreeMake to use to convert the flv created by Adobe.  If you go this way, simply convert from flv to flv, and FreeMake will use a differnt audio codec that is comatible.

  • Progressbar color setting using page item value

    Hey guys! I hope this is not the wrong forum to ask for your help, but since I need to accomplish it in Apex I though I'd just give it a try here.
    Have been reading, working many hours on this issue without finding the proper solution.
    I have a progressbar, which and a page_item. The progressbar's status is set according to my page_item. It works all fine so far.
    Now the problem is that I want to change the colouring of the progressbar depending on the percentage achieved. In order to do this however, I would have to know how to change or override the default ui-theme colouring for this jQuery progressbar.
    My code right now is:
    <script type="text/javascript">
    $(function(){
       var pValue=$v('P1110_COUNTSTAT') ;
       $("#progressbar").progressbar({ value: pValue });
    </script>I tried to add progressbar.style.background = "red"; which colours the background and not the "overlay element". I read the entire source code but couldn't figure out how to address this part of the progressbar.
    If anybody here has some experience with this, please let me know!
    Many thanks,
    Seb

    Hi,
    If you define class like
    <style type="text/css">
    .bar_red { background:red!important; }
    .bar_blue { background:blue!important; }
    </style>And then with jQuery add and remove class e.g.
    $('.ui-progressbar-value').removeClass('bar_blue');
    $('.ui-progressbar-value').removeClass('bar_red');
    if(something){
      $('.ui-progressbar-value').addClass('bar_blue');
    }else if(something){
      $('.ui-progressbar-value').addClass('bar_red');
    }br, Jari

  • Default Value for Page Items

    Hi,
    I use page items quite heavily in my workbooks to allow the user to filter the recordsets as they require.
    Some of these page items are based on dates - i.e. Extract Date (my underlying tables are updated on a daily basis, so the Extract Date soon contains several values).
    Is there any way I can set the Page Item to show the latest (MAX) Extract Date when the work book is opened?
    Many thanks
    Mark

    Hi all
    Also, when alternate sorts are in use these will generally trigger Discoverer to add the NOREWRITE hint to the SQL, which can cause horribly slow performance.
    I used to use alternate sorts a lot but these days I use them very sparingly. When I want a list of values to come up in a certain order I now use a custom folder and add the ORDER BY in there. This allows the list to come up right when my users are picking and stops the NOREWRITE hint, but it also removes the alternate sorting from the display.
    There are other causes for the inclusion of NOREWRITE hint but this is the main one.
    Best wishes
    Michael

  • Disco Plus 10g Performance Issue When Moving Table Headings to Page Items

    Hello,
    We are experiencing an performance anomaly in Discoverer Plus (the latest release: 10.1.2.48.18), and are wondering if anyone else out there has noticed similar behavior. We're having trouble identifying the cause, and have a TAR openned with Oracle support but they are not able to reproduce our issue, and have been slow to offer suggestions or help.
    The issue happens when a user drags a table heading up into the page items area in a worksheet. When we move a heading up to the page items it works quickly one time, but then, every time after that, it takes anywhere from a few minutes up to HOURS to move any additional headings up to the page items area.
    The problem occurrs on approximately 3 out of every 5 of our workbooks. We've tried different sizes of workbooks, with large (several million records) and small (a few thousand records) datasets, and none of this seems to affect the issue at hand. The problem only occurs in Discoverer Plus, not Desktop. We've also spent some time researching caching and memory configuration, and believe that we have setup all of the recommended options for maximum performance on our systems.
    I would just like to know if anyone else out there in the community has experienced the same issue, and if anyone has any advice for us.
    Thank you,
    -Scott

    Hi,
    I found the following on Best Practices of Orcle Discoverer 10g by
    Mike Donohue - Product Management - Oracle Business Intelligence
    Performance – Parameters and Page Items
    Page Items provide very responsive, interactive manipulation of data
    At a cost:
    Forces retrieval of all Detail values
    Incremental increases of memory as indices are built
    Parameters reduce result set, improve performance
    Use Page Items only when needed – 2 to 3 with < 12 values each
    Performance – Parameters and Page Items - example
    Loc(3), Dept(10), ProdType(50), Prod(1,000), Date(365)
    547,500,000 potential rows/combinations (3*10*50*1000*365)
    Use parameters for Loc, Dept, ProdType, and 90 day date range
    90,000 potential rows/combinations (1000*90)
    Reduce data retrieved by ~ 6000 X
    Improve performance by several orders of magnitude
    I hope this will help you!

  • 'All' Page Items

    I have a discover report that uses 'Page Items' and summarizes the results. I would like to include an All on my Page Items which would allow me to display all of the page items summarized together. Is this possible in Discover or do I need to use Oracle Reports or Forms?
    John
    null

    in 4i, All is supported for Crosstabs. Pierre
    null

Maybe you are looking for

  • Serial numbers on sales orders

    Hi can somebody tell me how do we maintain the serial number in Sales order in VA01/02... Inputs on SD serial numbers also welcome Thanks Muthu

  • SOAP receiver: error HTTP 302 (Moved Temporarily)

    Dear all, I configured scenario where SOAP web service is consumed from SAP ABAP system via PI. The problem is in communication with the web service: the error observed in communication channels monitor for the configured SOAP receiver channel is: Me

  • Error deploying Crystal Report XI R2 to Enterprise - Failed to read paramet

    Error deploying Crystal Report XI R2 to Enterprise - Failed to read parameter object. I know this issue has been addressed several times and the solution recommended was to install Service Pack 2. I have done that. It started working for me too; howe

  • Need output of below query

    WITH rcv_transactions      AS (SELECT 1001      TRANSACTIONS_ID,                 -1        PARENT_TRANSACTION_ID,                 'RECEIVE' TRANSACTION_TYPE,                 NULL      LPN_ID,                 'LPN01'   TRANSFER_LPN_ID          FROM  

  • Multiple Joins Between Folders

    Hi Gurus, I have a fact table which contains multiple candidate fields that can be joined to a lookup table 2 folders fact_table lookup_table1 2 Joins are possible between the two folders fact_table.code_combination_id -> lookup_table1.code_combinati