Need help generating variable name for timeout object

Below is a function I am using to scale an object down and
then hide it. It works fine on just one object, but if I try to run
it on multiple objects at the same time, only the last object gets
scaled down. I believe this is because the timeout list only ever
has a single item in it, “ShrinkTimeOut”.
Does each entity in the timeout list need a distinct name?
And if so, how would I dynamically generate a name and save it so I
can kill the timeout object once the object has scaled down fully?

> Does it look like I am getting rid of the timeout object
properly in my code?
Now that you mention it, and I have a look, no - it doesn't:
//not sure of the order of parameters here:
function fShrinkLoop(mModel, aTimeout) {
//Creates a variable that contains the vector value of the
model's
scale (vector( 1.0000, 1.0000, 1.0000 )).
nScaleVector = mModel.getPropRef("transform").scale;
//Checks to see if the model is 1% or less than its original
size.
if (nScaleVector[1]<=0.01) {
//Makes the model invisible.
mModel.visibility = symbol("none");
//Kills the timeout object.
aTimeout.forget();
} else {
//If it is not, we scale the model down further and allow
the loop to
repeat.
mModel.scale(0.9);

Similar Messages

  • Need help in writing ABAP for and Object

    Hi ,
    I am an ABAPer and I need a help related to BW.
    As per the Client Requirement ,I need to write ABAP for object  ZC_MRPAMC.
    what he expects is :
    0MRP_CONTROL is an attribute of 0MAT_PLANT. There can be only one 0MRP_CONTROL per  0MAT_PLANT.
    Assign the attribute value of 0MRP_CONTROL to ZC_MRPAMC per 0MAT_PLANT.
    How to assign value of 0MRP_CONTROL to ZC_MRPAMC per 0MAT_PLANT.
    Kindly  give me the steps.
    Thanks.
    Anu.

    Hi,
    U can use FM RSAU_READ_MASTER_DATA.
    Give as input the info object(I_IOBJNM=0MAT_PLANT) and attribute name(I_ATTRNM=0MRP_CONTROL).
    Output u will get the value of that attribute which u want(E_ATTRVAL=ZC_MRPAMC).
    Hope it helps
    Regards,
    Rathy

  • Need help on XSD mapping for multiple objects

    Hi All,
    I am having a table in which row1.column1 data is mapped with xyz atttribute from XSD which is having multiple occuraces.
    Same attribute is mapped with row2.column1.
    But ro3.column1 data is not getting displayed completly only few data is gettin displayed.
    Example
    <MYXML>
         <EMP>
              <name>a1</name>
              <address>usa</address>
              <age>20</age>
         </EMP>
         <EMP>
              <name>a2</name>
              <address>canada</address>
              <age>21</age>
         </EMP>
         <EMP>
              <name>a3</name>
              <address>india</address>
              <age>22</age>
         </EMP>
    </MYXML>
    here row1.column1 mapped with name
    row1.col2 mapped with address
    row2.col1 mapped with name
    row2.col2 mapped with age
    Please help for the same.

    Mohit,
         Here is a sample file for your use..
    https://acrobat.com/#d=urni5MvK7Fx87liMbRpPgQ
        I used the below XML as data connection as well as Preview Data..
    <?xml version="1.0" encoding="UTF-8"?>
    <MYXML>
         <EMP>
              <name>a1</name>
              <address>usa</address>
              <age>20</age>
         </EMP>
         <EMP>
              <name>a2</name>
              <address>canada</address>
              <age>21</age>
         </EMP>
         <EMP>
              <name>a3</name>
              <address>india</address>
              <age>22</age>
         </EMP>
    </MYXML>
    Thanks
    Srini

  • Generate public names for ALL attributes?

    Hi all,
    What suggestions do you have to generate public names for ALL attributes in OPM 10.4?
    We're trying to pretty up the decision report by setting invisible ALL attributes, except for: the top goal, structural reference number, and base data.
    Seems like the only way to get it done is to go in the build model and manually create public name one-by-one.
    Thanks,
    Isamu

    Hi Isamu,
    It sounds like you could use the silent property to customise your decision report.
    If Attribute A is proven by B, C and D, you can set A to silent and it will hide B, C and D from a decision report...there is no need to individually set B, C and D to invisible.
    Check out the help file here http://docs.oracle.com/html/E27987_01/Content/Decision%20reports/Hide_information_in_decision_report.htm
    What's really helped me in the past is creating a Visual Browser file (or multiple files if your rulebase is large) of the rules, and identifying the attributes you want in the decision report by colour coding the visualization. After you have the visual picture, it becomes much easier to see which attributes you should set to silent & invisible to achieve the correct report.
    Let me know if this helps!
    Cheers,
    Ben

  • Re: Beginner needs help using a array of class objects, and quick

    Dear Cynthiaw,
    I just read your Beginner needs help using a array of class objects, and quick of Dec 7, 2006 9:25 PM . I really like your nice example.
    I also want to put a question on the forum and display the source code of my classe in a pretty way as you did : with colors, indentation, ... But how ? In html, I assume. How did you generate the html code of your three classes ? By help of your IDE ? NetBeans ? References ?
    I already posted my question with six source code classes ... in text mode --> Awful : See "Polymorphism did you say ?"
    Is there a way to discard and replace a post (with html source code) in the Sun forum ?
    Thanks for your help.
    Chavada

    chavada wrote:
    Dear Cynthiaw,
    I just read your Beginner needs help using a array of class objects, and quick of Dec 7, 2006 9:25 PM . I really like your nice example.You think she's still around almost a year later?
    I also want to put a question on the forum and display the source code of my classe in a pretty way as you did : with colors, indentation, ... But how ?Just use [code] and [/code] around it, or use the CODE button
    [code]
    public class Foo() {
      * This is the bar method
      public void bar() {
        // do stuff
    }[/code]

  • Need help in developing BADI for IT0001

    Hi All,
    I need help in developing BADI for IT0001.
    On IT0001 create or change, there is need to update IT0017 with following data from IT0001
    -Company Code
    -Cost center
    -Business Area
    -Begin and End Date.
    Other fields from IT0017 need to be derived from Position and update in IT0017.
    Please guide me how I can address this. I do not want to go for dynamic action, as it is not getting evoked during background jobs.
    I am new to BADI development and will appreciate step by step instructions.
    Thanks

    Hi,
         follow the below steps to achive
    Steps:
    1.     Execute Business Add-In(BADI) transaction SE18
    2.     Enter BADI name i.e. HRPAD00INFTY and press the display
            button
    3.     Select menu option Implementation->Create
    4.     Give implementation a name such as Z_HRPAD00INFTY
    5.      You can now make any changes you require to the BADI within this
            implementation, for example choose the Interface tab there are 3 methods avialble
    6.     Double click on the method you want to change, you can now enter
            any code you require.
    7.      Please note to find out what import and export parameters a
            method has got return the original BADI definition
            (i.e. HRPAD00INFTY) and double click on the method name
            for example within HRPAD00INFTY contract is a method
    8.      When changes have been made activate the implementation
    <b>Reward points</b>
    Regards

  • Need help with SQL retrieval for previous month till current date

    Hi ,
    Need help generating statistics from previous month from date of enquiry till current date of enquiry.
    and have to display it according to date.
    Date of enquiry : 03/02/2012
    Application Type| 01/01/2012 | 02/01/2012 | 03/01/2012 |...... | 31/01/2012 | 01/02/2012 | 02/02/2012 | 03/02/2012 |
    sample1 20 30 40
    sample 2 40 40 50
    sample 3 50 30 30
    Hope you guys can help me with this.
    Regards

    Hi,
    932472 wrote:
    Scenario
    1)If i run the query at 12 pm on 03/2/2012. the result i will have to display till the current day.
    2)displaying the count of the application made based on the date.
    Application type 01012012 | 02012012 | 03012012 | ..... 01022012| 02022012|03022012
    sample 1 30 40 50 44 30
    sample 2 35 45 55
    sample 3 36 45 55Explain how you get those results from the sample data you posted.
    It would help a lot if you posted the results in \ tags, as described in the forum FAQ. {message{id=9360002}
    SELECT     application_type as Application_type
    ,     COUNT (CASE WHEN created_dt = sysdate-3 THEN 1 END)     AS 01012012 (should be getting dynamically)
    ,     COUNT (CASE WHEN created_dt = sysdate-4 THEN 1 END)     AS 02022012
    ,     COUNT (CASE WHEN created_dt = sysdate-5 THEN 1 END)     AS 03022012
    , COUNT (CASE WHEN created_dt = sysdate-6 THEN 1 END)     AS 04022012
    FROM     table_1
    GROUP BY application_type
    ORDER BY     application_typeThat's the bais idea.
    You can simplify it a little by factoring out the date differences:WITH got_d     AS
         SELECT     qty
         ,     TRUNC ( dt
              - ADD_MONTHS ( TRUNC (SYSDATE, 'MON')
                        , -1
              ) AS d
         FROM table1
         WHERE     dt     >= ADD_MONTHS ( TRUNC (SYSDATE, 'MON')
                        , -1
         AND dt     < TRUNC (SYSDATE) + 1
    SELECT     SUM (CASE WHEN d = 1 THEN qty END)     AS day_1
    ,     SUM (CASE WHEN d = 2 THEN qty END)     AS day_2
    ,     SUM (CASE WHEN d = 62 THEN qty END)     AS day_62
    FROM     got_d
    See the links I mentioned earlier for getting exactly the right number of columns, and dynamic column aliases.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Package name for all objects

    Gurus
    Any easy way to know package name for all objects.
    Thankyou Gurus

    Hi,
    double click on the object-then select extras menuthen select write transport request--
    it will show the package of present.
    hope this help you
    regards
    harikrishna N

  • Making generated variable names?

    Hey, I'm trying to make new Vector variables given some input I already have. I'm doing it as follows:
    for (int i=0; i < commandName.size()-1; i++) {
    String newVariableName = commandName.elementAt(i).toString();
    Vector newVariableName = new Vector();
    Of course, it's not working - but do you know if it is possible to generate variable names in this manner?

    Use HashMap.
    You will generally find that most languages that offer variable dereferencing are also essentially "typeless", although you can sometimes query what the type of the "value" of a variable is.
    HashMap does this exactly, with the bonus that you can double your namespace by creating two maps! :-)

  • Name for list object:  ALVXXL01

    Dear Gurus
    I have query regarding expoert the data to spreadsheet , when i am doing the job system is asking below details , once i have provided that , file is not down loading, Please help me.
    first i am getting below message
    Filter criteria, sorting, totals and
    not taken into account
    Later system asking the below details
    Name for list object:  ALVXXL01
    Title for SAPoffice:
    Regards
    Srinivas

    Check:SAP EXCEL is not opening
                      End users not able to export a report to a spreadsheet
    SAP note 1080608
    Have a discussion with your BASIS team
    Regards
    Indranil

  • Need Seeburger BIC Mapping names for standard Msg types - EANCOM2002

    Hi All,
    I need Seeburger Bic Mapping names for standard Msg types.
    <b>Orders
    ORDRSP
    DESADV
    Note that they are in EANCOM2002 format.</b>
    Kindly provide them asap.
    Can anyone pls send the document to [email protected] if you have the Seeburger mapping names for EANCOM2002 and ANSIX12.
    Thank You.
    Regards
    Seema.

    Hi Marcos,
    >> IF they have been deployed in your system the names will be:
    >> See_E2X_ORDERS_UN_D96A
    >> See_X2E_ORDERS_UN_D96A
    >> See_E2X_DESADV_UN_D96A
    >> See_X2E_DESADV_UN_D96A
    R u sure of we can use these mappings for EANCOM2002 format.??
    R u sure EANCOM2002 is equavalent to UN D96A???
    -Seema.

  • I need help scrolling and highlighting for a vast amount of pics that I'm trying to transfer. I have a macbook pro osx 10.5.8

    I need help scrolling and highlighting for a vast amount of pics that I'm trying to transfer. I have a macbook pro osx 10.5.8

    I need help scrolling and highlighting for a vast amount of pics that I'm trying to transfer. I have a macbook pro osx 10.5.8

  • How to find Object name for a object?

    Hi Experts,
    How to find Object name for a particular Object? Is there a Tcode for it?
    __Like Object name for__
    Material number -  materialnr
    Goods receipts / return - matbeleg
    Accounting documents -  rf_beleg
    How to find Object name for other Objects? Is there a particular way?
    Thanks & Regards
    Chandan

    Hi,
    You can find objects in SNRO transaction.
    In SNRO search by giving long text...
    for eg., Service .. for service entry sheet. keep the first letter in capital letter only.
    Thanks & Regards,
    Anand.

  • I still need help with the Dictionary for my Nokia...

    I still need help with the Dictionary for my Nokia 6680...
    Here's the error message I get when trying to open dictionary...
    "Dictionary word information missing. Install word database."
    Can someone please provide me a link the where I could download this dictionary for free?
    Thanks!
    DON'T HIT KIDS... THEY HAVE GUNS NOW.

    oops, im sorry, i didnt realised i've already submitted it
    DON'T HIT KIDS... THEY HAVE GUNS NOW.

  • Need Selection variable name for "System Year - 1"

    Hi All,
    I have Fiscal Year field in the selection screen of a custom program. The value of this field comes from system variable.
    I need to create a variant where this fiscal year should have the value "Current year - 1".
    This has to be done using Selection Variable. Currently there is no such variable in the F4 help (TVARV table).
    Please tell me if there is a way to get such a selection variable...

    Hi Tolga,
    The selection screen parameter is defined as:
    parameters: p_gjahr        type gjahr obligatory memory id gjr,
    I cannot use the FM in the AT SELECTION SCREEN ON VALUE-REQUEST.
    When you create a variant for the program.. click button "Variant Attributes" - Here the checkbox for Selection variable is ticked for this field. Now click "Selection Variables". here we can provide the variable name which comes from TVARV table.
    I need this Selection variable. I am not allowed to do any program changes.

Maybe you are looking for

  • Need help building a video photo editing rig.

    Hi all i want to build a pc to edit my wedding movies and photos that i go out and shoot and make, and beause of this its all HD and my current pc can not keep up : i3 8gb ram 50hdd its fairly consumer. which is why i need to know what key componants

  • How to open or call Excel from an Oracle Form in Apps11i

    I have a custom form in Apps 11i from which I need to be able to open an Excel spreadsheet. I'm aware that it is possible to a spreadsheet that is available on the local drive from a form, but can it be done from Applications ?

  • MicroSD Media Card is not being recognized by my BB 8100

    Hi, I currently have that problem with my Blackberry Pearl 8100. I put it a New 1 GB MicroSD (Patriot) card and connected the cable to the PC and on the PC I created a folder and added the music to it and pictures.  It worked fine but one day I took

  • Installing 10.2.0.4 on Windows 2008 64-bit

    Hello, We are unable to install 10204_vista_w2k8_x64_production_db.zip on Windows 2008 SP2. After clicking on setup.exe, nothing happens. We can just see setup.exe running at 50% in taskmanager. The Client install, for VISTA/W2K8 x64 also fails, it d

  • New MacMini - Can't Repartition

    Hey guys, I have a problem that I hope you can help with. I have a new MacMini without the optical drive. Someone here took it and tried to install Linux on it and now I need to undo that and get MacOS back on there as the only OS. The problem is I c