Using a reset button for a dynamic table

I have a 6 page form that includes several dynamic tables. There is a reset button that clears only specific parts of the form because it is something that will be filled out weekly and a lot of the information will stay the same. My problem is that I want the reset button to clear specific rows of the table, but reset whatever is typed in the row for every instance in the table. The reset button only clears the row I want in the first column, not all the other columns/instances. Has anyone done this before or have any suggestions?
I don't want to include the whole script for the reset button because it has about 100 fields to clear but essentially this is what I have for the dynamic table and it works but only for the first column/instance, the rest stay the same:
xfa.host.resetData("form1.Page1.Subform1.Table1.Row5.Textbox1.somExpression");

Hi,
I’m not sure I understand your exact scenario but I use a function in a script object that I pass in a subform (possibly the top subform to reset the whole form) and the function resets all fields within it. 
function resetData(node)
    if (node.className === "field")
        var enableResetData = node.desc.nodes.namedItem("enableResetData");
        if (enableResetData === null || enableResetData.value === true)
            // reset all fields except those with enableResetData set to false
            node.rawValue = null;
    else
        for (var i = 0; i < node.nodes.length; i++)
            var currentNode = node.nodes.item(i);
            if (currentNode.isContainer)
                // ignore some form objects
                if (currentNode.className !== "draw" &&
                    currentNode.className !== "variables")
                    resetData(currentNode);
If there are any fields that I don’t want reset I put the following code in the initialise event of those fields.  Depending on the number of fields involved you might what to reverse this logic.  (you could also add the desc.enableResetData element in the XML Source view)
var enableResetData = this.desc.nodes.namedItem("enableResetData");
if (enableResetData == null)
    enableResetData = xfa.form.createNode("boolean", "enableResetData");
    this.desc.nodes.append(enableResetData);
enableResetData.value = true;
This works by storing a value “enableResetData” in the desc element of the field, allowing a generic function to have specific behaviour for particular fields.
Hope this helps.
Bruce

