JavaScript function deletes previously entered data

Hello, I am using Adobe LiveCycle Designer version 9.0 and have created a one page form with a radio button list which allows a user to create an additional duplicate page when selected. All of the form was created as a master mage with the exception of the additional page radio button list that exists on "Page1." The script works great except all data entered by the user on Page1 is deleted when the additional page is created. Any suggestions would be greatly appreciated. I know just enough about JavaScript and FormCalc to paint myself into a corner (obviously) so speak slow and use small words please ...
Here is the code to add additional page:
topmostSubform.Page1.RadioButtonList::click - (JavaScript, client)
if (RadioButtonList.rawValue=="1")
{Page2.presence = "visible";}
else if (RadioButtonList.rawValue =="2")
{Page2.presence = "hidden";}
else
{Page2.presence = "hidden";}

I see two things that are problematic:
In general, you should try to avoid putting fields on a master page...you can sometimes experience unexpected results when you do.  Move your table to the body page instead and your problem will go away.
All of your fields are set with binding of "No data binding" (Object-->Binding-->Data Binding).  As a result, if you save your form, close and re-open it, the data will likely be lost.  At a minimum you should set the data binding to "Use Name".
Some other recommendations:
Try to avoid using so many rectangles...they are unneccessary, and the the number of objects used on your form can impact performance.  Use borders around text fields or text objects instead.
You should have a single table rather than two separate tables on two separate pages.  If you add a second page, then the totals at the bottom of each page will only reflect the totals for that page.  Create a dynamic table and allow people to add new rows rather than adding an entire page.  The use of a flowed layout and a content area on the master page will prevent the data from flowing into the footer and will force the creation of a new page as needed.
You have a bunch of scripts on your dropdowns that try to connect to a database connection that doesn't appear to exist.  Remove these if they aren't needed.
Because the Approving Official field is on the master page, it will appear at the bottom of every page.  Do you want it at the bottom of every page, or just at the bottom of the last page?  If the bottom of the last page, then add it to the body page in a flowed layout, or create two separate master pages.
Week Ending appears at the top of every page, but you have to enter a value on every page.  Set the data binding to "Use global data" and it will ensure that the values on each page are kept in synch.

