Refresh page but SAVE USER INPUT in tabular form WITHOUT UPDATE

Hi,
When there is a tabular form in the page and user refreshes it (in anyway) tabular form's elements are always computed with values from the table in db. Can we somehow save user input in fields so that after refreshing page user will see what he/she has typed but not submitted to db?
Regards,
Tom

Hello Andy,
Let me introduce you to the problem.
There is a tabular form based on a source table. User modifies the data and after he/she clicks Submit button the validation procedure is being run before MRU. If the result of validation is positive then MRU is run otherwise data should not be submitted to db and user should be informed about the result. Moreover, he/she should see the invalid data in fields. Not the correct one from db.
Is there any way to save a session state of these fields or of a whole tabular form? I cannot save the data in other table in db.
User cannot click 'Add row' several times in my app because after he clicks it once then the button disappears and appears again only when he/she clicks 'Submit' first (so after validation procedure).
Maybe there is some way to store fields' values in memory and then compute the form when page is loading again?
Imagine the situation that there are 100 rows in tabular form and user modifies it for one hour, clicks Submit, validation result is negative and his/her whole one hour work is lost, because the form has been refreshed according to what is stored in db. Such situation should never occur.
Regards,
Tom

Similar Messages

  • Set value for user input in tabular form

    Hello all
    I have a tabular form wherein I want to set the length of values a user an enter into certain columns.
    For an example, column1 should only allow users to input a 5 digit number and no more. Column2 should only allow 6 digits and so on.
    Is this something that can be done? and if so, how?
    Thank you for any help -Trey

    Hi Trey,
    APEX doesn't support that out of the box, it always creates a HTML input item with a maxlength=2000. But have a look at the ApexLib Framework which supports a length property for tabular from fields. See http://www.inside-oracle-apex.com/2007/02/restrict-input-length-for-tabular-form.html and http://apex.oracle.com/pls/otn/f?p=44394:54 for details.
    Patrick
    My APEX Blog: http://www.inside-oracle-apex.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://apexplugin.sourceforge.net/ New!

  • Can not refresh page after save properly(When not saving master record)

    I am using jdeveloper 11g R2 (11.1.2.3) JSF Facelet
    In some use case I have Address as master table and Person as detail table
    For some business reason I need to don't save same addresses
    eg:
    If +1 Test St+ is in database already and new user coming and adding this address with new person
    I need to use the row in database not creating a new address
    I do saving in doDML method of Address with some hashing algorithm and it is fine
    My problem is that I can not refresh page after save properly
    User coming to page think Adding a new address and a new person but in fact no new
    address added because of business I describe above
    Any ideas how I can implement this?
    Appreciate that
    Regards
    Mohsen

    Hi,
    from your description it is not clear why the page doesn't refresh. It could be a problem in your implementation code - who knows. What if you perform the address check on a command button that actually submits the new address? If the check returns true (address exists) you would call row.refresh(forget new row); and re-query the view object so the address coming from the database is displayed. If you wanted to use the doDML then yuou need to be aware that doDML doesn't help removing the row the user created. It just ignores the database update but the entity is still around, which in my suggested solution wont be the case.
    Frank

  • Redirect to different pages based on user input value

    Hello,
    Anyone please help.
    I am trying to redirect to different pages based on user inputs. I have a form in which I have one text item and a submit button. For example consider text item to be empno; So once the user enters a empno and hits submit button; I need to redirect to different pages based on this job.
    For Ex: if user inputs empno whose job is 'ANALYST' then redirect to page 1
    if user inputs empno whose job is 'MANAGER' then redirect to page 10
    For this scenario. i wrote a pl/sql process for the submit button; but no luck -- its not at all redirecting instead its in the same page. Below is the process.
    declare
    v_job varchar2(20);
    begin
    select job into v_job from emp where empno = :P9_EMPNO_R;
    if v_job = 'ANALYST' then
    OWA_UTIL.REDIRECT_URL('f?p=&APP_ID.:1:&SESSION.::&DEBUG.::', TRUE);
    end if;
    if v_job = 'MANAGER' then
    OWA_UTIL.REDIRECT_URL('f?p=&APP_ID.:10:&SESSION.::&DEBUG.::', TRUE);
    end if;
    end;Please help. I am using Oracle APEX version 4.2 and database Oracle 11g R2
    Thanks,
    Orton

    orton607 wrote:
    Hello,
    Anyone please help.
    I am trying to redirect to different pages based on user inputs. I have a form in which I have one text item and a submit button. For example consider text item to be empno; So once the user enters a empno and hits submit button; I need to redirect to different pages based on this job.
    For Ex: if user inputs empno whose job is 'ANALYST' then redirect to page 1
    if user inputs empno whose job is 'MANAGER' then redirect to page 10
    For this scenario. i wrote a pl/sql process for the submit button; but no luck -- its not at all redirecting instead its in the same page. Below is the process.
    declare
    v_job varchar2(20);
    begin
    select job into v_job from emp where empno = :P9_EMPNO_R;
    if v_job = 'ANALYST' then
    OWA_UTIL.REDIRECT_URL('f?p=&APP_ID.:1:&SESSION.::&DEBUG.::', TRUE);
    end if;
    if v_job = 'MANAGER' then
    OWA_UTIL.REDIRECT_URL('f?p=&APP_ID.:10:&SESSION.::&DEBUG.::', TRUE);
    end if;
    end;Please help. I am using Oracle APEX version 4.2 and database Oracle 11g R2
    Thanks,
    OrtonI have a similar scenario in my application and this is how I handle it.
    1. Create a page item on the page, say Px_PAGE_NUM
    2. Create a "On Submit - After Computations and Validations" page process to set the above page item. In your case, you can use the same logic that you have already in place (except the call to OWA_UTIL.REDIRECT_URL) :
    declare
    v_job varchar2(20);
    begin
    select job into v_job from emp where empno = :P9_EMPNO_R;
    if v_job = 'ANALYST' then
       :Px_PAGE_NUM := '1';
    end if;
    if v_job = 'MANAGER' then
       :Px_PAGE_NUM := '10';
    end if;
    end;3. Create a "On Submit: After processing" branch. Specify the "Target Type" as "Page in the application" and "Page Number" as &Px_PAGE_NUM. (with the dot).
    I hope the above helps.
    BTW, the following thread in the forum related to OWA_UTIL.REDIRECT_URL might help:
    issue OWA_UTIL.REDIRECT_URL with APEX 4.1.1

  • I'm trying to become an Affiliate and I am on the Affiliate page but there is no sign up form

    I'm trying to become an Affiliate and I am on the Affiliate page but there is no sign up form, Also the Persona window opened and asked me to enter my email in which I did and clicked enter and it said I need to confirm my email but I never received any confirmation email and I tried this a number of times.
    The email I'm using is [email protected] ''(email removed by Moderator)''
    Thanks,
    Al Silva

    Hi Al, have you ever used Persona before? If not, it might be easier to set up your Persona account here: https://login.persona.org/
    After setting it up, what will happen when you sign in with a Yahoo account, at least for me, is that a Yahoo window opens and you sign in on Yahoo's form. Then you are sent back to the Persona window.

  • Tabular Form MRU Update

    Hi All,
    I have a table Tab1 with columns EditDate DATE, ID Number, Value Number.
    It has composite primary key (EditDate, ID).
    Sample values are stored as follows.
    Edit Date ID Value
    01-MAY-2007 01:00:00 1 0
    01-MAY-2007 02:00:00 1 0
    01-MAY-2007 03:00:00 1 0
    01-MAY-2007 04:00:00 1 0
    I created a Tabular Form with Update Only. Everything is default created by APEX wizard. When I update value field and click Submit I get the following error message. Also, Why my primary key is showing in the update statement? I thought it should be a part of where condition.
    Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-20001: ORA-20001: Current version of data in database has changed since user initiated update process. current checksum = "8395BC1EF2E94441B2921CD18505810C", item checksum = "F6C92BBA1B8ACD35D0BCCF59FC4B9785"., update "Tab1" set "EditDate" = :b1, "ID" = :b2, "Value" = :b3
    Any help is greatly appreciated.
    Thanks

    Also, How can I make sure that correct hour ending is updated?
    Any example is greatly appreciated..

  • How to save user input data in pages into database ?

    Dear Friends,
    Hello. I am developing my first PeopleSoft application using PeopleTools 8.49 and SQL Sever 2005. In application designer, I have created fields, records, records' underlying tables in database, and pages. After users type in data into fields in a page, we need to click "submit" button in the page and save the data into Database. How to submit data into database ?
    If we use JBuilder or Netbean instead of PeopleTools, we simply develope a server side script file like sth.jsp and link it to the "submit" button. The server side script file save data into Database. But in PeopleSoft application designer, I don't understand how to submit data in a page into database.
    Can any friends help to solve this question ? Thanks.
    Lucy

    Hi:
    Data will be saved in the database once you click on the 'Save' button on the page or if you use one of the 'Save' functions in PeopleCode (like DoSave(), DoSaveNow()). Generally, there is no need to write a script explicitly. Please refer to PeopleSoft Internet Architechture and PeopleCode peoplebooks (and other PeopleTools peoplebooks as well) for more reference.
    You may want to attend PeopleTools training if you are fresh to PeopleSoft development.
    Regards,
    Sameer.

  • Restrict Form & Reports Pages but allow users to Save their Records

    Hi
    I have a database with Forms & editable Reports pages.
    I have also created a table with certain 'Admin Levels' of access so that users with the 'ADMIN_LEVEL' = 1 cannot access the editable reports pages.
    I find that applying the below restriction stops those users from accessing the reports but also won't allow those users to save any records.
    select USER_ID
    from USERS
    where USER_ID=:APP_USER
    and ADMIN_LEVEL > 1
    I then thought I could create a new page of the report but make it uneditable & use the 'Create' button to save the record to the table, but this doesn't work.
    My question is, how can I restrict access to a reports page but still allow records from restricted users to be saved?
    Thanks

    Hi,
    Firstly, you should look into Authorization Schemes: [http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/sec.htm#BABCAGAB]
    I would suggest you create a scheme to identify admin users called, say, ADMIN_USER. This could be an EXISTS SQL query scheme of something like:
    SELECT 1
    FROM USERS
    WHERE UPPER(USER_ID) = UPPER(v('APP_USER'))
    AND ADMIN_LEVEL = 1Then, on any item within your application, you have an Authorization Scheme setting. You can then set this to either "ADMIN_USER" or "{not}ADMIN_USER" to determine which user can have access to that item. "{not}ADMIN_USER" is any user where the above query would return no records.
    Using this, you could grant access to a page, but stop access to a button and/or process. You don't, for example, have to set a scheme for the page itself (you can leave the setting as "- No Authorization Required -", so everyone can get to the page), but you can then set a Scheme for a button on that page. If the user is an ADMIN_USER and you have set a button for {not}ADMIN_USER, that user won't get the button on the page (you should also make the same setting on any process that this button triggers).
    But, if you set the page's Scheme to {not}ADMIN_USER, any ADMIN_USER will not even be able to get to the page.
    Andy

  • How to save User input into DB using webdynpro abap

    Hi,
    Im trying to create an application using webdynpro abap.
    I want to know how to save the data input by user, into a database table.
    In my UI, I have a table control which is editable and user inputs data into this. I need to know how i can transfer this data to a DB table.

    hello,
    u can do it by reading ur context node.
    we bind our UI elements to context attributes of appropriate type .
    we read their values using the code wizard or by pressing control+F7, click on radio button read node/attribute
    here for ur specific case , u must have binded ur table control with the context attribute , now u need to simply read this attribute
    eg suppose u have created a context node " cn_table"
      reading context node cn_table
       DATA : lo_nd_cn_table TYPE REF TO if_wd_context_node ,
             lo_el_cn_table TYPE REF TO if_wd_context_element ,
             ls_cn_table    TYPE wd_this->element_cn_table.
    *   navigate from <CONTEXT> to <CN_TABLE> via lead selection
      lo_nd_cn_table = wd_context->get_child_node(
                       name = wd_this->wdctx_cn_table ).
    **    get element via lead selection
      lo_el_cn_table = lo_nd_cn_table->get_lead_selection(  ).
      lo_el_cn_table->get_static_attributes( IMPORTING
                 static_attributes = wa_table ).
    here wa_table is the work area of structure type . u need to create a structure first with the same variables as there are the context attributes in ur node cn_table
    in ur
    now ur wa_tablecontains value
    u can nw use appropriate FM to update , delete and modify the DB table using the value
    u cn directly use SQL statements as well in the method of ur view , but direct SQL statements are nt recommende
    rgds,
    amit

  • How to save the session states for a tabular form WITHOUT using check boxs?

    Greeting guys,
    As you know that we can use collections to save the session states of a tabular forms, described in the how-to doc of manual tabular forms. However, what I am trying to do ( or have to do) is to provide a manual tabular form, and save the session states for validation, without using the check boxes. Because a user can put contents into some columns in a row without checking the corresponding checkbox, according to the requirements. So basically what I tried is to loop over all the rows and save Every entry into a collection. However, sometimes I got "no data found" error with unknown reasons.
    My current solution is to use the "dirty" Retry button that gets back the history, which IMO is not a good workabout. So, I'd appreciate if somebody can shed some light on a better solution, especially if it is close to the one in that how-to doc.
    Thanks in advance.
    Luc

    The following is the first collection solutin I've tried:
    htmldb_collection.create_or_truncate_collection('TEMP_TABLE');
    for i in 1..p_row_num loop -- Loop on the whole form rows
    if (htmldb_application.g_f01(i) is not null) or (htmldb_application.g_f05(i) <> 0)
    --If either of them has some input values, the row should be saved into the colleciton.
    then
    htmldb_collection.add_member(
    p_collection_name => 'TEMP_TABLE',
    p_c001 => htmldb_application.g_f01(i),
    p_c002 => htmldb_application.g_f03(i),
    p_c003 => htmldb_application.g_f04(i),
    p_c004 => htmldb_application.g_f05(i),
    p_c005 => htmldb_application.g_f06(i),
    p_c006 => htmldb_application.g_f08(i)
    end if;
    end loop;
    Some of columns have null values, but I don't think that's the reason. Because once I clicked all the check boxes, there would be no error no matter what values were in other columns.
    Another issue would be extract the values FROM the collection, which has been tried because I had problem to store the data into the collection. I used "decode" functions inside the SQL to build the tabular form. I am not sure whether it will be the same as a regular SQL for a tabular form, like the example in the How-to doc.
    Also I didn't use the checksum, for it is not an issue at the current stage. I am not sure whether that's the reason which caused the NO DATA FOUND error.

  • HTTP 400 - Bad request Page cannot be found while submitting tabular form

    Hi,
    My Apex application has sql report for summary and tabular form in a single page.
    This page is working fine when the number of rows per screen is upto 130.
    When we sets the maximum number of rows as more than 130, it displays the record but if we click button to submit the page to save
    it shows page cannot be found.
    HTTP 400 - Bad request
    URL shows apex URL followed by /wwv_flow.accept
    Is there any maximum limits to show number of records in a page in apex.
    Since number of rows selection is not there in tabular form I created a select list with submit item with values 10,20,50,100,500,1000.
    default value is '15'.
    My tabular form has 15 columns and out of them 12 are editable.
    Apex version is 3.1.

    Sounds like you're submitting too many parameters (15 * 130 = 1950), very close to 2000
    Check this post our regarding PlsqlMaxParameters
    "Page cannot be found" error when submitting tabular form
    Scott

  • Reading user input from a form within a workflow and perform actions in workflow based on the input

    Sharepoint 2013
    Need to get input from a user based on some condition within a workflow and based on the input received continue with the workflow. It can be a form with a text box and button to which i can redirect and when user enters a value and clicks on the button
    ,I should come back to the workflow and perform other processing. I should also be able to manually start this workflow from VS.
    Tried different approaches like initiation forms ,user input action of SP2010 etc all of these approaches either add some tasks to task list or force me to click on the workflow link to get input from a user.
    Any suggestions on this?

    Hello
    Thanks for the code, but I don't need an array of beans. By the way this code make a bean and an arraylist everytime it's called?
    I was looking for something like this:
    <form action="myjsp.jsp" method="post">
    ...so after submitting the result will go to the myjsp.jsp file and in the myjsp.jsp file
    <jsp:useBean id="value" class"myBean">
    <jsp:setpropertiy name"value" ....>so everytime I click the add button the values will go the mysjp.jsp file and that will set them in the javabean file. this method uses two files but I was looking for doing this in the same jsp file and not sending it to another file.
    chers
    Ehsan

  • Cannot Read user input on Adobe Form .

    Hi team,
    Can you please go through the issue -
    Developed Interactive Adobe form. Called by webdynpro application.
    Interactive properties enable, display type - native, with pdfsource, template source and data source cleanly populated.
    Submit button is webdynpro native with option CLICK and corresponding code selected in ADOBE FORM.
    All the elements in adobe forms cleanly binded and checked more than 10 times to avoid any mistakes or wrong bindings.
    Event handler code is written for submit button to read the data eneted by user on adobe form.
      lo_el_zleaver_form->get_static_attributes(
        IMPORTING
          static_attributes = ls_zleaver_form ).
    User is able to enter data on adobe form and control is comming to Submit button code but i am not able to read the user input with above code.
    BASIS has check and confirmed that license is installed properly. I am using adobe reader 9 and adobe designer 8.2 and will ECC version 6.0 . Basis has confirmed the ADS configuration, Java stack and ABAP stack are compatible.
    We are using the ADS from SAP NetWeaver 7.01 (EhP1, Java Stack) in
    combination with SAP NetWeaver 7.00 SP15 (ABAP stack).
    Mohan.

    Hi Guys,
    I also created one more Adobe interactive form to test and again USER INPUT CANNOT BE READ. After user click on SUBMIT button the below code is written in SUBMIT button. I am not able to read department details below enteted by user. Is there any othe method you want me to call. I also tried GET_ATTRIBUTE
    Will there be any problem with above version of ADS or ALD etc..
          DATA lo_nd_zdept TYPE REF TO if_wd_context_node.
          DATA lo_el_zdept TYPE REF TO if_wd_context_element.
          DATA ls_zdept TYPE wd_this->element_zdept.
        navigate from <CONTEXT> to <ZDEPT> via lead selection
          lo_nd_zdept = wd_context->path_get_node( path = `ADOBE.ZDEPT` ).
        @TODO handle non existant child
        IF lo_nd_zdept IS INITIAL.
        ENDIF.
        get element via lead selection
          lo_el_zdept = lo_nd_zdept->get_element( ).
        @TODO handle not set lead selection
          IF lo_el_zdept IS INITIAL.
          ENDIF.
        get all declared attributes
          lo_el_zdept->get_static_attributes(
            IMPORTING
              static_attributes = ls_zdept ).
    This is other interactive form where i also tried GET_ATTRIBUTE
    USING GET_ATTRIBUTE***************
      node_info = lo_nd_zleaver_form->get_node_info( ).
    I tried both GET_ATTRIBUTE and GET_ATTRIBUTES but failed.
      node_info->GET_ATTRIBUTES(
      RECEIVING
      ATTRIBUTES = stru_zleaver_Forms ) .
    OR
    lo_nd_zleaver_form = WD_CONTEXT->GET_CHILD_NODE( NAME = WD_THIS->WDCTX_ZLEAVER_FORM ).
      lo_EL_zleaver_form->GET_ATTRIBUTE( EXPORTING NAME  = 'LEAVES_TAKEN'
                               IMPORTING VALUE = LW_LEAVES_TAKEN ).

  • How can a user save more than one online form without losing their previous form?

    We use Adobe FormsCentral for parent, student and faculty response at my school. The number one task we use them for is Progress Reports. Faculty members fill these out for EVERY student that they teach at our school. Many faculty members like to start the forms and return at a later time to finish them. So this year we were excited to offer the option of saving, however many faculty members have reached out with concern that they save one, receive the link, start a second form, click save receive the link and the first form is gone. I was under the impression that every SAVED form is a case-specific link.
    Is there a way to make saving multiple forms possible? I know that it would be best to just tell faculty to do their form and submit it however that is not the answer they are willing to accept.
    Additionally, because of the PDF not working the same on all machines due to people not necessarily updating their adobe software, that is not an ideal option.
    Thank you in advance.

    What you've described should work fine, assuming the user uses the original forms URL each time they start a new process.
    You send the form URL to the users:
    1) Faculty gets the form URL and starts filling it out
    2) Faculty clicks "Save", enters email and is sent a unique link to that saved form data
    3) Faculty starts the form over, using the original URL (not the link in the Saved data email)
    4) Faculty saves this second version of the form, entering the same email address in the save dialog
    They now have 2 unique emails that contain unique saved data URLs, either one can be opened and the data for that form will be retrieved, they have the option to continue and if still not complete save again, or to submit the form.  The other email/link will retreive the other data set and they have the same options there.  Once they have submitted the data from both of those saved forms there would be two submissions in FormsCentral.
    What error are they getting that says the first form is gone?  And are they definitally starting from the original URL both times and not from a saved URL?
    Thanks,
    Josh

  • Tabular Form Not Updating

    I have an existing tabular form that has been working fine. I created a new column for and "edit" button to allow a user to edit an entry that is listed in a tabular form row. I did this so I could validate a delete action after I read that validate from a tabular form is not too reliable. I noticed after I created the edit button (which is a link to another page) that the "ApplyMRU" process isn't working. I press the "Add Row" button which gives me a new row to work with. I then press the "Submit" button. The page is submitted but when it is rendered the tabular form region is empty. I query the table but the row that I tried to insert is not there. When I created the "Edit" button (link) as a new column in the tabular for could I have broken something in the tabular form process(es)?

    You are saying that you created a new colum as well. What kind of display does this Tabular Form Element has? What content are Reference Table Owner, Reference Table Name and Reference Column Name showing?
    Denes Kubicek

