Popup Script for Save, edit & Delete Records

Hi Friends,
I developed an application, has got buttons like Save, edit, delete particular records. Is there any Java script for the above, to show popup Screens, like the   confirm java script
<SCRIPT LANGUAGE="javascript">
<!--
function CONFIRM(){if (!confirm
("Are you Sure to  Edit Record?Ok=Yes,Cancel=No "))
history.go(-1);return " "}
document.writeln(CONFIRM())
<!-- END -->
</SCRIPT>
pls mail me any sample code & Relevant weblogs regarding this.
Regards
CSM Reddy

Hi,
The following code will work... i have tested it.
<b>test.jsp</b>
<%@ page language="java" %>
<html>
     <head>
          <title>
               TestForm
          </title>
     </head>
     <script type="text/javascript">
function confirmSAVE() {
var save = confirm("Do u really want to save")
if (save){
alert("edit confirmed")
window.document.myForm.action="test.jsp"
window.document.myForm.submit()
else
alert("edit cancelled")
function confirmDelete() {
var del = confirm("Do u really want to delete")
if (del){
alert("del confirmed")
window.document.myForm.action="test.jsp"
window.document.myForm.submit()
else
alert("del cancelled")
</script>
     <form name="myForm">
     <body>
          <table>
          <tr>
          <td colspan="2" align="center"><input type="button" style="background-color: #ffffff" name=save onclick="confirmSAVE()" value="SAVE">
          </td>
          <td colspan="2" align="center"><input type="button" style="background-color: #ffffff" name=delete onclick="confirmDelete()" value="DELETE">
          </td>          
          </tr>
          </table>
     </body>
     </form>
</html>
When you confirm edit or delete, the same test page will be displayed.
Regards,
Uma
Message was edited by: Uma Maheswari

Similar Messages

  • Search for and edit single record in database

    I am creating a few forms that access an Access database that will be used to enter data into the database.  I am able to open records from the database and scroll through records one at a time and have added features to be able to search for and display a single record.  The problem that I am having  is when I load a single record and then edit that record, I am unable to save any changes made to the record, in other words, the record doesn't update on the database.
    I can add new records and edit records as long as I scroll to them using .next(), .last(), .first(), and .previous() commands; however, when I load a single record I can't figure out how to save changes to that record in the database.

    Ok...so I think i can get it to work by doing something like:
    xfa.sourceSet.DataConnection.open();
    xfa.sourceSet.DataConnection.first();
    var oRecordList = ???????????
    var nCount = oRecordList.length;
    for (var i = 0; i < nCount; i++){
        if (CurrentRecord.rawValue != SearchField.rawValue){
            xfa.sourceSet.DataConnection.next();
    where CurrentRecord is a text field that shows the index of the current record and SearchField is the field where a user enters the record that they are searching for.
    I think I just need to figure out how to count the number of records in the database.  Any ideas?

  • A script for "Save for Web" as .jpg

    I found a script that saves the current selected document in Photoshop as .png to the Desktop, and use it all the time.
    function main() {
              // declare local variables
              var doc = app.activeDocument;
              var docName = app.activeDocument.name.slice(0,-4);
        var saveFile = new File("~/Desktop/" + docName + ".png");
        pngSaveOptions = new PNGSaveOptions();
        pngSaveOptions.interlaced = false;
        doc.saveAs(saveFile, pngSaveOptions, true, Extension.LOWERCASE);
    main();
    Now I'd really like a similar script to do "Save for Web" as .jpg files, without a colour profile, to the Desktop. Preferably a version to save as 100% quality and one to save as 60% quality.
    Any help would be greatly appreciated.

    Here you are...
    function main(){
    if(!documents.length) return;
    var Name = app.activeDocument.name.replace(/\.[^\.]+$/, '');
    var saveFile = File(Folder.desktop + "/" + Name + ".jpg");
    if(saveFile.exists){
       if(!confirm("Overwrite existing document?")) return;
        saveFile.remove();
    SaveForWeb(saveFile,100); //change to 60 for 60%
    main();
    function SaveForWeb(saveFile,jpegQuality) {
    var sfwOptions = new ExportOptionsSaveForWeb();
       sfwOptions.format = SaveDocumentType.JPEG;
       sfwOptions.includeProfile = false;
       sfwOptions.interlaced = 0;
       sfwOptions.optimized = true;
       sfwOptions.quality = jpegQuality; //0-100
    activeDocument.exportDocument(saveFile, ExportType.SAVEFORWEB, sfwOptions);

  • Script for Save Options- Save Query Results with document

    Hi,
    Is there any javascript for Save query results with document in save options? If so where can i find that?
    Thanks
    Kalai

    hi guys,
    I found the answer.The following example shows you how to save the results with the query
    section named “SalesQuery”.
    ActiveDocument.Sections["SalesQuery"].SaveResults=true

  • A script for "Save as .tiff"

    I have a script that saves the current document in Photoshop to the Desktop as .png, and another that saves to the Desktop as .jpg. They're really usefull and I use them all the time.
    It would be really useful if I had a similar one to save as .tiff to the Desktop (without layers, with transparency and bye order as Macintosh if at all possible).
    Any help would be greatly appreciated.

    Check out the Help > Object Model Viewer, you should be able to figure the appropriate SaveOptions out and amend a copy of one of your Scripts.

  • Error Script when try to delete records under condition

    Dear Members
    I have a problem when i try to delete a record at MDX script into BOC
    I have the follow problem
    TIME FLOW C_DATASRC ENTITY INTCO CONSGROUP RPTCURRENCY C_CATEGORY C_ACCT DIVISION SEGMENT SIGNDATA
    2011.FEB VALID INPUT CIA12 I_CCO11 NON_GROUP GC C_110 2204002 1014 S999 17.272.941,9500000
    2011.FEB CCO11 INPUT CIA12 I_NONE NON_GROUP GC C_110 1205002 1014 S999 1,4870000-
    2011.FEB VALID INPUT CIA12 I_CCO11 NON_GROUP GC C_110 1205002 1014 S999 17.272.941,9500000-
    2011.FEB CCO11 INPUT CIA12 I_NONE NON_GROUP GC C_110 2204002 1014 S999 34.545.885,3870000
    Condition
    2011.FEB NA INPUT CIA12 I_CCO11 NON_GROUP GC C_110 NA 1014 S999 31.405.349,0000000-
    IF C_ACCT.NA = -31.405.349,00 is LESS than 0 delete value of C_ACCT2204002  (17.272.941,95 and 34.545.885,387)
    IF C_ACCT.NA = -31.405.349,00 is Greater than 0 delete value of C_ACCT1205002 (-1,487 and -17.272.941,95)
    I get the record 31.405.349,0000000- from de account NA, with this record i try to determine if i delete the valoe of account 1205002 or 2204002, but my script delete the 4 values.
    I replaced the 0 for 5 and work, but i what to delete the records
    2011.FEB VALID INPUT CIA12 I_CCO11 NON_GROUP GC C_110 2204002 1014 S999 17.272.941,9500000
    2011.FEB CCO11 INPUT CIA12 I_NONE NON_GROUP GC C_110 2204002 1014 S999 34.545.885,3870000
    And leave
    2011.FEB CCO11 INPUT CIA12 I_NONE NON_GROUP GC C_110 1205002 1014 S999 1,4870000-
    2011.FEB VALID INPUT CIA12 I_CCO11 NON_GROUP GC C_110 1205002 1014 S999 17.272.941,9500000-
    // VPP
    // BORRA REGISTRO DUPLICADO
    *XDIM_MEMBERSET CONSGROUP = NON_GROUP
    *XDIM_MEMBERSET C_ACCT = NA, 1205002, 2204002
    *XDIM_MEMBERSET C_CATEGORY = C_110
    *XDIM_MEMBERSET C_DATASRC = INPUT
    *XDIM_MEMBERSET DIVISION = 1014
    *XDIM_MEMBERSET ENTITY = CIA12
    *XDIM_MEMBERSET INTCO = I_NONE,I_CCO11
    *XDIM_MEMBERSET FLOW = NA,VALID,CCO11
    *XDIM_MEMBERSET RPTCURRENCY = GC
    *XDIM_MEMBERSET SEGMENT = S999
    *XDIM_MEMBERSET TIME = %TIME_SET%
    *WHEN FLOW
    *IS "NA"
    *WHEN C_ACCT
    *IS "NA"
    *WHEN INTCO
    *IS "I_CCO11"
    //Elimina Diferencia
    *REC(EXPRESSION=((%VALUE% > 0) * 0), C_ACCT = "1205002", FLOW = "CCO11", INTCO = "I_NONE")
    *REC(EXPRESSION=((%VALUE% < 0) * 0), C_ACCT = "2204002", FLOW = "CCO11", INTCO = "I_NONE")
    //Elimina Validador
    *REC(EXPRESSION=((%VALUE% > 0) * 0), C_ACCT = "1205002", FLOW = "VALID", INTCO = "I_CCO11")
    *REC(EXPRESSION=((%VALUE% < 0) * 0), C_ACCT = "2204002", FLOW = "VALID", INTCO = "I_CCO11")
      *ENDWHEN
    *ENDWHEN
    *ENDWHEN
    *COMMIT

    instead of %VALUE % use MDX  ie
    *WHEN FLOW
    *IS "NA"
    *WHEN C_ACCT
    *IS "NA"
    *WHEN INTCO
    *IS "I_CCO11"
    //Elimina Diferencia
    *REC(EXPRESSION=(([INTCO].[I_CCO11] > 0) * 0), C_ACCT = "1205002", FLOW = "CCO11", INTCO = "I_NONE")
    *REC(EXPRESSION=(([INTCO].[I_CCO11]  < 0) * 0), C_ACCT = "2204002", FLOW = "CCO11", INTCO = "I_NONE")
    //Elimina Validador
    *REC(EXPRESSION=(([INTCO].[I_CCO11]  > 0) * 0), C_ACCT = "1205002", FLOW = "VALID", INTCO = "I_CCO11")
    *REC(EXPRESSION=(([INTCO].[I_CCO11]  < 0) * 0), C_ACCT = "2204002", FLOW = "VALID", INTCO = "I_CCO11")
    u3000u3000*ENDWHEN
    *ENDWHEN
    *ENDWHEN
    hope this helps

  • Force Reset Settings Script for Public Edit Lab

    I work at a public access television station where we have a public edit suite outfitted with several final cut studio workstations. We have several external hard drives that we have our members use instead of the imacs internal drives, so that each project/member can work independent of any specific workstation.
    What I'd like to do is FORCE our members to reset their scratch disks every time they launch FCP, to ensure that they set their scratch disk to their properly named folder on whichever external drive they're using.
    We've had issues where some members forget to set scratch disks, capture to another members project folder, to then come back and see that that other member, not knowing what the other files were, deleted them.
    Is there a simple script I can set to run each time FCP is quit, or on startup/shut down, to ensure that scratch disk settings don't stick for more than one launch?
    Thank you!

    I am not sure I agree with the school of hard knocks perspective. Certainly there are times on a public system that require people to follow basic rules and procedures to get their work done, but the problem is that Final Cut is designed for a single user system, not an open lab account.
    If I purchase a copy of Final Cut and run it on my personal machine I may never even need to look at the scratch disk setting. Even when students do understand how scratch disks work their is the possibility of error. Also it is very easy for one user to mess up another's work.
    This may be the reality of the software but it doesn't mean it is an effective means of managing a public lab. I think finding a way to allow auto reset of the scratch disk would be a healthy reminder to anyone working in a public system, expert or novice. When working in other professional media suites such as protools you are asked to set an equivalent location when creating a new session(equivalent to a project). A similar possible setting in Final Cut would allow it to work in different environments more easily.

  • Logon script for looping - searching - deleting - copy

    I was trying to do multiple functions within a logon script.  If nobody wants to write the script, can you please point me to the right resource to find how to code it.  I am completely new to this and need help.
    The logic is to have a list of files on the server which were recently updated(this list changes all the time), using these files you would loop and search for these same files on the end user's machine upon logging in.  When it finds that same file
    on the end user's machine you would delete the file from the end user's machine, then copy the new updated file from the server onto the end user's machine in the same location the previous one was deleted from.  If file not found on end user's machine
    then just copy new one without deleting anything in highest level directory.  When done, you would loop again until you went thru every file that was updated on the server.  The source directory will always be the same and the copy to directory on
    end user's machine will always be the same, but end user's machines have subdirectories and the files that will be getting updated are in both.  Any help in any fashion would be appreciated.
    We are in the process of migrating from XP to Windows 7.  While in XP, we only had to do a copy function in the logon script and it would copy over the old file and replace it.  But Windows 7 doesn't delete the old file, it appends the new one
    to the old one, making it hard for the software looking for these files to work properly when it sees two files instead of one current one.  Hopefully this makes sense, I can elaborate more if anyone wants to help and needs more details.  Thanks.

    I would definitely not recommend copying files to end user machines from a logon script.
    But you are right that this isn't a script-on-demand forum.
    You can post a script request here:
    https://gallery.technet.microsoft.com/scriptcenter/site/requests
    I would point out that, as with this forum, there is no service-level agreement that guarantees that someone will have the time do this work for you. You will need to provide a very detailed specification; your post here is very vague.
    However: It sounds to me like you don't have a scripting question but some kind of application architecture question.
    -- Bill Stewart [Bill_Stewart]

  • Edit / delete MySql records using dreamweaver Tutorial

    is there any tutorials out there to show the edit & delete records, i can add records into a mySql database, then when i try and edit the list whatever record i try to edit off a edit list it just takes me to the first record on the database? instead of the record i have selected?
    any ideas would be appreciated
    Thanks

    I know of a great book that you would really benefit from. I got started on php/mysql with it. Sometimes the author contributes on this forum too. It is called PHP Solutions by David Powers. It is way better than any simple tutorial.
    If you are actually trying to learn php/mysql this book is going to be one you will reference frequently and find what you are looking for.
    Good luck. Check out amazon, they usually have it for pretty cheap (about 30 USD).

  • Create Edit Delete in Oops ALV

    Hi Experts,
    I need to create an ALV which will provide all the functionality of Create, Edit, Save and Delete records and update the Custom table accordingly.
    I want to design it as follows -
    1. Display should be in non-ediatble mode initially (because I don't want to make it completely ediatble at all times)
    2. When the user clicks Create button a new line appends at the bottom and the ALV has to be made editable, for the values to be entered at the new row appended.
    3. When the user presses Save, again the ALV goes into non-ediatble mode.
    4. When the user presses Edit Button, the ALV is open for editing and again the whole ALV is editable. After Editing, the user will select those particular lines through Box Button and Press on Save Button to enable those particular lines to be modified and saved in ALV. Again at the press of Save button, the ALV will switch to Non-modifiable view.
    5. For Deletion, select the particular line/lines through Box Button and Click on Delete.
    This is how I plan to achieve the Create, Edit, Delete Functionality.
    Can you please confirm the feasibilty of this Design, whether it is achievable.
    There is some option of dynamically changing the Field Catalogue. If it is there, I'm thinking of utilising it for switching the modes on click of Create, Edit and Save Buttons. Click/Edit --> Modifiable. Save --> Non-modifiable.
    Please do give your comments on the above functionality and feasibility. If you are knowing a different or easy approach please do share it. If you have done it then please do share it.
    Thanks & Regards
    Tanu

    Plz ask your specific requirement otherwise mosarator will block the thread...

  • Urgent : Insert , save and Delete in the alv grid

    Hi Experts,
    I am having a alv grid and displaying data by fetching from backend.
    i added a toolbar buttons  "Insert " "Save"  and "Delete".
    when i click on "Insert " button the first row of the table should be empty with input fields. i want to insert data and when i click on "save"  button it should update at backend.kindly let me know how to insert empty row at starting of alv grid and also how to save and delete records..
    thanks in advance.

    Hi Bharath,
    Go through this hope u can understand.
    SEL_MODE. Selection mode, determines how rows can be selected. Can have the following values:
    A Multiple columns, multiple rows with selection buttons.
    B Simple selection, listbox, Single row/column
    C Multiple rows without buttons
    D Multiple rows with buttons and select all ICON
    Setting and getting selected rows (Columns) and read line contents
    You can read which rows of the grid that has been selected, and dynamic select rows of the grid using methods get_selected_rows and set_selected_rows. There are similar methods for columns.
    Note that the grid table always has the rows in the same sequence as displayed in the grid, thus you can use the index of the selected row(s) to read the information in the rows from the table. In the examples below the grid table is named gi_sflight.
    Data declaration:
    DATA:
    Internal table for indexes of selected rows
    gi_index_rows TYPE lvc_t_row,
    Information about 1 row
    g_selected_row LIKE lvc_s_row.
    Example 1: Reading index of selected row(s) and using it to read the grid table
      CALL METHOD go_grid->get_selected_rows
        IMPORTING
          et_index_rows = gi_index_rows.
      DESCRIBE TABLE gi_index_rows LINES l_lines.
      IF l_lines = 0.
        CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT'
             EXPORTING
                  textline1 = 'You must choose a valid line'.
        EXIT.
      ENDIF.
      LOOP AT gi_index_rows INTO g_selected_row.
         READ TABLE gi_sflight INDEX g_selected_row-index INTO g_wa_sflight.
        ENDIF.
      ENDLOOP.
    Example 2: Set selected row(s).
      DESCRIBE TABLE gi_index_rows LINES l_lines.
      IF l_lines > 0.
        CALL METHOD go_grid->set_selected_rows
            exporting
              it_index_rows = gi_index_rows.
      ENDIF.
    Reward points if helpful.
    Thanks
    Naveen khan

  • Auto create View/Edit/Delete cfm pages for databsae records? Anyone remember CF Studio?

    Anyone use Recordmaster wizard from back in the CF Studio
    days?? Sometimes I really miss it! Is there anything comparable
    available today for the current toolset (CFeclipse or Dreamweaver)?
    RecordMaster was a little automated wizard thing that you could
    just point to a DSN and a table, and it would build a nifty set of
    basic pages to do admin stuff, namely view, add, edit and delete
    records. Very good start to build quick and dirty admin pages, and
    super easy.
    There was even a little built in Studio wizard that would
    generate record view/edit/delete pages. All just basic cfm, no
    cfc's.
    Anyhing? I've got to build some admin type pages here on a
    table with lots of fields and don't want to do it all from scratch.
    If I can't find anything, I may search my CD archives for an old
    version of Studio just to use RecordMaster! What do others use for
    fast creation of database record admin pages???
    -Jeff

    Not exactly what you are looking for, but take a look at
    reactor (
    http://www.alagad.com/go/products-and-projects/reactor-for-coldfusion).
    It will create a database abstration layer on-the-fly for simple
    CRUD operations. A similar solution would be Illudium PU-36 (
    http://cfcgenerator.riaforge.org/).
    Similar concept to reactor, but used for one-time
    generation.

  • How to avoid editing a deleted record in a Table component

    Hi! Everyon,
    I am building a prototype using JSC. In Page1.jsp, I have a table displaying the records. On column one there are buttons that allow the user to edit the record, including deleting it. My problem is: when somebody else deleted a record and if the current user tries to edit the same record by clicking the edit button on the corresponding row he will get the next record. Could somebody tell me how to solve this problem? Thanks in advance.
    By the way, I do not access database directly from the Web part. Instead, I dropped a session bean's method on the Table compoment. In the edit button's event handler, I use
               TableRowDataProvider row = (TableRowDataProvider )getBean("currentRow");However, since that record was deleted already I always get the next record.
    With best regards,
    Daniel

    Thank you very much for your help. And sorry for not explaining clearly.
    I have a session bean that has getCities(), getCity(String code) and other methods. getCities() returns an array of CityDO objects and getCity(String) returns a CityDO object. class CityDO basically is a JavaBean containing city code, city name and other information. When I designed the web part using Java Studio Creator, I dropped a Table component to the design view first, then dropped the EJB method getCities() onto that Table component. Up to now, it is very similar to http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/ejb.html and everything worked fine.
    In order to edit a CityDO record, I added a column containg "edit" buttons into the Table component. If the user clicks the edit button we will show the CityDO in another page called editPage.jsp. In editPage.jsp, the user can update the city or simply delete it. Here is the major part of the event handler of the edit button in Page1,
        public String editCity_action() {
            TableRowDataProvider row = (TableRowDataProvider)getBean("currentRow");
            String code = (String)row.getValue("code");     // "code" is a field in CityDO
            CityDO city = null;
            try {
                city = cityClient1.getCity(code);
            } catch (Exception ex) {
                ex.printStackTrace();
                return null;
            getSessionBean1().setCity(city);          // pass the city to editPage
            return "editPage";
        }Usually, the above logic is good. However, if somebody else deleted one city and the current user tries to edit that deleted city (it is still in his table), he gets the next city. The real problem is in editCity_action(),
    row.getValue("code") returns an updated value, but I only need the old one.
    You memtioned ArrayList. That could be a good solution. Suppose I have an ArryList containing the CityDO objects, if I can bind the table to my ArrayList that will solve my problem. Could you tell me how to do the binding in that case?
    Thank you again.
    With best regards,
    Daniel
    By the way, I do not access database directly from
    the Web part. I do not understand what you mean by the above
    statement.
    Instead, I dropped a session bean's
    method on the Table compoment. Can you explain further. What method did you drop on
    the Table component?
    In the edit button's
    event handler, I use
    TableRowDataProvider row =
    (TableRowDataProvider
    )getBean("currentRow");However, since that
    record was deleted already I always get the next
    record.Here is the delete code from
    http://developers.sun.com/prodtech/javatools/jscreator
    /learning/tutorials/2/inserts_updates_deletes.html.
    As is is working on the rowkey in the page bean's
    table, that should not be affected by other users in
    other sessions, the rowkey should not change, even if
    the underlying record has changed.
        public String delete_action() {
    form1.discardSubmittedValues("save");
    try {
    RowKey rk = tableRowGroup1.getRowKey();
    if (rk != null) {
    tripDataProvider.removeRow(rk);
    tripDataProvider.commitChanges();
    tripDataProvider.refresh();}
    (Exception ex) {
    log("ErrorDescription", ex);
    error(ex.getMessage());
    return null;
    }What is the underlying structure for the table's
    data. Is it a row cache from a query? Is it an
    ArrayList?

  • DELETE - Save deleted records

    Hello guys,
    I have a process that before deleting records from a table saves them in a backup table. I know, it could be easier to manage with a flag or so, but for now, I can not change the structure of the tables. I have to save some records before deleting them.
    The process goes like this:
    CREATE TABLE my_data
      id_data NUMBER(15),
      field_1 VARCHAR2(100),
      field_2 VARCHAR2(100)
    INSERT INTO my_data
      SELECT level, dbms_random.string('a', 100), dbms_random.string('a', 100)
        FROM dual
      CONNECT BY level <= 10;
    CREATE TABLE my_data_bkp
      id_data NUMBER(15),
      field_1 VARCHAR2(100),
      field_2 VARCHAR2(100)
    BEGIN
      DBMS_ERRLOG.create_error_log (dml_table_name => 'my_data_bkp');
    END;
    INSERT INTO my_data_bkp
      SELECT * from my_data WHERE id_data IN (2, 4, 5);
    DELETE my_data WHERE id_data IN (2, 4, 5) LOG ERRORS INTO err$_my_data_bkp REJECT LIMIT UNLIMITED;But I wonder if it is possible to work with the returning clause of the delete. This could be better because there could be an exception during the delete and it would be handled by the DML error handling. But the first INSERT SELECT to backup the data that are going to be deleted is not in sync. So I was wondering if any of you have any suggestion to improve this? I am working on Oracle 10g (10.2.0.5)
    Thanks,

    since you are using error logging anyway, you might as well get additional benefits from it. Assuming that you want the rows that were successfully deleted deleted, and that you want to know why the other did not get deleted, then change your log errors call to something like:
    DELETE my_data
    WHERE id_data IN (2, 4, 5)
    LOG ERRORS INTO err$_my_data_bkp ('some tag to ID this run')
       REJECT LIMIT UNLIMITED;Then after the delete do:
    delete from my_data_bkp
    where id_data in (select id_data
                      from err$_my_data_bkp
                      where ORA_ERR_TAG$ = 'some tag to ID this run');Just be sure that your copy to my_data_bkp was actually successful before you run the delete.
    John
    Edited by: John Spencer on Nov 6, 2012 2:09 PM
    Had the problem reversed.

  • I transferred a pages file from ipad to mac (also pages) via email for editing. However received message that cannot save edited document to the mac because "trial period has expired for iwork"! I have purchased pages for both machines separately. Ideas?

    I transferred a pages file from ipad to mac (also pages) via email for editing. It opened normally. However, after editing, received message that cannot save edited document to the mac because "trial period has expired for iwork"! I have purchased pages for both machines separately and presumed they would work without a hitch. Am I missing something?

    It used to be that to update the trial to the licensed version with the box, you just inserted the DVD & ran the installer to convert the trial to licensed. This changed with Snow Leopard. You now need to delete the trial & then reinstall from the boxed DVD or the Mac App Store. The files to delete are the iWork ’09 folder from the main HD > Applications; the iWork ’09 folder in HD > Library > Application Support & the individual iWork application plist files found in HD > Users > (your account) > Library > Preferences for each user.
    Yvan Koenig has written an AppleScript that removes the files. You can find it on his iDisk in For_iWork > iWork '09 > uninstall iWork '09.zip.

Maybe you are looking for