Similar Messages

  • Use of Cell Variant for a normal table

    Hi Experts,
    I have a requirement in a normal table where a row is first in read-only mode, then on click of edit button (given on that row),
    the row should become editable and also edit button should become invisible and two more buttons update/cancel have to be visible. How to achieve this using a cell variant for this normal table.
    A detailed reply would be appreciated.
    Thanks in Advance,
    Mirza Hyder.

    Hi Mirza,
    Cell variant property is used to chenge the cell property not for other.That means in one cell you want checkbox and in other cell you want textview like this you can change the property of cell as you want.
    Test this standard program WDR_TEST_TABLE in that test view cell varint for your understanding.
    Coming to your requirement.You can do in this way.
    Check in the below thread in that i gave code to make the entire row is editable when you click on the lead selection of row.I gave code for ALV.I hope that code is use ful for you.
    How to make all columns of alv editable
    To make tool bar buttons disable and enable:Write your logic in method handler of lead selection event like change the visible property of button to none.
    Note: In the event handler method you dont get reference of view.You only get reference of view in WDDOMODIFYVIEW only so take a global variable of type ref to if_wd_view and populate that global variable in method WDODIFYVIEW.So that you can access any view element in any method.
    For cell variant in ALV check this Article written by me.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0e7461d-5e6c-2b10-dda9-9e99df4d136d

  • If we dont want to use sleep/wakeup button for dissconnect the call so there is any other option for dissconnect the call without using sleep/wakeup button in ios 8.1.3. kindly suggest

    if we dont want to use sleep/wakeup button for dissconnect the call so there is any other option for dissconnect the call without using sleep/wakeup button in ios 8.1.3 . kindly suggest..!

    Hello kumar kalptaru, 
    Thank you for participating in the Apple Support Communities. 
    It sounds like you're wondering how to hang up a call besides using the Sleep/Wake button. 
    Other than this, you can tap the red hang up button on the Phone app. See the iPhone User Guide for more help:
    While on a call - iPhone
    End a call. Tap  or press the Sleep/Wake button.
    Best Regards,
    Jeremy 

  • Can I use mouse side buttons for pageup/pagedown like in previous version?

    In firefox 3.x I use mouse side buttons for pageup/pagedown. When I install new version I found that this buttons is used for back/forward page. Can I somehow change that?

    [[How do I customize the toolbars?]] should help you out

  • Creating a sort of reset button for movieclips

    Hi, i've got 10 movieclips in my movie. I use them for a sort
    of colour sudoku game and i wanted to have a reset button which
    reset them all to the first frame (which is a blank colour) Anyway,
    my problem is that if the movieclip is already on that frame, it
    automatically increments when the button is pressed. Does anyone
    have a solution as to how i would fix this problem?

    post your code...

  • Reset button for ACR adjustment brush

    I use ACR and the adjustment brush on a daily basis.  When making several corrections with the adjustment brush, each time I have to manually zero out the adjustments from the previous correction.  A bit of a pain.  If there were a reset button at the top to zero out all the adjustments it would greatly simplify this process.

    It is clumsy but:
    go to top of brush panel and double click on the "minus sign" just to the left of the exposure slider. This will reset everything but exposure. Then you must double click on the exposure slider itself to reset exposure. Of course, this is for the currently active brush.
    vince
    Message was edited by: vinsolo

  • Reset button for text entry field

    Hello,
    How do I add a reset button that removes information entered into a text entry field?
    Thanks in advanced!

    Hmm, is there a reason why you don't use the Likert type of question, and have the Clear button (you can change the label to 'Reset') available? That would be a lot easier.
    And if you want to create such a custom slide, why don't you use the enhanced radiobuttons widget from Jim Leichliter? I explained how to reset the radiobuttons choice it in this blog post:
    http://blog.lilybiri.com/extended-widgets-for-custom-mcq-and-tf-questi
    And in this one I explained similar work flow for the extended TextArea widget. Same logic can be used for the enhanced TEB I talked about in my first answer:
    http://blog.lilybiri.com/extended-textarea-widget-more-functionality
    Since you are using 5.5, no output for HTML5 is possible, so you can use those widgets. Really, although I'm an Advanced Actions fan, I would never try to realize this the way you are doing it. Maybe with shared actions in 7, or with the new copy+paste functionality for advanced actions in 7.0.1 but not in 5.5. Be sure: my memory about the different versions is pretty good.
    Lilybiri

  • Procedure for creating dynamic table

    Hi! I'm having a problem with creating a table with the help of procedure. The thing is, I want to pass an (possibly an array of) unknown amount of values - column names, types - to the procedure, that I defined, and then be able to create a (temporary) table with the received data. Possible? Maybe you could give me some hints - any help appreciated.

    899749 wrote:
    Yes, not literally there are million fields, of course :) What I was trying to say -> there are too much fields to create a hidden field array each time, and honestly I don't like this because of content availability through source code.Statement does not make sense.
    If there are too many "fields" (databases have tables and rows and columns - not fields), then how does introducing a new database table reduce these? It is far simpler to only select the rows required, the columns needed for display, and building a "field array" using that - assuming that your definition of such an array matches mine...
    Besides the saneness and logic of using dynamic tables, there are performance considerations. The slowest and most expensive database operation is I/O.
    So what is your justification to spend a lot of I/O on duplicating existing data in the database? Why read data from tables to create so-called dynamic tables? Is that the best spend of database resources?
    Don't know what forms you were talking about - the idea is to possibly use some programming (like php) + html to create a dynamic form. That's why I need a dynamic temporary table to pass the content around (no sessions, please).Forms are typically not dynamic. You do not point code at some arbitrary table structure and say "+form instantiate thyself+". This code will not understand the business rules and validation rules for properly displaying a data entry form for that entity, and applying the rules and logic for processing entered data and storing that in the table.
    Forms are usually (almost always) coded as static - the entry fields are known at design time. The validation rules are known. The business logic to apply is known.
    That begs the question as to not only what you are trying to do (it does not make sense!), but also why? What are the business requirements that need to be met?

  • Using large block sizes for index and table spaces

    " You are not using large blocksizes for your index tablespaces. Oracle research proves that indexes will build flatter tree structures in larger blocksizes.
    Is this a generic statement that I can use for all tables or indexes? I also have batch and online activity. My primary target is batch and it should not impact online. Not sure if both have common tables.
    How to find the current block size used for tables and index? is there a v$parameter query?
    What is an optimal block size value for batch?
    How do I know when flatter tree str has been achieved using above changes? Is there a query to determine this?
    What about tables, what is the success criterion for tables. can we use the same flat tree str criterion? Is there a query for this?

    user3390467 wrote:
    " You are not using large blocksizes for your index tablespaces. Oracle research proves that indexes will build flatter tree structures in larger blocksizes.
    Is this a generic statement that I can use for all tables or indexes? This is a generic statement used by some consultants. Unfortunately, it is riddled with exceptions and other considerations.
    One consultant in particular seems to have anecdotal evidence that using different block sizes for index (big) and data (small) can yield almost miraculous improvements. However, that can not be backed up due to NDA. Many of the rest of us can not duplicate the improvements, and indeed some find situations where that results in a degradation (esp with high insert/update rates from separated transactions).
    I also have batch and online activity. My primary target is batch and it should not impact online. Not sure if both have common tables.
    How to find the current block size used for tables and index? is there a v$parameter query?
    What is an optimal block size value for batch?
    How do I know when flatter tree str has been achieved using above changes? Is there a query to determine this?
    What about tables, what is the success criterion for tables. can we use the same flat tree str criterion? Is there a query for this?I'd strongly recommend that you
    1) stop using generic tools to analyze specific problems
    2) define you problem in detail ()what are you really trying to accomplish - seems like performance tuning, but you never really state that)
    3) define the OS and DB version - in detail. Give rev levels and patch levels.
    If you are having a serious performance issue, I strongly recommend you look at some performance tuning specialists like "http://www.method-r.com/", "http://www.miracleas.dk/", "http://www.hotsos.com/", "http://www.pythian.com/", or even Oracle's Performance Tuning consultants. Definitely worth the price of admission.

  • Reset button for My graph in labview

    I have a program with a xy graph showing sequences for the motor movements.i need a reset button on my front panel to reset my graph sequences because i have got two kinds of sequences snake and hopper. i need it to be clear so that i could start a new sequence and to be able to visualize them separately.

    What does your existing code look like?
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • HELP NEEDED: Use a new record for a customized table as a workflow trigger

    Hi SAP Workflow Gurus,
    Good day!
    One of our requirements is to have the creation of a new record in a custom database table trigger a workflow. I read and followed the steps as indicated in this link
    http://www.****************/Tutorials/Workflow/Table/events.htm
    As a summary, here is what I did:
    1. Created a subroutine for the custom table ZPA2003 for the create event
    2. Defined this event as a trigger for the custom workflow WS90000019
    3. Maintained and activated the event linkage via SWETYPV
    Basically I tried following the instructions indicated on the link
    Note that the entries for the custom table are created via a function module.
    Now during testing of the workflow, the system was able to complete the notification message. However, when I triggered the event via creation of the entry in the custom db table nothing happened
    1. Is there a way to debug/find out whether the link between the subroutine in the table and event itself are connected?
    2. I also tried running the event trace to check the activities executed but found nothing.
    Can you guys help me check on what I may have missed out?
    Regards,

    Hi All,
    Basically these are the requirements for the work schedule substitution:
    1. Employee enters the request via ESS (custom portal transaction)
    2. Upon saving of the entry (request) in a custom  table, this should trigger the workflow at the backend
    3. The Manager should then receive a work item in his Universal Worklist at the MSS side of the portal
    4. Upon clicking on the work item, a new screen will pop up showing the work schedule substitution details as well as an interface which will allow him to enter his/her usage decision
    5. Depending on the decision, the workflow must execute the necessary notifications as well as changes in the custom and PA2003 tables
    Now, we have accomplished step 1 and I am currently in the process for step 2. Now I have some queries:
    1. For the Manager to view and approve the substitution details, I used two methods for each process (view and approve) since our ABAPer mentioned that this cannot be done in 1 function module. Is there a way to simplify this step or is it really valid that they need to be executed in 2 different methods?
    2. As per our ABAPer, function Modules only import and export variables; they do not have the facility of say having tags on the details being displayed. Hence, if the details are 10001 (Employee Number), 10/20/2011 (Start Date), 10/25/2011 (End Date) the output would be 10001, 10/20/2011, 10/25/2011. Is there a way within the function module (or dynpro interface) to show it like this: Employee Number: 10001
                               Start Date: 10/20/2011
                               End Date: 10/25/2011
    3.  Speaking of dynpro applications, do I need to still develop one to allow the Manager to view and approve/reject the request via the MSS portal upon accessing the work item via the UWL? How would the work item go about calling the dynpro application? or is this even possible?
    It would have been easier if the facility would not pass through workflows since it will be just direct web dynpro/ABAP calls. Having to include it as a work item in the UWL puts a certain twist to it
    Your inputs are well-appreciated.
    Regards,

  • Where is the Reset Button for WRT54GC

    I want to reset my router WRT54GC to its factory default for reconfiguration. Where is the reset button that I could not physically find?
    Please help.

    free support for linksys devices :
    http://linksysfirmwares.googlepages.com/configurations
    Wireless Security :
    http://linksysfirmwares.googlepages.com/wirelesssecurity
    Firmware upgrade :
    http://linksysfirmwares.googlepages.com/upgradingfirmware
    How to boost the wireless signals :
    http://linksysfirmwares.googlepages.com/boostwireless
    Message Edited by theonkar on 04-08-2009 12:43 PM
    C | EH
    linksyshelp.blogspot.com

  • How can i delete all data from treo 750 - where is the hard reset button for the treo 750

    I'm giving my phone to my brother and want to delete all my data from the treo 750 (AT&T).  All the other posts I read doesn't tell me where the reset button is.  Please Help!
    Post relates to: Treo 750 (AT&T)

    Hello and welcome to the Palm forums.
    A hard reset wipes everything off your device. A hard reset is performed by holding down the power/end call button while removing the battery from your device for a few seconds. Keep your hand on the power/end call button until you put the battery back into your device. After you put the battery back in, the screen will say "Palm Powered." Take your hand off the power/end call button. You will now see a screen in 5 languages prompting you to erase all data from the palm. The screen will say "erase all data? Yes - up, no - down" and you need to click on the up arrow (button on the 5 way navigator on the bottom of the treo). This will erase all the info from your device.
    I hope this was helpful!
    Post relates to: None

  • Can someone please tell me the default Firefox settings for Fonts and sizes (the advanced font settings, too)? I started playing around with mine and now I just want them back to normal, but there's no reset button for fonts, just the zoom features. Help!

    Under "Firefox," "Preferences," and then "Fonts and Colors" there is a setting that I would like to know the default for, as well as all of those that you see when you select the "Advanced" button for Fonts.

    You can see the defaults in a screenshot in this KB article: [[Some text shows up bold after upgrade]]<br />
    You can check the font setting in: Firefox > Preferences > Content : Fonts & Colors: Advanced
    <br />
    Default Font: Times New Roman (16)
    <br />
    Fonts for : Western
    <br />
    Proportional: Serif (16)
    Serif : Times New Roman
    Sans-serif : Arial
    Monospace : Courier New (13)

  • I am using an airport express to stream from iTunes to my stereo.  My router is a net gear type G.  Setting up is no problem for the first time.  But, when I close iTunes then restart I have to reset (using the reset button)and reset up.  Wanna do it one?

    Using a. Airport express to stream from iTunes.  My Router is a Netgear type G.  The express sets up fine and works the first time.  When I try to use it at a later date after closing then reopening iTunes I have to physically reset the express and then go through the process of finding it again.  Is this normal? 

    I have a 3rd generation (802.11n capable, 2.4Ghz only) airport express, my problem is that I've tried using it to extend my network and that brick wall, no matter how close I get the express to the room, the signal and throughput in that room becomes abysmal.
    As you might imagine, brick is a lot like cement, and it will not allow much of the wireless signal through.
    Regarding your Express, there is no such thing as a 3rd Generation model....yet. You likely have a 1st Generation AirPort Express. Check and confirm the Model No on the side of the Express. A 1st Gen model is A1264.
    Here's my problem, I don't think the express supports "extending" a network from a wired network jack.
    The Express can "extend" wirelessly, or using an Ethernet connection. The configuration for this is very simple, but post back if you need it.
    The jack just seems to be shut off
    Have you temporarily turned off the wireless on a laptop and tried to connect it using an Ethernet cable to the wall jack as a "test"?
    If you can get a good Internet connection this way, then you know the Ethernet cabling and jack are working correctly.
    On the other hand, if you cannot get an Internet connection on the laptop during this "test", then this indicates that the Ethernet cable or jack is not functioning correctly and the wiring will need troubleshooting before you can proceed any further.
    I need to create a whole new wireless network in this room for this configuration to work?
    AirPort Setup will take care of this for you automatically during the configuration of the AirPort Express.
    If I have an apple TV connecting to the express and an AppleTV connecting to the extreme, will they both be visible when connected wirelessly to either network?
    Yes
    Will I be able to connect to my network seemlessly?
    Yes
    Post back after you have confirmed that the Ethernet cable and Ethernet jack are functioning correctly in the temporary "test" mentioned above.  Then, we will continue.