Maybe you are looking for

  • How To Remap Contexts in Dynamically..

    Dear Experts, in My scenario, I have one View,  this view using for both Create and Chance Options, But I map only Same Context of  ctxInputCreate. But When i Using this View on Chance mode CtxtinputCreate Context to Map to CtxinputChange. ctxtInputC

  • Pricing Procedure ICAA01

    Dear Gurus, Our company implement STO and cross company sales. For STO, we are using pricing procedure ZCAA01, while for cross company sales we are using ICAA01. I notice that for pricing procedure ICAA01, PR00 is set as Required (I believe this is t

  • Delivering Plant In CRM Order

    Hi, I need SAP CRM Field delivering plant. Does Anyone know how I can get this field from sales order CRMD_BUS000115. I need it for a condition pricing. Thank you Lidisaid

  • Starting over in ACR

    I am working through examples on a DVD that came with a book on PS CS5. When I copy an image from the DVD to a Temp folder on the heard drive Bridge cannot "see" it. However, Bridge can browse the DVD, and I can open an image in ACR. So here's the pr

  • I have downloaded ios8 and now i can't go further than entering my apple id password press enter and it goes back to hello " enter password"

    I just upgraded my Ipad 2 with IOS 8.  When I enter my apple password it goes back to the HELLO screen  which says " slide to set up".. I've entered my password several times and pressed next and  I've also pressed skip this step but it never takes m