No required validation windows wnen move next record

Hi master
Sir I have master detail block
In master block key-commit I put this code
if :ystatus ='P' then
     message('Can not be update becuase this year Completely Closed');
     message('Can not be update becuase this year Completely Closed');
     go_item('voumaster.entdate');
elsif :ystatus ='T' or :ystatus ='N' then
commit_form;
go_item('voudetail.accid');
end if;
means if condition true then commit other wise not commit
and in detail block I put this code in key-commit event
if :ystatus ='P' then
     message('Can not be update becuase this year Completely Closed');
     message('Can not be update becuase this year Completely Closed');
     go_item('voumaster.entdate');
elsif :ystatus ='T' or :ystatus ='N' then
     IF :ITEM62=:ALLTOTAL THEN
     commit_form;
     go_item('voumaster.entdate');
     ELSE
     MESSAGE ('RECORD NOT SAVE BECUSE DEBIT AND CREDIT NOT BALANCE');
          go_item('voDETAIL.CREDIT');
     END IF;
end if;
sir when I change in master block then system not give me error then check condition if true then save otherwise move entdate textbox
but
when I change in detail block and press F10 then system not give me error and move entdate textbox but when I change record or go next previous record then system give me error ‘ do you want to save then change you have made?
Yes no cancel Button
Sir my need is system not required this message and easily go to next record only when I press f10 then show message and save my record
Please give me idea where I put my code or which event I disable
Thank
Aamir

thank for your reply
sir i use your code
message('Can not be update becuase this year Completely Closed');
pause;
but not sovle my problem
sir my problem is when i change in detial block and go to master block without save detail block in master block i move to next record then system give me save validation windows
i not need validation window when move mext record and move next record without save detail block
please give idea
thak
aamir