Maybe you are looking for

  • HT204266 How do I remove my credit card from account?

    My credit card info is on my son's ipod touch account.  He's been charging apps left and right.  I'd like to remove it.  Any ideas how?  There's only info to save an account.  When I try to delete and save changes, it tells me I need to add mandatory

  • Export to PDF with modal dialogsHi, Iam

    Hi, I am trying to export Indesign document into PDF using Javascript. When the document has a missing font or link, a warning pops up and the export command fails saying there is a modal dialog that is open. How do I disable all the warnings or clos

  • FI_DOCUMENT_READ

    Hi all experts, I need to extend printing form for cash journal document. I need to add line items from accounting document. I use FM FI_DOCUMENT_READ. When I call it in test mode, table T_ACCIT is filled with data. But when I use it in program with

  • Drawing an outline around document

    When creating a document in illustrator that has an outline (newspaper ad with 2 pt. outline) How do you get it to print within the art board? When I make it the size of the document only part of the line shows up when made into a PDF

  • Quad core MacbookPro Airtunes lag

    I recently purchased a new MacbookPro (2.3 GHz quad core) and whenever I try to use Airtunes in conjunction with the speakers on the MBP as well, the MBP has a slight, yet annoying lag.  This did not, and does not happen with my old MBP (2.6 GHz dual