TreeItemRenderer duplicates branch content on reopen

Hi
I wrote a custom tree item renderer but it behave really strangely. Just look at the example I prepared and open/close "group 1" node:
example (source is available)
I spent a lot of time finding out how to create a custom tree item renderer with a complex component as a node (not in example because I simplified it) and I really need to make it work somehow. I just hope that flex is not so crappy that I'll have to write my own tree component...

You are sooo right, thank you it was recycling issue - I didn't realize that efficiency stuff. Great post anyway.
ps.
Recently I've posted some problem here which was solved but not completly. I see that you have a great knowledge in the flex subject so if you dont't mind I'll be glad if you look at the discussion (there is not much to read). It's not high priority stuff - I'm just curious what is the reason.

Similar Messages

  • Duplicate Cell Contents n-times based on value in neighboring cell?

    I have a sheet/table that contains ~150 rows of 2 columns:
    A B
    COUNT CONTENT
    I am looking for a way to duplicate each CONTENT in a new sheet/table COUNT times, and do this for each row.
    For example
    A B
    2 RED
    1 BLUE
    3 GREEN
    Would give me a sheet/table that contains one column that reads:
    RED
    RED
    BLUE
    GREEN
    GREEN
    GREEN
    Any ideas? Thanks in advance.

    Here is a modified version .
    (1) I added comments helping you to understand its behaviour.
    (2) added a property (use_GUIscripting) allowing you to choose the script's behaviour.
    - if you use GUI scripting, the set of datas is inserted in the table as a whole.
    - if you doesn't use it, the values are inserted one by one which is a bit slower.
    So I decided to give you freedom. You may make your own choice.
    --[SCRIPT buildand_fill_newtable]
    Enregistrer le script en tant que Script : buildand_fill_newtable.scpt
    déplacer le fichier créé dans le dossier
    <VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Numbers:
    Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
    Merci à Scott Lindsey & Ed.Stockly du forum [email protected]
    qui m'ont aidé à construire le code récupérant le bloc sélectionné.
    Sélectionner le bloc de cellules contenant les paramètres à utiliser.
    aller au menu Scripts , choisir Numbers puis choisir buildand_fill_newtable
    --=====
    L'aide du Finder explique:
    L'Utilitaire AppleScript permet d'activer le Menu des scripts :
    Ouvrez l'Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
    Cochez la case "Afficher le menu des scripts dans la barre de menus".
    +++++++
    Save the script as a Script buildand_fill_newtable.scpt
    Move the newly created file into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
    une_valeur you would have to create the folder Numbers and even the folder Applications by yourself.
    Thanks to Scott Lindsey & Ed.Stockly from [email protected]
    which helped me to build the code grabbing the selected range.
    Select the range of cells containing parameters to use.
    go to the Scripts Menu, choose Numbers, then choose buildand_fill_newtable
    --=====
    The Finder's Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the "Show Script Menu in menu bar" checkbox.
    Under 10.6.x,
    go to the General panel of AppleScript Editor’s Preferences dialog box
    and check the “Show Script menu in menu bar” option.
    --=====
    Yvan KOENIG (VALLAURIS, France)
    2010/09/02
    -- added comments and ability to choose between use GUIscripting and doesn’t use it
    --=====
    property use_GUIscripting : false
    true = use GUIscripting and paste values
    false = doesn't use GUIscripting
    property theApp : "Numbers"
    property les_valeurs : {}
    property nouvelles_valeurs : {}
    --=====
    on run
    local dName, sName, tName, rname, rowNum1, colNum1, rowNum2, colNum2, le_nombre, la_valeur
    if use_GUIscripting then my activateGUIscripting()
    my nettoie()
    try
    Extract infos about the source range *)
    set {dName, sName, tName, rname, rowNum1, colNum1, rowNum2, colNum2} to my getSelParams()
    tell application "Numbers" to tell document dName to tell sheet sName
    tell table tName
    Extract the values of selected cells *)
    set my les_valeurs to value of cells colNum1 thru colNum2 of rows rowNum1 thru rowNum2
    --> {{2.0, "bleu"}, {3.0, "blanc"}, {5.0, "rouge"}, {1.0, "vert"}, {4.0, "noir"}, {6.0, "violet"}}
    end tell -- table
    repeat with une_reference in my les_valeurs
    set {le_nombre, la_valeur} to contents of une_reference
    repeat le_nombre times
    copy la_valeur to end of my nouvelles_valeurs
    end repeat
    end repeat
    --> {bleu, bleu, blanc, blanc, blanc, rouge, rouge, rouge, rouge, rouge, vert, noir, noir, noir, noir, violet, violet, violet, violet, violet, violet]
    Build an unique name for the new table *)
    set nouveau_nom to (do shell script "date +table%Y%m%d%H%M%S")
    if use_GUIscripting then (*
    Create a small new table *)
    make new table with properties {name:nouveau_nom, row count:3, column count:3}
    else (*
    Create a new table with the needed rows *)
    set rows_needed to count of nouvelles_valeurs
    make new table with properties {name:nouveau_nom, row count:rows_needed + 1, column count:3}
    end if
    As the default table has header row an header column, remove such items *)
    tell table nouveau_nom
    remove row 1
    remove column 1
    set selection range to cell "A1"
    end tell
    end tell
    if use_GUIscripting then
    --> the handler 'recolle' concatenate the values of the list nouvelles_valeurs in a text with values separated by return character.
    bleu
    bleu
    blanc
    blanc
    blanc
    rouge
    rouge
    rouge
    rouge
    rouge
    vert
    noir
    noir
    noir
    noir
    violet
    violet
    violet
    violet
    violet
    violet
    set the clipboard to my recolle(my nouvelles_valeurs, return)
    Triggering the menu item paste the entire set of values in a single task *)
    my selectMenu("Numbers", 4, 7) (* Paste Applying Style *)
    else
    Here we aren’t using GUI scripting so we must fill cells one by one. *)
    tell application "Numbers" to tell document dName to tell sheet sName to tell table nouveau_nom to tell column 1
    repeat with r from 1 to rows_needed
    The coercion as text is required to get rid of a Numbers bug. If the system doesn’t use decimal comma,
    inserting AppleScript decimal numbers (which use the decimal period) inserts a value like 12.34 which is treated as a string.
    If we coerce as string, the cell receive 12,34 which is correctly treated as a number *)
    set value of cell r to item r of nouvelles_valeurs as text
    end repeat
    end tell -- Numbers…
    end if
    end try
    Clear properties so that their contents will not be stored in the script. *)
    my nettoie()
    end run
    --=====
    on nettoie()
    set my les_valeurs to {}
    set my nouvelles_valeurs to {}
    end nettoie
    --=====
    set {rowNum1, colNum1, rowNum2, colNum2} to my getCellsAddresses(dname,s_name,t_name,arange)
    on getCellsAddresses(d_Name, s_Name, t_Name, r_Name)
    local two_Names, row_Num1, col_Num1, row_Num2, col_Num2
    tell application "Numbers"
    set d_Name to name of document d_Name (* useful if we passed a number *)
    tell document d_Name
    set s_Name to name of sheet s_Name (* useful if we passed a number *)
    tell sheet s_Name
    set t_Name to name of table t_Name (* useful if we passed a number *)
    end tell -- sheet
    end tell -- document
    end tell -- Numbers
    if r_Name contains ":" then
    set two_Names to my decoupe(r_Name, ":")
    set {row_Num1, col_Num1} to my decipher(d_Name, s_Name, t_Name, item 1 of two_Names)
    if item 2 of two_Names = item 1 of two_Names then
    set {row_Num2, col_Num2} to {row_Num1, col_Num1}
    else
    set {row_Num2, col_Num2} to my decipher(d_Name, s_Name, t_Name, item 2 of two_Names)
    end if
    else
    set {row_Num1, col_Num1} to my decipher(d_Name, s_Name, t_Name, r_Name)
    set {row_Num2, col_Num2} to {row_Num1, col_Num1}
    end if -- r_Name contains…
    return {row_Num1, col_Num1, row_Num2, col_Num2}
    end getCellsAddresses
    --=====
    set { dName, sName, tName, rname, rowNum1, colNum1, rowNum2, colNum2} to my getSelParams()
    on getSelParams()
    local r_Name, t_Name, s_Name, d_Name
    set {d_Name, s_Name, t_Name, r_Name} to my getSelection()
    if r_Name is missing value then
    if my parleAnglais() then
    error "No selected cells"
    else
    error "Il n'y a pas de cellule sélectionnée !"
    end if
    end if
    return {d_Name, s_Name, t_Name, r_Name} & my getCellsAddresses(d_Name, s_Name, t_Name, r_Name)
    end getSelParams
    --=====
    set {rowNumber, columnNumber} to my decipher(docName,sheetName,tableName,cellRef)
    apply to named row or named column !
    on decipher(d, s, t, n)
    tell application "Numbers" to tell document d to tell sheet s to tell table t to ¬
    return {address of row of cell n, address of column of cell n}
    end decipher
    --=====
    set { d_Name, s_Name, t_Name, r_Name} to my getSelection()
    on getSelection()
    local _, theRange, theTable, theSheet, theDoc, errMsg, errNum
    tell application "Numbers" to tell document 1
    repeat with i from 1 to the count of sheets
    tell sheet i
    set x to the count of tables
    if x > 0 then
    repeat with y from 1 to x
    try
    (selection range of table y) as text
    on error errMsg number errNum
    set {_, theRange, _, theTable, _, theSheet, _, theDoc} to my decoupe(errMsg, quote)
    return {theDoc, theSheet, theTable, theRange}
    end try
    end repeat -- y
    end if -- x>0
    end tell -- sheet
    end repeat -- i
    end tell -- document
    return {missing value, missing value, missing value, missing value}
    end getSelection
    --=====
    on parleAnglais()
    local z
    try
    tell application "Numbers" to set z to localized string "Cancel"
    on error
    set z to "Cancel"
    end try
    return (z is not "Annuler")
    end parleAnglais
    --=====
    on decoupe(t, d)
    local oTIDs, l
    set oTIDs to AppleScript's text item delimiters
    set AppleScript's text item delimiters to d
    set l to text items of t
    set AppleScript's text item delimiters to oTIDs
    return l
    end decoupe
    --=====
    on recolle(l, d)
    local oTIDs, t
    set oTIDs to AppleScript's text item delimiters
    set AppleScript's text item delimiters to d
    set t to l as text
    set AppleScript's text item delimiters to oTIDs
    return t
    end recolle
    --=====
    on activateGUIscripting()
    (* to be sure than GUI scripting will be active *)
    tell application "System Events"
    if not (UI elements enabled) then set (UI elements enabled) to true
    end tell
    end activateGUIscripting
    --=====
    my selectMenu("Pages",5, 12)
    ==== Uses GUIscripting ====
    on selectMenu(theApp, mt, mi)
    tell application theApp
    activate
    tell application "System Events" to tell process theApp to tell menu bar 1 to ¬
    tell menu bar item mt to tell menu 1 to click menu item mi
    end tell -- application theApp
    end selectMenu
    --=====
    --[/SCRIPT]
    Yvan KOENIG (VALLAURIS, France) 2 septembre 2010 15:53:49

  • How to duplicate iPad content to another iPad

    Hello
    i have iPad 1 16gb with ios5
    i just purchased an app called LaCarte to create my own digital restaurant menu
    it was a long task, but now i completed and my menu is ready with all the food, photos, description and so
    How can i duplicate the content of the app to another iPad?
    Will it work if i manually do backup in itunes and then restore the new iPad with that backup? The restaurant menu app will still work and will it be full of my previously-generated content?
    Is there a problem if i restore on more than 5 devices? or need i simply to buy another license?
    I would like to know this in advance before buying other iPads
    Thank you very much
    Davide

    Since the menu creation was a long task you should back up that information to prevent its loss should something go wrong with the iPad. Check with the developer of the app to see if the app supports iTunes file sharing. If it does you can share the file to iTunes on your computer and keep a copy on your computer. You could also share the file to a different iPad as well.
    The main thing though is to have a backup. There are many many posts on these forums asking how to retrieve something that was deleted or lost when the iPad had to be restored.

  • When will the "SAVE AS" command return?  In Lion have to "Duplicate" then rename, then reopen new document

    When will the 'SAVE AS" command return, or is there a work aroiund the "Duplicate", rename, then reopen new document procedure that is now in Lion / Pages.  I just want my old save as command back.

    Roger,
    What Peter said, plus, you're making it sound worse than it is. You Duplicate, work on the duplicate and when you're done working on it, you save it.
    After Duplicating, both copies are open until you do something with them.
    You can continue to edit both or you can close one of both of them.
    Jerry

  • When I send an email, it duplicates the content in same email?

    I am having a problem that is brand new.  When I send an email, the recipient is receiving the same content twice in the same email.  How can I fix this?

    Send yourself a test e-mail and see if it does that. It could be the recipients e-mail program.

  • Duplicate content of region fields in the region and keep some fields

    duplicate content of region fields in the region and keep some fields displayed in this region and some not.
    Our customer wants to duplicate the content of the region fields and 3 fields of this region (one of them is the key from the table ) have to be shown empty and have to be recreated when he does the next commit. The other 25 fields have to be filled with the content before. (I have to do a commit before I show the region again without these three fields)
    What I did:
    When I have a botton with request CHANGE then APEX does the change without emptying the fields. I tried to make processes on this request which should empty my three fields, but the processes never fire (I see it in the debug and I don't know why, I putted them on every process point for testing)
    The second try:
    On my button with request CHANGE , I filled the 'set these items ' with my three fields and the 'with these items' with 2 commas ,, to set these items null.
    I do no claer cache, but APEX empties the hole region.
    Can you help me??
    Thanks Uta

    Hi Uta,
    OK - This is what I did:
    1 - Page 15
    On the EMPNO column, I have a link to page 18. I set P18_EMPNO to #EMPNO#. I assume that you already have this functionality to link from the report page to the form page. There are no changes required to this page.
    2 - Page 18
    I have created a hidden field called "P18_EMPNO_COPY". There are no special settings for this item - I've just put it at the bottom of the region containing all of the other items
    I have created a button called "P18_COPY". This has a Conditional Display set with a Condition Type of Value of Item in Expression 1 IS NOT NULL and Expression 1 of P18_EMPNO. This has an Option URL Redirect set for it with the following settings:
    Target is a - Page
    Page - 18
    Set These Items - P18_EMPNO,P18_EMPNO_COPY
    With These Values - ,&P18_EMPNO.
    I have created a Process to run "On Load - After Header". The PL/SQL code for this is:
    DECLARE
    emp_rec EMP%ROWTYPE;
    BEGIN
    SELECT * INTO emp_rec FROM EMP WHERE EMPNO = :P18_EMPNO_COPY;
    :P18_EMPNO := NULL;
    :P18_JOB := emp_rec.JOB;
    :P18_MGR := emp_rec.MGR;
    :P18_SAL := emp_rec.SAL;
    :P18_DEPTNO := emp_rec.DEPTNO;
    END;
    This has a Conditional Processing Condition Type of "Value of Item in Expression 1 is NOT NULL" and Expression 1 shows P18_EMPNO_COPY
    Finally, for each field, I have added in a Default Value that points to itself (For example, the P18_JOB field has a Default Value of :P18_JOB) with a Default Value Type of PL/SQL Expression.
    Obviously you will need to replace the field and item names with those for your table and form.
    This process does the following:
    1 - The user clicks the link in the report on page 15. P18_EMPNO gets populated with the EMPNO value of the item select.
    2 - Page 18 is loaded with the data relating to the record with the ID found in P18_EMPNO
    3 - The Copy button is displayed only if P18_EMPNO contains a value
    4 - The user clicks the Copy button
    5 - The P18_EMPNO value is copied into P18_EMPNO_COPY and P18_EMPNO is blanked out
    6 - The page is submitted with these changes. When it reloads, the new process kicks in
    7 - This process will:
    (A) Create a variable based on the record structure for the EMP table
    (B) Fill this variable with the data in the table for the ID that's now in P18_EMPNO_COPY
    (C) Set the session state values for the fields that need to be repopulated with the data now retrieved into the variable
    (D) Clear the P18_EMPNO session state value
    8 - When the page starts to load the form, it will see that there is no P18_EMPNO value and, therefore, will not bring in any information from the table. However, as we have now set the Default Value settings for each field, this will force it to retrieve the values we've stored using the new process and display these values in the form.
    I think I've detailed everything - if this doesn't work, please let me know!
    Regards
    Andy

  • Close PDF file and reopen it

    In my process i added a custom annot through SDK 8 version 2.
    After that I save the PDF file by PDDocSaveWithParams() and then close PDF:
    ASFileMode fMode = ASFileGetOpenMode (asFile);
    ASErrorCode err = ASFileClose (asFile);
    ASBool docC = AVDocClose (avDoc, false) ;
    I watch the value of docC,it's 0,means close failed, I don't know why failed.But the Doc the closed and I change the file content using C file function like fopen, fread ,fwrite, fclose.
    Then I reopen the file:
    err = ASFileSysOpenFile (ASGetDefaultFileSys(), aspName, fMode, &asFile);
    if(err != 0){
    DWORD dwErr = GetLastError();
    AVDoc openedDoc = AVDocOpenFromASFileWithParams(asFile, NULL, NULL);
    But the file is not opened.
    In Acroabt 7 I just use AVDocClose(avDoc, false),change file content then reopen file AVDocOpenFromFile (aspName, ASGetDefaultFileSys(), NULL) and all are OK.I don't know what different of close doc between 7 and 8.
    How to close doc and reopen it correctly in Acrobat 8?
    Any idea?
    thanks,
    Jasper

    I use Acrobat 8 Visual stdio app wizard to create a test project.
    In this project I found that if i call close doc and reopen doc by menu it's OK,but if i call it by tool button it's not opened.
    Step further,I found that at the DoClick event of AVToolRec will cause failure, the event will response when mouse clicking the page.
    So i am wonder that if i can not call close doc and reopen doc in DoClick?
    If not how can I resolve this problem? I want to get the click position.
    Thanks for help.
    Jasper.

  • Mail Adapter & Mail package - pb of content

    Hi,
    I want to send an email from XI to my mail server (Lotus) by using the Mail Adapter with option "Use mail package".
    I have just succeed to send email with only <b>ONE line</b> because of field "content" which has an occurence 0..1.
    How is it possible to have several lines?
    When I try to duplicate field "content" or to change its occurence (0..Unbounded), then I don't receive an email?
    <i>Note: Unfortunatelly, I don't know XSL / XSLT mapping.</i>

    If you want to have several lines, you have to put EOL within the one "content" tag like this:
    <ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30">
      <Subject>Hello</Subject>
      <From>[email protected]</From>
      <To>[email protected]</To>
      <Content>row1
    row2
    row3
    row4</Content>
    </ns:Mail>
    Sorry, I can only give you an XSLT example to do this.  Assume your original message payload is:
    <root>
      <text>row1</text>
      <text>row2</text>
      <text>row3</text>
      <text>row4</text>
    </root>
    you can use following XSLT file, which you attach directly to the Mail Adapter (like described in another thread):
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
      <xsl:output method="xml" indent="yes" />
      <xsl:template match="*">
        <ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30">
          <Subject>Hello</Subject>
          <From>[email protected]</From>
          <To>[email protected]</To>
          <Content><xsl:apply-templates/></Content>
        </ns:Mail>
      </xsl:template>
      <xsl:template match="text">
        <xsl:value-of select="."/>
      </xsl:template>
    </xsl:stylesheet>
    Regards
    Stefan

  • Duplicate SD card to larger SD card?

    Hi, I'm trying to duplicate the contents of the 16GB micro SD card that came with my Xperia Play to a larger 32GB card. I've been using a file manager to simply copy the contents across to the new card, but I often get errors and then it will stop and give up.
    After doing a bit of research online and reading this: http://forum.xda-developers.com/showthread.php?t=897408, I don't use Linux and the thread goes off on a bit of a tangent. The topic is regarding HTC Hero, but I would assume that this isn't device specific?
    It seems you can't just copy the files because the 16GB card has partitions. Looking at the volume in Disk Management, Win7, there are no patitions on the card.
    So, what is the best method of duplicating the contents of the card? Or is there some copy protection in place and I'm stuck with the 16GB card, which I want to use with my Cowon J3 media player.
    Thanks
    Solved!
    Go to Solution.

    Thanks for the reply, Dr_Chris.
    After I posed the question, I thought about it some more.. formatted the new card again and have tried a slightly different way.
    Instead of copying on-the-fly, card to card, which is really slow. I've copied to contents to a new folder on my laptop. Then copied the contents of the folder to the new card.
    It's currently at about 98% progress with one error in a MP3 file, whereas it would quit at around 40% on-the-fly. I can easily rip the CD again and replace the corrupt file.
    If this doesn't work, then I'll try the method you suggested.
    Thanks again.

  • Another RMAN duplicate problem - RAC database to single instance

    Hi,
    I have a problem with the RMAN duplicate procedure and was hoping someone can help.
    I would like to create a duplicate of our production RAC database on a separate, stand-alone, database server on another site. This duplicate will be used for intensive querying by another business unit who I don't want to have access to our production database.
    My procedure goes like this:
    1. Create a disk (not ASM) based backup of the datafiles and any archived redo logs:
    "run {
    allocate channel d1 type disk;
    backup format '/u02/stage/df_t%t_s%s_p%p' database plus archivelog delete input;
    release channel d1;
    2. Tar and scp these files to the same location on the stand-alone database server.
    3. In the meantime, work has been happening on the production database and further archived redo logs have been generated. I don't really care about these logs for the purposes of the duplicate however, I just want to duplicate to the point of the recent backup. To do this, I run the following SQL to determine the sequence number that I should be duplicating up to:
    "select max(sequence#), thread# from v$archived_log where deleted='YES' group by thread#;"
    4. Duplicate the production database to the stand-alone database (all the SQL Net stuff is working).
    "run {
    set until sequence (value returned by above SQL statement);
    duplicate target database to XXX;
    However, my problem arises because I don't know how to handle the fact that there are two threads. I understand that each thread relates to one of the RAC instances, I just don't know which one to specify for the duplicate. We have a database service which the client application connects through, and that service runs on on or other of the instances. Should I just care about the logs from the instance where the service is currently running?
    Am I even approaching this is the correct way?
    I look forward to any help that people may be able to offer.
    Regards,
    Phil

    Hi Werner,
    Thanks again for your help, there is still something wrong though. "list backup of archivelog all;" shows:
    BS Key Size Device Type Elapsed Time Completion Time
    3784 202.34M DISK 00:00:08 28-OCT-09
    BP Key: 3784 Status: AVAILABLE Compressed: NO Tag: TAG20091028T111718
    Piece Name: /u02/stage/df_t701435838_s3820_p1
    List of Archived Logs in backup set 3784
    Thrd Seq Low SCN Low Time Next SCN Next Time
    1 9746 569095777 28-OCT-09 569150229 28-OCT-09
    1 9747 569150229 28-OCT-09 569187892 28-OCT-09
    1 9748 569187892 28-OCT-09 569231956 28-OCT-09
    1 9749 569231956 28-OCT-09 569259816 28-OCT-09
    2 7931 569095774 28-OCT-09 569187902 28-OCT-09
    2 7932 569187902 28-OCT-09 569259814 28-OCT-09
    BS Key Size Device Type Elapsed Time Completion Time
    3787 1.04M DISK 00:00:02 28-OCT-09
    BP Key: 3787 Status: AVAILABLE Compressed: NO Tag: TAG20091028T112222
    Piece Name: /u02/stage/df_t701436142_s3823_p1
    List of Archived Logs in backup set 3787
    Thrd Seq Low SCN Low Time Next SCN Next Time
    1 9750 569259816 28-OCT-09 569261110 28-OCT-09
    2 7933 569259814 28-OCT-09 569261108 28-OCT-09
    You can see that the highest sequence number is 9750 of thread 1, and that the Low and Next SCNs are 569259816 and 56926111. However, when I look at the output of the RMAN duplicate command:
    contents of Memory Script:
    set until scn 569505448;
    recover
    clone database
    delete archivelog
    executing Memory Script
    executing command: SET until clause
    Starting recover at 28-OCT-09
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: sid=39 devtype=DISK
    starting media recovery
    Oracle Error:
    ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
    ORA-01194: file 4 needs more recovery to be consistent
    ORA-01110: data file 4: '/u02/sca-standby/data/users.260.623418479'
    RMAN-03002: failure of Duplicate Db command at 10/28/2009 16:12:55
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06053: unable to perform media recovery because of missing log
    RMAN-06025: no backup of log thread 2 seq 7936 lowscn 569411744 found to restore
    RMAN-06025: no backup of log thread 2 seq 7935 lowscn 569321987 found to restore
    RMAN-06025: no backup of log thread 2 seq 7934 lowscn 569261108 found to restore
    RMAN-06025: no backup of log thread 1 seq 9758 lowscn 569471890 found to restore
    RMAN-06025: no backup of log thread 1 seq 9757 lowscn 569440076 found to restore
    RMAN-06025: no backup of log thread 1 seq 9756 lowscn 569411439 found to restore
    RMAN-06025: no backup of log thread 1 seq 9755 lowscn 569378529 found to restore
    RMAN-06025: no backup of log thread 1 seq 9754 lowscn 569358970 found to restore
    RMAN-06025: no backup of log thread 1 seq 9753 lowscn 569321882 found to restore
    RMAN-06025: no backup of log thread 1 seq 9752 lowscn 569284238 found to restore
    RMAN-06025: no backup of log thread 1 seq 9751 lowscn 569261110 found to restore
    you can see that something is setting the recovery SCN to 569505448 which higher even then any of the archived logs mentioned above. If I select current_scn from the production database, this gives me 569528258 which is closer to the value which RMAN is expecting to recover to than any of the archived redo logs.
    Can you think what might be causing RMAN to try to recover to this value? and why does it appear to be ignoring the SET UNTIL SEQUENCE command?
    Cheers,
    Phil

  • Create print.css that repeats the content twice on page when printed

    Clear as mud, right?  I have a form that the user can fill in and then print to bring to the office.  They need two copies.  It fits on half of the page and could be printed twice on one page and then torn in half in the office.  This would save the user paper.
    I have a @media print css that removes everything from the page except the content div and it works fine.  Is there a way to repeat that div twice on the page via the css?
    Here's the css code:
    @media print {
        .sidebar1, .sidebar2, .title, .title2, .footer { display:none}
        .content { position:absolute;top:10px;left:10px}

    I have never tried to do anything like that in Dreamweaver - this is more a printer management thing. Can you not set the printer up to tile the page so it displays 2 copies on each page?
    Having said that, the only workaround I can think of (someone else might have another idea) is to duplicate your content div in the HTML and position it under your first, then {display:none} the 2nd div in screen.css and turn it on with the print.css.
    Edit:// Having read a little closer, this would only work with static content. The fact you are using a form would be more difficult as you would need to populate both divs with their content.

  • WebCenter Content Architecture

    Hello everyone,
    I just need an advice on how to solve a particular client's document management requirement. Need help on a good (if not best) architecture for their case.
    In a nutshell, they have satellite/offsite branches that can receive documents from their customers. They want to get those documents digitized and kept in a doc. mgmt. solution. I've looked into some implementation examples from this site: http://docs.oracle.com/cd/E10316_01/cs/cs_doc_10/implementation/wwhelp/wwhimpl/js/html/wwhelp.htm
    but there's no WCC configuration where a content contributor is outside the client's intranet (or extranet). Is it ok to just have one Content Server in the head office/data center, and the branches can connect to WCC (client-server mode) from a different geographical location? Or should there be a branch content server where scanning is available?
    Hope you can throw in some ideas.
    Thanks,
    Jason

    Thank you for the explanation! I've commented inline on some of the items.
    Well, I don't know. This very much depends on what requirements
    > get those documents digitized and kept in a doc. mgmt. solution
    and
    > a content contributor is outside the client's intranet
    really mean.
    The process basically is that customers go to either the head office or satellite branches to file an application. In order for the application to be processed, supporting documents must be presented. Currently, the client is photocopying these documents and filing away manually in cabinets. If an application needs to be reviewed again later, they need to sift through their storage.
    Since they can accept applications from different locations, scanning and indexing (or in WCC, uploading/checking-in) of documents will be outside the data center where WCC will reside.
    a) It is certainly true that WebCenter Content is a centralized, not distributed system.
    OK, noted!
    b) There are few exceptions (that might be irrelevant to your use case)
    Desktop Integration Suite supports also offline mode (for reading, but even updates of documents)
    Some news from PM suggest that the new 11.1.1.8 release will support mobile solutions, where content can be ingested even in offline mode (where a mobile device has no signal)
    The mobile support will definitely be great as some branches have limited physical space. Although, I might put this in the backburner for now.
    However, those scenarios are usually only for exceptions - you cannot expect that a remote site would work with a single DIS client and/or mobile device.c) ODDC is also a centralized solution, but you could have one ODDC server per branch, if necessary, supplemented by ODC. However, ODC/ODDC can be used only for content ingestion (scanning/importing documents, initial metadata). Once a document is committed to a content repository, it is (usually) no longer available. Besides, there is no support for scenarios like searching, revisions, content retrieval, etc.d) Even though, WCC is a centralized system, it does not mean that you could not try to implement a distributed scenario using content migration/replication (Archiver utility). There are, however, two main reasons against it:
    Costs - CPU/NUP license model is very effective for a centralized solution, because you can benefit from synergy effects of clustering. I remember a project where we had 80+ branches, altogether with 4K+ users that could run on something like 4 CPUs (eq. to 200 NUPs), if centralized
    Manageability - everyone in OCS (Oracle Consulting Services) strongly discouraged us from any distributed design. Imagine a star architecture, where you have one central node containing everything, and a number of smaller branch systems containing items "belonging" to the branch. Unless the product supports a distributed locking (check-out) you can easily end up with inconsistent data. Again, there can be exceptions - in our case, we had just one revision, data were synchronized overnight and it could never happen that data was updated by anyone, but the branch that "owned" them.
    In our case, the issue was the internet connectivity, and fortunately, we were finally able to convince the customer to solve the root cause, rather than go with an overkill architecture.
    I think the architecture can survive with just one ODDC server where branches (not that many) can connect and send scanned documents to. There are no hard requirements on revisions yet. I also need an application to actually encode the customer's application, and is thinking of a custom-made ADF application, deployed on the WLS where WCC will run on. Or can I just create pages on WCC and expose that?
    IMHO,
    > a content contributor is outside the client's intranet (or extranet)
    is not an argument for a distributed architecture.
    OK, understood.
    If your concern is security, you may install web server to DMZ. One remaining challenge might be managing user identities, but even for that there are solutions available.
    OK, I'll look into this.
    Thanks for all the inputs!

  • Comparing folder contents

    Hi all
    This is a it embarrassing to be honest, but I find myself in a bit of a filing based mess.
    The background - skip if you don't want to hear bleating about how poor my filing is
    In a fit of idiocy I have made many duplicate folders (including multiple duplicates of content such as my 15,000 image photo library) to ensure safety of the files therein. I've done this a lot of the last three years, and find myself now in a position where I haven't got a clue what is where, and what is up-to-date.
    I have 600G odd drive space.
    I have 1 50G iMovie project, a large iPhoto library and quite a bit of music.
    I have 30G free - mainly because of my completely slap-dash method of 'backing up' - which I realise I'm not actually doing - and also because I have a lot of files copied here from other desktops, laptops and iPods.
    The question
    Obviously I have a task on my hands to sort this lot out. What would make my life a lot easier would be an application that compares the contents of two folders, and shows me where they differ - this way I am hoping to be able to completely erase great swathes of files without having to comb through them making sure I don't loose an iSight screen grab of my son smashing his Buzz into the screen or some-such. Anyone know of anything that would make my life easier here?
    I used to be fairly ordered about where I put files, and how my folders are structured, honest.
    Thanks for any help / advice / smacks on the back of the hand...
    Flea

    Arctic
    Well you have a nice project to pass the Winter nights!
    Do a search on http://www.macupdate.com using 'duplicate' as the search term. This will provide you with quite a few apps which claim to search for and remove duplicate files. Read and make your choices there.
    However, do not trash any file without reviewing it yourself. There are some things a computer cannot do, and recognising emotionally valuable items is one of them.
    Have fun.
    Regards
    TD

  • CS6 content aware fill and spot healing smudge

    I just upgraded to CS6 64 bit under Windows 7.  I used content aware fill and the spot healing tool on CS5 under XP with no problems.  Now under CS6 they leave a smudge.  For example, if the is a spot on a vein of a leaf, now, instead of removing the spot and filling in the line of the vein I just get a smudge the size of the spot healing brush.
    Content aware fill now leaves a smudged and obviously poor result.
    Is there some new option or behavior under CS6 that I need to understand to fix this or is this simply a bug?
    Thanks for any and all help.
    Selby

    I have been experimenting and have found out something more.  Previously, before doing a content aware fill operation I would create a new layer at the top of the layer stack that was a merge of all layers below it (Ctrl-Alt-Shift-E) and the content aware fill operation worked very well.
    In CS6 it now appears to me that it still gets influenced by the lower layers in the stack, despite the fact that it is operating on the merge of those layers.  If I duplicate the image, and then flatten the duplicate, the content aware fill operation then in some cases works as I would expect.  I then duplicate the layer back to my original image, delete the parts I don't need and put it at the top of the stack in my original image.
    So something appears to have changed in CS6 and it might be a bug.
    Selby

  • Why is "Duplicate" file smaller?

    When I "Duplicate" a Project file, why is the size nearly 20% smaller than the original (668 vs. 132 MB)? Does the "new" file contain the same information (i.e. is it an exact duplicate)?
    Also, what is the difference between "Duplicate" and "Make Alias" (which is MUCH smaller)?
    Thanks,
    Mike

    +Does the "new" file contain the same information (i.e. is it an exact duplicate)?+
    Under the "iMovie Projects" folder (in Movies), you can right-click the proj file and use the "Show Package Contents" option to see what comprises the project - thumbnails, proxies, exported movies, etc.
    Doing a straight comparison of the pkgs for the original and the duplicate versions will tell you exactly what's different. In my experience, the duplicate projects have contained the exact same info with the same pkg size.
    +Also, what is the difference between "Duplicate" and "Make Alias" (which is MUCH smaller)?+
    An alias is only a "reference" to the actual content... If the content gets changed, then the Alias refers to the changed content, as the original content isn't duplicated. ("Link" concept from BSD/Unix, that Mac OS is built on)
    Duplicating a project actually duplicates the content to a different folder, so there are 2 copies taking twice as much space.

Maybe you are looking for