Name of the current package
Hi,
Is it possible to a procedure to know the name of the package where the procedure is ?
Thank you.
Patrick
I gave tom's solution a try and it had an error running in my db. I had to change the following line
lineno := TO_NUMBER(SUBSTR(line, 13, 6));
to:
lineno := TO_NUMBER(SUBSTR(line, 13, 8));
Any idea why? maybe because I am running 9.2.0.6.0 db?
Not test this much, but since I changed the third param, mambe the second needs to change too..
Thanks for the tips though.
--pat
Similar Messages
-
I am using 10g and need to get the package name of the executing package on the run time. I can write/hard_code the value, but need a dynamic variable which stores the package_name during runtime.
Looking for something like __PACKAGE__ variable in Perl.
Thanks.SQL> create or replace procedure call_proc is
2 begin
3 dbms_output.put_line('Call for Call_Proc');
4 dbms_output.put_line(DBMS_UTILITY.FORMAT_CALL_STACK);
5 end;
6 /
Procedure created.
SQL> declare
2 a varchar2(2000);
3 begin
4 call_proc;
5 a := DBMS_UTILITY.FORMAT_CALL_STACK;
6 dbms_output.put_line(a);
7 end;
8 /
Call for Call_Proc
----- PL/SQL Call Stack -----
object line object
handle number
name
332C60EC 4 procedure SYS.CALL_PROC
332A2AD4 4 anonymous
block
----- PL/SQL Call Stack -----
object line object
handle number
name
332A2AD4 5 anonymous block
PL/SQL procedure successfully completed. -
How to get the name of the current tab.
Hi Experts,
I have two tabs in my tab strip and a button common to both the tabs.Can you please let me know how to get the name of the current tab in the event method of the push button.
Thanks in advance.
Regards,
Arun1.Declare an Action for OnSelect event of Tabstrip. This event is triggered whenever any change in tab occurs.
2. Declare an Import Parameter in this method
Tab type String.
3. This parameter has value of the selected TAB.
4. You can set this value in some Attribute in Attribute Tab in this event only (OnSelect):
wd_this->Att = Tab.
Att is the attribute created by you in Attributes Tab of View. ( of type String)
5. Now the selected Tab ID is stored in this Attribute Att.
6. In the Onaction of Button , retrieve the selected tab value from this attribute using :
Data : lv type string.
lv = wd_this->Att
Now lv has your selected TAB ID.
I hope it would help you.
Edited by: Saurav Mago on Oct 13, 2009 2:22 PM -
How to get the name of the currently used display variant
Dear all,
I found the user-exit EXIT_SAPLGRAP_001 for programming download authorization.
With us no standard user is allowd to download data from R/3. With the user-exit it would be possible to allow certain downloads. one problem i solved already.
For programming the second authorization i need the name of the currently used display variant in RKPEP000. Where can i get the name. I tried user-exits for RKPEP000, but i didn't find the name. I didn't find it in SYST either.
Thanks and reargs
MonikaFirst you need to enter those names. Right-click the songs (Windows) or go to File>Get Info (All Platforms), then go to the second tab from the left to insert the information.
-
In Windows, when Firefox (I'm currently using 7.0) downloads a file, it appends ''.PART'' to the file name of the currently downloading file and just renames it to its original file name after it finishes downloading.
I sometimes like to watch a currently downloading video file, so it will be better if Firefox just downloads the file to its actual filename (like what Opera does), so I can easily double click the incompletely downloaded file and watch it with the video player assigned to that file extension, rather than the awkward ''Right click -> Open With -> Choose Default Program'' route with .part files.
Does anyone know how to set Firefox to do this?It is possible that your anti-virus software is corrupting the downloaded files or otherwise interfering with downloading files by Firefox and prevents Firefox from renaming the .part file.
Try to disable the real-time (live) scanning of files in your anti-virus software temporarily to see if that makes downloading work.
See "Disable virus scanning in Firefox preferences - Windows"
* http://kb.mozillazine.org/Unable_to_save_or_download_files -
How do I find the file name of the current desktop picture?
I've tried going to System Prefs, right-clicking on the desktop, and rifling through the pictures folder to visually match the picture.
Isn't there an easy way to find out what the name of the current desktop picture file?...and, when I double-clicked on the plist file, it opened OmniOutliner, which did a great job of sorting through all the machine-speak of the file, displaying it in an organized (outline) fashion. I was able to track down the missing picture and replace it on the desktop. Thanks!
-
Can you get the file name of the current executing TSQL script?
Can you get the file name of the current executing TSQL script? I wrote entries to a generic log file and would like to include the script name.
Okay, So What you can do is
1. Read get the version from your database and redirect it to a text file(SQLCMD outout can be directed to text file using -o option or windows redirection operator >)
2. Now you can read this value from the text file either inside a batch file or a powershell script and decide what operations you can do.
Satheesh
My Blog |
How to ask questions in technical forum -
How can get the console window name of the current form?
How can get the console window name of the current form?
Try the various get methods of the viewObject such as getQuery:
http://www.oracle.com/webapps/online-help/jdeveloper/10.1.2/state/content/navId.4/navSetId._/vtAnchor.getQuery%28%29/vtTopicFile.bc4jjavadoc%7Crt%7Coracle%7Cjbo%7CViewObject%7Ehtml/ -
What is the system variable to find the name of the current window in S.F
hi
what is the system variable to find the name of the current window in S.FHi ,
SFSY_PAGEWINDOW
regards,
Prashant -
What is "the current package"?
In the java tute it says:
"For your convenience, the Java runtime system automatically imports two entire packages:
The java.langpackage
The current package by default "
What does it mean by the current package?All of the classes in the package that your own class resides in are automatically available to your code. So, if your class sit in
package com.mycompany.mypackageThen every class that also sits in there will automatically be visible. -
Name of the current printed page, page-window
Hello,
I need to determine the position of the currently printed page-window during runtime in the form. For that I need the name of the currently printed page. How can I retrieve this name during runtime in the form? Are there system variables? Any Idea?
Regards, Lars.Hi Lars,
Types of symbols
Check out these standard script symbols for System variable Display
Symbols are indentified by name surrounded by "&" and are not case sensitive.
System symbols
DATE Date
DAY Day
NAME_OF_DAY Name of day
MONTH Month
YEAR Year
TIME Time
HOURS Hours
MINUTES Minutes
SECONDS Seconds
PAGE Page number
NEXTPAGE Number of next pagre
DEVICE Output device
SPACE Blank space
ULINE Underline
VLINE Vertical line
Reward points if this helps.
Manish
Message was edited by: Manish Kumar -
Is it possible to reference the name of the current table in a formula?
Hi,
I am wanting to be able to reference the name of the same table that I am entering a formula into, i.e.:
=SUMIFS(Net,Event,"CURRENT TABLE NAME HERE",Category,"Publicity")
Is this possible?
Thanks,
NickAppleScript can access the current table name, so it if you are doing a lot of formula entry in different tables you could click once in a table and have a short script insert the formula for you. Here's a simple example:
Say you have a data table like this:
Event
Category
Net
Event 1
Publicity
10
Event 2
Celebration
20
Event 1
Supplies
5
Event 1
Salaries
20
Event 3
Celebration
25
Event 1
Publicity
20
Event 2
Publicity
11
Event 1
Accounting
20
And (important) you have 'Use Header Names as Labels' turned on in Numbers > Preferences.
You caninsert this formula:
=SUMIFS(Net,Event,"Event 1",Category,"Publicity")
... into a table named Event 1 that looks like this:
Cat
Amount
Publicity
30
...with a script like this:
-- NB: the \ "escape" the quotation marks so AppleScript takes them literally
tell application "Numbers"
set t to document 1's active sheet's first table whose selection range's class is range
set c to t's selection range's first cell
set c's value to "=SUMIFS(Net,Event," & "\"" & t's name & "\"" & ",Category,\"Publicity\")"
end tell
The script automatically inserts the name of the table you have clicked in.
(To use the script just copy and paste into Script Editor, click once in the cell where you want the formula (B2 in the example) and click the 'Run' triangle button in Script Editor.)
SG -
The name of the current list item
hi
i have a table that stores the users names and the available button for him (list item)
i want to create a function that returns a value
in the display condition of the list item to show or hide the item .
my function should receive two parameters one of them is the current user which is the :APP_USER. variable and the other parameter is the current list item which its display condition execute the function .
so how can i get the current item ?
thanksAyman,
You could hard-code it in each function call within each list item's condition.
Scott -
How to get a name of the current marker?
I have two director files with same identical marker names (2
language versions). How I can make a button that changes the
language (goes to the same marker of the other file). Something
like... go to "current marker name here" of movie
"language_2".ok, now the really cool method. You can get any marker name
whether it's
above the current frame or not.
mkrName = (the markerList)[(marker (0)).string]
will give you the marker above the current frame or the first
marker to the
left of the current frame if there is no marker above the
current frame.
Similarly,
mkrName = (the markerList)[(marker (1)).string]
will give you the first marker to the right of the current
frame whether
there is a marker above the current frame or not. You can see
how you can
get the name of any marker just by changing the parameter of
the marker ()
function.
If you're worried that the first example doesn't tell you
whether the marker
is above or behind the current frame a simple test will do.
if marker (0) = the frame then
-- this is true when the marker is on the current frame
end if
Craig Wollman
Word of Mouth Productions
phone 212 928 9581
fax 212 928 9582
159-00 Riverside Drive West #5H-70
NY, NY 10032
www.wordofmouthpros.com
"temes" <[email protected]> wrote in message
news:e4hate$ods$[email protected]..
>I have two director files with same identical marker
names (2 language
> versions). How I can make a button that changes the
language (goes to the
> same
> marker of the other file). Something like... go to
"current marker name
> here"
> of movie "language_2".
> -
[SOLVED] How to view the *exact* name of the currently running kernel?
Perhaps this question will seem dumb, but here goes : I have two kernels installed :
[ruben@arch ~]$ yaourt -Q linux
core/linux 3.2.9-1 (base)
[ruben@arch ~]$ yaourt -Q linux-ck-kx
repo-ck/linux-ck-kx 3.2.11-1 (ck-kx)
Grub’s menu.lst is configured to boot linux-ck-kx :
# general configuration:
timeout 5
default 2
color light-blue/black light-cyan/blue
# (0) Arch Linux
title Arch Linux
root (hd0,0)
kernel /boot/vmlinuz26 root=/dev/disk/by-label/archroot ro
initrd /boot/kernel26.img
# (1) Arch Linux Fallback
title Arch Linux Fallback
root (hd0,0)
kernel /boot/vmlinuz26 root=/dev/disk/by-label/archroot ro
initrd /boot/kernel26-fallback.img
# (2) Arch Linux CK-KX
title Arch Linux CK-KX
root (hd0,0)
kernel /boot/vmlinuz-linux-ck root=/dev/disk/by-label/archroot ro
initrd /boot/initramfs-linux-ck.img
# (3) Arch Linux CK-KX Fallback
title Arch Linux CK-KX Fallback
root (hd0,0)
kernel /boot/vmlinuz-linux-ck root=/dev/disk/by-label/archroot ro
initrd /boot/initramfs-linux-ck-fallback.img
And yet, I see no mention of *-ck-kx when issuing this comand :
[ruben@arch ~]$ uname -a
Linux arch 3.2.9-1-ARCH #1 SMP PREEMPT Thu Mar 1 09:31:13 CET 2012 x86_64 AMD Athlon(tm) 64 Processor 3200+ AuthenticAMD GNU/Linux
It does not matter whether I change the default kernel line in /boot/grub/menu.lst : I can set it to “ 0 ” or “ 2 ” and reboot, and the output of “ uname -a ” will always be exactly the same as above ; no mention of *ck-kx even though I know it is running.
I searched the web on how to view the name of the running kernel, all results I found said to use uname, so is there another command I am missing here ? Or is it normal that both my kernels yield the same uname output ?
Just curious, because I was playing around with kexec, and when doing “ fake ” reboots, I was alternating between the normal ARCH-kernel and the ck-kx*kernel, and I wanted to be sure that it actually worked, so I checked everytime with uname, and since I saw no difference in the outputs, I assumed kexec wasn’t working like it should, so I did a “ real ” reboot, but same uname outputs… So I must be missing something…
Here are the kexec commands I used, just to be sure I am doing this properly :
[ruben@arch ~]$ sudo kexec -l --append="`cat /proc/cmdline`" --initrd=/boot/initramfs-linux-ck.img /boot/vmlinuz-linux-ck
[ruben@arch ~]$ sudo init 6
and :
[ruben@arch ~]$ sudo kexec -l --append="`cat /proc/cmdline`" --initrd=/boot/initramfs-linux.img /boot/vmlinuz-linux
[ruben@arch ~]$ sudo init 6
Thoughts ?
Last edited by Montague (2012-03-15 22:00:02)litemotiv wrote:
Hmm worksforme:
$ uname -r
3.2.11-1-ck
One question for you litemotiv : do you have two kernels currently installed on your system, like I do, or did you uninstall the ARCH-kernel ? I ask because I might try this :
$ sudo pacman -Rns linux
and reboot, and see what happens…
But before I do that, might as well try to debug it ;
t1nk3r3r wrote:I would point the finger at GRUB, or something occuring near boot-time.
https://wiki.archlinux.org/index.php/Boot_Debugging
So I tried the “ Heavy Debug ” option, rebooted, then issued “ dmesg > dmesg.txt ” ; here are the first few lines of that file :
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.2.9-1-ARCH (tobias@T-POWA-LX) (gcc version 4.6.2 20120120 (prerelease) (GCC) ) #1 SMP PREEMPT Thu Mar 1 09:31:13 CET 2012
[ 0.000000] Command line: root=/dev/disk/by-label/archroot ro
and the complete dmesg output is here. I am no expert at reading debuggin output, but from the above, it seems like the default ARCH-kernel is being booted, even though my menu.lst hasn’t changed from my previous post (exept for the debugging options) :
# general configuration:
timeout 5
default 0
color light-blue/black light-cyan/blue
# (0) Arch Linux CK-KX
title Arch Linux CK-KX
root (hd0,0)
kernel /boot/vmlinuz-linux-ck root=/dev/disk/by-label/archroot ro rootdelay=5 panic=10 debug ignore_loglevel
initrd /boot/initramfs-linux-ck.img
# (1) Arch Linux CK-KX Fallback
title Arch Linux CK-KX Fallback
root (hd0,0)
kernel /boot/vmlinuz-linux-ck root=/dev/disk/by-label/archroot ro
initrd /boot/initramfs-linux-ck-fallback.img
I want the ck-kernel to boot, what it going on here ? Any more thoughts ?
Maybe you are looking for
-
Ai CS3 CS5 - Raster Effects Resolution changes
Just upgraded from CS3 to CS5. An Illustrator logo that contains a drop shadow (created in Ai CS3), placed into InDesign (CS5), and exported to PDF, fails in PDF checking due to low resolution. I traced this back to the Ai file. The Document Raster E
-
Hi For customer down payment F-37 do we have any Bapi or other way to post it ? or we will do BDC for the same ? please suggest. also if I need to revrese it then what FM can I use ? Thanks
-
hello, I was trying to create an account in this site which gives you complete functional implementation of the Oracle Applications 11i ( http://vis11510.solutionbeacon.net/OA_HTML/AppsLocalLogin.jsp?requestUrl=APPSHOMEPAGE&cancelUrl=http%3A%2F%2Fvis
-
Cisco UT Lite script for windows 2012
Hi; Will Cisco UT Lite script (for Prime LMS 4.2.4) will support with windows Active directory and domain controller on Windows 2012? If yes can you please share Link, I try to search but unfortunitly I counldn't found. All document refere till Windo
-
I can't install the DNG converter 5.7
It downloaded, but won't intstall. I have to abort. Pam