How to set a variable in a table to grid 'for' loop

I'm afraid I'm stuck again!

The next step in the animation I'm working on, is to set up a Boolean value, 'pierced = false', so that all instances of the attachMovie ("openCircle") have a Boolean "drilled = false' associated with them." Then when someone clicks on one of the instances of the attachMovie ("openCircle"), the Boolean value becomes "pierced = true', but only for that instance was clicked."

What I've done is to set the (Boolean) variable (highlighted in bold below) in the two 'for' loops through the table in the grid, but it returns an undefined value. Do I need to configure a separate table? (see code below):-

set up the grid for solid table

spacing: var number = 5.75;

Var CDL: number = 20; the number of columns in the grid

var rows: number = 20; number of grid lines

var leftMargin:Number = 154;

var topMargin:Number = 169;

depth: var number = 100; starting point for the depth

var drilled: Boolean;

for (i = 1; I < = lines; i ++) {}

for (j = 1; j < = cols; j ++) {}

drilled [rows, cols] = false;

trace (drilled);

current = attachMovie ("openCircle_mc", "openCircle_mc" + i + "_" + j, depth ++);

Current._x = leftMargin + ((i-1) * (spacing + current._width));

Current._y = topMargin + ((j-1) * (spacing + current._height));

Current.Row = i;

Current.Col = j;

Current.Oil = Math.floor (Math.random () * 1.1);  about 1/10 objects have oil = 1, 9/10 oil = 0

Open the circle initially invisible, visible on rollover

Current._alpha = 0;

{current.onRelease = function ()}

trace (this.row + "" + this.col);

current.drilled = true;

}

current.onRollOver = function() {}

This ._alpha = 100;

}

current.onRollOut = function() {}

This ._alpha = 0;

}

}

}

I would be grateful for any help. Thank you.

Then, create a two dimension table named drilled so that it exists when you try to fill...

