Dynamic naming of Vectors

Hi,
I need to be able to create vectors dynamically, for
example vectorName1, vectorName2 and so on. I've
managed to do this with JButtons using setName().
Is there a similar way to set the name of vectors
using a string?
Thanx

why do you need dynamic names?
you could use a vector of vector or a hashtable of vectors to dynamically allocate vectors, but naming them?
a hashtable seems most appropriate since you could use your dynamic names as hash key.
thomas

Similar Messages

  • Dynamically Named Restore Points?

    Does anyone know how to create dynamically named restore points? I have an RMAN script that is currently setup like this:
    sql 'drop restore point lv_restore';
    sql 'create restore point lv_restore';
    backup database plus archivelog;
    delete noprompt obsolete;
    exit;
    The first line is where I drop the restore point and the second line is where I create it again. This way the restore point is set just before the backup begins.
    Okay - it's setup like this because when I don't drop the restore point ahead of time I get the following error:
    sql statement: create restore point lv_restore
    RMAN-00571: =================================================
    RMAN-00569: ======== ERROR MESSAGE STACK FOLLOWS ===========
    RMAN-00571: =================================================
    RMAN-03009: failure of sql command on default channel at 04/29/2008 15:22:44
    RMAN-11003: failure during parse/execution of SQL statement: create restore point lv_restore
    ORA-38778: Restore point 'LV_RESTORE' already exists.
    This makes sense to me, actually. What I would love to do is to dynamically append the current date to the end of the restore point name. The idea is to have the restore points named something like this:
    lv_restore_2008-04-25
    lv_restore_2008-04-26
    lv_restore_2008-04-27
    lv_restore_2008-04-28
    lv_restore_2008-04-29
    etc...
    Is there any way I can dynamically name restore points?

    Can anyone explain to me how to use the syntax provided by damorgan to actually append a value to the restore point name in the script I provided?
    Any help is greatly appreciated.

  • File dynamically named & want to ignor some characters

    Hi,
    My ODI sources are files dynamically named with structure SR_10-04-2011-22-54.tx.gz --> SR_dd-mm-yyyy-hh24-mi.txt.gz , i'm trying to extract thoes files with ODIunzip so i created a package and passed a variable with that structure to the ODIunzip component, but as my files are generated by a platforme in a time, and the extraction begin later , the sysdate browth form Oracle by : select to_char(sysdate,'dd-mm-yyyy-hh24-mi') from dual ; to the variable is not conform with the file structure (minuts & seconds) so i'll bring just the dd-mm-yyyy form the sysdate, and what i need is to extract the file with that date , and ignor the seconds & minuts in the name of the file.
    so Plz how can i do that?
    or is there other way to extract this file?
    thx a lot :)

    Jython tutorials..
    http://www.jython.org/docs/tutorial/indexprogress.html
    I would also look at the blogs on http://odiexperts.com/, and Oracles own tutorials around ODI

  • Dynamic naming of receiver file adapter

    Hello Friends,
    How to handle the dynamic file naming in XI at receiver side as file naming convention sequence to be incremented for every 1 hour...
    my Client expecting to handle at mapping...How to do this...
    Could any one give me the program if we need to do it in java...
    and pls also give another approach if any
    Setup dynamically ,

    >>as file naming convention sequence to be incremented for every 1 hour.
    Please elaborate this point. I'm again seeing same the question from your side.
    From Variable Substitution you can access only ASMA and can refer the payload element. But in the requirement is something else the you should have to go for Dynamic Configuration in Mapping program.
    Thanks
    Farooq
    Edited by: Farooq Farooqui on Aug 16, 2008 12:11 AM

  • OOP dynamic naming of objects

    I'm creating an instance in this way:
    var newhouse:House = new House();
    But I need to create fourty of these objects named:
    "newhouse1","newhouse2",...,"newhouse40"
    How can I name the var dynamicly, since the syntax won't
    allow brackets

    Well, at least to me, having all the instances located in an
    array is
    cleaner. I realize it's not _really_ cleaner, I just like
    sticking stuff
    into arrays. <g>
    Dave -
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • Dynamically naming a file using a send operation in B2B

    Hello,
    I am using a send operation in B2b adapter which drops a file in a particular location.
    Right now its dropping a file as default naming standard by B2B.
    I just wanted to know that is there any way where we can do this dynamically?
    for eg- fetching a value from the file and concatenating it to the file name pattern that is set in B2B?
    need a solution.
    Thanks!
    Regards,
    Shreya.

    Shreya,
    As indicated by Nitesh, use the "preserve filename" in File/FTP/SFTP channel and set the filename from the middleware using ACTION NAME B2B header. If you are passing message to B2B using AQ/JMS then use action name as -
    ACTION_NAME=contentType:application/octet-stream;filename:abc.xml
    If you are passing message to B2B using fabric (default) then set below headers -
    b2b.contentType
    b2b.fileName
    Setting Content Type is optional.
    You may refer -
    http://docs.oracle.com/cd/E23943_01/user.1111/e10229/b2b_tps.htm#BABBCDHI
    Regards,
    Anuj

  • Dynamic Named Template ?

    Hi,
    I have a report in a page which uses a named column template.
    select
    "DEPTNO",
    "DNAME",
    "LOC"
    from #OWNER#.DEPT
    My row template is something like this
    <tr><td>#DEPTNO#</td><td>#DNAME#</td></tr>
    This works fine and I see this
    10
    ACCOUNTING
    20
    RESEARCH
    30
    SALES
    40
    OPERATIONS
    I am trying make this dynamic..but failing.
    If I create an application level item called F_ROW_TEMPLATE and replace
    <tr><td>#DEPTNO#</td><td>#DNAME#</td></tr> with &F_ROW_TEMPLATE.
    in the row template.. I see
    #DEPTNO##DNAME#
    #DEPTNO##DNAME#
    #DEPTNO##DNAME#
    #DEPTNO##DNAME#
    It looks like APEX was able to grab the template but substitution does not happen.
    Is there a way to do this ?
    Thanks

    AshleeShehan wrote:
    Hi,
    I have a report in a page which uses a named column template.
    select
    "DEPTNO",
    "DNAME",
    "LOC"
    from #OWNER#.DEPT
    My row template is something like this
    <tr><td>#DEPTNO#</td><td>#DNAME#</td></tr>
    This works fine and I see this
    10
    ACCOUNTING
    20
    RESEARCH
    30
    SALES
    40
    OPERATIONS
    I am trying make this dynamic..but failing.
    If I create an application level item called F_ROW_TEMPLATE and replace
    <tr><td>#DEPTNO#</td><td>#DNAME#</td></tr> with &F_ROW_TEMPLATE.
    in the row template.. I see
    #DEPTNO##DNAME#
    #DEPTNO##DNAME#
    #DEPTNO##DNAME#
    #DEPTNO##DNAME#
    It looks like APEX was able to grab the template but substitution does not happen.
    Is there a way to do this ?
    This has the appearance of an XY Problem. Please explain what "this" is in terms of the requirements you are trying to fulfil, rather than your attempted solution (which is something I don't think I've seen anyone try to do in 8 years of using APEX).

  • Trying to reference a dynamically named object

    Hi. I'm trying to make an interactive deck of cards and am
    mostly done (
    http://cards.positivedesign.co.uk
    ) but i'm having a slight problem. If you click on the link above
    you'll see a pile on the right, click on the pile and the top card
    lifts and flips into the center. Click on the right pile again and
    the center card moves down to a pile on the left, and the next card
    flips up to the center, and so on. The problem occurs when you
    click on the right pile the 3rd time, the center card moves down to
    the left, but goes BELOW the pile rather than on top of it.
    I know WHY its doing this - i'm using the child index of the
    cards to select which cards to flip, so if you click on a card on
    the right and it has an index of 5, it moves the card with index 6
    from the center to the left, etc. - I'm just not sure of another
    way to do it. I tried naming the cards by numbers, so the top card
    has a name of '1', and then I used a currentCard variable to keep
    track of which cards I should be moving. However this wouldn't work
    when I tried to select which object to tween, because I was
    referencing 'cardLayer.currentCard' rather than say,
    'cardLayer.card1'...
    Hope that all makes sense. I'd appreciate any suggestions on
    where I'm going wrong, or a better way of doing it?

    a clean solution, nice
    Craig
    "fatbuoy1" <[email protected]> wrote in
    message
    news:gkipvm$1gj$[email protected]..
    > Yeah but by changing the order of the objects on stage,
    like say bringing
    > a
    > card to the top, I then couldn't use the child index to
    work out what
    > cards to
    > use.
    >
    > I found another way of referencing the right objects
    though.. when I'm
    > creating the cards in a for loop, I put the objects
    themselves into an
    > array,
    > and then reference them through their index in the array
    when I want to
    > manipulate them.
    >
    > Thanks anyway!
    >

  • Dynamic naming

    When assigning a name to an object is it possible to do it dynamically? What I mean by this is can you name a list of objects with a name such as pic_# ( # is a number) within a for loop, instead having to write out every name,ie pic_1, pic_2, etc.
    The reason why I ask this is that my application adds pictures defined by the user to a JPanel, but my code assigns the same temporary object name to each picture, which means i can't select pictures which have been added. I want to give each picture a handle from pic_1..pic_50, but typing out 50 names is way to time consuming. Is there an easier way?
    I'll be grateful for any help. thanks :0)

    Try this:
    public class Test1
         public static void main (String[] args)
              // Note that you have to declare array of size [51] instead of 50,
              // since array stores data from index  0 and not 1
              String[] imageNames = new String[51];
              for (int i=1;i<51; i++)
                   imageNames = "pic_" +(i);
                   System.out.println("names of image " + i + " " + imageNames[i]);

  • Dynamic naming for screen fields possible?

    Hi.
    I am trying to loop through some screen fields, and hence need to dynamically name the fields. I use the following codes, but it gave me an error:
    IF MAND_CHECK = 'X' AND (TXT_FILE) IS INITIAL.
    "TXT_FILE is a variable that contains the name of the screen field.
    SET CURSOR FIELD TXT_FILE.
    "TXT_FILE is a variable that contains the name of the screen field.
    ENDIF.
    Error: Fehlerhafter logischer Ausdruck "(TXT_FILE)": Nach "(".......

    Do the following:
    field-symbols: <fs> type any.
    assign txt_file to <fs>.
    if mand_check eq 'X' and <fs> is initial.
    Regards,
    Michael

  • Spry js for dynamically naming file based on day names..but wait theres more!

    Hi,
    I'm creating a program guide for a tv station based on xmls, so I'm wanting to creating a data set that calls a file name "sunday.xml" on a Sunday
    and feed that into the var section in the header that calls the file for that data set-see the red bit.
    example:
    var dailypg = new Spry.Data.XMLDataSet("xml/sunday.xml" , "EPG/Service/Event");
    I hope that made sense.
    The problem is that I don't know how to write js-well i wrote a script that spits out the right name, the "var filename =  etc...  bit,
    example:
    var day = new Date()
    var weekday=new Array(7);
    weekday[0]="sunday";
    weekday[1]="monday";
    weekday[2]="tuesday";
    weekday[3]="wednesday";
    weekday[4]="thursday";
    weekday[5]="friday";
    weekday[6]="saturday";
    var filename = (weekday[day.getDay()]);
    but I don't know how to feed the var "filename" into where it sets the file name for the xml. Is anyone able to point me in the right direction?
    Thanks.

    I am doing something very similar.
    var aid = 6882
    var HotelDetails2 = new Spry.Data.XMLDataSet("http://xmlfeed.****.com/index.aspx?aid=" + aid + "&rtype=3&hids=100652", "hotel_search/hotel");
    This works but have had great trouble with the wizard.  As soon as I make it dynamic then it breaks the wizard, which I would like to use.  I have tried having a line commented out which is unmodified so I can switch between the two but that really confuses it.
    Just in case you were wondering I will be getting around to getting aid from a querystring but not there yet.
    Any ideas, it can't be all that hard to do this surely and feel I must be missing something.
    Thanks,
    Steve.

  • Dynamically nameing a CFfunction in a loop

    I want to do this
    loop through query results
    <cffunction name= "#loop.ID#_test">
         DO something with record of data from query
    </cffunction>
    now can I dynamically change the name of the cffunction ( and or Method)?
    Can someone help me please

    This might help get help
    this is what I have and it works but whenever I add something new it gets ver cumbersum
    <cfcomponent displayname="F_QU_004_harness" extends="mxunit.framework.TestCase">
        <cfobject component="setup" name="setupUtil">
       <!--- read xml file templatevariables.xml --->
        <CFFile action="READ" variable="xml" file="#ExpandPath('.')#\Templatevariables.xml">
        <cfset mydoc = XmlParse(xml)>
        <cfset MyDocArray =XmlSearch(mydoc,'SavedQuery')> 
        <!--- set up --->
        <cffunction name="setUp" returntype="void" access="public" output="false">
            <cfset this.selenium=setupUtil.setup()/>
        </cffunction>
        <!--- Shut down selenium --->
        <cffunction name="tearDown" returntype="void" access="public" output="false">
               <cfset setupUtil.tearDown()/>
        </cffunction>
        <!---set variables based on the index of the function --->
        <cffunction name="variablesetup" access="Private">
          <cfargument name="indexVar">
              <cfscript>
              this.queryId = #myDoc.xmlRoot.xmlChildren[indexVar]["queryId"].xmlText#;
                this.queryName=#myDoc.xmlRoot.xmlChildren[indexVar]["queryName"].xmlText#;
              this.UnqSQL =#myDoc.xmlRoot.xmlChildren[indexVar]["UniqueSQL"].xmlText#;
              this.AllSql=#myDoc.xmlRoot.xmlChildren[indexVar]["AllSQL"].xmlText#;
              </cfscript>
        </cffunction>
    <!--- the following are calls to the individual templates --->
        <cffunction name="All_Bio_Samples" returntype="void" access="public" output="false">
          <cfset selenium=this.selenium/>
    <!--- the number in the variablesetup call corresponds to the index in the xml file to the template--->
        <cfset variablesetup(1)>
          <cfinclude template="F_QI_004.cfm">
         </cffunction>
         <cffunction name="Asthma_All" returntype="void" access="public" output="false">
          <cfset selenium=this.selenium/>
        <cfset variablesetup(2)>
          <cfinclude template="F_QI_004.cfm">
         </cffunction>
        <cffunction name="COPD_All" returntype="void" access="public" output="false">
          <cfset selenium=this.selenium/>
        <cfset variablesetup(3)>
          <cfinclude template="F_QI_004.cfm">
         </cffunction>
        <cffunction name="Asthma_Adults" returntype="void" access="public" output="false">
          <cfset selenium=this.selenium/>
        <cfset variablesetup(4)>
          <cfinclude template="F_QI_004.cfm">
         </cffunction>
        <cffunction name="Asthma_Kids" returntype="void" access="public" output="false">
          <cfset selenium=this.selenium/>
        <cfset variablesetup(5)>
          <cfinclude template="F_QI_004.cfm">
         </cffunction>
        <cffunction name="COPD_Under_50" returntype="void" access="public" output="false">
          <cfset selenium=this.selenium/>
        <cfset variablesetup(6)>
          <cfinclude template="F_QI_004.cfm">
         </cffunction>
        <cffunction name="ILD_All" returntype="void" access="public" output="false">
          <cfset selenium=this.selenium/>
        <cfset variablesetup(7)>
          <cfinclude template="F_QI_004.cfm">
         </cffunction>
        <cffunction name="Sleep_Apnea" returntype="void" access="public" output="false">
          <cfset selenium=this.selenium/>
        <cfset variablesetup(8)>
          <cfinclude template="F_QI_004.cfm">
         </cffunction>
        <cffunction name="Rhinitis_All" returntype="void" access="public" output="false">
          <cfset selenium=this.selenium/>
        <cfset variablesetup(9)>
          <cfinclude template="F_QI_004.cfm">
         </cffunction>
        <cffunction name="Rhinitis_Adults" returntype="void" access="public" output="false">
          <cfset selenium=this.selenium/>
        <cfset variablesetup(10)>
          <cfinclude template="F_QI_004.cfm">
         </cffunction>
        <cffunction name="Rhinitis_Kids" returntype="void" access="public" output="false">
          <cfset selenium=this.selenium/>
        <cfset variablesetup(11)>
          <cfinclude template="F_QI_004.cfm">
         </cffunction>
        <cffunction name="Sinusitis_All" returntype="void" access="public" output="false">
          <cfset selenium=this.selenium/>
        <cfset variablesetup(12)>
          <cfinclude template="F_QI_004.cfm">
         </cffunction>
        <cffunction name="Sinusitis_Adults" returntype="void" access="public" output="false">
          <cfset selenium=this.selenium/>
        <cfset variablesetup(13)>
          <cfinclude template="F_QI_004.cfm">
         </cffunction>
        <cffunction name="Alpha_1_antitrypsin_Deficiency" returntype="void" access="public" output="false">
          <cfset selenium=this.selenium/>
        <cfset variablesetup(14)>
          <cfinclude template="F_QI_004.cfm">
         </cffunction>
        <cffunction name="Sleep_Apnea_Kids" returntype="void" access="public" output="false">
          <cfset selenium=this.selenium/>
        <cfset variablesetup(15)>
          <cfinclude template="F_QI_004.cfm">
         </cffunction>
    </cfcomponent>
    I want to do this more dynamically like read the XML and let the data drive instead of ME doing all that typing of the same thing OVER AND OVER

  • Creating on the fly dynamic named bind variable names.

    I have an application process which gets called by a Dynamic action and Javascript.
    Everything is working great however I'm using it to drive dynamic charts.
    I could use IF statements at the end of the application process to decide what BIND vairable to fill with the information the process has collected however I'd prefer just to create the BIND variable from the
    name of the submitted information.
    So I have an application level variable called WHICHCHART. this gets populated with text upon calling the application process...so let's say 'chart1' is what it gets filled with.
    What I"d like to have at the end of the application process is just a bind variable waiting called :chart_1.
    So no matter what the value of WHICHCHART it will create an on the fly a bind variable with the same name.

    Ok. I guess this question was more how do you do this..then OH NO there are not other ways to do this.
    So I have a page with a chart region. this chart will have 3 Y Axes which prohibits the use of the default XML.
    So..
    I have the following Javscript:
    function getdata(whichchart) {
      var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=VM_XML_GENERATION',0);
            get.add('WHICHCHART',whichchart);
            gReturn = get.get('XML');
      get = null;
    Which is called when the page loads by a dynamic action:
    getdata('production');
    When the javascript is called as you can see it fires off:
    declare
       chart_series_data VARCHAR(32767);
       type array_cols is varray(7) of varchar2(100);
       array array_cols := array_cols('VM_HOSTS_NUM','VM_NUMBER','VM_PHYS_MEM','VM_VIRT_MEM','VM_CPU_COUNT', 'VM_TOTAL_DISK','VM_PROVISIONED_DISK');
    BEGIN
    --IF :WHICHCHART IS NULL THEN
    --RAISE_APPLICATION_ERROR(-20001,'Chart variable not set');
    --END IF;
    chart_series_data := null;
    chart_series_data := '      <data>'||chr(10);
    chart_series_data := chart_series_data||  '        <series name="Hosts Number" type="Line" color="0x1D8BD1" >'||chr(10);
    for c1 in (SELECT VM_REPORT_DATE LABEL,VM_HOSTS_NUM from TABLE where VM_REPORT_DATE between add_months(SYSDATE,-24) and SYSDATE and lower(VM_DCNAME)=lower(:WHICHCHART) )
    loop
    chart_series_data := chart_series_data || '<point name="'||c1.LABEL||'" ';
    chart_series_data := chart_series_data || 'y="'||c1.VM_HOSTS_NUM||'"></point> '||chr(10);
    end loop;
    chart_series_data := chart_series_data|| '      </series>'||chr(10)||'</data>';
    :PROD_DATA := chart_series_data;
    END;
    The : production variable at the end of this I want to change the name of based on the value I'm sending of WHICHCHART from the javascript. I hope this is clearer now.
    AGAIN this is not really a need. It is a want to be able to create dynamic bind variable names going forward.
    Thanks

  • Dynamic Naming of Webi reports

    Hi,
    I have a requirement where webi report generates 5 times a day.For each time the column name/Header needs to change dynamically. For Instance if report is generated at 10 am in the morning, it should display "COMSOL" and if the report generates at 1pm ,displays "ASPEN"..
    Is it possible to achieve this in Universe or report level? Any help is highly appreciated.
    Thanks
    Shanthi
    Edited by: Shanthi26 on May 13, 2011 12:30 AM

    Please try this:
    If(FormatDate(LastExecutionDate([Query1]);"HH:mm")="10:00";"COMSOL";If(FormatDate(LastExecutionDate([Query1]);"HH:mm")="13:00";"ASPEN");"header3").
    Hope this will help you out.

  • Dynamic Naming of field in SAPscript

    Hi There, 
    I have a SAPscript where I will print a Graphic, I want to print an image of a material, but I could have different materials (hence different images) each time the SAPscript is run - is there any way I can use a dynamic name in the
    BITMAP ZIMAGE OBJECT GRAPHICS ID BMAP TYPE BMON command in the SAPscript (a little like the <FS> field symbol in ABAP)
    Any suggestions how this can be coded.
    Thanks..

    Hi
    Yes,
    You can keep the same Name of the Object in Script, no need to change always.
    Only thing is for every new material you have to generate a tiff file and have to save with the same OBJECT name by overwriting the previous object..
    Reward points for useful Answers
    Regards
    Anji

Maybe you are looking for

  • Search installation fails in SharePoint Foundation 2013

    As you all know there is no direct way to create a search service application in SP Foundation 2013 but when I try to create a new search service app using the Configuration Wizard it gives me the below error message. Did anyone encounter the same er

  • How do you reset your security question answers if you have forgotten them? and don't want to call apple support

    On my new iPhone 4S I cannot purchase songs in the iTunes Store app without answering my security questions.. Me being forgetful forget the answer which I made in 2010 and need to know the answers or reset them, but I do not wish to call apple suppor

  • K8N Platinum Video and S-ATA issues

    hey, here is my problem: i bought some hardware 3 weeks ago, including: A64 3800+ (Venice), MSI K8N Neo4 Platinum (MS-7125), Leadtek PX6800 GT TDH (265MB), Be Quiet! 450 Watt Titanium S1.3 in exchange for my old system (2500+, Abit K7N, ATi Radeon 98

  • Keystrokes for button actions in JOptionPane

    When running my app in Windows, the Alt key must be pressed to cause the "Yes" button or "No" button to respond from the keyboard. Can I set an option in JOptionPane, or elsewhere, to not require pressing the Alt key to activate a button in JOptionPa

  • Error 523 i am thick please help this blonde lol

    I have a cure and its not doing what it should i tried reset and soft reset still error 523 don,t know what i could do or even who to call as its a paygo phone and i presume o2 wouldn,t have a clue as its a phone error any help would be greatly appre