The global tables are interconnected?

Dear friends
I'm more than puzzling over the following

It's the overall definition of two tables:

var gasLocations      = [];                       // filled from template or current document  
var gasLocationsPredef= [];                       // filled in SetUpArraysEtc () 

They met in the SetUpArraysEtc () function:

// locations for the list in the dialogue
gasLocations1   = ['Above()', 'Below()', 'Left()', 'Right()']; // used in UnknownElement concatenated to gasFunctions
var asLocations2    = ['[COL m]', '[ROW n]', '[CELL n, m]']; 
gasLocationsPredef = gasLocations1.concat(asLocations2); // These must not be deleted from the list
gasLocations    = gasLocationsPredef;

Later in a dialog table gasLocations function will need to be updated. I put a breakpoint right before the crucial moment:

function ButtonAddLocation () { // ================================================================
// Attention: this regex is different from that in ChecktermElements!
  var re_Def = /(\[ROW +\d+\]|\[COL +\d+\]|\[CELL +\d+, +\d+\]|Left *\(\d*\)|Right *\(\d*\)|Above *\(\d*\)|Below *\(\d*\))/;
  var item = wPalDS.p0.tabL.g1.p2.g1.sLocation.text;
  if (item.search(re_Def)) {
    alert (gsDSSyntaxErr);
    return;
  } 
$.bp(true);
  UpdateListLocations (wPalDS.p0.tabL.g1.p1.listLocations, item);
  FillItemList (wPalDS.p0.tabL.g1.p1.listLocations,  gasLocations);
  PutRefPageItems ("Ref-Locations", "");          // update reference page
} // --- end ButtonAddLocation

function ButtonDelLocation () { // ================================================================
  var lstIndex = wPalDS.p0.tabL.g1.p1.listLocations.selection.valueOf();
  var locName = gasLocations[lstIndex];
  if (IsInArray (gasLocationsPredef, locName)) {
    alert ("Predfeined items can not be deleted");
    return;
  };
  DeleteItemLocations (wPalDS.p0.tabL.g1.p1.listLocations, locName)
  PutRefPageItems ("Ref-Locations", "");          // update reference page
} // --- end ButtonDelLocation

function UpdateListLocations (oList, item) { // ====================================================
// update global array and list in dialogue;
  var locArray = gasLocations, j, nItems;
  locArray.push (item);
  gasLocations = locArray.sort ();                // update global array
  nItems = gasLocations.length;
  oList.removeAll ();                             // clear the list
  for (j = 0; j < nItems; j++) {
    oList.add ("item", gasLocations[j]);          // add item
  }
} // --- end UpdateListLocations

function DeleteItemLocations (oList, item) { // ====================================================
// List is rebuilt from array. Function array.splice not available in ES
  var index = IsInArray (gasLocations, item);
  var lower = gasLocations.slice (0, index);      // lower part
  var upper = gasLocations.slice (index+1);       // upper part
  gasLocations    = lower.concat(upper);
  FillItemList (oList, gArray);
} // --- end DeleteItemLocations

function FillItemList (oList, aSource) { // =====================================================
  var j, nItems = aSource.length;
  oList.removeAll ();                             // clear the list
  for (j = 0; j < nItems; j++) {
    oList.add ("item", aSource[j]);               // add item
  }
} // --- end FillItemList
function IsInArray (array, what) { //==============================================================
// indexOf is not supported in ExtendScript...
  var jl;
  for (j = 0; j < array.length; j++) {
    if (array [j] == what ) { return j;}
  }
  return null;     // not found in array
} // --- end IsInArray

