attachMovie using variable target and source names

I have frequently used the names of variables for the target, but is it not possible to do this:

holder.attachMovie (["mcButton" + i], ['zone' + i + '_btn'], this.getNextHighestDepth () * 200, {_x: arrBtnX [i], FLF: arrBtnY [i]});

I can't make it work and I was not able to find an example.  It does work without the square brackets either.

Thank you

Marion

If trace (btnHldr ["box" + i + "_btn"] ._x) is set during each loop, btnHldr ['box' + i + '_btn'] exists, at least, in each loop.

the fact that you don't see all the btnHldr ['box' + i + "_btn"], means either:

1. they are not visible for a variety of reasons or,

2. you're crushing your depths and movieclips previously created are deleted.

to debug, use:

trace (btnHldr ["box" + i + "_btn"] .getDepth ())

in your loop for to see what you're doing.

Tags: Adobe Animate

Similar Questions

  • Using variables such as table names. Ideas for alternative designs

    Hello

    I am the design of an application that uses synonyms to pull information from the 'client' DBs via links from DB. Synonyms are created with a DB_ID in name (example: CUSTOMER_100, CUSTOMER_200... where the 100 and 200 are DB IDs of 2 separate DBs customer.)

    I have a procedure that selects data in the synonym based on what DB_ID is passed to the procedure. I want to be able to perform this procedure for any entered DB_ID. I know now I can't use variable for the table names names and using EXECUTE IMMEDIATE does not seem suitable for what I'm trying to do.

    Does anyone have suggestions or re-design options, I could use to achieve this generic procedure which will select a certain synonym based on the information of DB input parameters? Thank you.

    CREATE or REPLACE PROCEDURE CUSTOMER_TEST (p_host IN VARCHAR2, p_db_name IN VARCHAR2, p_schema in VARCHAR)

    IS

    v_hostname VARCHAR2 (50): = UPPER (p_host);

    v_instance VARCHAR2 (50): = UPPER (p_db_name);

    v_schema VARCHAR2 (50): = UPPER (p_schema);

    v_db_id NUMBER;

    v_synonym VARCHAR2 (50);

    CURSOR insert_customer

    IS

    SELECT

    c.customer_fname,

    c.customer_lname

    OF v_synonym_name c;

    BEGIN

    -MADE BASED ON INPUT PARAMETERS DB_ID

    Select d.db_id

    in v_db_id

    of t_mv_db_accounts ac.

    t_mv_db_instances I,.

    t_mv_dbs d,

    t_mv_hosts h

    where ac.db_ID = d.db_ID

    and i.db_ID = d.db_ID

    and i.HOST_ID = h.host_id

    and upper (H.HOST_NAME) = v_hostname

    and upper (D.DB_NAME) = v_instance

    and upper (Ac.ACCOUNT_NAME) = v_schema;

    -ADD DB_ID TO NAME SYNOYNM

    v_synonym: = 'CUSTOMER_ | v_db_id;

    FOR cust_rec IN insert_customer

    LOOP

    INSERT INTO CUSTOMER_RESULTS (First_Name, Last_Name)

    VALUES (cust_rec.customer_fname, cust_rec.customer_lname);

    END LOOP;

    COMMIT;

    END;

    /

    RGS,

    Rob

    EXECUTE IMMEDIATE ' INSERT IN CUSTOMER_RESULTS (First_Name, Last_Name) SELECT customer_fname, customer_lname FROM ' | v_synonym;

  • How can I create a function using variables TestStand and call from Meadow step Expression?

    In one sequence, I have dozens of prior Expressions, which are almost the same thing, like this...

    Locals.tagID = (Parameters.singlePhaseEnabled? ('L': "D") & Str (Locals.phase) & "006".

    .. and the only thing different is this three-digit string in the end ("006" may vary). How can I write a function that I can call from Meadow step Expression then it should look like this? ...

    Locals.tagID = MyNewFunction("006")

    You can not write custom expressions for commands.

    That being said, there are two options:

    • Create a sous-suite with a single step. Use a setting of the sequence as "function parameter.

    • Create a step type custom including a lower level module that implements the function. Add a step edit to allow the user to the steptype graciously change the setting.

    • Store the variable setting in a local global variable / file and change the value in each step. This will, at least, keep the same 'function' for each step.

    Norbert

  • How to start Alerts notification to visitors using the DNS and IP society?

    1. I need to configure alerts for notification of visitor using the society of DNS and IP? How to do this?

    2 - second thing is what is the common use of DNS and IP society in the fields of account?

    Thank you

    Nabila,

    It is largely something E9 - the notification feature a much simpler with Profiler (Yes, there is a separate fee)

    without prospect Profiler: (I think I have the actual documentation at my office - will check once I'm back from #mme15 )

    1. go to settings, profiles of visitors, then change your display to show the fields you want to see.  Since you ask specifically about DNS and IP address, the view of the "technical information" is a good starting point.

    2. go into Setup and default user settings for users, configurations of Notification to visitors.  You can use the default or create new (lower right corner)

    Specify the view you want to use.  You can also create a custom for this notification by electronic mail header.

    3. go to settings, Notifications

    Configure your notification rules.

    for your second question - common use of DNS and IP name in the account fields, I don't think that there is a "common use" since the visitor record will show exactly the IP address and most organizations have a range of IP addresses, any sort of comparison of the visitor to the account is difficult.

    If your use case must match their account of visitors, e-mail domain is much easier.  Create a field on the Contact and account for the 'area of email address', a string manipulation cloud app to take the email address and delete everything before him ' @' accounts will be filled with the domain via a data load (or you can approach with a rule/validation rule set update to the name of the company (, remove the spaces and special characters and add with ".com")

    You could then: linking contacts to accounts using this field (will need to ensure that duplicate any record company) or use a rule of Match/deduplication to enter the values for the table of the company to update the contact. (or vice versa)

    I hope this helps.

    Nathan

  • Cache.get (Object) when using the list and Arrays.asList as keys

    Hello

    I saw a problem when doing the cache.get (object) with the list. Here's my test.

    NamedCache cohCache = CacheFactory.getCache ("Test");

    Key is a list
    Key list = new ArrayList();
    Key.Add ("A");

    cohCache.put (key, 1);

    System.out.println ("Get with Arrays.asList:" + cohCache.get (Arrays.asList ("A")));
    System.out.println ("list:" + cohCache.get (key));
    System.out.println ("list is equal to Arrays.asList:" + Arrays.asList("A").equals (key));

    Actual output:

    Get with Arrays.asList: null
    List is equal to Arrays.asList: true
    Download list: 1

    Expected results:

    Get with Arrays.asList: 1
    List is equal to Arrays.asList: true
    Download list: 1


    Arrays.asList("A") and the key are equal but consistency does not return the value. I thought that, in cache.get (object) consistency returns if object.equals (key) is true.

    Any idea?

    Reg

    Fatou.

    Dasun.Weerasinghe wrote:
    Hello

    I saw a problem when doing the cache.get (object) with the list. Here's my test.

    NamedCache cohCache = CacheFactory.getCache ("Test");

    Key is a list
    Key list = new ArrayList();
    Key.Add ("A");

    cohCache.put (key, 1);

    System.out.println ("Get with Arrays.asList:" + cohCache.get (Arrays.asList ("A")));
    System.out.println ("list:" + cohCache.get (key));
    System.out.println ("list is equal to Arrays.asList:" + Arrays.asList("A").equals (key));

    Actual output:

    Get with Arrays.asList: null
    List is equal to Arrays.asList: true
    Download list: 1

    Expected results:

    Get with Arrays.asList: 1
    List is equal to Arrays.asList: true
    Download list: 1

    Arrays.asList("A") and the key are equal but consistency does not return the value. I thought that, in cache.get (object) consistency returns if object.equals (key) is true.

    Any idea?

    Reg

    Fatou.

    Hi Eric,.

    There is a slight misunderstanding in how you think that the works of coherence.

    For clustered caches Coherence does not return the value of the object key of equals to the key specified when caching, object instead, it returns When serialized forms of the key used to and used to get equal to one another.

    If you use no POF, then most of the time Java serialization is used to serialize the objects of key, and in any case if you don't use of POF, and the name of the serialized object class is in the serialized form.

    Now, the thing is that the key that you put in is a java.util.ArrayList. The key that you have tried to get with is a java.util.Arrays.ArrayList.
    It's two different classes, so the serialized forms that store the name of class implementation (which is true in this case) cannot be the same. So consistency is not going to put initially entrance the key that it uses (the serialized form) is actually different from the original key, so there is no entry for the key used in the get() method, and correctly you get back null.

    On the other hand, the two implementations ArrayList implement equals as defined in AbstractList, requiring not only the types of implementation of lists be the same, they apply just that the relation to the object is also a list, so two lists containing the same elements in the same order are equal as long as equals() on AbstractList is concerned, that's why your equals() check evaluates to true even if the types of implementation are different.

    Best regards

    Robert

    Published by: robvarga on May 2, 2012 11:44

  • File and folder name format

    What is the correct file and the name format for photos and folders files. Use "-", "_", "." when separating the names? And how many characters are allowed in Photoshop or Lightroom?

    What is the correct file and the name format for photos and folders files

    Any name in your operating system should work.

    Use '-', '_', '. '.

    There is no problem to use the dash or underscore. I have never tried creating a file name with a period in it (except for the file extension), so I don't know.

    And how many characters are allowed in Photoshop or Lightroom?

    Yet once again, this is controlled by your operating system. What is legal in your operating system should work.

    Which brings a question side... most people don't much worry about the details of the file and the file naming... There are ways to organize, using keywords and other metadata in Lightroom, where these questions about the file and the file naming disappear... Add as many keywords as you had huge and similar legends long with all kinds of special characters, this isn't a problem. Using the folder and file names as organization tool has some limitations.

  • AD, used as a trusted source and target system

    Hello

    I have a requirement to use AD as a trusted source and the target system the zero days and 1 for a transitional period.  We have 18 applications to integrate with OAM for SSO.  Currently, the authentication and authorization of these applications are made via AD.  However, the client wants to move to the use of LDAP in goal SSO.  The first phase includes 3 apps on the 18 apps.

    Day zero, I use AD as a source of confidence to push users to IOM.  Then, I run AD as a target system to link the user to their existing AD accounts.  Their ad groups will also be reconciled by IOM.

    Because there will be a transition period and the customer would not have to change the process of assistance to creating accounts AD (for internal and external users), they asked that we continue to allow accounts AD to reconcile with IOM in the trusted source and target system.

    I have not used AD connector as a reliable source.  I intend to source AD done trust reconciliation to run first, then the task of reconciliation system AD target to run then.  It's the same AD connector.

    This can work as long as the customer wishes until they want to spend to IOM for the creation of the user and accounts AD commissioning through the access policy.

    Is this sound ok you?  There is a "witch hunt" I didn't think?

    Thank you

    Khanh

    Yes, you can run the recon trust first and get all the identity created by IOM.

    Later, you can run the Scheduler for recon target for linking AD accounts with user profile of IOM.

    Note: There is a field in AD IT resource in need of update if you want to switch between the target and recon trust.

    Research of configuration:

    This parameter contains the name of the lookup definition that stores configuration information used during the reconciliation and commissioning.

    If you have set your target system as a resource target, then enter Lookup.Configuration.ActiveDirectory.

    If you have set your target system as a reliable source, then enter Lookup.Configuration.ActiveDirectory.Trusted.

    Default value: Lookup.Configuration.ActiveDirectory

    ~ J

  • How to pass Variables from the Source (SQL) to tab target (JavaBin Shell) in ODI knowledge Modules

    Hi all

    My name is Alessandro and I am new to the community.

    I have a problem with the KM stage custom when I try to pass the variable from the source to the target.

    The ODI version tha I use is the 11.1.1.5.0.

    I created a stage KM following the instructions of the metalink document (Doc ID 728636.1).

    But when I insert the value of the variable in a test table, the value in a table is the name of the variable.

    Where I'm wrong?

    I am doing thi.

    (1) create a step in my goal of shell sql source and javabin KM. In the source tab I get the value of a query, and the name "LAST_UPDATE" column.

    In the target tab, I attribute to the variabile jv_last_update the value of the variable #LAST_UPDATE, with the same name in the selection column.

    source_tab.jpgtarget_tab.jpg

    (2) I created a second stage where I insert into a table of the value of the variable jv_last_update (to debug the value of the variable):

    insert_step.jpg

    (3) when I try to see what I have in the table, the value of any line is the name of the variable "#LAST_UPDATE"; ".

    result_table.jpg

    Thanks in advance


    Alessandro

    Hi Alessandro,.

    Interesting... I have not read the Oracle document you sent yet, but one thing I can guarantee you, is that it doesn't. If Oracle says that it should work, maybe it's a bug, or maybe he has changed on new versions of ODI. I am also on ODI 11.1.1.5 and I tried many different ways to pass SQL results to variables of java with all sorts of different labels, but none of them worked for me as well. But I managed to use it in a different way, so please see below if it matches your needs:

    We are just one step. The second is just to show that it worked:

    In the first step, on the source tab, select Oracle and point to the logical schema that you want to run the query:

    On the target, note the following Java BeanShell code with the SQL that you want to run:

    Now your variable must have the correct value of your SQL. To test it, I just write a comment 'Raise' to Jython in the second step:

    The result is 'X' as expected:

    It will be useful.

    Thank you!

  • (Sysdate-1) in the name of the file using the Scheduler and ftp

    Hello

    I'm having a small problem with BI Publisher.
    What I'm trying to do, is use sysdate-1 in the file name when you use Task Scheduler to BEEP.

    I have found that by using the regular date it is features such as %d %m %y, so of course the first thing I tried was using the %d - 1, but that did not work :(
    Then I is picked up on the internet and found the following article:

    http://OBIEE-BIP.blogspot.com/2010/05/dynamic-delivery-file-naming-in-bi.html

    He mentions things like:

    DD: CAST (DAYOFMONTH (NOW ()) AS CHAR) (ex 01-31)
    Mon: CAST (SUBSTRING (MONTHNAME (NOW ()) FROM 1 TO 3) AS CHAR) (ex, Jan - Dec)
    AAAA: CAST (YEAR (NOW ()) AS CHAR) (ex, 2006,2010)

    But when I use those in the same field of file name, and then it just displays the string in the text file name.

    Could someone tell me what I am doing wrong, or what I have to do to make this work?

    Thanks in advance

    Version BEEP: Oracle BI Publisher 10.1.3.4.1

    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    "CORE 10.2.0.4.0 Production."
    AMT for HP - UX: release 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production

    Hi Raafje,

    As I mentioned in my Blog, using the Date Expressions on filenames of query made irruption has its own limitations. This expression of date you tried sysdate-1 (%d - 1 %m %y) will not hang in the requirement. in any case, you can solve the problem by using alternative workaround.

    Method I (using CAST and DATE functions)
    1. standby-> CAST (DAYOFMONTH (TIMESTAMPADD (SQL_TSI_DAY-1, CURRENT_DATE)) AS CHAR)
    2 months of sleep-> CAST (MONTH (TIMESTAMPADD (SQL_TSI_DAY-1, CURRENT_DATE)) AS CHAR)
    3 year of Eve-> CAST (YEAR (TIMESTAMPADD (SQL_TSI_DAY-1, CURRENT_DATE)) AS CHAR)

    Code example
    + 'ReportName' |'-' | CAST (DAYOFMONTH (TIMESTAMPADD (SQL_TSI_DAY-1, CURRENT_DATE)) AS CHAR). » -'|| CAST (MONTH (TIMESTAMPADD (SQL_TSI_DAY-1, CURRENT_DATE)) AS CHAR). » -'|| CAST (YEAR (TIMESTAMPADD (SQL_TSI_DAY-1, CURRENT_DATE)) AS CHAR) |'. PDF "+

    Method II (using Server Variables)
    1. create a dynamic repository as Previous_Date Variable (Non - Session System variables can also be used)
    2. create a block initialization
    In the Data Source Section - edit the Data Source and place the query below
    Select TO_CHAR(SYSDATE-1,'MM/DD/YYYY')
    The DOUBLE (if necessary, you can use any date format)
    3. in the Section target Variable
    Change the target-
    Give the name as Previous_Date (that you created in step 1) and check the option as dynamic
    Place the date of default as "22/09/2010 '"
    4. now use this repository Variable in the parameter filename of the rafale as VALUEOF("Previous_Date") repository Variable query
    and VALUEOF (NQ_SESSION. Previous_Date) in case you created a session for the query variable

    Thank you best regards &,.
    Goushalya
    http://OBIEE-BIP.blogspot.com/2010/05/dynamic-delivery-file-naming-in-bi.html

    Published by: Goushalya on September 29, 2011 07:09

  • The listener is down: even if a listener with the name "AUDITOR", is running on this host at the port: "1521", it has not started using "the target LISTENER. ORA file.


    I moved a listener on a host in a House different oracle. The headset works fine, but EM 12 c shows that the listener is down with the following summary:

    The listener is down: even if a listener with the name "AUDITOR", is running on this host at the port: "1521", it has not started using "the target LISTENER. ORA file. CORRECTIVE ACTION: To monitor this "EM listener target" with its current configuration, you must stop the process of listening running and start it using the Listener parameter file: opt/oracle/product/12.1.0.2/network/admin/listener.ora. Alternatively, you can update "this target LISTENER. Location ORA setting"with the location of the listener running, which started using the: opt/oracle/product/11.2.0.3/network/admin/listener.ora.

    EM 11 g, I simply changed the configuration of the listener for the different oracle home, argued the change and in a few minutes the listener would show that 'UP' with the oracle of new home. I upgraded to MS 12 c (12.1.0.4) and can't find how to do this. Can someone give me the procedure.

    Thank you

    Ron

    Hi Ron,

    Can you please do the following?

    -Create a for the listener listener.ora file, stop and start the receiver using the listener.ora file. If the file is located in a default location, set the TNS_ADMIN environment variable to that location before you start the listener.

    -Log on to the EM console, go to the homepage of the listener.

    -In the Oracle Listener menu, select target Configuration > Configuration of the analysis.

    -Ensure that the parameters, including the Listener.ora directory, are properly.

    Kind regards

    -Loc

  • Variable recovery of ODI in Java Beanshell (target Beanshell Source Oracle)

    Hi guys:

    I am faced with a simple problem, but I am not able to find the solution in the documentation or any post in this forum. I have a procedure where I use the two tabs (Source and target) and need to retrieve the result of the 'StrParam' (query Oracle) in a variable BeanShell (OracleMessageData).

    In the target tab, I have these commands (Java BeanShell Techonology):

    < @.
    to import java.io.FileNotFoundException;
    import java.io.InputStream;
    import java.io.BufferedReader;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.io.PrintWriter;
    import java.io.UnsupportedEncodingException;
    import java.util.ArrayList;

    String OracleMessageData = "#strParam";
    String PathOfXMLFiles = "< %=odiRef.getSchemaName ("LS_FILE_XMLFULL","D") % > ';
    .
    .
    .
    @ >

    In the Source tab, I have this command (Techonology Oracle):

    SELECT MESSAGEDATA < %=odiRef.getSchemaName ("LS_ORACLE_ODI_WRK", "D") % >. CONTENT_RIB_MSGDATA strParam

    ---------------------

    How can I recover the contents of the command Source in the variable in the target? The line below does not work:

    String OracleMessageData = "#strParam";


    I use ODI_11.1.1.6.0_GENERIC_111219.1055

    Kind regards.
    Luiz Araujo

    Published by: Luiz_Araujo on 25/07/2012 06:43

    Published by: Luiz_Araujo on 25/07/2012 06:45

    Hello Luiz

    Use under query on the source tab.

    SELECT STRPARAM MESSAGEDATA< %="odiRef.getSchemaName" ("ls_oracle_odi_wrk",="" "d")="" %="" >.="">

    Then use the target tab

    String OracleMessageData = "#STRPARAM";

    If it does not try to put colon.

    String OracleMessageData = ": STRPARAM «;»»

    Thank you.

  • How to use event.target.name in AS2?

    Thanks kglad, I could see how event.target.name in AS3 could make a button to load a movieclip with the same name.

    I do the same thing now in AS2, but don't know what to write instead of event.target.name.

    And so, at the present time, each button push information in a table and then a function that uses to decide what movieclip to tie to a holder after that he faded once and then fades new...

    BEGINNING OF THE GALLERY OF IMAGES *.
    Add images to the holder
    imgholder.attachMovie ("img0", "image0_0", 1).

    Table
    var nextLoad = ['img0'];

    Listeners of BTN
    img5.onRelease = function() {trace (nextLoad); nextLoad.pop (); nextLoad.push ("img5"); btnClick()} / / written on 1 line
    img4.onRelease = function() {trace (nextLoad); nextLoad.pop (); nextLoad.push ("img4"); btnClick()}
    img3.onRelease = function() {trace (nextLoad); nextLoad.pop (); nextLoad.push ("img3"); btnClick()}
    img2.onRelease = function() {trace (nextLoad); nextLoad.pop (); nextLoad.push ("img2"); btnClick()}
    img1.onRelease = function() {}
    nextLoad.pop ();
    nextLoad.push ("img1");
    btnClick()
    }
    img0.onRelease = function() {}
    nextLoad.pop ();
    nextLoad.push ("img0");
    btnClick()
    }


    The function of btn
    function btnClick() {}
    trace ('click');
    var myImgTween:Object = new Tween (imgholder, "_alpha", Strong.easeOut, 100, 0, 1, true ");
    myImgTween.onMotionFinished = function() {}
    fadeOutImg();
    }
    }

    The function part of II btn
    function fadeOutImg() {}
    trace ("fadeOutImg");
    imgholder.attachMovie (nextLoad, "image1_1", 1);
    var myImgTween:Object = new Tween (imgholder, "_alpha", Strong.easeOut, 0, 100, 1, true ");
    }

    I know I should be able to push the button name in the table, but I meet to use a string... I don't know that my code is heavy! But it works. I tried to push as the name of the button but it end by including the reference to full step.
    Is there a cleaner way to do this using event.target.name?
    Thanks for the research!

    There is no event.target in AS2. However since AS2 has no way to remember the scope object where the target object, you can use this to your advantage to get the name of the target using the command 'that' in the function when you use the format above "mc.onPress = myfunc". FYI, the delegate popular workaround solution, enabled when you called 'this' in the function, you can retrieve the scope object where the target instance. So without her help, "this" will return the name of the target object. In any case, this is the code that you can use:

    imgholder.attachMovie("img0","image0_0",1);

    var nextLoad = ['img0'];

    img5.onRelease = onImgRelease;

    img4.onRelease = onImgRelease;

    img3.onRelease = onImgRelease;

    img2.onRelease = onImgRelease;

    img1.onRelease = onImgRelease;

    img0.onRelease = onImgRelease;

    function onImgRelease (): Void {}

    nextLoad.pop ();

    nextLoad.push (this._name);

    btnClick();

    }

    The function of btn

    function btnClick() {}

    trace ("Click");

    var myImgTween:Object = new Tween (imgholder, "_alpha", Strong.easeOut, 100, 0, 1, true ");

    myImgTween.onMotionFinished = function() {}

    fadeOutImg();

    }

    }

    The function part of II btn

    function fadeOutImg() {}

    trace ("fadeOutImg");

    imgholder.attachMovie(nextLoad,"image1_1",1);

    var myImgTween:Object = new Tween (imgholder, "_alpha", Strong.easeOut, 0, 100, 1, true ");

    }

  • [Microsoft] [ODBC driver manager] Data Source name not found and no driver by default specified

    Hi team,

    I am trying to connect to the Oracle 9i database using VB code below:

    strConnection = "Driver = {Microsoft ODBC for Oracle};" Server = SERVERNAME; UID = username; Pwd = PASSWORD"
    Connect = New ADODB. Connection
    Connect.Open (strConnection)

    The last line throws me below error:

    [Microsoft] [ODBC driver manager] Data Source name not found and no driver by default specified

    The VB code works well and able to connect to database server dev dev. The same script with the name of the UAT server does not work on server UAT.

    The servers are Windows server 2007-32 bit.

    When I checked the tab drivers in ODBC Data Source Administrator, dev server entry below:

    Microsoft ODBC for Oracle - 6.00.6001.18000 - Microsoft Corporation - MSORCL32.dll - Date

    Considering that the UAT server has entered below:

    Microsoft ODBC for Oracle-

    The Microsoft ODBC driver for oracle is listed in the tab UAT Server drivers, but did not have details of file version & dll. This driver is not installed correctly? If so, how the re install? Please help solve this problem as soon as POSSIBLE.

    Kind regards

    Tamil

    This issue is beyond the scope of this site (for consumers) and to be sure, you get the best (and fastest) reply, we have to ask either on Technet (for IT Pro) or MSDN (for developers)
    *
  • How to use a value in a variable as a table name in a query?

    I fetch a value in a variable like:

    < select application_short_name in the fnd_application l_appl_nm where application_id =: p_appl_id >

    Now, I need to use the value retrieved in the variable "l_appl_nm" as a name of partition table in the following query.

    Anyone can guide me please on this concept.

    Expected answers as soon as possible!

    Create dynamic SQL statements with your variable, and then run this SQL with the "EXECUTE IMMEDIATE" command.

    Thank you

    Lokesh

  • Basic questions about the PL/SQL web services and data source names

    Hello

    I've successfully generated a web service for a procedure from PL/SQL packaged JDeveloper 11.1.1.3.0).

    The following code was generated in the base class for web services:
     __dataSource = (javax.sql.DataSource) __initCtx.lookup("java:comp/env/jdbc/dbconnectionDS");
    However in the weblogic server, the data source name is jdbc/Gisele for deployment fails in a first time.

    What is the recommended procedure to solve this problem? The obvious solution is to manually change the source - that's what I did and it worked fine. However if I re - generate the web service I won't lose my change. Is there a better way to do it?

    Another question - in the web.xml file that is generated, there is a resource-ref to the data source. I was hoping that change the data source name it would help, but it didn't work. What is - it used to in this context?

    Thank you
    Luis

    I forgot to add, so in case some time later and you want to update the connection to your service details, all you have to do is to add the following entry in your weblogic.xml:
    .

    JDBC/ref_name_from_web. XML
    JDBC/new_jndi_name

    .
    And in this way, you will not have to change any code level to point your web service to another connection.

    Vishal-

Maybe you are looking for