Referencing an apex item in the cursor of a sql report (item is a link)

Is there a way for me to reference my database link in the cursor of my pl/sql function body returning SQL query report? See bolded and italic section.
declare
v_sql varchar2(32000);
cursor c1 is select distinct cpt_code from mv_prc_code_cnt@v('&F109_LINK.');
begin
v_sql:='select cpt_code,rank_plan from (
select cpt_code,row_number() over (order by sum(cnt) desc) as rank_plan from mv_prc_code_cnt@'||:f109_link||' where ip_id='||:p62_ip_id||' group by cpt_code) where rank_plan <=20';
return v_sql;
end;

Hi Jana,
You're using two different syntaxes in each other.
Try with &F109_LINK. or v('F109_LINK')
Regards,
Dimitri
-- http://dgielis.blogspot.com/
-- http://apex-evangelists.com/
-- http://apexblogs.info/

Similar Messages

  • Trackpad - single finger resting selects the item where the cursor sits

    Recently without any upgrades or new software loaded, I now find that when I use single finger on the touchpad (without pressing - just touching) and if I hold my finger for more than two seconds and then remove, the item that the cursor was on is selected. This is just as if I was pressing the touchpad but only if my finger is held for more than the two seconds.
    I have read on here to change the "point & click" options within system preferences/trackpad and then restarting, this appears to have fixed the same problem for everyone else but not for me. I have tried with tap and click on and off (currently off).
    Any ideas?
    I am running a mac book air 11" mid 2012 with OS X Yosemite 10.10.2

    Well, Apple did fix my trackpad. They think it had to do with capacitors underneath. And they replaced my keyboard at the same time, since the S and L keys were worn and they said that was under guarantee as well.
    It was not an altogether pleasant experience though. Even though I was promised same day drop-it-off-pick-it-up service a really nasty "genius bar" person said it was impossible to do the same day and that the other person shouldn't have promised that and it was getting really ugly. I had to go into native-New-Yorker mode (which I hate doing) and said I wasn't leaving until they kept their promise.
    Eventually they called a manager who made sure they would keep to their word and they ended up doing a very good job, even replacing my "marware" protective pad.
    So all's well that ends well, and I got good service in the end. But I always strongly dislike having to "fight for service". It should just be something that is a matter of course with Apple.
    I hope they get rid of that one particular genius bar person though. He is bad news.
    doug

  • How to control the cursor position on a text item..

    Hello,
    How can we control the cursor position programmatically on a text item.
    i.e. how do we move the cursor to home or end of the text item.
    TIA,
    Hiten

    If you have an access to metalink.oracle.com, take a look at notes:
    Note 61656.1 (V45) HIGHLIGHTING A REGION OF TEXT
    Note 131028.1 Default Highlighting in Forms (Client Server)
    and threads from metalink forum:
    531481.996 "Select_All not working in 6.0.8.25.2", 153092.995 "Text item cursor position"

  • Summing up items of the same date in crystal report

    Hi Experts,
    I am doing a sales analysis report in crystal and I have grouped the report by the BP Name hence showing sub totals per BP. I would also like to go further and sum up same sales items done on the same date under one item description i.e
    Date                Code        Description              Amt $
    02-Mar-2011   NTE01     Handling  Charges    1,000   
    02-Mar-2011   NTE01     Handling  Charges    1,000   
    02-Mar-2011   NTE01     Handling  Charges    1,000
    03-Mar2011    NTE02     Storage  Charges     2,000
    03-Mar2011    NTE02     Storage  Charges     2,000
    03-Mar2011    NTE02     Storage  Charges     2,000
    Expected Results
    Date                Code        Description              Amt $
    02-Mar-2011   NTE01     Handling  Charges     3,000
    03-Mar2011    NTE02     Storage  Charges      6,000     
    Patrick
    Edited by: Patrick Makanga on Mar 10, 2011 8:05 AM
    Edited by: Patrick Makanga on Mar 10, 2011 8:17 AM

    Hi Julie
    Thanks, had grouped by PBs and summed up sub totals per each BP and finally a grand total for all the BPs. Just wanted to make the report appear shot and  avoid repetition of two same items with the same date. Have tried creating the two levels of groups but still not getting the desired results, could it be done with a formula field? if yes, how is the code?
    Patrick

  • Classification of line items into the Detailed Profit and Loss report

    Hi,
    Given a line item in a profit and loss ledger, what field determines that the line item will appear under Fixed Manufacturing Costs, Sales and Distribution or General Admin Expenses when we generate the Detailed Profit and Loss report?
    Thank you

    Hi all,
    Thank you so much for everyone's quick reply. I really appreciate it.
    Please allow me to clarify my question.
    I have a balance of 3,712,126.60 in my GL 30000000. In my detailed Profit and Loss (ZPL-002), 705,712.90 is shown under Gen. Operating Exp. while 3,006,413.70 is shown under Fixed Manufacturing Costs.
    So, what field does SAP use to allocate those line items between Gen. Operating Exp. and Fixed Manufacturing Costs? Is it Functional Area only?
    Thank you.

  • The cart on the retail website is not adding new items to the cart. The items in the cart are replaced by new items added

    The cart was not being updated. Firefox recommended all history for this website be cleared. All History was cleared. It resolved the problem of adding items to the cart. But now there is a new problem. The item in the cart is being replaced by new items ordered. So the cart has only ONE (The latest item ordered) in the cart. How can I resolve this issue?

    Thanks... I got it....

  • Controlling the page of an SQL report region

    I have an SQL report region containing 70 rows. It shows the status of a bidding process that takes place in sequence, from the guy in the first row to the guy in the last. I use a "red light/green light" technique in each row to show who is currently eligible.
    Typically users will login and then hit the next button to get to where the action is once the first 15 folks are done (number of rows = 15). Is there some way to set which set of rows first appears?
    I looked at the URLs. When I first logged in I got:
    http://htmldb.ciscoinc.com/bill/f?p=173:3:15341208186623218430::NO:::
    After clicking "Next" I got:
    http://htmldb.ciscoinc.com/bill/f?p=173:3:15341208186623218430:pg_R_4821423314714801953:NO&pg_min_row=16&pg_max_rows=15&pg_rows_fetched=15
    How do I come up with:
    pg_R_4821423314714801953 ?
    Any thoughts? Thanks.
    Bill

    Bill,
    I would suggest using a dynamic query that’s referencing a page item to limit the result set so that the correct records are shown when the user branches to the report page. Manually modifying the pagination URL is not supported. The URL contains the internal region ID, and is setting some internal pagination variables. The internal workings of report pagination could change in future versions of HTML DB, so manually manipulating those values could cause your report to break duing a future upgrade.
    Regards,
    Marc

  • Append Today Date to the Attachement Name using SQL reporting services

    I have a report on SQL reporting services, I have scheduled this report to be sent automatically by mail using Subscriptions but the client needs to append today date to the report name attached, currently the attachment is taking the report name as it is.
    EX: CollectExport.txt but what I need is to have CollectExport_21-07-2010.txt .
    Please advise.
    Thanks.

    As I understand it, the purpose of the program is to route a report file that contains the name of the report with the current date appended to the end. So, have you tried to use the ReportViewer control and extrude the report as a PDF stream (which you
    can name)?
    William Vaughn
    Mentor, Consultant, Trainer, MVP
    http://betav.com
    http://betav.com/blog/billva
    http://www.hitchhikerguides.net
    “Hitchhiker’s Guide to Visual Studio and SQL Server (7th Edition)”
    Please click the Mark as Answer button if a post solves your problem!

  • The following error occurs after Goodle News loads and I try to use the cursor to select a news item Script: chrome://vidbar/content/downloader.js:107

    Updated to the latest Version of Firefox and checked for updates on all apps but no change and the error occurs every time I select a news item or try to scan down or up the page.

    That issue is caused by the vidbar extension
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • If I check the sum box on a report item, the words "report total:" appear..

    I would like it to read: Report Total With capital letters.
    Any up would be appreciated.

    Hello,
    Take a look at the "Display this text when printing report sums" setting in the Report Attributes.
    John.
    http://jes.blogs.shellprompt.net
    http://apex-evangelists.com

  • To position the cursor

    How to position the cursor at next item if i choose kod_kat_pkj = '2' then the cursor will go(jump to) to kod_ngra ( state)
    Begin
    --Job categories
         begin
              select initcap(nama)
              into :lmd_pmk_pkj.kod_kat_pkjn_d
              from lmd_ref_kat_kerja
              where kod = :lmd_pmk_pkj.kod_kat_pkjn;
         exception
              when no_data_found then
                   :lmd_pmk_pkj.kod_kat_pkjn_d := '-Tiada-';
         end;
    --Worker Categories
         begin
              select initcap(nama)
              into :lmd_pmk_pkj.kod_kat_pkj_d
              from lmd_ref_kat_pkj
              where kod = :lmd_pmk_pkj.kod_kat_pkj;
         exception
              when no_data_found then
                   :lmd_pmk_pkj.kod_kat_pkj_d := '-Tiada-';
         end;
    --State if imigran
         if :lmd_pmk_pkj.kod_kat_pkj = '3' then
              begin
                   select initcap(nama)
                   into :lmd_pmk_pkj.kod_ngri_d
                   from lmd_ref_ngri
                   where kod = :lmd_pmk_pkj.kod_ngri;
              exception
                   when no_data_found then
                        :lmd_pmk_pkj.kod_ngri_d := '-Tiada-';
              end;
         end if;
    --State
         if :lmd_pmk_pkj.kod_kat_pkj = '2' then
              begin
                   select initcap(nama)
                   into :lmd_pmk_pkj.kod_ngra_d
                   from lmd_ref_ngra
                   where kod = :lmd_pmk_pkj.kod_ngra;
              exception
                   when no_data_found then
                        :lmd_pmk_pkj.kod_ngra_d := '-Tiada-';
              end;
         end if;
    exception
         when others then
         call_alert('e_alt01','POST_QUERY LMD_PMK_PKJ : '||dbms_error_text);
    End;

    Post-Text-Item
    if :lmd_pmk_pkj.kod_kat_pkj = '2' then
         go_item('lmd_pmk_pkj.kod_ngra');
    elsif :lmd_pmk_pkj.kod_kat_pkj = '3' then
         go_item('lmd_pmk_pkj.kod_ngri');
    else     
         go_item('lmd_pmk_pkj.bil_pkj_l');
    end if;     
    But why when i choose 2, the cursor not jump to next item kod_ngra.

  • Locating the cursor position

    Is it possible to locate the cursor position in a text item? in other words can I find the number of characters to the left of the cursor in a text item?
    I really appreciate any kind of input on this.
    null

    I have to insert user selected variables that show up in a LOV into the text item at the cursor position.
    A sloppy workaround for this problem is asking the user to put in a pre defined symbol where ever he/she wants to insert the variables and then replace the variable with the value selected from the LOV using the REPLACE function. There is always a chance of error here!
    Instead if there is a way to know the cursor position, like the no. of characters to the left of the cursor or the cursor co-ordinates.............

  • Deleting a single item from the trash.

    Hello
    Is there a way to delete a single item from the trash, while leaving all other items in the trash?

    I don't believe so and I'm not sure why you would want to.
    Items should not be placed in the Trash unless you intend to delete the items. The Trash is not designed for and should not be used as a temporary storage location.

  • Open references of other list items from a list item in the same window or tab

    Hi there,
    We have migrated from lotus notes to sharepoint. We have converted the lotus notes forms to sharepoint forms. Basically the list items are pages and there are links of other pages in a page.
    My problem is I want to open the other pages in the same tab or window and not in a separate window.(currently the links open in a separate window which is not the requirement.)
    In terms of sharepoint I would say,
    I have references(links)  to other list items of the list in a single list item. I want to open the other list items in the same window (tab).
    How can we achieve this?? If possible without much codes??
    Please suggest.
    Any help will be highly appreciated.
    Thanks in advance

    See:
    *http://kb.mozillazine.org/browser.link.open_newwindow
    *1: current tab; 2:new window; 3:new tab;
    For links opened via JavaScript you can look at this pref:
    *http://kb.mozillazine.org/browser.link.open_newwindow.restriction
    You can open the <b>about:config</b> page via the location/address bar.
    You can accept the warning and click "I'll be careful" to continue.
    *http://kb.mozillazine.org/about:config

  • Problem in invoice printout for second line item of the contract.

    Hi,
    There are two line items in the contract. Both with different material and different plants. 1st line item with plant japan, and 2nd line item with plant singapore. But, when i try to take printout for 2nd line item after invoicing it, the address appearing in printout is of Japan instead of singapore.
    Any idea why this happening?
    Please revert back asap.

    Hi Chetan,
    If that is a header output, then there are issues at the design level itself. You have an output as header output and you expect the item level details to be printed in two different printouts.How is this handled in the program. Mostly header outputs are used to print the details abotu all the items in the doucment , not for a specific item. If you want to print a specific item only , then it is always advisable to configure the output as item output.
    Leaving that aside, the problem lies in the code. You may be selecting the item number when you are printing the details of the second item, but for printing address, you are not coding using the item number.
    To prove this test this scenario.
    Create an order with first item belonging to Singapore plant and second item Japan plant.
    Now create the otuput for item1----it will work fine
    Do the same for item2-----Now, the plant address will be of Singapore, while the material belongs to Japan.
    If this happens, it can be safely assumed that problem lies in the code. Do this test and then if the problem is in the program, discuss with your developer, he will rectify the bug for you.
    You can reward me if this solves your problem.

Maybe you are looking for