Now, guess what? After UpdateListLocations the two tables have the same content! But gasLocationsPredef doesn't have to be updated, because it serves as a reference: list items in the selection corresponding to the elements of this array must not be removed from the list. The ButtonDelLocation function has always search the newly inserted item and does not accept the deletion.
I once read a warning on global variables - but I carefully avoid using as arguments to functions output (only objects are managed "by" reference").

Who has an eagle eye for spotting my error?

Hi Klaus,

to copy the contents of a table (and ONLY content), you must use sth. Like this:

Array1 = Array2.slice ();

Array1 = array 2 you create only a second word for the same thing.

Tags: Adobe FrameMaker

Similar Questions

  • Rows from the outer table are cached?

    Hi all

    Can anyone confirm if the lines of the outer table are cached in memory? If so, how "redirect" Oracle query next 'return' in the data external when the latter is updated or modified file? Thanks for the responses,

    Kind regards

    Kevin.

    KevinFitz wrote:
    Hi all

    Can anyone confirm if the lines of the outer table are cached in memory? If so, how "redirect" Oracle query next 'return' in the data external when the latter is updated or modified file? Thanks for the responses,

    Kind regards

    Kevin.

    The hard drive itself will be hidden data in OS operations.
    Oracle hidden data in external tables, because it knows that it is an external data source and can change without knowing.

  • How do I know if the two tables are the same in the data they contain

    Hello

    How will I know if the two tables are the same in the data they contain?

    Hello

    Please check this thread [compare all columns | http://forums.oracle.com/forums/thread.jspa?messageID=3166309�].

    Kind regards

  • How do I route out of the VRF to the global table

    How to build static routes (two-way) between the VRF and the overall table?

    Cat 6509

    12.2 (33)

    Single VRF, Full BGP. EIGRP inside the VRF.

    I do not have a 6509

    but on IOS, you attach the word 'global' key to the VRF road, and on the incoming Interfaces, I created a policy map to send traffic to the vrf.

  • IOM 11 GR 2 - Entilements are removed if the child tables are not met.

    Hello experts,

    I use the OOTB DBUM connector.

    When a user has certain rights assigned to IOM (db, db roles privileges) need to be addressed in the child tables before any account update otherwise they are deleted/revoked.

    In other words when the update of a parent account attribute, I need also to populate child tables with payments already assigned, so I leave them blank, all payments will be deleted: empty child tables means "remove all rights", instead, I don't want to change the right assignments.

    How can I do this?

    Fixed by the creation and use of a new form of resources.

  • Where the system tables are recorded

    Hello

    Where are the system tables documented, such as the description of each column? references to columns between tables (views)

    Thank you

    In the database, you have DICT, with as main colum TABLE_NAME, describing each view of the dictionary.
    You also have DICT_COLUMNS and DICT_COMMENTS.
    Outside the database, there is the 'reference manual Oracle"for your version without name on http://tahiti.oracle.com

    ----------------
    Sybrand Bakker
    Senior Oracle DBA

  • I am trying to perform a static check on the model. When I double click the model and go to the tab control... There is nothing to select in the knowledge module. I want to use CKM here... but nothing appearing in the drop-down menu. The global KMs are no

    I am trying to perform a static check on the model. When I double click the model and go to the tab control... There is nothing to select in the knowledge module. I want to use CKM here... but nothing appearing in the drop-down menu. The global not supposed to KMs the listed here?

    Hello

    You have imported the whole CKM in modules of knowledge?

    If not, import ckm and do it.

    Kind regards

    Gangareddy.k

  • Why the GLOBAL styles are overriding the styles of my TABLET?

    I have worked with Dreamweaver since its inception, but it's my first delicate design. Using the latest version (Build Dreamweaver CC 13.2 6466) on Mac 10.7.5

    By recommendation, I started in Mobile display and built most of the site successfully. But problems with a fluid layout 2 columns in tablet mode. I have inserted some DIVs in Mobile display and their style. Then I click on the Tablet icon, select the same div, and it is not resized with the handle. I note that the media query does NOT change to ' only of the screen and (min-width: 481px) ' it is stuck on WITH the overall class selected. I thought that the appropriate @Media class was supposed to automatically select.

    If I select manually only screen and (min-width: 481px) and the correct class for this DIV, the definition of the width is well set to 49.1712%, but the word width has a bar. If I fly over the bar, I get this message ToolTip:

    "width does not apply to your selection because it has been replaced by the rule. MerchCol1 (in other words, it is overridden by the GLOBAL/Mobile style.

    I manually changed the Global classes and Tablet as shown below - but now the 49.1712% affects the Mobile DIV, although it is reported as 100%

    Here's the corresponding code only from my main style sheet of layout, with the appropriate classes in bold. I'd appreciate any help that I have a bad headache 8 hours trying to solve this supposedly easy way to create a sensitive site.

    / * Mobile layout: 480px and below. */

    {.gridContainer}

    left margin: auto;

    margin-right: auto;

    Width: 96.7391%;

    padding-left: 1.6304%;

    padding-right: 1.6304%;

    Clear: none;

    float: none;

    }

    . {MerchCol1}

    text-align: center;

    background-color: #D1E5EC;

    Width: 100%;

    }

    . {MerchCol2}

    text-align: center;

    background-color: #D1E5EC;

    Width: 100%;

    }

    {.zeroMargin_mobile}

    left margin: 0;

    }

    {.hide_mobile}

    display: none;

    }

    / * Tablet Layout: 481px to 768px. Inherits the styles of: Mobile layout. */

    @media only screen and (min-width: 481px) {}

    {.gridContainer}

    Width: 91.4836%;

    padding-left: 0.7581%;

    padding-right: 0.7581%;

    Clear: none;

    float: none;

    left margin: auto;

    }

    . {MerchCol1}

    text-align: center;

    background-color: #D1E5EC;

    Width: 49.1712%;

    }

    . {MerchCol2}

    text-align: center;

    background-color: #D1E5EC;

    Width: 49.1712%;

    }


    Add the size of the box to make it easier and add fleet to ensure that the columns sit next to each other, as in

    / * Mobile layout: 480px and below. */

    * {

    Box-sizing: Border-box

    }

    {.gridContainer}

    left margin: auto;

    margin-right: auto;

    Width: 96.7391%;

    padding-left: 1.6304%;

    padding-right: 1.6304%;

    Clear: none;

    float: none;

    }

    . {MerchCol1}

    text-align: center;

    background-color: #D1E5EC;

    Width: 100%;

    }

    . {MerchCol2}

    text-align: center;

    background-color: #D1E5EC;

    Width: 100%;

    }

    {.zeroMargin_mobile}

    left margin: 0;

    }

    {.hide_mobile}

    display: none;

    }

    / * Tablet Layout: 481px to 768px. Inherits the styles of: Mobile layout. */

    @media only screen and (min-width: 481px) {}

    {.gridContainer}

    Width: 91.4836%;

    padding-left: 0.7581%;

    padding-right: 0.7581%;

    Clear: none;

    float: none;

    left margin: auto;

    }

    . {MerchCol1}

    text-align: center;

    background-color: #D1E5EC;

    Width: 50%;

    float: left;

    }

    . {MerchCol2}

    text-align: center;

    background-color: #D1E5EC;

    Width: 50%;

    float: left;

    }

  • HTMLDB_APPLICATION. G_Fxx GLOBAL TABLES ARE NOT PROPERLY FILL RDI

    Hello

    Scenario1:

    Unordered data

    I have an interactive relationship with column checkbox and 4 editable fields. When I enter an editable field is called a javascript on this field to make the checkbox in the first column checked. It works very well.

    Scenario 2:
    Sort on a column:

    I sort the data on the number of part and when I change one of the editable field box gets checked who is correct. But when I save HTMLDB_APPLICATION.gxx variable seems to be messed up when IRR is sorted and is recording not all values.

    Any body facing a similar problem.

    Thank you
    Sukarna

    Hello

    Use of rownum is dangerous, because you can't point to a single rownum in a query result. For example, you can do a select x from y where rownum< 10,="" but="" you="" can't="" do="" a="" select="" x="" from="" where="" rownum="">

    This is because the rownum is generated after ORDER BY. So "select x from y where rownum".< 10"="" gives="" a="" different="" result="" than="" "select="" x="" from="" y="" where="" rownum="">< 10="" order="" by="">

    Instead, use the row ID (or primary key column).

  • Small request help on the use of the global temporary table - some doubts


    Hi all

    Few days back according to a condition, I used a TWG (on the ranks of commit preserve).

    I created a trigger (before the insertion of line level) on GTT that calls a procedure (pragma autonomous transaction declared in the procedure).

    Procedure inserts data into two tables and I have a validation final (after the two insertion of data in tables) in the procedure.

    I tested by inserting the number of lines in TWG and found that the two tables are correctly supply procedure called by trigger.

    Which means that my works absolutely perfect functionality. (performance is also good)

    Now, my question is: since in the production source ETL tool will load this TWG.

    ETL will use this table in different processes simultaneously.

    Suppose that a single session ETL populates this table, and at the same time in parallel another session fills this table with different data. is there a lock on this TWG?

    Would the TWG is blocking other lines to add at any time?

    Is it possible that data may disappear without completing the entire process prematurely TWG?

    PS the feature I developed is the generic exception feature. This works for all valid tables for the database. For most of the tables will be filled with ETL, that's why I had these doubts in my mind.

    I apologize, if these seems like childish doubts.

    Thank you very much

    Arpit Agrawal

    Each line I'll get my GTT and follow all the features [trigger procedure &], will be considered as a session until the validation, right?

    This is not correct, a session is considered between the opening of session (session is created) and close the session (session is closed) of the database.

    If I use, validation TWG deletions here, how would he had differed on commit preserve as when my feature is completed, I don't want to keep more data.

    If on commit delete has been used here, it wouldn't make a difference in your case since you make is ENGAGING in some AUTONOMOUS OPERATIONS.

    In both cases, commit delete and commit preserve, you don't have to worry about the data inside the TWG because it will be empty onece you logoff (session ends).

    However, you can perform a delete operation in your session if you do not want to keep the data up to the end of the session.

  • How to find the data in two tables are the same?

    Hi people,

    Suppose we have table emp01, have 10 records and create another emp02 as table

    create the table emp02 in select * from emp01;

    now both the table has the same data.

    How to find a 'data' in the two tables are the same?

    Hello

    SELECT *
    FROM emp01
    MINUS
    SELECT *
    FROM emp02
    UNION
    SELECT *
    FROM emp02
    MINUS
    SELECT *
    FROM emp01
    

    You can also compare resultset hash to select * in emp01 and select * from emp02 by using dbms_sqlhash.

    Best regards
    Nikolai

  • generate the subset of the decimal table to an array of Boolean

    I have a decimal table 1 2 3 4 5 6, and I have a boolean with the same table size 0 1 0 1 1 0.

    How can I retrieve the subset of the decimal table of the corresponding "1" position of the table of Boolean (in this case 5 4 2)?

    The value of the Boolean table are editable (casting either 1 00100), so the size of the array decimal subset is not fixed (1, 4).

    (I assume you mean digital Board. "Décimal" is just a specification of formatting and irrelevant for this)

    Try something like the following (the FALSE case has just wired table in the whole unchanged):

    (In case you're dealing with huge paintings, a few performance modifications should be made so that everything goes more in place.)

    (Sorry for the spelling errors, ignore them )

  • The Globals and Globals station brought in the sequential model of the file

    Hello

    I create sample files to illustrate the use of the station globals and globals using TestStand 4.2, model batch file.  I was assuming that station overall value would be persistent to the station and file global values are persisted to the file (as long as the file is not deleted, the value will remain).  But, after the executions of couple, I found that I'm wrong.

    He's looking to me that globals file, the value reset for each new execution.  I would like to ask if this is a correct behavior?  If it is correct, I can say that: because each run contains the new instance of the file, so at the beginning again, new copy of the globals file are created.  (I'm borrowing the idea of the model of batch execution logic, but for my example, I use only the sequential model).

    In addition to reading the other posts, for globals station, value is not persistent until a file Save command issued manually.  How to deliver this command?  And, is there a similar command for globals file?

    Thank you.

    Peggy

    Hello

    When teststand is closed the StationGlobals file is updated automatically, you don't have to do anything.

    For FileGlobals, there is a static version, that you create at the time of editing, and there is a version of the runtime. When you change the values during execution, these are not kept when execution is completed. So if you want to maintain values of execution you will also change the static values and also save the file in the sequence.

    There are examples in this forum to do just that.

    Hope this helps

    Concerning

    Ray Farmer

  • BI Publisher - block entity - display the global attributes

    Hello

    With the help of OPA 12.2.1.

    I use an rtf to generate a PDF file at the end of my interview.

    In the rtf, I have a block of an entity:

    <? for-each: children? >

    <? end foreach? >

    In this block, I display the attribute of the entity, but I view the global attributes so for each child.

    Behavior: the child attributes are displayed, but not overall.

    For the record, the global attributes are well displayed outside teaching.

    No idea what to do?

    Thank you.

    Orlando

    The exact path of the child elements being processed at the global attribute is not just "... / ' could be several levels upward.   The XML being processed by BI publisher can be considered to be a file path (in XML called XPath) each subelement is 'low' level and each parent elements is "up" one level (for example "..") ("/" current level is the parent).  The key is to look at the real generated XML and then determine the best way to access the elements in your RTF.  XPath is very powerful to navigate anywhere in the XML document to select the nodes/elements that you want to process.  Resources such as the https://blogs.oracle.com/ocsbip/entry/xslxsltxpathxslfo_part_1 can explain more in detail.

  • How to take partial dump using EXP/IMP in oracle only for the main tables

    Hi all

    select*from v$version;
    
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    "CORE    10.2.0.1.0    Production"
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    

    I have about 500 huge data main tables in my database of pre production. I have an environment to test with the same structure of old masters. This test environment have already old copy of main tables production. I take the dump file from pre production environment with data from last week. old data from the main table are not necessary that these data are already available in my test environment. And also I don't need to take all the tables of pre production. only the main tables have to do with last week data.

    How can I take partial data masters pre prodcution database tables?  and how do I import only the new record in the test database.

    I use orders EXP and IMP. But I don't see the option to take partial data. Please advice.

    Hello

    For the first part of it - the paintings of masters just want to - use datapump with a request to just extract the tables - see example below (you're on v10, so it is possible)

    Oracle DBA Blog 2.0: expdp dynamic list of tables

    However - you should be able to get a list of master tables in a single select statement - is it possible?

    For the second part - are you able to qrite a query live each main table for you show the changed rows? If you can not write a query to do this, then you won't be able to use datapump to extract only changed lines.

    Normally I would just extract all the paintings of masters completely and refresh all...

    See you soon,.

    Rich

Maybe you are looking for

  • I can't see my emails on a PC, in Thunderbird

    My problem is that I see only my old Yahoo from my laptop, Thunderbird mails. If I try to view them using webemail on the same computer, the Inbox is empty.If I try to view them using webmail or Thunderbird from another PC, laptop, my Inbox is empty.

  • Stopping the kernel panic

    It is a computer that I use MF for light work, Photoshop, Outlook, and Safari. At about 02:00 every day, the screen goes black and I get a full stop. After that, I have to hold the power button for 20-30 seconds, I hear some mechanical parts moving i

  • Black screen on startup Satellite A80

    I get a black screen at startup what is the problem and what is the solution for it? It might have something to do with the cold?

  • Satellite L450D-113 - upgrading the processor

    HelloI have a Satellite L450D-113 and looking to upgrade the processor to something more powerful, someone has suggestions.Harry

  • 1027 wireless key board

    I just had a keyboard wireless 1027 and need help to make it work! I have to regester it first? OK teckies give me help please.