Trigger - SEO problem: old variable

Hi all

is it possible to reference all the lines in the: old variable?

for example:

CREATE OR REPLACE TRIGGER MYSCHEMA. UPDATE_ROW
BEFORE THE UPDATE
ON MYSCHEMA. TEST_1
REFERRING AGAIN AS NINE OLD AND OLD
FOR EACH LINE
DECLARE

BEGIN
INSERT MYSCHEMA. TEST_2
VALUES(*:Old*); -This gives error because I need to refer to the columns, but I would get all the line without the: old.col1,: old.col2 etc.
END;


This trigger should copy the old record before being modified for another table.

Any idea?

Thank you

No.... nothing like: old.row.

In addition...

There really makes no sense to move the the "before" because if the update fails because of oracle constraints will for example to restore changes that could easily be made in the trigger after too.

HTH

Tags: Database

Similar Questions

  • Problem with variables not excluding search terms not

    People,

    I'm having a problem with variables, when used in topic titles.

    We produce two distinct versions of a webhelp. The text is almost exactly the same, but the product has a different name in each version. In one version, he is called FLOW; in another, it is called Service generator. We use the user-defined variables to control which name is used to identify the product, when we generate the webhelp.

    So, I have (for example), a subject that begins with the heading:

    Construction of a FLOW script

    where the text occupied by 'FLOW' is provided by a variable with two values - FLOW and Service constructor.

    So when I generate the generator using the web Service version, I put Robohelp using the Service Builder variable defined, and all contained text and the table of positions generate fine; FLOW is nowhere to be seen.

    But when I type "FLOW" in the search box, the system identifies each of the three subjects that are built as in the example above, with a topic title that contains the variable used to set the name of the product. In addition, it displays in the search results using STREAM in the title of the topic, not Service Builder (but when I open the topic, the text in the header is rendered correctly).

    In addition, the system uses the "FLOW" and not "Service Builder" in the headings found by the search, regardless of what research the term is used.

    Everyone comes through this? Nobody knows how to solve this problem, please?

    Thanks in advance,

    NA.

    What version of RoboHelp do you use?

    I use the 2015 Release version. It used to be version 11.

    In the Release version of 2015, my topic Properties dialog box looks like this:

    I think that version 11 may have introduced the possibility of having a variable in the title of the topic. If your version is older and does not seem to offer a way through the dialogue box to deal with this, I was wondering if you could fudge by manipulating the code manually. For example, I see that when I use a variable in a topic title, I end up with this:

    So I was wondering if you could add just in the bit that reads:

    < InsertVariableNameHere >

    Of course, you want to replace the text InsertVariableNameHere with the actual name of your variable.

    It can fail miserably because the process of generation of RoboHelp doesn't know how to cope. But in fact, it might work! You won't know until you try.

    And even if it fails, I may be able to offer another approach that you will overcome the problem.

    See you soon... Rick

  • Problems of variable references

    Hello!
    I have big problems referencing variables in Flash! It turns out that there is no way to reference a variable (whether any type) that is declared in the timeline to the current relative... :(
    My setup is as follows: I have a couple of nested clips... I declared a variable (of type Boolean, say) on the stage. Trying to reference it via stage.bVariable , I get an error message saying that I am now making reference to an undefined property, yet it is very well defined.
    Yes, is there a way to make this simple operation? ... :(
    Thank you in advance!

    You can try:

    .bVariable (this.parent as MovieClip) =...

    adding .parent references as in "this" as necessary to return to the main timeline.

    I'll keep an eye on this one to see if a better answer appears. I had similar problems a few weeks (talking to/from nested stuff), and my ad met someone telling me to look thru Flash help without specific reference. I found the solution parent via a web site that answered the question "what happened to my _parents '.

  • Before Update trigger compilation problem

    Hello experts! I have a problem compiling of a trigger, that I am creating.

    In fact it should be updated INT_INITIAL with the old value of INT_LOCK.

    Compilation fails and the debugger triggers an error ORA 01747 (invalid statement for table use, column user etc.)

    Do you have an idea of what's wrong with my code?
    create or replace
    TRIGGER TRIGGER_INT_INITIAL
    BEFORE UPDATE ON  TBL_MATRIX_INTERMEDIATE_RESULT
    FOR EACH ROW 
    
     Begin 
     
      IF NVL(:new.INT_INITIAL, 0) != :old.INT_LOCK THEN 
           UPDATE TBL_MATRIX_INTERMEDIATE_RESULT set 
          :NEW.INT_INITIAL = :old.INT_LOCK;
      END IF;
     END;
    Kind regards

    SEB

    Hi Seb,

    You should not be doing an UPDATE, just do an assignment:

    create or replace TRIGGER TRIGGER_INT_INITIAL
    BEFORE UPDATE ON  TBL_MATRIX_INTERMEDIATE_RESULT
    FOR EACH ROW
     Begin
      IF NVL(:new.INT_INITIAL, 0) != :old.INT_LOCK THEN
          :NEW.INT_INITIAL := :old.INT_LOCK;
      END IF;
     END;
     /
    

    Concerning
    Peter

  • Trigger database problem

    I write the trigger on database level and trigger works well. Problem occurs during playback

    RAISE_APPLICATION_ERROR (-20001, 'dash already generated for the amount of requisition, unauthorized update');

    What is the problem?

    When I run a manipulation on this table through oracle (9i DS) forms, it gives me the error
    + "40509-oracle error, impossible to update the record." + "
    rather than giving me the error below
    + "Dash already generated for the amount of requisition, unauthorized update +.
    I mentioned in my trigger.

    Kindly solve my problem,
    Concerning
    Salah

    ----------------------------------------------------------------------------------------------------------------------------------------
    CREATE OR REPLACE TRIGGER DBADMIN. BEF_UPD_SCM_REQUISITION_DET
    before the update on SCM_REQUISITION_DET
    for each line

    DECLARE
    Number V_INDENT_QTY;
    Number V_ISSUE_QTY;

    BEGIN

    BEGIN
    SELECT SUM (NVL(INDENT_QTY,0)-NVL(CANCEL_QTY,0))
    IN V_INDENT_QTY
    OF SCM_INDENT_DET
    WHERE REQ_SNO =: OLD. REQ_SNO
    AND REQ_DET_SNO =: OLD. REQ_DET_SNO;
    EXCEPTION WHEN OTHERS THEN
    V_INDENT_QTY: = 0;
    END;

    BEGIN
    SELECT SUM (NVL(ISSUE_QTY,0))
    IN V_ISSUE_QTY
    OF SCM_ISSUE_DET
    WHERE REQ_SNO =: OLD. REQ_SNO
    AND REQ_DET_SNO =: OLD. REQ_DET_SNO;
    EXCEPTION WHEN OTHERS THEN
    V_ISSUE_QTY: = 0;
    END;

    IF V_INDENT_QTY > nvl(:new.req_qty,0)-nvl(:new.cancel_qty,0) CAN
    RAISE_APPLICATION_ERROR (-20001, 'dash already generated for the amount of requisition, unauthorized update');
    ELSIF V_ISSUE_QTY > nvl(:new.req_qty,0)-nvl(:new.cancel_qty,0) CAN
    RAISE_APPLICATION_ERROR (-20001, 'show has generated on the requisition amount, unauthorized update');
    ON THE OTHER
    NULL;
    END IF;

    END;
    ----------------------------------------------------------------------------------------------------------------------------------------

    Hai,

    In the ON-ERROR trigger, write,

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

    THEN IF DBMS_ERROR_CODE = - 20001
    SET_ALERT_PROPERTY ('', ALERT_MESSAGE_TEXT, DBMS_ERROR_TEXT);
    ON THE OTHER
    .................

    END IF;

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

    Kind regards

    Manu.

    If this answer is useful or appropriate, please mark. Thank you.

  • Problem with Variables shared in exe running on Windows 2000

    Anyone know if there are problems with the Variables shared on Windows 2000? I can't get the LabVIEW executables that use shared Variables to work Windows 2000 on a computer with just the runtime engine.  Everything works perfectly on XP on a machine with just the LabVIEW runtime engine installed (using LV 8.5).  Shared variables are supposed to work less than 2000.  I have attached the sample code that is based on one of the examples NOR to the Variables Shared - editor and the Subscriber - with some extra stuff for the diagnosis, I added.  On Windows 2000, you can only run one or the other exe.  It seems that as soon as the other come to the part on the diagram with the shared variable node it crashes.  Shared variables are getting written in the because if you close the editor and then run the exe subscriber it reads the latest values set properly.

    On Windows 2000 I tried with the administrator account and off the ladies of viruses, firewalls.  There may be another Windows 2000 setting that causes this problem with the two exes trying to access shared variables.  I do not have the development environment on Windows 2000 computer that the purpose of this exercise is to see if its worth using shared variables.  Windows 2000 computers remain the same in the Test and measurement world.  A research on Developer Zone does not there is no particular problem with Windows 2000.

    Any suggestion is appreciated.

    Hi André,.

    Thanks for the comments!  Your feedback will help us improve LabVIEW for our customers.  This bug has been reported to R & D (#45493), and they're currently investigating this issue.  For now, the best solution seems to be using a different operating system, as this seems to occur only in Windows 2000.  Thanks for the comments!

  • Starting problems old application. Compatibility does not work!

    Hello, recently, I decided to play a game of old (since 1999). When I instaled Pharaoh (the name of the game), it is no problem. However, I tried to install the expansion pack (Cleopatra) and I can't. I tried all the possible modes of compatibility, but it does not work. I started installation and the Task Manager indicates that he's begun, but I can't see and exploit. Help, please!

    There seems to be no definitive solution not working on all pc systems. Two Councils (which may or may not work on your system) seem reasonable, at least:

    (1) install and run (both!) Pharao and expansion in "compatibility mode: Windows 2000 ', in 'administrator '. This is because the way the operating system accesses the CD/DVD drive has changed in the meantime. This recommendation will not work in combination with some specific drivers for the hardware (motherboard, chipset), you'll know when you try it.

    (2) and, more likely, it's a question of copy protection. This is because the combination of Pharao + Cleopatra expansion seems to work without problems when installing a release where they are not be installed separately (Pharao gold) and with 'barely legal' distributions where the copy protection has been removed from the plan. A more legitimate way to achieve the same might be this one:

    "Install the game on another computer and patch if necessary. Copy the games appear on an external usb/disc key or burn it to a DVD.
    Copy the folder on the computer where you want to play the game. Create a shortcut to the exe of games on the desktop. To start the game, insert a CD in the drive, close the popup window and start the game by using the shortcut on the desktop.
    For your legal stay don't forget to uninstall the game again on the other computer (it can only be installed on one computer at a time) and also from the external hard drive unless you select to play the game directly from her instead of copy on it. The game cannot be played directly from a DVD because the game is impossible to record data such as backups. "(http://caesar3.heavengames.com/cgi-bin/caeforumscgi/display.cgi?action=ct&f=9, 7578, 20)

    This procedure would allow the good old copy of 'CD in the drive?' system check and, therefore, to launch the game normally.

  • Trigger changing problem

    I've created a compound trigger that creates a trigger mutation error.

    Here are the trigger:

    DROP TRIGGER bi_fin_transaction
    /

    DROP TRIGGER ais_fin_transaction
    /

    CREATE OR REPLACE TRIGGER ai_fin_transaction
    FOR INSERT
    ON fin_transaction
    COMPOUND OF TRIGGER
    Number of TransactionNumber;
    TransactionAmount number (18.6);
    DiscountTakenAmount number (18.6);
    AfterBalanceAmount number (18.6);
    Number of InvoiceNbr;
    Date of MaxGlDate;
    number of v_count;
    date of gl_date;

    CURSOR operation IS
    SELECT invoice_nbr,
    gl_date
    OF gtt_ai_fin_transaction_work
    ORDER BY invoice_nbr;

    CURSOR recalculate IS
    SELECT transaction_nbr,
    transaction_amount,
    discount_taken_amount
    OF gtt_ai_fin_transaction
    ORDER BY gl_date,
    transaction_nbr;

    UNTIL EACH ROW IS
    BEGIN
    BEGIN
    SELECT ft.invoice_nbr,
    Max (COALESCE(ft.gl_date,ft.transaction_date))
    BY InvoiceNbr,
    MaxGlDate
    FT fin_transaction
    WHERE ft.invoice_nbr =: new.invoice_nbr
    GROUP BY ft.invoice_nbr;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    NULL;
    END;

    IF: new.gl_date < MaxGlDate THEN
    INSERT INTO gtt_ai_fin_transaction_work
    VALUES (InvoiceNbr,
    MaxGlDate
    );
    END IF;
    PURPOSE BEFORE EACH ROW;

    AFTER EACH ROW IS
    BEGIN
    IF (: new.invoice_nbr IS NOT NULL) THEN

    UPDATE fin_invoice
    SET last_transaction_date =: new.transaction_date
    WHERE invoice_nbr =: new.invoice_nbr;

    END IF;

    IF (: new.payment_nbr IS NOT NULL) THEN

    UPDATE fin_payment
    SET last_transaction_date =: new.transaction_date
    WHERE payment_nbr =: new.payment_nbr;

    END IF;
    END AFTER EACH LINE;

    AFTER STATEMENT IS
    BEGIN
    SELECT COUNT (*)
    IN v_count
    OF gtt_ai_fin_transaction_work;

    IF v_count > 0 THEN
    CURRENT transaction;

    LOOP

    Get operation IN InvoiceNbr,
    gl_date;
    OUTPUT WHEN transaction % NOTFOUND;

    DELETE FROM gtt_ai_fin_transaction;

    INSERT INTO gtt_ai_fin_transaction
    SELECT transaction_nbr,
    COALESCE(gl_date,transaction_date),
    CASE transaction_type WHEN IN ('PAY', 'CON', 'CRD', 'PAD', "ADJ", "ACC", "NSF", "COR", "PADR")
    THEN transaction_amount *-1
    Of OTHER transaction_amount
    END,
    CASE transaction_type WHEN IN ('PAY', 'CON', 'CRD', 'PAD', "ADJ", "ACC", "NSF", "COR", "PADR")
    THEN discount_taken_amount *-1
    Of OTHER discount_taken_amount
    END,
    0.00,
    NULL VALUE
    OF fin_transaction
    WHERE invoice_nbr = InvoiceNbr
    AND payment_nbr IS NOT NULL
    ORDER OF COALESCE(gl_date,transaction_date),
    transaction_nbr;

    SELECT after_balance_amount
    IN AfterBalanceAmount
    OF fin_transaction
    WHERE invoice_nbr = InvoiceNbr
    AND payment_nbr IS NULL;

    Recalculate OPEN;

    LOOP

    FETCH recalculate IN TransactionNumber
    TransactionAmount,
    DiscountTakenAmount;
    OUTPUT WHEN recalculate % NOTFOUND;

    AfterBalanceAmount: = AfterBalanceAmount + TransactionAmount + DiscountTakenAmount;

    UPDATE fin_transaction
    SET after_balance_amount = AfterBalanceAmount,
    after_status = CASE WHEN AfterBalanceAmount = 0.00
    THEN 'C '.
    ELSE 'O'
    END
    WHERE transaction_nbr = TransactionNumber;

    END LOOP;
    Recalculate the RELATIVES;

    END LOOP;
    CLOSE transaction;
    END IF;

    END AFTER STATEMENT;

    END;
    /

    ENGAGE
    /

    Here is the statement of "insert" the origin of the problem:

    INSERT INTO fin_transaction (transaction_nbr, invoice_nbr, payment_nbr, transaction_amount,

    gl_date, transaction_type, discount_amount, transaction_date, reversed_transaction_nbr,

    discount_taken_amount, after_balance_amount, after_status, financial_source, add_by, add_date,

    remaining_onaccount)

    (SELECT 255793, invoice_nbr, payment_nbr, transaction_amount)

    , TO_DATE (' 03/05/2015-00:00:00 "," DD-MM-YYYY HH24:MI:SS'), 'VCHK,' discount_amount, TO_DATE (' 03/05/2015-00:00:00 "," DD-MM-YYYY HH24:MI:SS'),

    255416, discount_taken_amount, after_balance_amount + transaction_amount + 0.000000, 'o', financial_source, 'PLANGTON,'

    To_date (' 03/05/2015-12:31:44 ',' DD-MM-YYYY HH24:MI:SS'), remaining_onaccount

    OF fin_transaction

    WHERE transaction_nbr = 255416)

    Here is the table of the affected table definition:

    CREATE TABLE fin_transaction
    (
    transaction_nbr number not null,
    number of invoice_nbr null,
    number of payment_nbr null,
    transaction_amount number (18.6) not null,
    gl_date date null,
    transaction_type varchar2 (10) not null,
    discount_amount number (18.6) null,
    transaction_date date not null,
    number of reversed_transaction_nbr null,
    discount_taken_amount number (18.6) default null, 0
    after_balance_amount number (18.6) not null,
    after_status char (1) not null
    CONSTRAINT ckc_fin_tran_after_status CHECK (after_status IN ('O', 'C')),
    remaining_onaccount number (18.6) null,
    financial_source char (3) not null
    CONSTRAINT ckc_fin_tran_financial_source CHECK (financial_source IN ('A / P ',' has / R ""));
    reference_id varchar2 (10) null,
    add_by varchar2 (40) not null default user,.
    add_date date DEFAULT sysdate not null,
    number of payment_journal_nbr null,
    misc_amount number (18.6) null,
    misc_gl_acct_nbr varchar2 (75) null,
    pdu_payment_status char (1) default ' is not null
    CONSTRAINT ckc_fin_tran_pdu_paymentstatus CHECK (pdu_payment_status IN (', 'F', 'W', 'O', 'P')),
    remaining_onaccount_original number (18.6) DEFAULT 0 no no,.
    number of vc_register_nbr null,
    vc_register_addto_flag char (1) default ' is not null
    CONSTRAINT ckc_fin_tran_vc_reg_addto_flag CHECK (vc_register_addto_flag IN ('Y', ' don't)).
    additional_gl_transaction_flag char (1) default ' is not null
    CONSTRAINT ckc_fin_tran_add_gl_trans_flag CHECK (additional_gl_transaction_flag IN ('Y', ' don't)).
    gl_exchange_rate number (20,10) null,
    commodity_id varchar2 (10) null,
    CONSTRAINT pk_fin_transaction PRIMARY KEY (transaction_nbr)
    using index
    tablespace smartsoft_index
    )
    tablespace smartsoft_data
    /

    I can not (for the life of me) see this would cause a trigger of mutation.

    Any help would be appreciated.

    BTW Oracle 11.2.0.2 on Windows 64-bit server.

    Murray

    Problem has been resolved by upgrading to 11.2.0.4 and slight modification to trigger.

  • Problems with variable framerate and a specific codec

    Hi all!

    I recently downloaded the trial version of Premiere Pro, to test whether I should spend my editing software. (I used before Vegas)

    I am happy with the results I get, there are only two major questions:

    I record Gameplay, using Dxtory and codec 'PICVideo MJPEG 3 '. My PC is not a beast, but do I have to be more than enough for the tasks I want to do (running a FX9590, 980ti GTX and 16 GB of Ram).

    (1) However, my CPU is not able to maintain a constant framerate (no matter if it 30, 60 or 120, still dips down by 1 or 2 fps every few seconds)

    I also tested with Plays.TV (which is basically a worse version of shadowplay Nvidia). It records to a variable framerate as well.

    When I put the files in first pro, I notice that the sound is out of sync, after 10-15 minutes. It is not much, maybe not even for a second, but makes the useless video file. My solution was to put the videos in a tool called "hand brake" and re - encode with a constant flow. works perfectly fine, but it's literally the same as rencering 30 GB video. It takes forever.

    (2) this isn't really a problem with the first only, but I'll give it a try, maybe I'll find someone here who has experience with this: to simplify: MJPEG files are previewed first rose. No idea why, every codec I've tried so far worked. (PICVideo devs do not respond to me, even if I paid a f * cking much for their software)

    using a codec different would be an option, but I have not found one that offers the same quality/performance/file size - level yet.

    Sorry for my bad englishing, I train hard

    UPDATE: Nevermind, Morgan MJPEG fixed it...

    Body is not designed to change VFR (Variable Frame Rate) so problems... the conversion at a constant rate is the solution

    OR, use a different screenshot software and save to the CFR

    Free Open Source software http://camstudio.org/

    -best quality for use with Lagarith Lossless http://forums.adobe.com/thread/875797

  • Problem with variable declaration

    I'm developing a multiuser Flash application, using the smartfox Server 2.0, but I'll have a problem with defining/declaration of a variable/object/table and then access. I am trying to set the "curMap" (be it a variable, the matrix, the object, everything that works) within the following function, like the array returned by the server, "resObj". It works fine as long as I only call 'curMap' within this function (see you in line: r_txt.text = curMap ;)) However whenever I try to call the "curMap" on the coding of the image outside the function, it returns under the indefinite form or usually nothing.  Any ideas on how to properly / attribute this? I tried various things (such as _root, _global or setting the var "curMap" outside of the function) with no luck.

    Here is my Code:

    smartfox.onExtensionResponse = function (resObj:Object, type: String)
    {
    If (type is 'xml')
    {
    If (resObj._cmd is "getMap")
    {
    curMap = resObj.db [0];
    r_txt. Text = curMap;
    } Else if (resObj._cmd == "getSurr") {}
    surrMap = resObj.db;
    b_txt. Text = surrMap [0];
    }
    }
    }

    Thank you

    Make sure that you are trying to access this variable before it is defined.  That is to say, which resembles an asynchronous function for the code of this function will probably run AFTER the code that appears in the lines that follow the body of the function.

  • Some problems of variables.

    I have a question, then I would appreciate your help if you do. So, here's the problem. It is AS2.0 btw.

    s=0;
    
    if(s == 0){
    //action here.
    }
    

    It's completely normal, no problems here. s is a variable. But what I was trying code was.

    s0=0;
    s1=0;
    
    q=random(2);
    
    if("s"+q == 0){
    //action here.
    }
    

    Of course, he did not. I tried to flash to check if s0 (or s1 according to random) is equal to 0 or not. Then I tried to define another variable,

    s0=0;
    s1=0;
    
    q=random(2);
    
    qq="s"+q
    
    if(qq==0){
    //action here
    }
    

    Unfortunately, I have nothing again. QQ is not s1 (or s0 by random function), it has been "s1" (or "s0", regardless.)

    So this is where I am stuck. Can someone help me?

    You can use the support notastion to have a string interpreted as an object variable...

    S0 = 0;
    S1 = 0;

    q = Random (2);

    If (this ["s" + q] == 0) {}
    whatever

    }

  • Problem with variable setting on a textfield

    I use createTextField to create a textfield. I also have a textfield of entry with a variable called textline1 (I do not create the inputfield with as).

    I want to display the letters in the created textfiled I am typing into the entry field. Therefore, this to my coed AS:

    _root.createTextField("text1",1,100,100,300,100);

    Text1.variable = textline1;

    Format1 = new TextFormat();

    Format1. Color = 0xff0000;

    Format1. Size = 50;

    Format1. Bullet = false;

    Text1.setTextFormat (format1);

    but it does not work. If anyone see the problem?

    (Sorry for the bad English)

    This code should run after that textline1 contains what you want.  and it will not happen until the text is entered.  so you have a timing problem.

    to resolve, use the method of the textfield onChanged().

  • ItemRender creates 2 of each object. Problems of variable height TextArea

    Ok. I'll start with what I was trying to explain how I found myself here. I tried TextArea with no scroll bar that resized at the height of the text. Googling, it seems to be the solution to do this is to expand the text box and use something like

    var numLines:int = this.mx_internal::getTextField().numLines;
    for (var i:int = 0; i < numLines; i++)
         totalHeight += this.mx_internal::getTextField().getLineMetrics(i).height;
    this.height = totalHeight;
    

    to calculate height. It works, but then I put the component (WrappedText) in a DataGrid control and used an itemRenderer on it and things went wrong.

    What I see is that there are TWO WrappedText objects with just a line in the DataGrid control is created. The only difference when I go back is their parent, for example if I this.toString () in the creationComplete

    MADE:  Main4_0.theContainer.theGrid.ListBaseContentHolder8.Renderer13._Renderer_WrappedText1
    MADE:  Main4_0.theContainer.theGrid.ListBaseContentHolder8.Renderer27._Renderer_WrappedText1
    

    The problem this causes is one of these objects a numlinesrequired equal the number of characters in the text. The other has the correct value (1). So what happens is the dataGrid Gets the wrong height.

    I've trimmed everything down so there is only one line in the table etc. Here is the trace output. FACT is creationComplete of the WrappedText and RESIZE is when it recalculates its size (when the text is printed) and HEIGHT of the GRID is displayed by the creationComplete of the DataGrid

    MADE:  Main4_0.theContainer.theGrid.ListBaseContentHolder8.Renderer13._Renderer_WrappedText1
    RESIZE:  Main4_0.theContainer.theGrid.ListBaseContentHolder8.Renderer13._Renderer_WrappedText1 HEIGHT= 14 NUM LINES 1
    RESIZE:  Main4_0.theContainer.theGrid.ListBaseContentHolder8.Renderer13._Renderer_WrappedText1 HEIGHT= 196 NUM LINES 14
    MADE:  Main4_0.theContainer.theGrid.ListBaseContentHolder8.Renderer61._Renderer_WrappedText1
    RESIZE:  Main4_0.theContainer.theGrid.ListBaseContentHolder8.Renderer61._Renderer_WrappedText1 HEIGHT= 14 NUM LINES 1
    RESIZE:  Main4_0.theContainer.theGrid.ListBaseContentHolder8.Renderer61._Renderer_WrappedText1 HEIGHT= 196 NUM LINES 14
    RESIZE:  Main4_0.theContainer.theGrid.ListBaseContentHolder8.Renderer61._Renderer_WrappedText1 HEIGHT= 14 NUM LINES 1
    GRID HEIGHT= 1402
    
    

    So my main question is this is a reasonable approach or y at - it another way not what I want? That is to say. a DataGrid that contains blocks of variable height, word wrapped text?

    Also, can someone explain what is happening here so I understand what I am doing wrong, for example why 2 objects will be created?

    Another interesting data point (?) is that if I put in an ObjectUtil.toString (this.parent) in the creationComplete of WrappedText the two objects get the value correct numlinesrequired example

    MADE:  Main4_0.theContainer.theGrid.ListBaseContentHolder8.Renderer13._Renderer_WrappedText1
    RESIZE:  Main4_0.theContainer.theGrid.ListBaseContentHolder8.Renderer27._Renderer_WrappedText1 HEIGHT= 14 NUM LINES 1
    RESIZE:  Main4_0.theContainer.theGrid.ListBaseContentHolder8.Renderer27._Renderer_WrappedText1 HEIGHT= 196 NUM LINES 14
    RESIZE:  Main4_0.theContainer.theGrid.ListBaseContentHolder8.Renderer27._Renderer_WrappedText1 HEIGHT= 14 NUM LINES 1
    MADE:  Main4_0.theContainer.theGrid.ListBaseContentHolder8.Renderer27._Renderer_WrappedText1
    GRID HEIGHT= 142
    RESIZE:  Main4_0.theContainer.theGrid.ListBaseContentHolder8.Renderer13._Renderer_WrappedText1 HEIGHT= 14 NUM LINES 1
    RESIZE:  Main4_0.theContainer.theGrid.ListBaseContentHolder8.Renderer13._Renderer_WrappedText1 HEIGHT= 14 NUM LINES 1
    RESIZE:  Main4_0.theContainer.theGrid.ListBaseContentHolder8.Renderer27._Renderer_WrappedText1 HEIGHT= 14 NUM LINES 1
    
    

    Note that the NUM LINES changed and the RESIZING is done after the creationComplete of the grid.

    An explanation of the foregoing would be nice so why dumping simply the object causing completely different behaviors?

    I have attached the source of my simple text program. Thank you

    Stuart.

    The creation of two converters maybe because the DataGrid creates additional converters purely for the measure. I think that this only happens if variableRowHeight is set to true. If you take a look at the source of the DataGrid and search for 'calculateRowHeight()' you will see that it calls the method "getMeasuringRenderer()" on each column to calculate the height of each row.

    Your measurement problem can be because the width of the measurement converter is not set with the same value as the width of the rendering on the screen tool. I would put a breakpoint inside the method "setupRendererFromData" of DataGrid to see what the explicitWidth is defined. Looks like that the measurement converter should be set to the width of the column. Maybe set a width explicit on your column, if you do not already.

  • Problem with variables stored in memory/cookies.

    I'm not really sure what's going on, but that's what happens.

    I have a swf file that connects to a server through a file, but that seems to hold some variables in memory or something to make it works fine the first time it is loaded, when I load the page again, either the browser or the drive is not compensation on the previous values. I don't know if there is a way to ensure that the swf file when it loads ensures don't not to keep the values in the cache.  In fact, it seems that the only way to get around my problem is to erase cookies from my site and then recharge.

    Any ideas?

    site: http://condechi.com/test/movieTest.html

    Thank you

    O

    generally speaking, adding a query with changing value string will prevent items being retrieved in the browser cache.

  • problem with variable/table setting

    Hello

    in a flash model, I found several buttons with almost the same action script code. When you press the button a popup window with different text (for each button a single text).

    the following code in the code section, buttons, only the last two codelines are different for each button.

    (release)
    {
    _root.scrHEIGHT = 200;
    _root.scroller.scroller.gotoAndStop (2);
    _root.scroller._x = 100;
    _root.scroller._y = 90;
    _root. TM_title = "Info Box";
    _root. READ = 22;
    }

    so, I think that the entry of the single text for each button is managed in the last line '_root '. READ = 22 ".

    I also found the parts of text of belonging to the library. now, my problem is that I don't know where the connection is defined between the text and the variable READ/table. in this case, the connection is 22, but I find all well in the part of text or the property of the button when the connection is set to 22. I'm using flash cs4. anyone could help me?

    Thank you very much

    Pascal

    You said that you were able to locate the text elements in the library.  What about them implies numbers, you see?  Right click on them and examine their properties and Assembly.

    Also, what do you find in the _root.scroller.scroller framework 2?

Maybe you are looking for