Add/Delete/Modify Record form question

I have a form set up in which I want the viewer to be able to
select a job title from a list menu. From that selection, I want
them to have the option to modify or delete that job selection or
add a new job. WIth that I have a "Add Job" button, "Modify Job" or
"Delete Job" button in the form for them to submit the form with.
But how do I set it up so each button will submit to the
appropriate page, (i.e the modify the selected job page, the delete
the selected job page, or the create new job page"
Thanks,
Dave

Okay-
Maybe I need to take a step back or something, but here is
what I now set up trying a slightly different approach:
<cfif form.title GT 0>
<cfif IsDefined("form.edit")>
<cfinclude template="../Admincopy/UticaEditJob.cfm">
<cfelseif isdefined("form.Delete")>
<cfinclude template="../Admincopy/UticaDeleteJob.cfm">
<cfelseif isdefined("form.Insert")>
<cfinclude
template="../Admincopy/UticaInsertPosting.cfm">
</cfif>
<cfelse>
<cflocation url="UticaJobPostings.cfm?"> Please select
a job to edit.
<cfexit>
</cfif>
What I thought would happen is that if form.title had a
value, it goes to the appropriate template. If it doesn't have a
value, the page returns to the UticaJobPostings.cfm page which has
the form field to select the posting.
Initially, if I select a job listing, it will go to the
appropriate template. If I don't choose a job listing, it still
goes to the template with the missing value error.
I am truly trying to figure this out and hate to keep posting
you with this problem, but I am at my wits end here!!!
Viewing what I have, what can I change???
Dave

Similar Messages

  • Creating (view, add, delete, modify) bsp application

    Hi gurus,
    Could anyone here please help. I am totally a new user in SAP and I would wish to create a small bsp application that could interact with my database in transaction se16.
    Below are the requirements.
    1) Allow user to<b> view </b>all Database Records
    2) Allow user to <b>add</b> records into the Database
    3) Allow user to <b>delete</b> records from the Database
    4) Allow user to <b>modify</b> records from the Database
    My table name in se16 is ZRM_PERIOD_CTRL
    and has 4 fields which are : CLASS, FISCPER3, FISCYEAR, ZG_PVER
    Can you please provide some direction on this?
    Thanks in advance
    Message was edited by:
            gary lee
    Message was edited by:
            gary lee

    Hi Gary,
    Lets start...!!!
    1) Create a new page <b>page.htm</b>
    2) In the<b> layout section</b> of the page put :
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content design="design2003" >
      <htmlb:page title="Modify table " >
        <htmlb:form>
          <htmlb:tray id     = "tray1"
                      title  = "Data Tray"
                      design = "BORDER" >
            <htmlb:trayBody>
              <htmlb:tableView id             = "TV"
                               table          = "<%= itab %>"
                               design         = "ALTERNATING"
                               onRowSelection = "MyEventRowSelection"
                               selectionMode  = "MULTILINEEDIT"
                               columnWidth    = "100%"
                               filter         = "SERVER" />
              <br>
              <br>
              <center>
              <htmlb:button id       = "Update"
                            text     = "Update"
                            onClick  = "onInputProcessing"
                            design   = "emphasized"
                            disabled = "false" />
              </center>
            </htmlb:trayBody>
          </htmlb:tray>
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    3) In the <b>TYPE DEFINITIONS</b> : 
    TYPES : itab_t type standard table of ZBANCTECPRD,
            wa_t type line of itab_t.
    4) Then in <b>page attributes</b> :
    itab                      TYPE     ITAB_T
    selectedrowindextable TYPE     INT4_TABLE
    wa                      TYPE     WA_T
    zindex                      TYPE     SY-INDEX
    5) In the <b>Event Handler</b> : 
    In <i><b>onCreate</b></i> :
    select * from ZBANCTECPRD INTO TABLE ITAB.
    In <i><b>onInputProcessing</b></i> :
    * To get the selected RowIndex...
    CLASS cl_htmlb_manager DEFINITION LOAD.
    DATA: tv          TYPE REF TO cl_htmlb_tableview,
          event       TYPE REF TO cl_htmlb_event,
          table_event TYPE REF TO cl_htmlb_event_tableview.
    FIELD-SYMBOLS <i> LIKE LINE OF selectedrowindextable.
    tv  ?= cl_htmlb_manager=>get_data( request = request
                                       name    = 'tableView'
                                       id      = 'TV' ).
    IF tv IS NOT INITIAL.
      table_event = tv->data.
      CLEAR selectedrowindextable.
      selectedrowindextable = table_event->prevselectedrowindextable.
      IF table_event->event_type EQ cl_htmlb_event_tableview=>co_row_selection.
        READ TABLE selectedrowindextable WITH KEY table_line = table_event->row_index TRANSPORTING NO FIELDS.
        IF sy-subrc EQ 0.
          DELETE selectedrowindextable INDEX sy-tabix.
        ELSE.
          APPEND INITIAL LINE TO selectedrowindextable ASSIGNING <i>.
          <i> = table_event->row_index.
          zindex = table_event->row_index.
        ENDIF.
      ENDIF.
    ENDIF.
    * get the button event.
    IF event_id = cl_htmlb_manager=>event_id.
      event = cl_htmlb_manager=>get_event( runtime->server->request ).
      IF event->name = 'button' AND event->event_type = 'click'.
        DATA : button_event TYPE REF TO cl_htmlb_event_button.
        button_event ?= event.
      ENDIF.
      CASE event->id.   " Use this for specifying code for different buttons.
        WHEN 'Update'.          " This is the button id.
          tv ?= cl_htmlb_manager=>get_data(
                 request      = request
                 name         = 'tableView'
                 id           = 'TV' ).
          IF tv IS NOT INITIAL.
            DATA : tv_data TYPE REF TO cl_htmlb_event_tableview .
            tv_data = tv->data.
    *get values from screen to work-area...get_cell_value is for tableView and get_data is for other objects like inputfield
            wa-scnotify     = tv_data->get_cell_value(
                                             row_index     = zindex
                                             column_index  = 1 ).
            wa-equipmentid  = tv_data->get_cell_value(
                                             row_index     = zindex
                                             column_index  = 2 ).
            wa-clientname   = tv_data->get_cell_value(
                                             row_index     = zindex
                                             column_index  = 3 ).
            wa-sla          = tv_data->get_cell_value(
                                             row_index     = zindex
                                             column_index  = 4 ).
            wa-reference_no    = tv_data->get_cell_value(
                                             row_index     = zindex
                                             column_index  = 5 ).
            wa-district_code    = tv_data->get_cell_value(
                                             row_index     = zindex
                                             column_index  = 6 ).
            DATA : temp_date(10) TYPE c, new_date TYPE d.
            temp_date  = tv_data->get_cell_value(
                                   row_index     = zindex
                                   column_index  = 7 ).
            CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
              EXPORTING
                date_external = temp_date
              IMPORTING
                date_internal = new_date.
            wa-malfuncstdate = new_date.
            temp_date  = tv_data->get_cell_value(
                                   row_index     = zindex
                                   column_index  = 8 ).
            CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
              EXPORTING
                date_external = temp_date
              IMPORTING
                date_internal = new_date.
            wa-malfuncendate = new_date.
            wa-ceid   = tv_data->get_cell_value(
                                             row_index     = zindex
                                             column_index  = 9 ).
            MODIFY itab INDEX  zindex FROM wa .
            MODIFY zbanctecprd FROM wa.
          ENDIF.
      ENDCASE.
    ENDIF.
    <u><i><b>This is the code to modify a table line.....Try and think on these lines to add or delete a table line....!!</b></i></u>
    Also note that i have used my own Ztable....you will have to modify the code a bit for your Ztable....!!
    <i>Do reward each useful answer..!</i>
    Thanks,
    Tatvagna.

  • Approve EVERY add, delete, modify by hand.

    I've looked through the forum, but perhaps I haven't been using the right search terms...
    Is there a way to change a setting on iSync such that I can approve EVERY modification by hand?
    right now I have it set to notify me if ANY changes are to be made, but it will only tell me 2 additions, 1 deletion, and 3 modifications, but won't tell me WHICH 2 are being added, which 1 is being deleted, and WHICH 3 are being modified.
    Of couse, the big concern is the deletions and the modifications. (Not so much the additions) There are plenty of cases where I want to make sure that what is being changed/deleted is what I really want: Accidental pushing of cell phone buttons while in pocket, mistaken changes, cell software deleting objects randomly.
    The Conflict window would be great for reviewing these changes, but that only is invoked when it dectects items that have either both been changed or have not been synced.
    Anyone have any ideas?
    Thanks!
    Various    

    Newsletter? I don't actually have one. I've often thought of starting an online forum outside of Apple Discussions specifically for Mac OS X synchronization, but I just don't have the free time required to support it yet.
    There is some publicly available documentation you can read concerning the Sync Services framework. This overview is a good place to start:
    http://developer.apple.com/macosx/syncservices.html
    Embedded in it are links to other developer material, but in order to get access to the tools you need to examine client registration information, the truth database, conflicts and synchronization history, you need to be a paid, active developer. My best guess is that the specific capabilities you require essentially don't exist at the moment, and it may be some time before they do.
    There is an iSync 'roadmap' but it's not publicly available. If the development team itself were publicly accessible, they would never get any development work done because of the demand from users for help, feature improvements and information about upcoming releases. I am confident that they are well aware of user desires for such features as reviewable, non-conflicting record changes, but my best guess is that you will not see that sort of capability in iSync or other components of the framework for some time.
    As you can imagine, a great deal of effort is going into the soon-to-be released Mac OS X 10.5 package, with the many changes coming to client, contact and other data synchronization.

  • How to create global toolbar for some common operation like add, delete etc

    Hi,
    I want to create one global toolbar which contains buttons for common operations such as add, delete, modify etc.
    I have one globl .jspx page and in its center facet, I am loading my each screen's .jsff page.
    Now I want to create global toolbar on my .jspx page and when I click on toolbar's add button at that time it should call, currently loaded .jsff (loaded in center facet of .jspx page) backing bean's add method.
    How can I get the instance of currently loaded .jsff backing bean in my toolbar's backing bean and also I need it with its current state( means whatever UI components have values I should be able to get it in my instance).
    Regards,
    Devang

    Hi,
    since page templates don't support method expression arguments there are two options I can imagine
    - define a contract between the toolbar buttons and the availability of a managed bean available for the consumer page. If for example each page has a managed bean like <viewId>_toolbar then the Toolbar could reference exposed methods on this bean (which must be consistent)
    - Another option is to have the page passing in the EL string to access the iterator to operate on as an attribute of the template you use. Then you create a ValueExpression from it and call it for the button action events that you point to the managed bean you deploy with the template
    Frank

  • How to add/delete rows on the form without saving data

    I am new to apex
    I am working on project and need some help on creating a form
    my requirment is to save a request that has multiple questions.
    i have a request form with multiple regions
    On one of the region that takes questions, I want to create a tabular form such that i can add/delete/update row without hitting database and enter multiple questions
    each row is one question.
    Apex has the default functionality of having a tabular form linked to a table that onload shows the data from that table and also on click of add or delete hits the data base to save the data.
    However i want to load a form that does not show any data if its a new request and click of add/delete should not update the databse. It should just add/delete a row on the form
    so user logs in and can create a request that has multiple questions
    finally want to submit the form and save all the information of the form in multiple tables.
    As of now i a m able to have a simple form and a process that save 1 question per request.
    How do i achieve this. Please assist.

    Do that using collections like in this example:
    http://apex.oracle.com/pls/otn/f?p=31517:176
    Once you are done, you may decide either to save that or to clean it up.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    ------------------------------------------------------------------------------

  • How to delete a record from a form

    Hello!
    I'm trying to delete a record from a table called PETS. The pet name is in a textbox from a data block called DELETE_PET.
    So i wrote in the WHEN_BUTTON_PRESSED_TRIGGER of the Delete button:
    select PETNAME into p_name from pets where PETNAME = :DELETE_PET.PETNAME;
    DELETE from PETS where PETNAME = p_name;
    clear_block(NO_VALIDATE);
    alert_id := find_alert('PET_DELETED');
    choice := Show_ALert(alert_id);
    commit;
    exception
    when NO_DATA_FOUND then
         alert_id := find_alert('PET_NOT_FOUND');
         choice := Show_ALert(alert_id);
         clear_block(NO_VALIDATE);
    rollback;
    end;
    And it's not working!!!!! :( :( :(
    Any help would be greatly appreciated!
    Thank you.

    Hi ,
    Write your trigger as....
    begin
    begin
       select PETNAME into p_name from pets where PETNAME = :DELETE_PET.PETNAME;
      exception
        when no_data_found
          then
            alert_id := find_alert('PET_NOT_FOUND');
            choice := Show_ALert(alert_id);
            clear_block(NO_VALIDATE);
            return;
    end;
    DELETE from PETS where PETNAME = p_name;
    clear_block(NO_VALIDATE);
    alert_id := find_alert('PET_DELETED');
    choice := Show_ALert(alert_id);
    commit;
    end;Question: Does your select statement return a value 'as you expect'...????
    Try to run your form in debug mode , and you may discover the deletion is not taking place.....
    Regards,
    Simon

  • Trace  to find who out who has deleted / modified  the attendance record

    Dear All
    Some one has deleted the attendence record of a particular user of previous month , so how i can track who has deleted / modified the same in salary slip it is showing 1 leave record for the same month, but while checking throught pa30 there is no record shown for the same . can you please tell me how to trace that and which tables are updated once we update the attendence and while processing the salary slip , from which table it picks the leave availaed data .
    Thx
    Shilpa
    Edited by: Shilpa on Nov 13, 2009 11:31 AM

    Hi Shilpa,
    You have to activate the audit Trail.
    RPUAUD00 isthe program to see the changes in infotypes records, but before that you have to configure T585A, T585B, T585C
    Regards,
    Kapil Kaushal

  • 0 down vote favorite        I would like to ask the following question. I am using mac os x 10.9 maverics me quicktime player version 10.3. Can I trim a video recording without having to press the pause or save it as a file? Or can I add a new recording t

    0 down vote  favorite  
    I would like to ask the following question. I am using mac os x 10.9 maverics me quicktime player version 10.3. Can I trim a video recording without having to press the pause or save it as a file? Or can I add a new recording to a video file? Thanks in advance

    Well,
    I tried the "Internet Recovery" option and finally saw Mac OS X Mountain Lion's install page but after waiting 7 hours when I just thought its going to start installing, I got another progress bar with 36 hours remining time to download "Additional Components" then after progressing 2-3 hours, it shows "Unable to write installation something..., Contact Apple Care"
    Then I accidently rebooted the machine and now it seems Internet Recovery don't work anymore, it shows "support.apple.com - 40 something!" error, and finally when I tried to reboot using Recovery HD, I found it's gone as-well!
    To be honest, I don't know what to do now, I am and dissapointed... also I do not have any Apple Store nearby, there is an authorized country reseller almost 650/km far away from my residents and they even charges too high (like $250) for doing such repairs (as per phone conversation)
    If anyone have any idea or anything to help me with, please do share- I'd be eternally grateful!

  • How to delete a record in custom form

    Hi,
    I got a requirement,
    If a form has 'n' records with start & end dates, such that start date of new record should be last record end date + 1.
    Now if the user tries to delete a record between first and last record, it should allow him to delete but when he tries to save it should not allow.
    Only way he can delete is either he can create a new record with the same dates or he can adjust remaining record dates such that startdate of new record should be last record end date + 1.
    I'm running out of ideas, any suggestion is appreciated.

    Hi
    it should allow him to delete but when he tries to save it should not allow.Play with the KEY-COMMIT Trigger Which is the Best i can see to STOP or PROCESS any Validations during the saving process according to the conditions u specify using...
    RAISE FORM_TRIGGER_FAILURE;Prevents the user from Saving in KEY-COMMIT Trigger it's the yellow-black Floppy Disk u use for saving records in the Form's Tool Bar..
    Hope this helps...
    Regards,
    Amatu Allah

  • How to add a new tab on modify user form

    Hi,
    In OIM11g, we can assign roles to a user using a tab named Roles in the modify user form. I want to add a new custom tab alongside all the already present tabs.
    The new custom attribute functions the same as 'Roles' in OIM.
    Does OIM11g provide any functionlity to do so?
    Thanks..

    Have you seen the 11g tutorial thing about adding a Custom ADF tabs in OIM Self Service Console at
    http://apex.oracle.com/pls/apex/f?p=9830:37:3242381082783477::NO:RIR:IR_PRODUCT,IR_PRODUCT_SUITE,IR_PRODUCT_COMPONENT,IR_RELEASE,IR_TYPE,IRC_ROWFILTER,IR_FUNCTIONAL_CATEGORY:,,,OIM_11g,,,
    Is that any help?
    Also, more general advice on customising OIM 11g is available at:
    http://download.oracle.com/docs/cd/E14571_01/doc.1111/e14309/uicust.htm
    Try metalink too because there may be examples of how to do stuff with OIM 11g there.
    Good luck

  • Urgent:                FORMS-III   Deleting Multiple Records By Marking X

    Deleting Multiple Records By Marking X
    In Forms III, i need to delete multiple records by marking X (in non database Item)
    i.e.
    ========================
    D Empno Ename Deptno
    ========================
    X 10001 ABC 10
    10002 DEF 10
    X 10003 GHI 20
    X 10004 JKL 20
    =======================
    How To Do????????????
    Rgds,
    Rashad

    Create a button say lable "delete" in a block other than the block from where u want to delete records.
    suppose the block's name is emp_blk
    now create a WHEN-BUTTON-PRESS trigger for delete button and write the following code
    begin
    go_block('emp_blk');
    first_record;
    loop
    if :emp_blk.d ='X' then
    delete_record;
    end if;
    if :system.last_record='TRUE' then
    exit;
    end if;
    next_record;
    end loop;
    end;
    filnally commit on save.

  • How to connect, add delete and modify sqllite data base.

    dear friends,
    i am developing a stand alone project, in that i want to
    store the datas in the local machine using sql lite. Iam new to
    Flex. i know air and flash very well.. any body can help me, how to
    connect, add, delete and modify the data in sql lite. i want to
    store users option in local machine.. i got struct up. i have to
    finish my project...pls..
    thanks and Regards,
    Syed Abdul Rahim

    Hi,
    Please find details on how to access SQL Lite database from
    AIR applications at the URL below.
    http://livedocs.adobe.com/flex/3/html/SQL_01.html
    Hope this helps.

  • DELETING THE RECORDS IN THE FORM

    Dear Friends
    I have a problem for deleting the records in my form
    on the form I have button for deleting the record
    and this button has
    when-button-pressed trigger
    And it has this contains
    Do_Key('DELETE_RECORD');
    COMMIT_FORM;
    The system displayed this message after pressing the delete button
    FRM-40400 : transaction complete: 1 record applied and saved
    But when I inquiry, about this record it is not deleted .
    Can any one tell me why the record is not deleted .
    I am using this version of form
    Forms [32 Bit] Version 6.0.8.11.3 (Production)
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, Oracle Label Security, OLAP and Oracle Data Mining
    waiting for your valuable replay.
    Best regards
    Jamil

    Dear Pavel
    Yes the ON-DELETE trigger , it is exists in the block ,and because of that, it was not saving the deleted record and this code was in the
    on-delete trigger
    DECLARE
         V_LOC VARCHAR(25);
    BEGIN
    SELECT CAR_NO INTO V_LOC
    FROM CAR_FILE
    WHERE CAR_NO = :J_CAR_NO ;
    IF V_LOC IS NOT NULL THEN
    UPDATE CAR_FILE
    SET CAR_STATUS =2
    WHERE CAR_NO = :J_CAR_NO;
    ELSE
    NULL;
    END IF;
    END ;
    Why it is not working with ON-DELETE TRIGGER
    But it is working with POST-DELETE TRIGGER.
    Best regards
    jamil

  • Help with update,add, delete records

    Hi every one,
    This is a problems that I have been trying to figure out for
    a little while now and I hope you all can help me out. So this is
    the situation.
    I am useing CFX XLS 2 Query to create a query from an excel
    doc I have. Now my problem is how can I loop through and delete the
    records that no longer are in the spreadsheet?
    So in other words my client will be uploading a new XLS each
    day, this xls will have some new data, some of the same and some
    will be gone. So I need the system to check and see if the
    stocknumber is there, if it is it will just update that record, now
    if the record is new it will add the record but for the life of me
    I can't figure out how it can delete record.
    I had thought maybe doing a select where the stock numbers
    dont match but that didnt work out too well :)
    Thanks for any help you may be able to provide

    You could consider using ValueList() to create a list of
    stocknumbers from your excel query, then do something like this:
    <cfset sCurrentStockNumbers =
    ValueList(myQuery.stocknumber)>
    <cfquery name="removeStockNumbers"
    datasource="myDataSource">
    DELETE from myTable
    WHERE stocknumber NOT IN (<cfqueryparam
    value="#sCurrentStockNumbers#" list="Yes">)
    </cfquery>

  • Any clue how to add pagination to single record form?!

    Is there any1 who tried to create pagination to single record form?! i tried this but i have problem with navigating to the NEXT record.
    Regards;

    Hello guys?!!
    Is there any1 in this forum can help me in my issue?!! am desperate.

Maybe you are looking for

  • My embedded Jotforms are not displaying on iOS devices

    Just checking to see if anyone else has run into this issue. My embedded Jotforms display fine on desktop and Android devices, not any iOS devises. Perhaps I missed a step somewhere? Rentaleez - New Listing Form

  • Displaying a link to a file

    Hi, I have a page with an Item Region containing a series of File items. From a PL/SQL Portlet, I want to be able to retrieve details of those files (which I can do from WWSBR_ALL_ITEMS) and show a link to each file, so that when I click, the file op

  • Grouping Inner Query based on a column.Please help

    I have a strange query. I am using Subquery to display the count of rows from the inner query depending upon the value of 'Y' or 'N' Trade id_entity       id_inst_code_type   id_inst_code   dt_trade AGL            SE                  5660249        1

  • Bapi fm for the transaction FS10n

    Hi friends, Can any ine tell the bapi fm for t code FS10n. Thanks , Ankitha

  • Trouble with InstallShield X and .msm files

    I cannot use the distributed .msm files in InstallShield X - they give warnings(errors really) when included in an InstallShiel project. In addition, I cannot open the .msm files - I get "Error retrieving ModuleID for Table" messages. NIMesaDLL.msm C