Making an object Globally accessible

What i am looking to do is this:
We have a schema called MECLIB which is just a library of functions and stuff for use in general. Things such as a FORMATPHONE, FORMATZIP and MAKEALPHANUM function... really general stuff.
We have public synonyms to all the functions, but every user who wants to use it, we need to explicitly grant them access on each or every function. This is a major pain. And since we use them regularly inside other procedures and packages, it cannot be done through roles.
Is there anyway i can take a function and mark somehow as "ACCESSIBLE TO EVERYONE", so that anyone can use it without needing to be explicitly granted their own permissions on it?
Thanks in advance,
- Aaron.

Hi,
Did you GRANT EXECUTE to PUBLIC on your procedures ?
Paolo

Similar Messages

  • Making variable values globally accessible in my code

    I have certain variables, and when I declare their values
    within a function I want the value to be accessible in other
    functions. Right now it's not, so obviously I have a scoping
    problem.
    For this example, I have a function that decides if an avatar
    is too close to the side of the screen, in which case it sets a
    flag var tooClose:Boolean = true; Of course my other functions
    don't see this and aren't getting the message.
    In old 2.0 I would have just said _root.tooClose = true or I
    would have made the variable global.
    Could someone please help me here? Its something I find
    myself needing quite a bit.

    Let me be clearer:
    var myFlag:Boolean = false;
    function resetVariable() {
    var myFlag = true
    function checkVariableValue() {
    trace(myFlag)
    // shows false
    I would like it so when I set the variable myFlag = true in
    the resetVariable function that the global value for myFlag becomes
    "true" and all my other functions are aware of it.

  • Declare objects globally or pass as parameter in Package

    Hi All,
    Need a technical suggestion, in a package i am having several functions,
    say Fn_A calling Fn_B and Fn_B calling Fn_C and Fn_C calling Fn_D
    and i need a collection of Nested Table Objects to be processed at Fn_D,
    and it has to reach from Fn_A, in-between say Fn_C if required, can also process
    the Nested Table Object.
    Also for each Function need to pass 3 parameters of collection object and 3 to 4 Number/Varchar2.
    My question is, would it be better to declare the Nested Table Object globally inside the package,
    or Pass it as an IN OUT NO COPY parameter throughout all functions ?
    And the scenario is :
    Nested Table would have 1000 objects in the collection,
    and each object will have size = 75 Bytes
    and in one day on an average 3 million calls made.
    regards,
    Ludy

    My bias would be not to use a package global if you can reasonably pass the collection as a parameter. It's easier to maintain code that is self-contained rather than trying to debug code whose behavior depends on the state of the session. If you pass in the collection as a parameter, you can write unit tests for all 4 procedures relatively easily rather than having to go through all 4 to test procedure D. Plus, if you don't need to maintain session state, you can update your package code without causing any application tier connections that remained open to error out.
    Performance wise, I wouldn't expect it to matter, though it would be worth benchmarking.
    Justin

  • Cannot save asset - Object [object global] has no method 'submitForm'

    Hi,
    I am getting following error message on the contributor UI everytime I create / save a flex asset. I am on 11G WCS.
    Object [object global] has no method 'submitForm'
    Anyone know how to fix this?
    thanks!

    It does seem like a Adobe code issue as I do not see any of
    your code in the trace stack.
    In the Adobe ListBase.as the line (1357) of code is commented
    as part of an if block. "if necessary, make the rows that will
    eventually be offscreen, above visible rows" There are a number of
    variables in the line and one or more of them is not defined. Thus
    that leads me to believe a timing problem with updating the
    DataGrid.
    However what code is listening to the event you are
    dispatching? Do you get there?

  • Need algrithim for constantly making new objects

    How would I go about making an object and then remake the same object again but with a different name.
    here is the problem:
    for(int i=0;i<23;i++){
    //But i want the second time to run around and create a Printer object
    //named something else not printer.
    Printer printer = new Printer();
    any help would be appreciated

    Well I my case I'm trying to get different names. So I guess the easist thing I can do is to make an array. But then it brings me to this question,
    This is my class:
    import java.awt.*;
    public class Printer {
         public void init(){
         public void paint(Graphics g,String string,int x,int y){
              g.drawString(string,x,y);
    }if I wanted to make an array out of it like so:
    Printer[] print = new Printer[xAmount];It says nullPointerException when I try to access the class's function by doing this:
    print[0].paint(g,"test",2,3);What can I put in print[0] to make it not null? I mean you can put numbers and letters. (
    Message was edited by:
    jkhoa
    Message was edited by:
    jkhoa

  • How Would One Go About Making an Object Rotate to Face in Direction of Mouse?

    I'm just a teenager who happens to have Flash as part of CS4 Production Premium, which I got as a gift.  I don't have any training or previous experience in Flash, and have only just in the past few month been looking into what ActionScript is.  I've just been fiddling with Flash in my spare time, just as something to do, and am working on making very basic computer games.  Currently I am trying to make a very basic top-down shooter computer game.  I've gotten it to where I can move the player (a circle with an arrow on the edge) in eight directions using the standard FPS movement keys (W,A,S,D) and make it move faster for a limited time by holding down the SHIFT key. 
    But now I've come to a standstill.  I am trying to make the player rotate in the direction of the mouse cursor (made to look like crosshairs) so that the player can move in any of the eight directions and aim in any direction at the same time.  I've searched the Internet for hours on end, looking for anything that might help, but not a single Web page section relates to this kind of thing.  So now I'm giving up on searching for a help article, and am making one instead.  Is there anyone that's successfully done this kind of thing before?  Or at least someone who actually knows how to properly use ActionScript 3.0 and can figure it out themselves, then tell me what they did?   (In the meantime, I've made it so that the player rotates and faces in the direction he is traveling in.)
    I've attatched all the code that I've typed to make the game work, so that anyone can look at it and tell me if I'm doing something wrong already.  I've only been learning ActionScript by figuring it out on my own as I go (watched a few videos I have on a disc too), and in the case of this game, I've just been making is up as I go, so to all of you people who actually know this stuff pretty well, this code is probably going to look nasty.

    I pasted it to the bottom of my code on the main timeline (correcting it for my use), but I get this message in the Compiler Errors window:
    Warning: 1090: Migration issue: The onMouseMove event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0.  You must first register this handler for the event using addEventListener ( 'mouseMove', callback_handler).
    So what do I do about that?  (again, I'm just a beginner, so I don't know what any of this means)
    (attached is a snapshot of the various objects refered to in the code.  also the original code is attached to the original post.  in case these help at all.)

  • Script for making an object the artboard size.

    I am looking for some help on trying to make an object the exact size of the artboard.  This is something I do on a daily basis for several different reasons and it would be very helpful if this can happen automatically for whatever size the artboard may be.  As I understand it the only way is with a script but I have no experience with making illustrator scripts, im definately no programmer.  I have set up quickkeys in the past to copy from the artboard inputs when you are on the artboard tool but these round to the nearest .01 and this is not accurate enough for what I am working with.  Also if I do this with multiple pages open illustrator is very slow to respond to the artboard tool.  If anyone has any idea where to start or has seen other such scripts I would greatly appreciate it.  Thank you.
    Below is a script that I saw on here that I believe may contain what I need but now knowing programming I have no idea where to start on editing.  All I need is the part where an object is placed on the artboard that is the exact same size as the artboard.  If anyone can advise on editing I would greatly apprecaite it.
    #target illustrator
    function main() {
         if (app.documents.length == 0) {
              alert('Open a document before running this script');
              return; // Stop script here no doc open…
         } else {
              var docRef = app.activeDocument;
              with (docRef) {
                   if (selection.length == 0) {
                        alert('No items are selected…');
                        return; // Stop script here with no selection…
                   if (selection.length > 1) {
                        alert('Too many items are selected…');
                        return; // Stop script here with selection Array…
                   } else {                   
                        var selVB = selection[0].visibleBounds;
                        var rectTop = selVB[1] + 36;
                        var rectLeft = selVB[0] - 36;
                        var rectWidth = (selVB[2] - selVB[0]) + 72;
                        var rectHeight = (selVB[1] - selVB[3]) + 72;              
                        selection[0].parent.name = 'CC';
                        selection[0].filled = false;
                        selection[0].stroked = true;
                        var ccColor = cmykColor(0, 100, 0, 0);              
                        var ccCol = spots.add()
                        ccCol.name = 'CC';
                        ccCol.color = ccColor;
                        ccCol.tint = 100;
                        ccCol.colorType = ColorModel.SPOT;
                        var cc = new SpotColor();
                        cc.spot = ccCol;                   
                        selection[0].strokeColor = cc;
                        selection[0].strokeWidth = 1;                   
                        var tcLayer = layers.add();
                        tcLayer.name = 'TC';
                        var padBox = pathItems.rectangle(rectTop, rectLeft, rectWidth, rectHeight, false);
                        padBox.stroked = false;
                        padBox.filled = true;
                        var tcColor = cmykColor(0, 100, 90, 0);         
                        var tcCol = spots.add()
                        tcCol.name = 'TC';
                        tcCol.color = tcColor;
                        tcCol.tint = 100;
                        tcCol.colorType = ColorModel.SPOT;
                        var tc = new SpotColor();
                        tc.spot = tcCol;
                        padBox.fillColor = tc;    
                        padBox.move(docRef, ElementPlacement.PLACEATEND);
                        artboards[0].artboardRect = (padBox.visibleBounds);
                        redraw();
                        rectWidth = (rectWidth-72)/72;
                        rectWidth = roundToDP(rectWidth,1);
                        rectHeight = (rectHeight-72)/72;
                        rectHeight = roundToDP(rectHeight,1);
                        var textString = rectWidth + ' x ' + rectHeight;
                        prompt('Copy Me', textString);
    main();
    function roundToDP(nbr, dP) {
         dpNbr = Math.round(nbr*Math.pow(10,dP))/Math.pow(10,dP);
         return dpNbr;
    function cmykColor(c, m, y, k) {
         var newCMYK = new CMYKColor();
         newCMYK.cyan = c;
         newCMYK.magenta = m;
         newCMYK.yellow = y;
         newCMYK.black = k;
         return newCMYK;

    Thanks to CarlosCanto for the original script, it was very a very helpful starting point to optimize one of our workflows. We customized it a bit to maintain the aspect ratio (just takes the greater of the width / height and scales proportionally to the artboard size), and also center up the object in the middle of the artboard once scaling is complete. I hope it is helpful to someone:
    #target Illustrator
    //  script.name = fitObjectToArtboardBounds.jsx;
    //  script.description = resizes selected object to fit exactly to Active Artboard Bounds;
    //  script.required = select ONE object before running; CS4 & CS5 Only.
    //  script.parent = carlos canto // 01/25/12;
    //  script.elegant = false;
    var idoc = app.activeDocument;
    selec = idoc.selection;
    if (selec.length==1)
            // get document bounds
            var docw = idoc.width;
            var doch = idoc.height;
            var activeAB = idoc.artboards[idoc.artboards.getActiveArtboardIndex()]; // get active AB
            docLeft = activeAB.artboardRect[0];
            docTop = activeAB.artboardRect[1];
            // get selection bounds
            var sel = idoc.selection[0];
            var selVB = sel.visibleBounds;
            var selVw = selVB[2]-selVB[0];
            var selVh = selVB[1]-selVB[3];
            var selGB = sel.geometricBounds;
            var selGw = selGB[2]-selGB[0];
            var selGh = selGB[1]-selGB[3];
            // get the difference between Visible & Geometric Bounds
            var deltaX = selVw-selGw;
            var deltaY = selVh-selGh;
            if (sel.width > sel.height) {
                var newWidth = docw-deltaX;
                var ratio = sel.width / newWidth;
                sel.width = newWidth; // width is Geometric width, so we need to make it smaller...to accomodate the visible portion.
                sel.height = sel.height * ratio;
            } else {
                var newHeight = doch-deltaY;
                var ratio = sel.height / newHeight;
                sel.height = newHeight;
                sel.width = sel.width / ratio;
            sel.top = (doch / 2) - (sel.height / 2);
            sel.left = (docw / 2) - (sel.width / 2);
        else
                alert("select ONE object before running");

  • Making the flv component accessible?

    I am using the flv player component and am having trouble adding the players buttons to the tab order.
    I opened the FLA for the skin I am attaching to the component, and individually selected the play, close caption and full screen button and assigned them each a tab order number within the Accessibility window. I also selected the "make object accessible" checkbox for each button within the Accessibility window. Doing that didnt seem to work, so I looked further and found that there is an accessibility class and I have now tried to utilize that class with the following code:
    import fl.accessibility.ButtonAccImpl;
    ButtonAccImpl.enableAccessibility();
    but still dont seem to be doing something right?
    does anyone have experience accessibility and the flv player component?
    many thanks in advance.
    corey.

    i found this on adobes site but the code dosent seem to be correct? it throws this error when i publish:
    Scene 1, Layer 'actions', Frame1, Line 10 1046: Type was not found or was not a complie-time constant: Void.
    DESCRIPTION:
    The FLVPlayback component skins with captioning support were designed with keyboard and screen reader access in mind. The class mx.video.skins.AccessibleSkin assigns a text label to each of the FLVPlayback controls. The AccessibleSkin class also provides the method assignTabIndexes for assigning tab index values to the FLVPlayback controls and incorporating them into the logical tab order of your Flash application. The assignTabIndexes method accepts a start index as a numeric parameter, iterates through the FLVPlayback controls assigning a unique tab index value to each control, and returns the next available tab index number.
    CODE:
    // The starting tabIndex for the FLVPlayback controls
    var nextTabIndex:Number = 10;
    // define a listener object
    var listenerObject:Object = new Object();
    // define a skinLoaded event handler
    listenerObject.skinLoaded = function (eventObject:Object):Void
        // this is technically a hack since the skin_mc is
        // a private property of the FLVPlayback component
        var accessibleSkin = eventObject.target.skin_mc.accessibleSkin;
        if(accessibleSkin){
            // It's best to wait a frame until
            // all FLVPlayback controls initialize
            var intID:Number;
            intID = setInterval( function(){
                // assign tabIndexes starting at nextTabIndex
                nextTabIndex = accessibleSkin.assignTabIndexes(nextTabIndex);
                // trace the next tab index after
                // FLVPlayback controls
                trace( nextTabIndex );
            clearInterval(intID);
            }, 100 );
    // register listenerObject to handle "skinLoaded" event.
    // this code assumes that your FLVPlayback component instance is
    // named "myFLVPlayback_flvp"
    myFLVPlayback_flvp.addEventListener("skinLoaded",listenerObject);
    i miss good old AS2
    thanks again in advance for any help.
    corey

  • Passing BPM presentation object global activity

    Hello,
    I would like to pass a BPM presentation object from a JSP page to global actiivity using openGlobal() method. Do you know if this is possible? Any examples available you know?
    Thanks & Regards.

    Thank you Kevin, here are some more details. Please let me know if this is not clear...
    openGlobal is a local java script function in my code but internally it is calling Fuego UrlActions.runApplication().
    Basically I have an map (key & value pair) as a member of BPM object, which I am using in source JSP file. I want to send this object to a global activity which has another JSP page to display this information.
    I know we can pass a string argument this way but I am not sure how to pass map.
    Thanks.

  • Business Object & Global Classes

    Is there any link between Business Objects and Global Classes?
    Sameer
    Message was edited by: SAMEER INAMDAR

    Hi Deb,
    Please check the following [thread|Re: Creating instance of Business Objects;
    Hope this helps!
    Regards,
    Saumya

  • SES: Making Business Object 2032 searchable

    Hello,
    I tried to make the Business Object u201Ccustomer orderu201D (Bus2032) searchable with TREX 7.1 and ERP System 6.0, but the indexing failed.
    I made what is described in the following thread:
    SES - Making New Business Objects Searchable?
    I copied the class CL_COM_SE_BUSOBJ_TEST_FLIGHT. So I had a class that implements the interface IF_COM_SE_BUSOBJ. Then I entered the Business Object and the new class in the table COM_SE_BUSOBJ, first with the transaction se11 and after that with spro.
    But in the SES_Admin the Business Object has no title.
    And when I tried to create an index with the SES_Admin the indexing failed with errorcode 000.
    Can anyone help me?
    Is it possible to make the BO bus2032 searchable? How?
    kind regards
    Ramona

    Hi Ramona,
    >> Is it possible to make the BO bus2032 searchable?
    I do not see any reason, why it should not be.
    If you followed the documentation and the linked SDN thread there must be some error in the details.
    Please let me know, if I should hook you up with some SAP employed consultants to assist. Their service, however, may not be for free...
    Best, Karsten

  • Making One Object Move, both players see it fine, but very slow.

    Hi there,
    I am simply trying to send one object (movieClip) move from the left side of the stage to the right side. I am able to accomplish this by using the following very simple code:
    /////////////////////////////CODE///////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////
    //PRESSING RIGHT, MAKING BOX MOVE
    public function pressingRightMakingBoxMove(e:KeyboardEvent) {
              box.x += 3;
              moveBox.sender = netGroup.convertPeerIDToGroupAddress(netConnection.nearID);
              moveBox.user = "" + netConnection.nearID;
              moveBox.xx = box.x;
         netGroup.post(moveBox);
    public function netStatus(event:NetStatusEvent) {
         switch(event.info.code){
              case "NetConnection.Connect.Success":
                   setupGroup();
              break;
              case "NetGroup.Posting.Notify":
                   receiveBoxMovement(event.info.message);
              break;
    public function receiveBoxMovement(moveBox:Object):void{
          box.x = moveBox.xx;
    ////////////////////////////////////////////////////////////////////////////////////////// ENDCODE//////////////////////////////////////////////////////////////
    It works fine, the box moves on both screens, but you can obviously tell there is latency. Should I be sending movements through an Object? Perhaps there is a quicker way, sending it through strings or text? Definitely not acceptable over UDP.
    Thank you

    NetGroup.post() may have significant latency, and postings may arrive in a different order than they are made.  it is not intended for time-critical communication.
    to get the lowest latency (and most efficient transmission) for N:N communication (including 1:1), you should use the 1:1 P2P APIs (NetStream.DIRECT_CONNECTIONS and explicit peerIDs) and be sure NetStream.bufferTime=0.  it sounds like this is the most appropriate for your application.
    for 1:N or M:N (M << N, N > 4) communication, you should use P2P multicast.  but P2P multicast may also have significant delays, especially while starting up.

  • Info object Global routine

    Hi,
    i had infoobject ZEBAY01 and need to write global transfer routine for this infoobject. Now the infoobject value is comming 0000999999 but the business wants the output value as 009999. They want to see output value as 6digit like (009999).can someone help me how to write code here
    ROGRAM CONVERSION_ROUTINE.
    Type pools used by conversion program
    TYPE-POOLS: RSD, RSARC, RSARR.
    TYPES: DE_ZEBAY01(000015) TYPE C.
    Conversion rule for InfoObject ZEBAY01
        Data type       = CHAR
        ABAP type       = C
        ABAP length     = 000015
    FORM CONVERT_ZEBAY01
      USING    RECORD_NO LIKE SY-TABIX
               SOURCE_SYSTEM TYPE RSA_LOGSYS
               IOBJ_NAME TYPE RSIOBJNM
      CHANGING RESULT TYPE DE_ZEBAY01 " InfoObject value
               RETURNCODE LIKE SY-SUBRC.
    $$ begin of routine - insert your code only below this line

    Hi Sri,
    This would be helpful to you.
    Data: de_zebay(15) type c value '000099999911223', " here i have given default value as 15 digits: 000099999911223
             de_zebay1(15),
             de_zebay(15).
    de_zebay1 = de_zebay3(6). "This will read 6 characters from 4th char onwards and place it to de_zebay1+
    de_zebay2 = de_zebay12(3). "This will read 3 characters from 13th char onwards and place it to de_zebay2+
    concatenate de_zebay1 de_zebay2 into de_zebay.
    result = de_zebay.
    Output: 099999223

  • Making an object serializable

    Hey guys, im new at this so i dont know almost anything about serialization, so here's my problem:
    Got an array of an object "Article" that i defined, wanna write it to a file but i get the "NotSerializableException",
    here's my object's constructor:
    Article (String n, int u, float p)
    name = n;
    amount = u;
    price = p;
    fmt = new DecimalFormat ("0.##");
    by the way, all of the variables are private, i dont have any problem storing several articles in my array, i just get my exception at runtime here:
    public static void save(Object obj, String nombrearch) throws IOException
    ObjectOutputStream objstream = new ObjectOutputStream(new FileOutputStream(nombrearch));
    objstream.writeObject(obj);
    objstream.close();
    apologizing for inconviniences, hope you can help me work this out

    sanu018 wrote:
    When ever u are writing to a stream all the objects that u r exporting should be serializable. Primitive types are as such non serializable so replace all those int with Integer type objects.Absolute total rubbish. Just pure bullshit.
    If you don't have a clue what you're talking about then please don't offer "advice" on these forums.

  • Making an object name

    Hi All,
    I have to do what I thought was a simple thing:
    A cue point comes into my function and is read. I find the name of that cue point (which is the name of the MC it will act upon) and convert it from a string to an object name so I can work on it. Here's how I do that:
    function onCuePoint(event:CuePointEvent):void
      trace (event.name);                                                       // output: "childMovieClipA" <==this is a string.
      newChildObjectName = this[event.name];
      trace ( newChildObjectName.name );                          // output: "childMovieClipA" <==this is an object..
    That works. How do I make the name of another related MC by adding a string to the event.name and then convert that string to an object name?
    I'm trying to create the name of this MC: "childMovieClipA_grandChild"
    For example, I'm trying to do this below but get an error:
      newGrandChildObjectName = this [event.name + "__grandChild"];
      trace ( newGrandChildObjectName.name );                //TypeError: Error #1010: A term is undefined and has no properties.
    Any help is appreciated.

    In your example it appears you use two underscore characters whereas what you say you want to create appears to only have one.
    The way you say you want it places it at the same child level as the event.name object.  Just in case, if the _grandchild is a child of the event.name object, you need to use a separate pair of brackets for it.

Maybe you are looking for

  • Playback no longer continuous - only one song at a time

    I used to select a playlist and then hit play, and I'd get playback of random songs continuously. Now I have to select a song to get it to play, and only one song plays. I've tried adjusting the shuffle commands and turning shuffle on and off, but no

  • Where can I find ADOBE PDF Export download? I have already paid for it.

    I had this program and did a upgrade. I then deleted the upgrade and re purchased my old program but I can"t find it to download it.

  • Configure The client for ADC

    I like to Configure Acrobat 8 for the Document Center. In my Acrobat 8 pro swedish version I cannot find the the drop-down-text "Choose Advanced > Security > Use Adobe Online Services. " taken into account the "language diffrences". So I download a t

  • How to use SAXParser to transform using stylesheet

    I've got some PL/SQL code that is generating in-memory XML document based on query run against Oracle database, and then transforms that XML using XSLT (for later posting over network). I've been encountering lots of memory errors and wanted to try u

  • Icloud backup with shared email address

    My wife & I each have Iphone 4 and are upgrading to Iphone 6 this week.  I just used Icloud to update my phone for the first time and want to backup my wife's as well.  Can we do the using our current shared email address because we have diffieint ph