var drilled: Array = new Array (new Array();

There might be a problem that you're missing setting the values of the [0, #] components of the table - paintings begin with an index of 0.

Tags: Adobe Animate

Similar Questions

  • [ADF, JDev12.1.3] How to set a variable to bind a VO (where clause) in a managed bean?

    Hallo,

    I have a request based on VO.

    The query contains a where clause clause and a bindi variable.

    In a managed bean I would like to access the iterator of VO setting the value of the bind variable and read the result.

    I found this code it is good start, but I do not know how to set the variable binding.

    BindingContext bctx = BindingContext.getCurrent();
    BindingContainer bindings = bctx.getCurrentBindingsEntry();
    DCIteratorBinding iter = (DCIteratorBinding ) bindings.get("MyVO1Iterator");
    iter.execute();
    
    
    

    You kindly help me?

    Also, I would like to know if it is generally advisable to use VO directly in controlled beans or whether it would be best to create in the AppModuleImpl methods that do this and return the result.

    In my case for example of the VO will return max 1 plug so I'm in doubt, if the creation of a method in the AM that returns a custom class, which attributes contain values of the line of VO.

    Sorry if these questions may seem artificial, but I am a beginner, I have many doubts and so I would be happy to receive some tips regarding best practices.

    Thank you

    Federico

    You can use:

    iter.getViewObject().setNamedWhereClauseParam("yourBindVar", value);
    

    Note that this approach is used if you have bind variable in the where clause.

    To set variables bind to ViewCriteria, you must use VarableValueManager.

    This post may be useful for you: binary: how to set the Bind variable values at run time?

    Also, I would like to know if it is generally advisable to use VO directly in controlled beans or whether it would be best to create in the AppModuleImpl methods that do this and return the result.

    You must set "use VO directly.

    For example, from the point of architecture, is probably best to use the method in the model project which will set the bind variable and execute the query.

    Or you can use the ExecuteWithParams operation in your the view layer.

    In my case for example of the VO will return max 1 plug so I'm in doubt, if the creation of a method in the AM that returns a custom class, which attributes contain values of the line of VO.

    Not to complicate your life

    All VO lines are represented as ViewRowImpl class if you already have "custom class".

    Finally, you can generate your own ViewRowImpl class if it is necessary for this.

    Dario

  • How to set the order in the table in the ADF for a transitional attribute in the default sort t

    Guys,

    I have a VO with 2 columns, the column is transitional attribute.  In my jsff page, I got an af:table that displays the transition attribute.

    When the page is loaded for the first time, by default, transitional attribute values should be sorted in ascending order. Currently, the displayed values are not sorted. I need to click the sort button to sort the values. I need to change this behavior to sort automatically when the page is displayed for the first time.

    Question: How can I set the command to the table in the ADF for a transitional attribute of default sort?

    Note: I have to pragmatically, I can't use order by clause in my VO for the transitional attribute.

    Help, please.

    Thank you

    Rambaud

    Hi Rambaud,

    You can do the sorting "in memory".

    You can implement it like this:

    Get the VO and make sure that all required lines are extracted from the DB

    ....

    Sort the rows by transient attribute

    myVO.setSortBy ("TransientAttribute");

    read the current query mode

    int oldQueryMode = myVO.getQueryMode ();

    to sort in memory

    myVO.setQueryMode (ViewObject.QUERY_MODE_SCAN_VIEW_ROWS);

    myVO.executeQuery ();

    redefine the query mode on original value (only needed if you want to be able to get new lines of the DB)

    deadlineVO.setQueryMode (oldQueryMode);

    I hope this helps.

    Kind regards

    Linda

  • How to set current row in the table after use the button tab on inputText

    Hi all
    My first post.., I am beginner in ADF and I'll try to explain my problem.

    For now we use ADF 11 g (11.1.1.4), in a jsff page I have a table with a column of inputText.
    On the the inputText valueChangeListener, I invoke a method in a bean viewScope that call an EJB method, make some services to the EJB on the modified line. After that, I update the VO and the table (because other values in the row have been changed) and reset the focus on the inputText even modified by the user with javaScript, because the focus was lost after updating.
    So far, everything works fine.

    When I use the arrow keys to change the selected line in the table, this is excellent work (focus is always in the inputText next or previous), but if the user tries the key tab allows you to change the current line, the inputText on the line that has the focus, but the current row in the table is not changed (I think that is normal).

    My question: How can I change the current line after the tab key in this case?

    I don't know if it is really clear, not easy to explain, do not hesitate to ask for more details.
    Thanks in advance.

    Hello

    My question: How can I change the current line after the tab key in this case?

    Use a client event to listen to the keyboard entry and intercept the tab. Use af:serverListener to call the server to set the rowKey on the table and deliver a PPR for the table to repaint

    See example 11 on http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html#CodeCornerSamples

    to learn more on how to use the client listener and the receiving server

    Frank

  • How to set the variable when you click on text/image

    Hello

    I have the following parts of the code. What I'm trying to do is set a variable and then the new window will read this variable and show detail appropriate according to the value. I call the new window, no problem, but struggling to get all of the variable 'productidkey '...

    Image

    < td width = "202" rowspan = 2 align = "center" bgcolor = "#FFFFFF" >
    < a href = 'details.php' > < form method = "POST" action = "details.php' style =" margin-bottom: 0; ">
    < input type = "hidden" id = "productidkey" name = "productidkey" value = "6198' > < img src ="6198.JPG"width ="200"height = '133' alt ="in more detail"border = '1' >"
    < / form > < /a > < table >

    Text

    < td >
    < div align = "right" >
    < are method = "POST" action = "details.php' style =" margin-bottom: 0; ">
    < input type = "hidden" id = "productidkey" name = "productidkey" value = "6198' > < a href = 'details.php' > < span class ="TexteÉlément"> < b >... < /b >"
    </span > < / form > < / div > < table >

    It works:




  • How to set a variable when loading a flash application

    Hey there all,
    I am very new to flex and flash programming.
    I have an app that I need to specify a certain variable for during the application of the first charge up.
    The .swf file must be able to start with a certain set of variables (as with a command line argument)
    Because I'll be incorporation in markers on google maps. They need to know where and what they are by variables that I spend when they are first initialized

    I hope this question makes sense,

    Shawn

    You can send the query string values and access it from your flex application. Below is the URL of the page that describes how to access the query string parameters in a Flex application
    http://livedocs.Adobe.com/Labs/Flex3/HTML/deep_linking_5.html#245869
    I hope this helps.

  • How to set a variable to a string with special characters?

    I want to set a variable

    < cfset inputstring = "< img src ="... /... /.. "/ Server/Win/Form/Stamp/string_1" / > "/ >"

    but I get the error message:

     Invalid CFML construct found on line 184 at column 32.
    ColdFusion was looking at the following text:
    
    
    .
    

    I try different ways, what I am, I am doing wrong?

    You must escape the inner quotes or mix single and double quotes.  Try:

    "/>

    or

    Oh, and oblique aft are not necessary in the tag.

    -Carl V.

  • How to set the properties of a new TextField when creating loops?

    I am trying to create 6 TextFields with a loop that I did, but I can't seem to find the proper syntax to set properties such as font, size, etc. in the loop.  Here is my code base:

    var tiles: Array = new Array();
    for (var i: Number = 1; i < 7; i ++) {}
    Titles [i] = new TextField();

    Titles [i]. TextFormat.size = 17;
    }
    addChild (Titles [f]);
    }

    Line size throws an error.  Any help would be greatly appreciated.

    Thank you.

    Dave

    Kurrykid wrote:

    I am trying to create 6 TextFields with a loop that I did, but I can't seem to find the proper syntax to set properties such as font, size, etc. in the loop.  Here is my code base:

    var tfor:TextFormat = new TextFormat();

    Tfor.Size = 17;

    var tiles: Array = new Array();
    for (var i: Number = 1; i< 7;="">
    var tf:TextField = new TextField();

    tf.defaultTextFormat = tfor;

    If you want to add all your textfields in a table use, Tiles.push (tf);

    addChild (tf);
    }
    }

  • Oracle Business Rule - Table of decision for loop

    Hi Experts,

    I have the scenario where I get the list of values, and I don't have to iterate over the values in the decision table. I can't use the normal return If so , in reason of the restriction of customer "only use table decision." Can someone guide me how to use the for loop in the decision table?

    Thank you

    We can check multiple values of the same element in the decision table. so no need to make a loop.

  • How to optimize the select query executed in a cursor for loop?

    Hi friends,

    I run the code below and clocked at the same time for each line of code using DBMS_PROFILER.
    CREATE OR REPLACE PROCEDURE TEST
    AS
       p_file_id              NUMBER                                   := 151;
       v_shipper_ind          ah_item.shipper_ind%TYPE;
       v_sales_reserve_ind    ah_item.special_sales_reserve_ind%TYPE;
       v_location_indicator   ah_item.exe_location_ind%TYPE;
    
       CURSOR activity_c
       IS
          SELECT *
            FROM ah_activity_internal
           WHERE status_id = 30
             AND file_id = p_file_id;
    BEGIN
       DBMS_PROFILER.start_profiler ('TEST');
    
       FOR rec IN activity_c
       LOOP
          SELECT DISTINCT shipper_ind, special_sales_reserve_ind, exe_location_ind
                     INTO v_shipper_ind, v_sales_reserve_ind, v_location_indicator
                     FROM ah_item --464000 rows in this table
                    WHERE item_id_edw IN (
                             SELECT item_id_edw
                               FROM ah_item_xref --700000 rows in this table
                              WHERE item_code_cust = rec.item_code_cust
                                AND facility_num IN (
                                       SELECT facility_code
                                         FROM ah_chain_div_facility --17 rows in this table
                                        WHERE chain_id = ah_internal_data_pkg.get_chain_id (p_file_id)
                                          AND div_id = (SELECT div_id
                                                          FROM ah_div --8 rows in this table 
                                                         WHERE division = rec.division)));
       END LOOP;
    
       DBMS_PROFILER.stop_profiler;
    EXCEPTION
       WHEN NO_DATA_FOUND
       THEN
          NULL;
       WHEN TOO_MANY_ROWS
       THEN
          NULL;
    END TEST;
    The SELECT inside the LOOP FOR cursor query took 773 seconds.
    I tried to use COLLECT in BULK instead of a cursor for loop, but it did not help.
    When I took the select query separately and executed with a value of the sample, and then he gave the results in a Flash of a second.

    All tables have primary key index.
    Any ideas what can be done to make this code more efficient?

    Thank you
    Raj.
    DECLARE
      v_chain_id ah_chain_div_facility.chain_id%TYPE := ah_internal_data_pkg.get_chain_id (p_file_id);
    
      CURSOR cur_loop IS
      SELECT * -- better off explicitly specifying columns
      FROM ah_activity_internal aai,
      (SELECT DISTINCT aix.item_code_cust, ad.division, ai.shipper_ind, ai.special_sales_reserve_ind, ai.exe_location_ind
         INTO v_shipper_ind, v_sales_reserve_ind, v_location_indicator
         FROM ah_item ai, ah_item_xref aix, ah_chain_div_facility acdf, ah_div ad
        WHERE ai.item_id_edw = aix.item_id_edw
          AND aix.facility_num = acdf.facility_code
          AND acdf.chain_id = v_chain_id
          AND acdf.div_id = ad.div_id) d
      WHERE aai.status_id = 30
        AND aai.file_id = p_file_id
        AND d.item_code_cust = aai.item_code_cust
        AND d.division = aai.division;         
    
    BEGIN
      FOR rec IN cur_loop LOOP
        ... DO your stuff ...
      END LOOP;
    END;  
    

    Published by: Dave hemming on December 4, 2008 09:17

  • How to set a Variable with the data Srouce store data

    Hello ODI Experts.
    I created a physical & logical schema and a Data Source store collection data to a database table.

    On the other hand, I have a little variable I'll pass in a web service call (ODIInvokeWebService tool).

    Yo please guide how do I set up my store of data source variables.

    Thank you and best regards,
    Arfaoui

    Hello

    You can close this thread you opened another for your question.

    To answer you second point, it depends on what you select. You can use the function list_agg of values separated by commas if you wish. Or add/edit you WHERE to ROWNUM = 1 to clause example

    See you soon

    BOS

  • How to set the variable USERPROFILE of another user?

    I have the main account that I use and an admin account to call anytime, that I need (for security system). I recently came across problems with repartition my hard drive (it's a bit difficult to change the size of the partition between a basic volume and an extended volumes, even with a third-party utility that performs its work until Windows starts and wanted to completely pass the two user profiles (and preferably both program files)) (, but I can't even more with after discovering that most of my programs have themselves out of their expanded paths and not system variables linking the search through the registry) for the extended partition. I was trying to see if I could do that through a batch file (whose content I have so far for the non-admin will be shown below after this post), but I can't find anything in the registry that I could change. My question is twofold:

    1. I try to take the right path by using a batch script to move the two users? If I did do something wrong and if so, what?
    2. How could I put a variable user for another user on the same system? (It is a continuation of question 1)
    3. (Second question) Is it possible to move my programs Program Files/Program Files (x 86) runs on my D: drive and operate them out of that? I was also wanting to have just my system files and similar to run on my C: drive, because of the drastically limited space. The only exceptions to that would be the dozen of programs that are installed in the folder root (aka C:\whatever).
    I tried repartitioning earlier, because I wanted to make room for my C: drive D: drive much smaller to create many more. Here are the sizes of partition for each partition on my HARD drive:

    • 100 MB (OEM Partition)
    • 9.77 GB (recovery Partition)
    • 58,59 GB (C:, OS, 6,49 GB drive left... not enough for me to copy it to my iTunes songs about library 1 200 on it from my old netbook)
    • 229.63 GB (D: drive, too much for my tastes here)
    I wouldn't mind if I ended up having to save my D: drive format before that, but I don't know how useful it would be.

    Code for the batch file (I named it moveuser.bat)
    (the first line and the last two lines are to refuse to execute the batch file and DO NOT EXECUTE comments)
    GoTo EOF
    cmd
    title moveuser.bat
    MD C:\TEMP\cmdtmp
    MD "D:\From C\Users\" " " ".
    MD 'D:\From C\Program Files files.
    MD ' D:\From C\Program Files (x 86) \Common Files.
    CD C:\Users\Isiah
    Robocopy ".» "------" "D:\From C\Users\" /e /mt:2 /copyall /dcopy:t /tee /log:C:\TEMP\cmdtmp\tmp.txt ".
    set USERPROFILE = "D:\From C\Users\""" "
    CD appdata\local
    RD ' virtualStore\program files (x 86) \aura4you "/s /q
    CD C:\TEMP
    RD /s /q cmdtmp

    : EXPRESSIONS OF FOLKLORE
    REM 'DO NOT RUN. "

    Your system is too complicated. If you implement it then it'll keep you causing pain. Much better to keep things simple as follows:

    • Move the 'My pictures' folder on the D: drive.
    • Move the 'My music' folder on the D: drive.
    • Let your profiles on the C: drive.
    • Let the program files on drive C:, if only because many setup programs will create their files in "C:\Program Files (x 86)" instead of using the % ProgramFiles (x 86) % as they should.
    This approach will free a lot of space on the C: drive. It will also allow you to put your iTunes library on the D: drive.
    A few comments on your batch file:
    GoTo EOF
    cmd
    . . .
    : EXPRESSIONS OF FOLKLORE
    ': EOF ' is a built-in label that references at the end of the batch file. You jump to it as follows: goto: eof. Have a line of the form
    : EXPRESSIONS OF FOLKLORE
    interferes with the integrated label. Get rid of it!
    The "cmd" line is not necessary and will have unexpected side effects. Get rid of it.
  • How to set a variable in the main timeline of in a symbol?

    Just get started with Animate and coming from Flash, it may be apparent to my question. How do you define a variable for the main timeline of in a symbol?

    I have 24 pairs of clickable elements, each in their own symbols, and 24 of these symbols to sit inside another symbol. I want every 24 to set the global variable even when you click on it. I do not find that this question is anywhere, which makes me think that I can be stuck in a mentality from Flash and approaching the task in a bad way. (However, there are MANY discussions address showing how objects to different levels in the hierarchy.) Which is well covered).

    By the way, how to access a function on the main timeline of in a symbol?

    Adobe should consider putting on foot (or pages) support just for people migration form Flash. In the documents that I've met so far there seems to be a studied effort to refrain from mentioning Flash somehow. I imagine that there are many people out there like me who have a deep background in coding Flash, but start with Animate. We don't need help with most of the basic concepts, but we still have some pretty basic questions on how to achieve certain things in Animate because our knowledge of Flash gets in the way.

    Hi Bill,

    There are a lot of discussions here on the scope, but here's a way to create a global variable:

    code on Stage.compositionReady

    sym.myGlobalVar = 1;

    Then, anywhere in your project, you can check/set this var as follows:

    sym.getComposition () .getStage () .myGlobalVar = 2;

    And here is a way to create a global function:

    code on Stage.compositionReady

    sym.myGlobalFunction = function() {}

    Console.log ('myGlobalFunction');

    }

    Then, anywhere in your project, you can call this function as follows:

    sym.getComposition () .getStage () .myGlobalFunction ();

  • How to set global variables for use by all THE #subform [0] items of form1. ?

    Hi all

    I don't know how to code javascript but am new to Adobe LiveCycle.  When I open the script editor, I have the following code (the code is in United Nations in bold):

    -form1. #subform [0]: initialize :-(FormCalc, client).

    //////////////////////////////
    TO START: SET GLOBAL PRICES.
    //////////////////////////////

    var Cityscope_Sydney_CostUser1 = 60,39;
    var Cityscope_Sydney_CostUsers2to5 = 3.02;
    var Cityscope_Sydney_CostUsers6to20 = 1.21;
    var Cityscope_Sydney_CostHardCopyWithOnline = 14.59;
    var Cityscope_Sydney_CostHardCopyWithoutOnline = 54,67;
    var Cityscope_Sydney_CostHardCopyAdditional = 14.59;

    var Cityscope_NorthSydney_CostUser1 = 48,40;
    var Cityscope_NorthSydney_CostUsers2to5 = 2.42;
    var Cityscope_NorthSydney_CostUsers6to20 = 0.97;
    var Cityscope_NorthSydney_CostHardCopyWithOnline = 14.59;
    var Cityscope_NorthSydney_CostHardCopyWithoutOnline = 43,54;
    var Cityscope_NorthSydney_CostHardCopyAdditional = 14.59;


    ////////////////////////////
    END: SET GLOBAL PRICES.
    ////////////////////////////

    -form1. #subform [0]: enter :-(FormCalc, client).

    -form1. #subform [0]: output :-(FormCalc, client).

    -form1. #subform [0]: calculate :-(FormCalc, client).

    -form1. #subform [0]: validate :-(FormCalc, client).

    -form1. #subform [0]: preSave - (FormCalc, client).

    < < = etc etc etc = > >

    -form1. #subform [0]. Item1Cost::initialize :-(JavaScript, client).

    -form1. #subform [0]. Item1Cost::enter :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::exit :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::calculate :-(JavaScript, client).

    Store the values of the form of friendly names.
    var AreaSelected = Item1Area.rawValue;
    var NumberOfUsersSelected = Item1Users.rawValue;

    Declare other variables.
    var Users1Calculation;
    var Users2to5Calculation;
    var Users6to20Calculation;


    Calculate the cost to the "components" user will depend on the number of users selected for the region.
    Switch (true)
    {
    If (NumberOfUsersSelected < 2):
    Users1Calculation = NumberOfUsersSelected * Cityscope_Sydney_CostUser1;
    Users2to5Calculation = 0.00;
    Users6to20Calculation = 0.00;
    break;
    If (NumberOfUsersSelected > 1 & & NumberOfUsersSelected < 6):
    Users1Calculation = Cityscope_Sydney_CostUser1;
    Users2to5Calculation = (NumberOfUsersSelected - 1) * Cityscope_Sydney_CostUsers2to5;
    Users6to20Calculation = 0.00;
    break;
    If (NumberOfUsersSelected > 5):
    Users1Calculation = Cityscope_Sydney_CostUser1;
    Users2to5Calculation = 4 * Cityscope_Sydney_CostUsers2to5;
    Users6to20Calculation = (NumberOfUsersSelected - 5) * Cityscope_Sydney_CostUsers6to20;
    break;
    by default:
    Alert ("BROKEN: calculate the individual components of cost of use will depend on the number of users selected for the region.");

    }

    apply the total cost for this article
    Item1Cost.RawValue = Users1Calculation + Users2to5Calculation + Users6to20Calculation;

    -form1. #subform [0]. Item1Cost::validate :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::MouseEnter :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::mouseExit :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::change :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::full :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::MouseUp :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::MouseDown :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::click :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::preSave - (FormCalc, client).

    -form1. #subform [0]. Item1Cost::postSave - (FormCalc, client).

    -form1. #subform [0]. Item1Cost::prePrint - (FormCalc, client).

    -form1. #subform [0]. Item1Cost::postPrint - (FormCalc, client).

    -form1. #subform [0]. Item1Cost::preSubmit:form - (FormCalc, client)-

    -form1. #subform [0]. Item1Cost::docReady - (FormCalc, client).

    -form1. #subform [0]. Item1Cost::docClose - (FormCalc, client).

    -form1. #subform [0]. Item1Cost::ready:form - (FormCalc, client)-

    -form1. #subform [0]. Item1Cost::ready:layout - (FormCalc, client)-

    -form1. #subform [0]. Item1Users::initialize :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::enter :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::exit :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::calculate :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::validate :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::MouseEnter :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::mouseExit :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::change :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::full :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::MouseUp :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::MouseDown :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::click :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::preSave - (FormCalc, client).

    -form1. #subform [0]. Item1Users::postSave - (FormCalc, client).

    -form1. #subform [0]. Item1Users::prePrint - (FormCalc, client).

    -form1. #subform [0]. Item1Users::postPrint - (FormCalc, client).

    -form1. #subform [0]. Item1Users::preSubmit:form - (FormCalc, client)-

    -form1. #subform [0]. Item1Users::docReady - (FormCalc, client).

    -form1. #subform [0]. Item1Users::docClose - (FormCalc, client).

    -form1. #subform [0]. Item1Users::ready:form - (FormCalc, client)-

    -form1. #subform [0]. Item1Users::ready:layout - (FormCalc, client)-

    .. and so on and so forth...

    In short, I want the code in:

    -form1. #subform [0]. Item1Cost::calculate :-(JavaScript, client).

    .. .to be able to access the variables I created in:

    -form1. #subform [0]: initialize :-(FormCalc, client).


    (I guess that's where I store global variables)

    At this point, global variables are not accessible with the above configuration.  Was the only one I can get this working is to cut and paste the Globals in each item of form1. #subform [0], which of course defeats the purpose of global variables!  I intend to have a lot more items so wouldn't duplicate global variables for each of them!

    Can someone show me how to do this?

    Any help is very appreciated!

    Thank you

    Stanbridge

    Post edited by: stanbridgej - colors and fonts or not will not save.  Are bolded my question make (non-fat) code easier to read (I hope).

    I haven't used Formccalc, but I thought it would be the same regardless. Insert a script object to the top of the hierarchy and call it, for example "sco." Paste the Globals. Then refer to variables of the extent that sco. Cityscope_Sydney_CostUser1, etc. Make one

    App.Alert (sco. Cityscope_Sydney_CostUser1);

    one of the fields. If the debugger is activated, it will tell you if it cannot resolve the reference as "sco. In this case, you may need to use the som expression to reference the script object, for example

    var scoScript = xfa.resolveNode ("topOfHierarchy.sco");

    scoScript.Cityscope_Sydney_CostUser1

    But if as close as possible to the top of the hierarchy above should work.

  • How to set the default on a table when data is inserted in another table

    Hi all
    I use Jdeveloper 11.1.1.2 and ADFBC.
    I have two tables and tableA, tableB.
    I wish that when I insert a line in tableA, automatically, a row is inserted in tableB.
    How can I do? Creating a java class for tableA OS? How can I reference/create a line in the area of occurrence of another table?

    Thank you

    Andrea

    When you want that to happen... If you want to occur when you run the page, then have it in the getter()... If you like... When you set it... then's it in the Set accessor... You manually assign the id. or is he from any order?

Maybe you are looking for

  • Disk utility doesn't work anymore?

    El Capitan, is it me or you? Have had Boot Camp with Windows 10 races, and now I'm trying to delete the partition created by the Boot Camp Assistant. No matter what I do, its only possible to me formatting of partitions and do not remove them, which

  • What is the Mode of safe work and how can I turn it off?

    I am trying to display pictures on several websites and some of them are blocked with the message IMAGE NOT AFFICHABLE WORKSAFE MODE ON

  • How to install the adapter wireless network in Satellite Pro A10

    I'm trying to set up a wireless connection with my Satellite Pro A10. I thought it was active wireless, but when I switch the wireless switch, no light comes on and there is no card listed under network adapters wireless (so I guess not). Is it easy

  • Serial number B-L70-126 satellite for windows 8.1

    Hello support, could someone tell me were to find my serial number (for my operating system for windows 8.1) for my new laptop Satellite. It s anywhere is (under the laptop or anywhere on the package). This is necessary if ever, I decided to re - ins

  • Problem SCON 8051

    The following program is unable to reach good results. I find the problem with oscilloscope as "the PIN TXD of 8051 cannot produce clock to exit", in fact, it should provide for outdoor clock, after "MOV SCON #10 H. Is this a bug of multisim? ORG 000