Similar Messages

  • Help: Data validation before commit or move to next record

    The form that I am working on allows data insert. It needs to have a feature to inform the end user for incomplete field(s) before commit_form or move to next record for updating. Please let me know how you would do it.
    Thank you,
    Jimmy

    To prevent cursor movement out of a field in a When-validate trigger, all you do is    Raise Form_trigger_failure;However, if the field is null and the user does not enter anything while tabbing through, or just clicking in then clicking somewhere else, the When-validate-item trigger does not run. You have to specifically check if the field is null in the When-validate-record trigger.

  • See my problem no master record move to next record

    hi master
    sir
    i have master detail block master table have all data but detail no data i need feed data in detail then i goto in detail block write value and press F10 for save
    for new record in detail
    in detail blick post-block or post_record or post_insert event i write this code
    go_block('masterblock');
    next_record;
    go_item('detailblock.item');
    but not responses no master block move to next record still and my curser sitll in last postion
    sir how i move master record after save the detail record and jump to detail block for new record
    please give me idea or code
    thanking you
    aamir

    thank for reply
    sir your help very usefull for my but when i press F10 then system show massage do you want to save change the record
    sir how i avoid that window and directly move to next record
    please give me idea
    thanking you
    aamir

  • My code not give me result and error for move to next record please see

    hi master
    sir i import this file also
    import javax.faces.event.ValueChangeEvent;
    then my error remove
    i am use this code in button event
    getMfatableDataProvider().cursorNext();
    form1.discardSubmittedValues("virtualForm1");
    and my textField is bounded with data provider table field
    please give me idea how i show next rocord in page when user press button
    thank's
    aamir

    thank for reply
    sir your help very usefull for my but when i press F10 then system show massage do you want to save change the record
    sir how i avoid that window and directly move to next record
    please give me idea
    thanking you
    aamir

  • Update and move to next record

    Sorry if this is a simple question.
    I have a form that links to an access database. The page
    calls the fields and there is no problem.
    I want to be able to have users check the database
    information, and make any changes and then update and move to the
    next record.
    In the update button wizard it asks for a page to go to once
    updated - I just need it to move forward.
    Thanks for any help.

    Hi,
    I am not clear what you said. But I assume you mean to say:
    Right after comming in your if statement you want to update the record first and then you need the validation?? If this is right then you have to move the validation just after the update statement and then print a message just before "END IF".
    HTH
    Ghulam Mustafa Butt

  • Move to next record in a LOOP!

    I have to perform a loop on an internal table consisting of several records.
    within the LOOP there is an if-endif condition followed by some code.
    Now, in the else condition of the if-endif part, i have to move to the next record (i.e. next record in the internal table)...If i use "Exit",the entire loop processing is skipped, but i just want to skip the current sy-index and loop for the next record in the internal table.
    Please suggest some way to do it.

    loop at itab.
    if <condn>.
    else.
    continue.
    endif.
    endloop.
    continue will process the next loop from begining i.e. after continue it will go to the loop at itab statement for next loop pass.
    regards
    shiba dutta

  • HCP tcode PA40 Upload program failing to move to next record.

    Dear All
    I have written and upload program for HCM tcode PA40 and the program is fine but only inserting one record and is failing to pick the next records in a loop. I dont know whats the problem i know the process have many screens, please help me, i have tried to research not yet found the answer yet.
    Thank you for your assistance
    Here is my Upload program
    *& Report  ZUPLOADEMPHIRING
    REPORT  ZUPLOADEMPHIRING.
    include bdcrecx1.
    PARAMETERS: p_file TYPE  rlgrap-filename.
               x_endrow TYPE i .
    DATA:  xdate(10).
    DATA: Fullname type string.
    DATA:        x_begrow  TYPE i  VALUE 2,
                x_begcol  TYPE i VALUE 1,
                x_endcol  TYPE i VALUE 17,
                 x_endrow TYPE i VALUE 3.
    TYPES: BEGIN OF t_datatab  ,
            FromDate(10),
            Reasonforaction(2),
            Position(8),
            PersonalArea(4),
            EmployeeGroup(1),
            EmployeeSubGroup(2),
            SubArea(4),
            PayrolArea(2),
            Title(5),
            Lastname(40),
            Firstname(40),
            BirtDate(10),
            Nationality(3),
            Group(1),
            Level(1),
            BankKey(15),
            BankAccount(18),
           END OF t_datatab.
    DATA: BEGIN OF t_datatabfinal OCCURS 0,
            FromDate(10),
            Reasonforaction(2),
            Position(8),
            PersonalArea(4),
            EmployeeGroup(1),
            EmployeeSubGroup(2),
            SubArea(4),
            PayrolArea(2),
            Title(5),
            Lastname(40),
            Firstname(40),
            BirtDate(10),
            Nationality(3),
            Group(1),
            Level(1),
            BankKey(15),
            BankAccount(18),
          END OF t_datatabfinal.
    DATA: BEGIN OF it_record OCCURS 0,
            FromDate(10),
            Reasonforaction(2),
            Position(8),
            PersonalArea(4),
            EmployeeGroup(1),
            EmployeeSubGroup(2),
            SubArea(4),
            PayrolArea(2),
            Title(5),
            Lastname(40),
            Firstname(40),
            BirtDate(10),
            Nationality(3),
            Group(1),
            Level(1),
            BankKey(15),
            BankAccount(18),
            END OF it_record.
    DATA: itab LIKE alsmex_tabline OCCURS 0 WITH HEADER LINE,
    gd_currentrow TYPE i,
    it_datatab TYPE STANDARD TABLE OF t_datatab,
    wa_datatab TYPE t_datatab.
    AT SELECTION-SCREEN on VALUE-REQUEST FOR p_file.
      CALL FUNCTION 'F4_FILENAME'  "
       EXPORTING
         FIELD_NAME          = 'P_FILE '
       IMPORTING
         FILE_NAME           = p_file.
    CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
      EXPORTING
        PROGRAM_NAME        = SYST-REPID
        DYNPRO_NUMBER       = SYST-DYNNR
        FIELD_NAME          = ' '
        STATIC              = ' '
        MASK                = ' '
       CHANGING
         FILE_NAME           =
      EXCEPTIONS
        MASK_TOO_LONG       = 1
        OTHERS              = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    START-OF-SELECTION.
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          filename    = p_file
          i_begin_col = x_begcol
          i_begin_row = x_begrow   "Column header not required
          i_end_col   = x_endcol
          i_end_row   = x_endrow
        TABLES
          intern      = itab.
    Sort table by rows and colums
      SORT itab BY row col.
    Get first row retrieved
      READ TABLE itab INDEX 1.
    Set first row retrieved to current row
      gd_currentrow = itab-row.
      clear: t_datatabfinal.
      refresh t_datatabfinal.
      LOOP AT itab.
      Reset values for next row
        IF itab-row NE gd_currentrow.
          APPEND wa_datatab TO t_datatabfinal.
          CLEAR wa_datatab.
          gd_currentrow = itab-row.
        ENDIF.
        concatenate sy-datum6(2)'.' sy-datum4(2)'.' sy-datum+2(4) into xdate .
        CASE itab-col.
          WHEN '0001'.
            wa_datatab-FromDate  = itab-value.
           concatenate wa_datatab-DocumentDate6(2)'.' wa_datatab-DocumentDate4(2)'.' wa_datatab-DocumentDate+2(4) into wa_datatab-DocumentDate.
          WHEN '0002'.
            wa_datatab-Reasonforaction     = itab-value.
          WHEN '0003'.
            wa_datatab-Position = itab-value.
          WHEN '0004'.
            wa_datatab-PersonalArea    = itab-value.
          WHEN '0005'.
            wa_datatab-EmployeeGroup    = itab-value.
          WHEN '0006'.
            wa_datatab-EmployeeSubGroup   = itab-value.
          WHEN '0007'.
            wa_datatab-SubArea         = itab-value.
          WHEN '0008'.
            wa_datatab-PayrolArea         = itab-value.
          WHEN '0009'.
            wa_datatab-Title         = itab-value.
          WHEN '0010'.
            wa_datatab-Lastname         = itab-value.
          WHEN '0011'.
            wa_datatab-Firstname         = itab-value.
          WHEN '0012'.
            wa_datatab-BirtDate         = itab-value.
          WHEN '0013'.
            wa_datatab-Nationality         = itab-value.
          WHEN '0014'.
            wa_datatab-Group         = itab-value.
          WHEN '0015'.
            wa_datatab-Level         = itab-value.
          WHEN '0016'.
            wa_datatab-BankKey         = itab-value.
          WHEN '0017'.
            wa_datatab-BankAccount         = itab-value.
          WHEN OTHERS.
        ENDCASE.
       APPEND    wa_datatab to t_datatabfinal.
      ENDLOOP.
      clear: it_record.
      refresh it_record.
      loop at t_datatabfinal into it_record.
        append it_record.
      endloop.
      perform open_group.
      loop at it_record.
        concatenate it_record-Firstname it_record-Lastname into Fullname separated by space.
        perform bdc_dynpro      using 'SAPMP50A' '2000'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'T529T-MNTXT(02)'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '=PICK'.
        perform bdc_field       using 'RP50G-EINDA'
                                      it_record-FromDate. "" '01012012'.
        perform bdc_field       using 'RP50G-SELEC(02)'
                                      'X'.
        perform bdc_dynpro      using 'MP000000' '2000'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'PSPAR-PERSG'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '=UPD'.
        perform bdc_field       using 'P0000-BEGDA'
                                      it_record-FromDate. "" '01.01.2012'.
        perform bdc_field       using 'P0000-ENDDA'
                                      '31.12.9999'.
        perform bdc_field       using 'P0000-MASSN'
                                      'ZB'.
        perform bdc_field       using 'P0000-MASSG'
                                      it_record-Reasonforaction. "" '01'.
        perform bdc_field       using 'PSPAR-PLANS'
                                      it_record-Position. "" '99999999'.
        perform bdc_field       using 'PSPAR-WERKS'
                                      it_record-PersonalArea.   " 'm003'.
        perform bdc_field       using 'PSPAR-PERSG'
                                      it_record-EmployeeGroup. "" 'a'.
        perform bdc_field       using 'PSPAR-PERSK'
                                      it_record-EmployeeSubGroup. "" '02'.
        perform bdc_dynpro      using 'MP000100' '2000'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'P0001-BTRTL'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '=UPD'.
        perform bdc_field       using 'P0001-BEGDA'
                                      it_record-FromDate. ""'01.01.2012'.
        perform bdc_field       using 'P0001-ENDDA'
                                      '31.12.9999'.
        perform bdc_field       using 'P0001-BTRTL'
                                      it_record-SubArea.        "" 'mm01'.
        perform bdc_field       using 'P0001-ABKRS'
                                       it_record-PayrolArea.    "" 'Z2'.
        perform bdc_field       using 'P0001-PLANS'
                                      it_record-Position. ""'99999999'.
        perform bdc_dynpro      using 'MP000200' '2000'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'P0002-NATIO'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '=UPD'.
        perform bdc_field       using 'P0002-BEGDA'
                                      it_record-FromDate. ""'01.01.2012'.
        perform bdc_field       using 'P0002-ENDDA'
                                      '31.12.9999'.
        perform bdc_field       using 'Q0002-ANREX'
                                      it_record-Title. "" 'Mr'.
        perform bdc_field       using 'P0002-NACHN'
                                      it_record-Lastname. " 'maxwel'.
        perform bdc_field       using 'P0002-VORNA'
                                      it_record-Firstname. "" 'razaro'.
        perform bdc_field       using 'P0002-GBDAT'
                                      it_record-BirtDate. "" '01011970'.
        perform bdc_field       using 'P0002-SPRSL'
                                      'EN'.
        perform bdc_field       using 'P0002-NATIO'
                                       it_record-Nationality. "" 'ZW'.
        perform bdc_dynpro      using 'MP000700' '2000'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'P0007-BEGDA'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '/00'.
        perform bdc_field       using 'P0007-BEGDA'
                                      it_record-FromDate."" '01.01.2012'.
        perform bdc_field       using 'P0007-ENDDA'
                                      '31.12.9999'.
        perform bdc_field       using 'P0007-SCHKZ'
                                      'MANORM'.
        perform bdc_field       using 'P0007-ZTERF'
                                      '9'.
        perform bdc_field       using 'P0007-EMPCT'
                                      '  100,00'.
        perform bdc_dynpro      using 'MP000700' '2000'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'P0007-BEGDA'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '=UPD'.
        perform bdc_field       using 'P0007-BEGDA'
                                      it_record-FromDate.""'01.01.2012'.
        perform bdc_field       using 'P0007-ENDDA'
                                      '31.12.9999'.
        perform bdc_field       using 'P0007-SCHKZ'
                                      'MANORM'.
        perform bdc_field       using 'P0007-ZTERF'
                                      '9'.
        perform bdc_field       using 'P0007-EMPCT'
                                      '  100,00'.
        perform bdc_field       using 'P0007-ARBST'
                                      '    8,00'.
        perform bdc_field       using 'P0007-WKWDY'
                                      '    5,00'.
        perform bdc_dynpro      using 'MP000800' '2000'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'P0008-TRFST'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '=UPD'.
        perform bdc_field       using 'P0008-BEGDA'
                                      it_record-FromDate. "" '01.01.2012'.
        perform bdc_field       using 'P0008-ENDDA'
                                      '31.12.9999'.
        perform bdc_field       using 'P0008-TRFAR'
                                      '01'.
        perform bdc_field       using 'P0008-BSGRD'
                                      '100,00'.
        perform bdc_field       using 'P0008-TRFGB'
                                      '01'.
        perform bdc_field       using 'P0008-TRFGR'
                                       it_record-Group. ""'a'.
        perform bdc_field       using 'P0008-TRFST'
                                       it_record-Level.         "" '1'.
       perform bdc_field       using 'P0008-DIVGV'
                                     '173,00'.
        perform bdc_field       using 'P0008-ANCUR'
                                      'USD'.
        perform bdc_field       using 'Q0008-IBBEG'
                                      xdate.""'12.01.2012'.
        perform bdc_field       using 'P0008-WAERS'
                                      'USD'.
        perform bdc_dynpro      using 'MP000900' '2000'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'P0009-ZLSCH'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '=UPD'.
        perform bdc_field       using 'P0009-BEGDA'
                                      it_record-FromDate. ""'01.01.2012'.
        perform bdc_field       using 'P0009-ENDDA'
                                      '31.12.9999'.
        perform bdc_field       using 'P0009-BNKSA'
                                      '0'.
        perform bdc_field       using 'Q0009-EMFTX'
                                      Fullname. "" 'maxwel razaro'.
        perform bdc_field       using 'P0009-BANKS'
                                      'ZW'.
        perform bdc_field       using 'P0009-BANKL'
                                       it_record-BankKey.       ""'10351'.
        perform bdc_field       using 'P0009-BANKN'
                                       it_record-BankAccount. "" '543234667778'.
        perform bdc_field       using 'P0009-ZLSCH'
                                      'b'.
        perform bdc_field       using 'P0009-WAERS'
                                      'USD'.
        perform bdc_dynpro      using 'SAPMP50A' '2000'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '/EBCK'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'RP50G-PERNR'.
        perform bdc_transaction using 'PA40'.
      endloop.
      perform close_group.
    Regards
    William

    Hi,
    It seems like you are uploading data to a screen that contains table control.just check the link below for your reference
    [http://wiki.sdn.sap.com/wiki/display/ABAP/bdcontable+control]
    Regards,
    Vamshi
    Edited by: vamshi reddy . ch on Jan 13, 2012 7:38 AM
    Edited by: vamshi reddy . ch on Jan 13, 2012 7:39 AM

  • Move to next record / wildcard search

    Hi
    Hope you can understand this explanation..
    I have searchable database for Holiday & Residential
    property here
    http://www.roomtobreathesl.com
    (search facility in the navigation menu)
    The results page for this search works fine for when you
    specify a certain
    area, certain amount of beds etc as it only shows a small
    amount of
    properties.
    However when you do a search for any area / any amount of
    rooms / any type,
    the query brings up over 40 results, so a move to next record
    is used. This
    is where the problem lies. You cannot move to next record as
    the 'Next
    record' link is looking for another wildcard search (see
    status bar).
    Any ideas how to remedy this?
    Thanks for any help
    Gary

    oops!
    Sorry sent you the previous version that's online.
    I also tried doing a search and replace and changing all
    'Request.Form' to
    'Request'
    Still didn't work.
    This is how it was when it wasn't working.
    <%@LANGUAGE="VBSCRIPT"%>
    <!--#include file="Connections/YotShop6.asp" -->
    <%
    Dim rsResults__MMColParam
    rsResults__MMColParam = "1"
    If (Request("yscon") <> "") Then
    rsResults__MMColParam = Request("yscon")
    End If
    %>
    <%
    Dim rsResults__ysbed
    rsResults__ysbed = "1"
    If (Request("ysbed") <> "") Then
    rsResults__ysbed = Request("ysbed")
    End If
    %>
    <%
    Dim rsResults__MMColParam3
    rsResults__MMColParam3 = "xyz"
    If (Request("type") <> "") Then
    rsResults__MMColParam3 = Request("type")
    End If
    %>
    <%
    Dim rsResults
    Dim rsResults_numRows
    Set rsResults = Server.CreateObject("ADODB.Recordset")
    rsResults.ActiveConnection = MM_YotShop6_STRING
    rsResults.Source = "SELECT * FROM YotStock WHERE Area LIKE '"
    +
    Replace(rsResults__MMColParam, "'", "''") + "' AND bedrooms
    LIKE '" +
    Replace(rsResults__ysbed, "'", "''") + "' AND type LIKE '" +
    Replace(rsResults__MMColParam3, "'", "''") + "' ORDER BY
    price ASC"
    rsResults.CursorType = 0
    rsResults.CursorLocation = 2
    rsResults.LockType = 1
    rsResults.Open()
    rsResults_numRows = 0
    %>
    "Julian Roberts" <[email protected]> wrote in message
    news:euj4if$ici$[email protected]..
    >>> Use Request instead of Request.Form for runtime
    parameters.
    >
    > You haven't done it :)
    >
    > --
    > Jules
    >
    http://www.charon.co.uk/charoncart
    > Charon Cart 3
    > Shopping Cart Extension for Dreamweaver MX/MX 2004
    >
    >
    >
    >

  • How to move to next record in PHP+ORACLE env

    I install php3 +ORACLE in RH linux 6 box, the works fine.
    I write a app to browse record in oracle table,I write two
    frame, one top_frame,one body_frame,but How can I to move to
    next record?
    thanks any idea!!
    null

    one record item at a time...

  • Move to next record

    move to next record wont work with tom-muck horizontal repeat
    region anyone got an alternative or know why its throwing back
    errors

    i got it workin sorry for wasting your time

  • T-SQL: Cursor is not advancing to next record

    SQL Version:  2008 R2
    Problem:  I have the code below which uses a cursor.  The cursor keeps returning the first record and does not advance to the next record in the cursor.  It appears as if the Fetch Next is not being recognized.  The Select
    Statement in the cursor declaration returns two records which is the result set I expect to be contained in the cursor record set.
    ...bob sutor
    SQL CODE:
    DECLARE
      @ProcessGroupID nchar(4)
     , @RemoveAuditUser nchar(128)
    DECLARE CertGroupCursor CURSOR FOR
     SELECT DISTINCT CertGroups.GroupCode, CertGroups.RemoveAuditUser
         --, UserControl.ProcessGroupID, UserControl.VPUserName
     FROM udCertGroups AS CertGroups
      LEFT JOIN udAuditUsers AS UserControl
      ON CertGroups.GroupCode = UserControl.ProcessGroupID
     WHERE CertGroups.GroupCode = UserControl.ProcessGroupID
      AND CertGroups.RemoveAuditUser = UserControl.VPUserName
    OPEN CertGroupCursor
     FETCH NEXT FROM CertGroupCursor INTO @ProcessGroupID, @RemoveAuditUser
     WHILE @@FETCH_STATUS = 0
     Print @ProcessGroupID + '-' + @RemoveAuditUser
     DELETE FROM udAuditUsers
      WHERE ProcessGroupID = @ProcessGroupID
       AND VPUserName = @RemoveAuditUser
     FETCH NEXT FROM CertGroupCursor INTO @ProcessGroupID, @RemoveAuditUser
    CLOSE CertGroupCursor
    DEALLOCATE CertGroupCursor
    Bob Sutor

    The real question is how to get rid of this mess. Think about the local “@remove_audit_user” as a variable; it's name is a verb, not a noun! and the NVARCHAR(n) lets you use Chinese Unicode. Why? In ISO-11179 rules , “remove_” is a called a role, and the
    audit user would be the attribute with the attribute property “_user” in a valid data model. Where is the table that models “audit_users”? It has to be here by definition. 
    One of the first rules of data modeling is that a data element has one and only one name. This is a results of the Law of Identity in Logic (A is A: to be is to be something in particular, to be nothing in particular or many things in general is to be nothing
    at all). 
    So how did “G.remove_audit_user = U.vp_user_name” occur??  ANSWER: lack of a design!
    Your “G.group_code = U.process_group_id” is wrong. An identifier is not a code! TOTALLY DIFFERENT type of data elements! Do you have a postal code or a postal id? Blood_type or blood_id?  Etc.? Have you ever read a book on basic data modeling? 
    The purpose of PRINT is debugging and not output. We had  joke in the ANSI X3H2 Committee that SQL means “scarcely Qualified as a Language” because there is no I/O. PRINT will screw up performance in so many ways. 
    In a properly designed schema, we seldom use SELECT DISTINCT; we have keys and a valid schema that does not produce redundant duplicate rows. It might be valid, but after 30+ years of SQL, I would bet against it. 
    Your statement would use an EXISTS() predicate to handle multiple columns and conditions. But you did not bother with DDL, as required by basic Netiquette, so here is the skeleton I can give you. 
    DELETE FROM UD_Audit_Users
     WHERE EXIST
           (SELECT *
              FROM UD_Cert_Groups AS G
             WHERE G.process_group_id = ?? 
               AND G.vp_user_name = ??;
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • How do I get the codec for .mov files recorded on an ipad, so I can edit them in premiere El. 12?

    I have .mov files recorded from an ipad with these specs:
    AAC, Mono, 44.100 KHZ
    H.264 320x568 (yes the ipad was used vertically, not horizontally)
    29.96 fps
    I want to edit them in premiere 12, but get this error message:
    This type of file is not supported or the required codec is not installed.
    What are my options? Thanks!

    linn749
    Thanks for the reply.
    As for orientation, there is a rotation feature in Premiere Elements 12....at the Timeline level, you can right click the clip and select Rotate 90 Left or Rotate  90 Right. So that may help.
    This is what you may want to try and see what this looks like
    1. Open Premiere Elements 12 to its Expert workspace
    2. Go to File Menu/New/Project and Change Settings
    3. In the Change Settings dialog, change the project preset to NTSC DV Widescreen.
    4. Before you exit that area, in the last dialog that you see (new project dialog), make sure you have a check mark next to "Force Selected Project Setting on this Project".
    5. Back in the Expert workspace, use Add Media/Files and Folders/ to bring your video into Project Assets from where you will drag it to Video Track 1. We can talk about edits if necessary.
    6. Publish+Share/Disc/DVD disc with preset set for NTSC_Widescreen_Dolby DVD.
    7. Place your DVD 4.7 GB/120 min disc in the burner, in the burn dialog, have a check mark next to "Fit Content to Available Space". Hit Burn.
    If you decide to take the Timeline to YouTube instead,
    Publish+Share/Social Websites/YouTube, using Presets = Flash Video for YouTube (Widescreen)
    Hit Next and follow the instructions.
    (Upload to YouTube from within Premiere Elements 12 has limits of 2 GB and 15 minutes. Anything exceeding that, you need to export to file saved to the computer hard drive and then upload that file to YouTube at the YouTube web site where you might be able to get extended limits.
    Please let us know if you are OK with the above information.
    Thanks.
    ATR
    Add On...If you want to "decorate" the black borders in the Timeline content, drag the video to Video Track 2 and put a colored background on Video Track 1 directly below the Video Track 2 content.

  • To display vline if main window flows to next page in SAPScript.

    Hello,
    We are facing issue that we have to put vertical line at the end of page , if main window flows to next page.
    In our case, we have payment done for different currencies as well, so that means if for first currency USD we have 20 records then after 16 records page gets break then we want sy-vline to print there and next 4 records in next page, similarily for next currency EUR, then if we have 4 records it gets displayed on one page only, so no vline is required then.
    So like this if we have 3 pages to be displayed then on first page it should displayed vline as records gets overflowed.
    May be in Script we can have more than 3 pages as well, so at different currency when we have more records then only it should show vline, otherwise not.
    Also we have signature window inside main window, so on next page it should not display line after signature.
    So please help us for finding the solution to this issue as its really urgent.
    Thanks.

    Hi friend,
    So as of now you know that the line count for a page is 16.
    So after displaying records in main window just check the sy-index or keep a variable incremental for the loop.
    Check whether the variable count is 16 and put a sy-vline. So if we have less number of records or if we have a signature window the vline wont be executed.
    This will only be executed when there are 16 records for a page. So for better handling you can use the number of lines per page dynamically. Ie to know the size of lines in the page dynamically.
    Else use of end of page command to draw lines at the end of page. But the end of page command should be used inside an if else command.
    See the link below for more options in Scripts Link : [Editing Format Actions|http://help.sap.com/saphelp_nw70/helpdata/en/ce/6f0f82ea6311d18e2f0000e83dd9fc/content.htm]
    I think this solves your issue. Please revert back to me if you face any issues. I will help you.
    Thanks,
    Sri Hari
    Edited by: srihari.kumar on Jan 31, 2012 4:27 PM

  • Navigate previous record,next record by entering key-up and key-down

    Hi ,
    JDeveloper11g_
    I am trying to solve of how to navigate previous record,next record by entering key-up and key-down in ADF Table.
    If any of you have this solution by JScript of Backing Bean please help me.
    Thanks
    zakir
    ===

    Hi zakir,
    I hope I understood your requirements correctly. You have an editable ADF table. You would like to use the up/down arrow keys to move from one row to the next/prev row of the same column. Since the Tab key moves the cursor to the right and Shift+Tab moves it to the left, now you want to implement the same thing but just up and down, correct? If so, try this.
    /** Javascript **/
    function detectKey(evt) {
        var inputText = evt.getSource();
        var id = inputText.getClientId();
        var start2 = id.indexOf(":") + 1;
        var end2 = id.lastIndexOf(":");
        var numValue = parseInt(id.substring(start2, end2));
        var evt2 = evt.getNativeEvent();
        arrows=((evt2.which)||(evt2.keyCode));
        switch(arrows) {
            // Up arrow
            case 38:
            numValue = numValue - 1;
            break;
            // Down arrow
            case 40:
            numValue = numValue + 1;
            break;
        var newStr = id.replace(/:\d:/, ':' + numValue + ':');
        var comp = AdfPage.PAGE.findComponent(newStr);
        if (comp != undefined) {
            comp.focus();
    /** Jspx. (Place a client listener on each inputText in the ADF table) **/
    <af:column .....>
      <af:inputText value="#{row.bindings.price.inputValue}" .....>
        <af:clientListener type="keyDown" method="detectKey"/>
      </af:inputText>
    </af:column>With this, you get to move Up/Right/Down/Left in the editable ADF table without using the mouse.
    References:
    http://thepeninsulasedge.com/blog/?cat=29
    af:clientListener attributes and methodes of event object in java script
    Regards,
    Chan Kelwin

  • Next record button GUI & database

    hello,
    I have a GUI that connects to a database and in the GUI I have a file menu that has first, last, prev, next on it. I want the user to be able to select either one of these words or on the image of these that are in a tool bar. i have two classes. it is a lot of code but i just need to figure out how to get to the next record under the action performed. Thank you for your time!!!
    Brian
    package Assignment2;
    import javax.swing.event.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.awt.*;
    import java.util.Vector;
    import java.io.*;
    public class GUIDatabase extends JFrame implements ListSelectionListener, ActionListener {
    private String path = "c:/temp/assn2Files/";
    private JButton first, last, next, prev, save;
    private JTextField fn, mi, ln, t, s, y;
    private String[] title = {"analyst", "executive", "programmer", "project leader "};
    private JComboBox titleCombo = new JComboBox(title);
    private String[] department = {"Applications", "Payroll", "Accounting", "Marketing "};
    private JComboBox departmentCombo = new JComboBox(department);
    private JList pd;
    private String myArray[] = {""};
    private DbSource source = new DbSource("empdb", true);
    String action, selectedQName, selectedQDSN, selectedQString;
    private Vector vc, vc2, vc3, pdNames;
    private DbSource dbs = new DbSource("empdb", true);
    private DbSource dbs2 = new DbSource("empdb", true);
    private DbSource dbs3 = new DbSource("empdb", true);
    private DbSource dbs4 = new DbSource("empdb", true);
    public GUIDatabase() {
    super("Employee Interface");
    //set up menus
    JMenuBar menuBar = new JMenuBar();
    JMenu navMenu = new JMenu("Navigation");
    menuBar.add(navMenu);
    navMenu.add(ListeningMenuItem("First"));
    navMenu.add(ListeningMenuItem("Prev"));
    navMenu.add(ListeningMenuItem("Next"));
    navMenu.add(ListeningMenuItem("Last"));
    navMenu.add(new JSeparator());
    navMenu.add(ListeningMenuItem("Update employee record"));
    JMenu statsMenu = new JMenu("Statistics");
    menuBar.add(statsMenu);
    statsMenu.add(ListeningMenuItem("Employees per Department"));
    statsMenu.add(ListeningMenuItem("Employees per Project"));
    //menu goes on the root pane
    setJMenuBar(menuBar);
    //instantiates buttons with images instead of text
    first = new JButton(new ImageIcon(path + "First.gif"));
    last = new JButton(new ImageIcon(path + "Last.gif"));
    next = new JButton(new ImageIcon(path + "Next.gif"));
    prev = new JButton(new ImageIcon(path + "Prev.gif"));
    save = new JButton(new ImageIcon(path + "save.gif"));
    //tooltips for buttons
    first.setToolTipText("Go to First Record");
    last.setToolTipText("Go to Last Record");
    next.setToolTipText("Go to Next Record");
    prev.setToolTipText("Go to Prev Record");
    save.setToolTipText("Save File");
    //register frame to listen for buttons' action events
    first.addActionListener(this);
    last.addActionListener(this);
    next.addActionListener(this);
    prev.addActionListener(this);
    save.addActionListener(this);
    //set up toolbar and add componenets to it
    JToolBar myToolBar = new JToolBar();
    myToolBar.add(first);
    myToolBar.add(prev);
    myToolBar.add(next);
    myToolBar.add(last);
    myToolBar.add(save);
    add(myToolBar, BorderLayout.NORTH);
    //text fields
    JTextField fn = new JTextField(30);
    JTextField mi = new JTextField(30);
    JTextField ln = new JTextField(30);
    JTextField t = new JTextField(30);
    JTextField s = new JTextField(30);
    JTextField y = new JTextField(30);
    y.setEditable(false);
    //create the pd Jlist
    pdNames = new Vector();
    JList pd = new JList(pdNames);
    LabelComponent pdText = new LabelComponent("Project Description", pd);
    pd.addListSelectionListener(this);
    // pd = new JList(myArray);
    pd.setFixedCellHeight(20);
    pd.setFixedCellWidth(90);
    // pd.addListSelectionListener(this);
    //labels
    LabelComponent fnText = new LabelComponent("First Name", fn);
    LabelComponent miText = new LabelComponent("MI", mi);
    LabelComponent lnText = new LabelComponent("Last Name", ln);
    LabelComponent tCombo = new LabelComponent("Title", titleCombo);
    LabelComponent tText = new LabelComponent("Telephone", t);
    LabelComponent sText = new LabelComponent("Salary", s);
    LabelComponent dCombo = new LabelComponent("Department", departmentCombo);
    LabelComponent yText = new LabelComponent("Years in Service", y);
    // LabelComponent pdText = new LabelComponent("Project Description", pd);
    JPanel p1 = new JPanel();
    p1.setLayout(new GridLayout(9, 2, 1, 15));
    p1.add(fnText);
    p1.add(miText);
    p1.add(lnText);
    p1.add(tCombo);
    p1.add(tText);
    p1.add(sText);
    p1.add(dCombo);
    p1.add(yText);
    pdText.add(pd);
    // pdText.setEditable(false);
    //set layout for frame
    setLayout(new BorderLayout());
    add(p1, BorderLayout.EAST);
    add(myToolBar, BorderLayout.NORTH);
    add(pdText, BorderLayout.SOUTH);
    //set up the frame properties
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    setSize(470, 550);
    setLocationRelativeTo(null);
    setVisible(true);
    if (dbs2.isConnected()) {
    boolean two = dbs2.processQuery("select e.FirstName, e.middlename, e.lastname, e.title, e.workphone, format(e.salary, 'currency'), d.departmentname, e.yearsinservice from employees e, departments d", false);
    if (two) {
    vc = new Vector();
    while (dbs2.nextRecord()) {
    vc.addElement(dbs2.getField(4));
    titleCombo = new JComboBox(vc);
    if (dbs3.isConnected()) {
    boolean three = dbs3.processQuery("select distinct(departmentname) from departments", false);
    if (three) {
    vc2 = new Vector();
    while (dbs3.nextRecord()) {
    vc2.addElement(dbs3.getField(1));
    departmentCombo = new JComboBox(vc2);
    if (dbs4.isConnected()) {
    boolean four = dbs4.processQuery("select projectdescription from projects", false);
    if (four) {
    vc3 = new Vector();
    while (dbs4.nextRecord()) {
    vc3.addElement(dbs4.getField(1));
    pd.setListData(vc3);
    if (dbs.isConnected()) {
    boolean one = dbs.processQuery("select * from employees, departments", false);
    if (one) {
    while (dbs.nextRecord()) {
    fn.setText(dbs.getField(2));
    mi.setText(dbs.getField(3));
    ln.setText(dbs.getField(4));
    titleCombo.setSelectedItem(dbs.getField(5));
    t.setText(dbs.getField(6));
    s.setText(dbs.getField(7));
    departmentCombo.setSelectedItem(dbs.getField(9));
    y.setText(dbs.getField(8));
    //project descriptions method
    /* public Vector getProjectDescription() {
    String pdSQL = "Select projectDescription from projects;";
    source.processQuery(pdSQL, true);
    //create new vector for list of project descriptions
    pdNames = new Vector();
    while (source.nextRecord()) {
    pdNames.addElement(source.getField(3));
    return pdNames;
    JMenuItem ListeningMenuItem(String label) {
    JMenuItem mi = new JMenuItem(label);
    mi.setActionCommand(label);
    mi.addActionListener(this);
    return mi;
    public void valueChanged(ListSelectionEvent e) {
    throw new UnsupportedOperationException("Not supported yet.");
    /*public void valueChanged(ListSelectionEvent e) {
    //set text boxes, state combo box
    String infoSQL = "select * from employees";
    if (source.processQuery(infoSQL, false)) {
    while (source.nextRecord()) {
    fn.setText(source.getField(1));
    mi.setText(source.getField(2));
    ln.setText(source.getField(3));
    t.setText(source.getField(4));
    // s.setSelectedItem(source.getField(5));
    y.setText(source.getField(6));
    // pd.setText(source.getField(7));
    throw new UnsupportedOperationException("Not supported yet.");
    // class for a labeled component*/
    class LabelComponent extends JPanel {
    JLabel l;
    public LabelComponent(String s, Component c) {
    setLayout(new BorderLayout());
    l = new JLabel(s);
    l.setHorizontalAlignment(SwingConstants.CENTER);
    add(l, BorderLayout.WEST);
    add(c, BorderLayout.EAST);
    public void actionPerformed(ActionEvent e) {
    //get command
    // String command = e.getActionCommand();
    // action = e.getActionCommand();
    try {
    if (e.getSource() == first){
    // new dialog(this);
    source.firstRecord();
    /*if (command.equals("Save")) {
    String updateSQL = "UPDATE Employees"
    + " SET first_name = '" + fn.getText() + "',"
    + " middle_name = '" + mi.getText() + "',"
    + " last_name = '" + ln.getText() + "',"
    + " title = '" + titleCombo.getSelectedItem().toString() + "',"
    + " work_phone = '" + t.getText() + "'"
    + " salary = '" + s.getText() + "'"
    + " department = '" + departmentCombo.getSelectedItem().toString() + "'"
    + " yearsinservice = '" + y.getText() + "'";
    // + " projectdescription = '" + pd.getSelectedItem().toString() + "'"
    // + " WHERE Customer_ID = " + IDText.getText();
    /* source.processUpdate(updateSQL);
    pd.setListData(getProjectDescription());
    } catch (Exception a) {
    System.out.println(a.toString());
    throw new UnsupportedOperationException("Not supported yet.");
    public static void main(String args[]) {
    DbSource dbs = new DbSource("empdb", true);
    if (!dbs.isConnected()) {
    System.out.println("Connection Error: " + dbs.getErrorMessage());
    System.exit(1);
    GUIDatabase m = new GUIDatabase();
    m.setVisible(true);
    m.setLocationRelativeTo(null);
    m.setDefaultCloseOperation(EXIT_ON_CLOSE);
    PHP Code:
    package Assignment2;
    import java.sql.*;
    public class DbSource {
    public ResultSet rs;
    public ResultSetMetaData rsmd;
    public String error;
    public Connection con;
    public DbSource(String b, boolean a) {
    try {
    String dataSource;
    // connect to ODBC database
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    //Evaluate connection type
    if (a) {
    dataSource = "jdbc:odbc:" + b;
    } else {
    dataSource = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb, *.accdb)};DBQ=" + b;
    //get connection
    con = DriverManager.getConnection(dataSource, null, null);
    } catch (Exception e) {
    error = e.toString();
    public boolean isConnected() {
    //test for connection validity
    boolean x;
    try {
    if (con == null || con.isClosed()) {
    x = false;
    } else {
    x = true;
    return x;
    } catch (SQLException e) {
    error = e.toString();
    return false;
    public boolean processQuery(String sqlSelect, boolean s) {
    //process sql statement passed along with whether to allow bidirectional scrolling
    try {
    Statement stmt;
    if (s) {
    stmt = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
    ResultSet.CONCUR_UPDATABLE);
    }else{
    stmt = con.createStatement();
    //Formulate ResultSet
    rs = stmt.executeQuery(sqlSelect);
    //ResultSet MetaData
    rsmd = rs.getMetaData();
    catch (SQLException e) {
    error = (e.toString());
    rs = null;
    return false;
    return true;
    public int processUpdate(String sqlStatement) {
    // process Update
    try {
    int nbr = 0;
    Statement stmt = con.createStatement();
    nbr = stmt.executeUpdate(sqlStatement);
    return nbr;
    } catch (SQLException e) {
    error = e.toString();
    return -1;
    public boolean nextRecord() {
    //proceed to next record
    try {
    if (rs.next()) {
    return true;
    } else {
    return false;
    } catch (SQLException e) {
    error = e.toString();
    return false;
    public boolean prevRecord() {
    //move cursor back one record
    boolean a = false;
    try {
    if (rs.previous()) {
    a = true;
    return a;
    } catch (SQLException e) {
    error = e.toString();
    System.out.println("Start of File");
    return false;
    public boolean firstRecord() {
    // move cursor to first record
    try {
    rs.first();
    return true;
    } catch (SQLException e) {
    error = e.toString();
    System.out.println("End of File");
    return false;
    public boolean lastRecord() {
    //move cursor to last record in result set
    try {
    rs.last();
    return true;
    } catch (SQLException e) {
    error = e.toString();
    System.out.println("End of File");
    return false;
    public String getField(int x) {
    //get field from result set
    try {
    String a = rs.getString(x);
    return a;
    } catch (Exception e) {
    error = (e.toString());
    return null;
    public String getFieldName(int x) {
    //get field name in result set
    try {
    String a = rsmd.getColumnName(x);
    return a;
    } catch (SQLException e) {
    error = e.toString();
    return null;
    public String getFieldType(int x) {
    //get field type from meta data in result set
    try {
    String a = rsmd.getColumnTypeName(x);
    return a;
    } catch (SQLException e) {
    error = e.toString();
    return null;
    public int getFieldCount() {
    //get count of columns from metadata result set
    try {
    int a = rsmd.getColumnCount();
    return a;
    } catch (SQLException e) {
    System.out.println(e.toString());
    return -1;
    public void close() {
    //close connection
    try {
    con.close();
    } catch (SQLException e) {
    public String getErrorMessage() {
    return error;
    public String[] getTables() {
    //get table metadata info
    try {
    DatabaseMetaData dbmd = con.getMetaData();
    String[] tables = {"TABLE"};
    rs = dbmd.getTables(null, null, null, tables);
    int nbrRows = 0;
    while (rs.next()) {
    nbrRows++;
    String[] tblNames = new String[nbrRows];
    rs = dbmd.getTables(null, null, "%", tables);
    nbrRows = 0;
    while (rs.next()) {
    tblNames[nbrRows] = rs.getString(3);
    nbrRows++;
    return tblNames;
    } catch (Exception e) {
    error = e.toString();
    return null;
    public String resultSetToXML() {
    //turn result set to XML formatting
    String rsToXML = "";
    try {
    rsmd = rs.getMetaData();
    // begin to write XML document
    rsToXML += ("<?xml version="1.0\"?>\r\n");
    // Root node
    rsToXML += ("<ResultSet>");
    // get metadata into XML document
    rsToXML += (" <MetaData>");
    for (int i = 1; i <= getFieldCount(); i++) {
    rsToXML += (" <Column>" + getFieldName(i) + "</Column>");
    rsToXML += (" </MetaData>");
    // get data into XML document
    rsToXML += (" <Data>");
    while (rs.next()) {
    rsToXML += (" <Row>");
    for (int i = 1; i <= getFieldCount(); i++) {
    rsToXML += (" <" + getFieldName(i) + ">"
    + rs.getString(i)
    + "</" + getFieldName(i) + ">");
    rsToXML += (" </Row>");
    rsToXML += (" </Data>");
    rsToXML += ("</ResultSet>");
    } catch (Exception e) {
    error = e.toString();
    return rsToXML;
    }

    805487 wrote:
    it is a lot of code but i just need to figure out how to get to the next record under the action performed. Thank you for your time!!!It's too much code and it's unformatted. Put tags on both sides of the code (check that it works with the preview button), then ask an exact question (none of those "I don't know what to do" ones).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for

  • Data mart is not visible in Compression cube

    Hi Experts, we r loading data daily into BI inventory Cube 0IC_C03 with compression, but when i loading the same data  into SEM server there  wont get init flag, even i checked datamart status in BI but i did not find. so please help me out why it is

  • Dual 30" displays and dual pointers

    I have dual 30" displays and find that many times I have TWO mice. I just move the mouse across both monitors and one mouse goes away. But i comes back next time the computer goes to sleep. G5 dual 2.5 - 2GB ram   Mac OS X (10.3.9)  

  • Disable Digital Signatures Completely

    Hello, My company is not yet on board with digital signatures, and occassionally people attempt to turn in their forms digitally (with digital signatures) when they should be turning them in on paper with hand written signatures. I'm wondering if the

  • Task completion in defined time

    Hello guys, I have to implement a scenario in SSIS package where it has to be insured that a collection of SQL task's  completes in a defined period of time and incase if these task's fails to complete in that interval of time then SSIS package shoul

  • Importing archive files in Eclipse

    I use Eclipse to develop Java applications. I need to import some archive files (not the default jar files available in j2sdk), for my project. How can i import jar files in Eclipse. I googled for the answer, used Eclipse help but still cant find the