Similar Messages

  • Can previously entered data be shown again when user executes the wda app?

    hi,
    like in an  abap code in se80 ...where in user comes to know the previously entered data on the screen" by pressing backspace"...is it possible to have the same functionality in web dynpro abap?..
    thanks and regards,
    sahai.s

    Sashi,
    There is no standard functionality to achieve this, but we can achieve manually, if you store the all screen element values in a node, and bind the elements with that attributes, then automatically elements will contain the same values. i think this is the only one way.
    Kris,
    I think life span property will be used for memory consumption. If we select when visible...the memory takes when visible, if we select framework cotrolled, until we close the application memory for view will takes.
    Regards
    Srinivas

  • How to display previously entered data in TableModel

    This post is continued from the last one. I was having problem displaying previously entered data into TableModel. someone suggested whether my TableModel is persistent.
    I am sorry to say I am not sure how to make TableModel persistent. Can someone tell me what to do.
    Following is my implementation of TableModel:
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.table.*;
    import java.util.*;
    import java.io.*;
    public class UsersModel implements TableModel {
    public static final String[] colNames ={
    "Usernmae",
    "Location"
    public static final Class[] colClasses ={
    String.class,
    String.class,
    public static final int
    USERNAME_COL = 0,
    LOCATION_COL = 1;
    //used to hold a list of TableModelListeners
    protected java.util.List tableModelListeners = new ArrayList();
    protected java.util.List data = new ArrayList();
    public static void main(String []args){
    new UsersModel();
    }//end main
    public UsersModel(){
    public void add(Users u){
    data.add(u);
    and when I need to add new users, I do it in the following way:
    Users u= new Users(n,l);
                        model.add(u);
                                  table.setModel(model);
    I hope someone can help

    Please post the entire class, this certainly won't compile because it does not implement all the TableModel methods. Also, why not base it off of AbstractTableModel?

  • Auto filling forms based off of previously entered data.

    Looking for a way to create a feild that will auto fill based on previously entered data.  For example.
    First________
    Middle_______
    Last_________
    Ideally i could take someones names they enter and auto fill a feild for Last, First, Middle or even a Last, First, Middle Initial.
    any thoughts??
    Thanks!

    Played around with this today...been very busy with other work and got this to work for Last, First mi
    // Get the field values, as strings
    var i = this.getField("first").valueAsString;
    var j = this.getField("middle").valueAsString;
    var k = this.getField("last").valueAsString;
    // Set this field's value if both fields are not blank
    // otherwise, set this field to blank
    if (i && j && k) {
         event.value = k + ", " + i + " " + j.slice(0, 1);
    } else {
         event.value = "";
    I am brand new to this and was curious are these "var i , j, and k" just for this field.  Or will these continue to be how I refer to the first , middle and last fields?
    Also, other than just playing around with this, is there another way to learn this stuff?  I find it fascinating.
    all the best

  • Delete previous day data in table

    Hi,
    I want to delete the data in the table with the condition sysdate-1 i.e. i want to delete yesterday's data, please guide me. if i use the below query my data on the first day of month is not getting deleted.
    select datadate from DELETED_RECORD_LOG where datadate=to_char(sysdate,'yyyymmdd')-1

    why the to_char?
    delete from tbl
    where datadate=sysdate-1or when you are also storing the time information (which you are when you use a DATE)
    delete from tbl
    where trunc  (datadate) = trunc (sysdate) -1Edited by: Alex Nuijten on Jun 1, 2009 12:09 PM

  • Calling JavaScript function from Servlet ?

    I have a Servlet that needs to call a general purpose JavaScript function to retrieve some data. The JavaScript function sits in a file on the web server called general.js.
    How can I call this function from my servlet to retrieve an integer result ?
    Sarah.

    http://developer.netscape.com/docs/manuals/js/client/jsguide/index.htm
    Look for Java to JavaScript communication.

  • Dynamically populated parameter clears previously entered parameters

    Software: Crystal Reports XI with MS SQL Server 2008
    I've created a report that asks for three parameters, 2 dates, and a string which is dynamically populated. The report has two tables added in the database expert.
    The first table is a command object which passes the two date parameters to a stored procedure:
    exec sp_MyStoredProcedure {?startdate},{?enddate}
    The second table is a stored procedure object used to populate the string parameter {?_users}. The criteria for the string parameter are:
    Prompt with Description only: False
    Allow multiple values: True
    Allow discrete values: True
    Allow range values: False
    This stored procedure object requires no parameters, and was originally a view in the database, but it the same problem occurs whether i dynamically populate the string parameter options from either a view or a stored procedure. I'd like to go back to using a view, as i do not need to pass any kind of parameters to the stored procedure
    The string parameter is used for defining the record selection formula:
    IF {Command.user_name} in {?_users} THEN true ELSE false.
    The two tables are not linked in the database expert, but linking them does not seem to solve the problem I am having with this report, the problem being this:
    No matter which order I set the  parameters, it always first displays a form showing only the prompts for the date values. After entering these, it then shows a form prompting for the date values again (the previously selected date information now cleared), along with the list of users from which to select. On this 2nd form, the parameters are displayed in the order I set using the field explorer option presented when I right click on the Paramter Fields heading. After entering the date parameter values a 2nd time, and selecting the users from the  dynamically generated list, the report performs as intended.
    Edited by: Duraplex on Nov 12, 2010 6:26 PM
    Edited by: Duraplex on Nov 12, 2010 6:57 PM - After contacting the tech dept of my employer, they are applying a service pack update to my installation, I am hoping this resolves the issue. Will post an update as soon as I know more.
    Edited by: Duraplex on Nov 12, 2010 7:35 PM - After applying SP4 to my installation, the problem persists. I did note however that removing the string parameter and record selection formula, and then recreating them, does somewhat solve the issue temporarily - i still am presented with two forms, but the second form doesn't clear the previously entered date parameters. However,  once i save the report, and reload it, the problem manifests again and the date parameters are cleared when presented on the 2nd form. Has anyone else encountered a similar problem?
    Edited by: Duraplex on Nov 15, 2010 8:38 PM - Problem resolved by upgrading from Release 1 to Release 2.

    Hi,
    Once record status gets change for block you can not populate/repopulate the list item. Keep those list items as non-database item with different names and create different items as database orignal items. Than assign the values in WHEN-LIST-CHANGE trigger to the actual database items.
    -Ammad

  • Numeric Keypad does not enter data into Excel

    Is there a way to turn on/off the numeric keypad for the imac intel based apple computer when using Microsoft Excel?
    I want to enter numeric data into the cells of a spreadsheet in the Excel program, but I can not figure out how to get the numeric keypad to work to do this. It will only work as a directional keypad, moving the active cell left or right, or shoot to the end of the spreadsheet. Consequently I forced to use the use the row of numbers above the keyboard (which is also the row of numbers below the function keys) to enter data.
    Strangely, the numeric keypad will enter data with other programs, such as Word or when entering data into an online page.
    I have searched Apple help without success.

    Make sure that NumLock has not been engaged. To toggle that on and off, press Shift-Clear ("Clear" is the key immediately above the 7 on the keypad).

  • In "find my iPhone" i entered the functional "delete data". now i found my iPhone. it was not online. How can i modify it? nothing is deleted at this time

    in "find my iPhone" i entered the functional "delete data". now i found my iPhone. it was not online. How can i modify it? nothing is deleted at this time

    If you selected to erase the device using the find my iPhone erase feature, as soon as your iPhone reconnects with apple systems, it will erase.  This command cannot be cancelled.  However, you will be able to restore your device using the most recent icloud or itunes backup.
    Hope this helps.

  • Getting previous weeks data based on parameters entered

    I am using CRXI. I have a RT that gives me the current week data but I need to be able to report on previous week data based on the paraments so if I enter dates between sunday and saturday of one week it will report on those data plus the same days of the previous week. I looked at the lastfullweek function, but not sure how to implement it in my scenerio. any ideas?
    Ralph

    That worked, thankyou. My next question along the same lines, is I am also having a third column that will indicate the percent change. for example
    Current             Previous              % Change
    97                    108
    I am trying to computer the % change between curent and previous basically it would look at previous as being the control and computer positive or negative based on what current is. I can do the math formulas, but I'm not sure what to comute to find the % change.
    Ralph

  • Can't delete previous unread messages in hub pinch view via select previous (hold date line)

    Happily running OS 10.2.1.2141 on my Z10 (STL100-3). I was thrilled to see the hub's Pinch Selection Criteria option in 10.2.1 but did not have the occasion to try it. Then this weekend, my mailbox got flooded with email notices from our alert system and I was facing having to delete hundreds of emails the old tedious way, multi-select each email one at a time and hit the delete option.  Well, that's when I tried to use the hub's new pinch selection option to "hide" my read messages. I then held the date line to select all the previous messages and hit the delete option which asked my if a really wanted to delete those messages. I confirmed by choice and poof! nothing happened. I tried several times to no avail, even trying with flagged messages. It looks like you can't delete messages while in Pinch Selection view if you select them via the Select previous (hold date line) method. It does work if you select/multi-select the messages manualy but what's the point then?....
    So, unless i'm doing it wrong, this appears to be a bug.
    Regards,
    Francis.....   

    fpaquin wrote:
     that should be the point of the pinch selection criteria and you're select by sender.... let's see if anyone can reproduce the "bug" on their handsets or better yet, BlackBerry confirms it's a bug or poor design......
    when I pinch and hold a date bar, I get the trash can... do you not?
    fpaquin wrote:
    Yup, that's the tedious way I've always used, ok for a few emails, unacceptable for hundreds of emails.....
    Oh, yea for hundreds. Do you get hundreds each day you need to delete?
    Once you get caught up on your deleting, then your daily upkeep should be a reasonable low effort.
    Anyways, that's how it works.
    If you feel it is an OS issue... what OS are you on?
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Function to move all dates to previous monday

    Here is what I have:
    create or replace
    FUNCTION ToPreviousMonday
    (DATE_FIELD IN date)
    RETURN date
    AS
    BEGIN
    IF TO_DATE(DATE_FIELD,'DAY')='SUN' THEN (DATE_FIELD)-6;
    ELSE trunc(DATE_FIELD,'D')+1;
    END IF;
    END ToPreviousMonday;
    Won't compile.
    Basically what I want to accomplish is in a SELECT statement say something like (SELECT ToPreviousMonday(MyDateField) FROM MyTable) and cause the data to comeback as the date of the previous monday. NLS_TERRITORY is and will be for all sessions going to have Sunday as weekday 1.
    Any pointers?

    select trunc(next_day(sysdate, 'PIRMDIENA'))-7 from dual
    Pirmdiena as you definitely know is Latvian for Monday ;)
    Gints Plivna
    http://www.gplivna.eu
    oh, somebody got even more elegant solution :)
    Edited by: gintsp on Oct 14, 2010 6:04 PM

  • Full load - Every month data loading without deleting previous data

    Dear SDN,
    I am loading (Full load) Data from 001.2005 to 010.2007 using 0FI_GL_1 with the selection option Fiscal Year/Period (From : 001.2005 and To : 010.2007) ...
    From next month (011.2007) onwards, when loading data everytime it deletes entire data and again loading (Since i have kept an option in Infopackage -- Datatargets Tab -- Delete entire content of datatarget)...
    My doubt is wheather without deleting the whole data, can we load from next month data onwards...so, if that is the case shall i use Fiscal year/Period range ?? (or) should not use Fiscal year/Period range...
    But the client needs data only from 001.2005 onwards not beyond that
    Please help me to resolve this issue..
    Help will be greatly appreciated with points...
    Thanks....

    Hello Venkat,
    Unfortunately you can not do that way, because in period 11.2007 (assume this is the period that you want to newly load to cube.) there might be posting in previous period. And these postings made to previous period should also reflect to cube. Only way is delete and reload by using full.
    Other option you might use a ODS before sending to cube. you might every time load full data, ODS key fields might be checked by system and neccesary inserts and updates will be done by system, so there wont be duplications. And finally only new data will be sent to cube as delta.
    Sarhan.

  • How to call javascript function with dynamic data in display tag

    Hi,
    Iam new to pagination concept. Iam using display tag to display rows in jsp by strtus.
    I have a problem when calling the javascript function using ahref in attribute in display tag.
    <bean:define name="form1" property="EditDetails.List" id="ListDisplay"/>
    <display:table name="pageScope.ListDisplay" cellpadding="0" cellspacing="1" pagesize="10" partialList="false" size="listSize" requestURI="">
    <display:column property="poNo" href='javascript:searchEditDetails("./submitOrder.do? actionID=getMISLoadEdit&poNumberSel=<%=((com.po.bean.EditDetails)poListDisplay).getNo()%>&statusIdSelected=<%=((com.po.bean.EditDetails)ListDisplay).getStatusId()%>")'
    title="Number"/>                         
    <display:column property="strDate"title="Date" />
    <display:column property="orderValue"title="Order Value(INR)"/>
    <display:column property="stringRequestedDeliveryDate"title="Suggested Delivery Date"/>
    <display:column property="statusDescription" title="Status" />
    </display:table>
    The above code display the data in row format is working fine when I click the No It thow javascript error and its not redirecting to the other page.
    When I try this with ordinary struts its working fine the code is:
    <logic:iterate id="polist" name="Form1" property="EditDetails.List" indexId="i" type="com.bean.EditDetails">
    <tr>
    <td ><a href="javascript:searchEditDetails("./submitOrder.do?actionID=getMISLoadEdit&NumberSel=<%=((com.bean.EditDetails)polist).getNo()%>&statusIdSelected=<%=((com.bean.EditDetails)polist).getStatusId()%>")"><html:hidden name="polist" property="No" write="true" /></a>     </td>
    <td><html:hidden name="polist" property="strDate" write="true" /></td>
    <td><html:hidden name="polist" property="orderValue" write="true" /></td>
    <td><html:hidden name="polist" property="stringRequestedDeliveryDate" write="true" />     </td>
    <td><html:hidden name="polist" property="statusDescription" write="true" /></td>
    </tr>
    </logic:iterate>
    Please help me how to call javascript with dynamic data.
    Thanks in advance

    The ADF Mobile Container Utilities API may be used from JavaScript or Java.
    Application Container APIs - 11g Release 2 (11.1.2.4.0)

  • Load Transactional Data Current Year: 0PM_OM_OPA_1" doesn't delete previous

    Hi Experts,
    We are doing load monitoring on dailiy basis, As we are doing some testing in the BW Development system, we are loading data into the cube 0PM_C01. we want to load the current year data (2007-2008). but whenever we are trying to load through the InfoPackage "Load Transactional Data Current Year: 0PM_OM_OPA_1" it doesn't delete previous load requests.  It was initially configured with this option not selected.  we recently changed it, but it still doesn't delete.  The only difference we see between this load and others that do delete is that this one is executed from a process chain rather than an InfoPackage Group.  What do we need to do to make it delete previous load requests?
    So please help me in this regard. points will be assigned.
    thanks
    sekhar

    Hello,
    I think as you are running this in process chain, you need to add the step "Delete Overlapping Requests from InfoCube" after the load step so that the previous request will be deleted.
    regds,
    Shashank

Maybe you are looking for

  • How get the metadata with intermedia?

    Hi all, In my application I record Microsoft Word documents into a blob column, but before record this file I need to verify the version of Microsoft Word who created this file. Anyone can help me with this? Tks, Everson

  • T60 wireless - OK on XP, drops out on Windows 7

    Hello, I have a T60 (2007-FVG) and I have a HDD for it with XP on and one with Windows 7 Ultimate on.  On XP the wireless is fine in my living room whereas on Win7 the wireless drops out every time I go into my living room.  I also have an R61 laptop

  • Hoe, How can I sync my In-App Purchases from my iPod touch 4th generation to my iphone5s?

    How can I sync my In-App Purchases from my iPod touch 4th generation to my iphone5s?

  • PEAP set up

    Does anybody have experience setting up PEAR with ACS in Windows environment? I really got headache. I used CA services in Windows issue 2 user certificates to a user account and a computer (XP with SP2). Then I issued a certificate to ACS. I also in

  • Router Woes

    I currently am using a D-Link DI-524 that can no longer emit a Wireless Signal 3 yards or more. After some researching, I purchased a LinkSYS WRT54GL. Upon trying to install the new router (the linksys), all lights light up as it should, but nothing