How to exclude specific fields while resetting a form

Hi,
I am new to LiveCycle. I have created a PDF with 2 pages and it contains 70+ fields (Textfields, drop down, radio buttons, check boxes etc) . I created a reset form button with a click event and when I click it, it resets the entire form. I want to exclude 5 fields from belng cleared. How can I do that?
I have browsed all the forum topics on this and tried this script. ( Posting only few fields but the original script contains all fields)
xfa.host.resetData ("xfa.form.form1.DateField1,xfa.form.form1.TextField2[0],xfa.form.form1.TextField3[0],xfa .form.form1.TextField5[0]");
There are 70+ fields and I have entered all these fields excluding 5 fields which I do not wanted to be cleared. But it clears the whole form.
I tried xfa.$host.resetData() too.
Any help??

I figured out how to do it.
The script should be xfa.form.topmostsubform.page1.textfield and it worked.

Similar Messages

  • How to add new fields to the system form (Ex.expenses to a/r invoice form)

    hi
    can any one tell me how to add new fields to the system form (Ex.expenses to a/r invoice form)
    i want to add expenses field to system a/r invoice form and connect data base also.
    i used the code of samples\11.system form manipulation(vb.net) but i'm not able to get it....so can any one help with code or concepts.
    reply soon plz..
    thankQ

    If I understood you correctly, you are just trying to add new fields to the invoice form and then use them in your form. you should first go and add the field to your tables, which you would do by going to Tool --> User Defined Fields --> Manage User Fields. There are different documents or categories given. For ex. for invoices, Sales Orders you would add your field under the Marketing Documents. If you want the field to be just one per invoice, add it to the Title, otherwise if you want a field per invoice or Sales Order line, add it to the Rows section. Once you have done that then you can just create a edit box or drop down to represent the field and set the datasource for that to your field. If you want example code to do that, let me know.

  • How to change the Field Symbol, so Adobe Forms takes it as a Table?

    Hi guys,
    I created an Field Symbol, in a Interface which I use for Adobe Forms. The type of the Field Symbol is STANDARD TABLE, and this field symbol I fill with data from another program.
    But the problem is that in adobe forms, this Field Symbol is taken as TEXT FIELD and not as Table... and this shows me a Dump because it can't convert Internal Table to type C (the dump is like that).
    What I need, is how to change the Field Symbol, so Adobe Forms takes it as a Table?
    I looked at Adobe Form, and found this:
    The Type Category of the Field Symbol is DICTIONARY TYPE and I think I need to change it to Internal Table as shown in the right picture.
    Does someone have any idea?

    Hello Taly,
    To what i understand your requirement, you need to pass data from Field symbol to internal table in Adobe form.
    You have done it correct partially. I have replicated your scenario and steps are below -
    1) Create a Z structure
    2) Create Z Table Type
    3) Create Adobe Interface with Table & Field Symbol. Also do coding as shown to assign the internal table populated in driver program to filed symbol.
    4) Design Form as -
    5) Code driver as -
    *& Report  ZR_AF_FS_1
    REPORT  zr_af_fs_1.
    DATA: fm_name           TYPE rs38l_fnam,
           fp_docparams      TYPE sfpdocparams,
           fp_outputparams   TYPE sfpoutputparams,
           it_kna1           TYPE ztt_fs_1.
    * Sets the output parameters and opens the spool job
    CALL FUNCTION 'FP_JOB_OPEN'                   "& Form Processing: Call Form
       CHANGING
         ie_outputparams = fp_outputparams
       EXCEPTIONS
         cancel          = 1
         usage_error     = 2
         system_error    = 3
         internal_error  = 4
         OTHERS          = 5.
    IF sy-subrc <> 0.
    *            <error handling>
    ENDIF.
    *&---- Get the name of the generated function module
    CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'           "& Form Processing Generation
       EXPORTING
         i_name     = 'ZAF_FS_1'
       IMPORTING
         e_funcname = fm_name.
    IF sy-subrc <> 0.
    *  <error handling>
    ENDIF.
    *-- Fetch the Data and store it in the Internal Table
    SELECT kunnr name1 name2 adrnr FROM kna1 INTO TABLE it_kna1 UP TO 15 ROWS.
    * Language and country setting (here US as an example)
    fp_docparams-langu   = 'E'.
    fp_docparams-country = 'US'.
    *&--- Call the generated function module
    CALL FUNCTION fm_name
       EXPORTING
         /1bcdwb/docparams        = fp_docparams
          it_data                   = it_kna1
    *    IMPORTING
    *     /1BCDWB/FORMOUTPUT       =
       EXCEPTIONS
         usage_error           = 1
         system_error          = 2
         internal_error           = 3.
    IF sy-subrc <> 0.
    *  <error handling>
    ENDIF.
    *&---- Close the spool job
    CALL FUNCTION 'FP_JOB_CLOSE'
    *    IMPORTING
    *     E_RESULT             =
       EXCEPTIONS
         usage_error           = 1
         system_error          = 2
         internal_error        = 3
         OTHERS               = 4.
    IF sy-subrc <> 0.
    *            <error handling>
    ENDIF.
    6) Output -
    BR.

  • Export_to_Excel_pkg - How to exclude some fields in the export?

    While it does generate an excel spreadsheet, it includes all the columns of my report even though I have conditions on most of them. I allow the user to select the columns he/she wants in the report. So I want the Excel spreadsheet to have the same fields as the report. How can this be accomplished?
    <br><br>
    I use APEX 3.0.1 not APEX 3.1 and I don't use a report server.
    <br>
    <br>
    Please help!
    <br>
    Regards,
    Robert

    I was able to create an Excel spreadsheet excluding some fields based on the column's condition. I accomplished this by modifying the Export_to_Excel_pkg package. I added a new procedure and modified an existing one (print_report_header). I bolded the area where I changed or added code.<br><br>
    FOR c IN (SELECT   column_alias, NVL (heading, column_alias) heading,
                       format_mask
    ,condition_type,condition_expression1,condition_expression2
                  FROM apex_application_page_rpt_cols
                 WHERE page_id = p_page_id
                   AND application_id = p_app_id
                   AND region_id = TO_NUMBER (LTRIM (p_region, 'R'))
      -- AND include_in_export = 'Yes'
    AND (column_link_text is null or
    (column_link_text is not null and
    UPPER(column_link_text)=UPPER(column_alias))
    )            -- and column_is_hidden = 'No'
              ORDER BY display_sequence)
         LOOP
    if upper(c.condition_type) = 'PLSQL_EXPRESSION' then
    export_excel_pkg.get_include_in_report(p_page_id
    ,p_app_id
    ,p_region
    ,c.column_alias
    ,c.condition_expression1
    ,v_include_in_report);
    if v_include_in_report <> 'YES' then
    goto next_field;
    else
    null;
    end if;
    else
    null;
            end if;
            v_number_of_cols := v_number_of_cols + 1;
            v_column_header_list :=
                    v_column_header_list || ';' || REPLACE (c.heading, ';', ' ');
            v_column_alias_list := v_column_alias_list || ';' || c.column_alias;
            -- apply column formatting
            IF c.format_mask IS NOT NULL
            THEN
               v_column_select_list :=
                     v_column_select_list
                  || ',to_char('
                  || c.column_alias
                  || ','''
                  || c.format_mask
                  || ''') '
                  || c.column_alias;
            ELSE
               v_column_select_list :=
                                   v_column_select_list || ',' || c.column_alias;
            END IF;
    <<next_field>>
    null;     END LOOP;
    The new procedure:<br>
    PROCEDURE get_include_in_report (
    p_page_id IN number,
    p_app_id IN number,
    p_region IN VARCHAR2,
    p_column_alias IN VARCHAR2,
    p_condition_expression1 IN VARCHAR2,
    p_include_in_report OUT VARCHAR2)
    AS
    v_condition varchar2(20) := 'PLSQL_EXPRESSION';
    v_query varchar2(32767);
    v_include varchar2(3) := 'NO';
    v_cur_hdl INT;
    v_rows_processed INT;
    begin
    v_query :=
    'SELECT ''YES'' '
    || 'FROM apex_application_page_rpt_cols '
    || 'WHERE page_id = :g_page_id '
    || 'AND application_id = :g_app_id '
    || 'AND region_id = TO_NUMBER (LTRIM (:g_region, ''R'')) '
    || 'AND condition_type = :g_condition '
    || 'AND column_alias = :g_alias '
    || 'AND ' || p_condition_expression1 ;
    -- open cursor
    v_cur_hdl := DBMS_SQL.OPEN_CURSOR;
    -- parse the query
    DBMS_SQL.PARSE(v_cur_hdl,v_query,DBMS_SQL.NATIVE);
    -- Supply binds (bind by name)
    DBMS_SQL.BIND_VARIABLE(v_cur_hdl, 'g_page_id',p_page_id);
    DBMS_SQL.BIND_VARIABLE(v_cur_hdl, 'g_app_id', p_app_id);
    DBMS_SQL.BIND_VARIABLE(v_cur_hdl, 'g_region', p_region);
    DBMS_SQL.BIND_VARIABLE(v_cur_hdl, 'g_condition',v_condition);
    DBMS_SQL.BIND_VARIABLE(v_cur_hdl, 'g_alias',p_column_alias);
    -- Describe defines
    DBMS_SQL.DEFINE_COLUMN(v_cur_hdl, 1, v_include, 3);
    -- Execute
    v_rows_processed := DBMS_SQL.EXECUTE(v_cur_hdl);
    -- Fetch a row
    IF DBMS_SQL.FETCH_ROWS(v_cur_hdl) > 0 THEN
    -- Fetch columns from the row
    DBMS_SQL.COLUMN_VALUE(v_cur_hdl, 1, v_include);
    -- Process
    ELSE
    null;
    END IF;
    DBMS_SQL.CLOSE_CURSOR(v_cur_hdl); -- close cursor
    p_include_in_report := v_include;
    end;
    <br>
    <br>
    I hope this helps others as well.
    <br>
    <br>
    Regards,<br>
    Robert

  • How to read specific fields from BW table  into ABAP?

    Hi Experts,
    Can someone help me how to use to FM: RFC_READ_TABLE to read specific fields from a BW  table '/bic/zcust_chO01' which DOESN't EXIST IN ABAP.
    I am getting an error in OPTIONS & DATA parameters.
    Any help would be higly appreciated with points.
    Thanks
    Dan

    Dan,
    FM: RFC_READ_TABLE is a RF FM so by providing BW system's RF destination you can get the values from required table.
    TRY this:
    CALL FUNCTION RFC_READ_TABLE destination <BW_RF_destination>
    Susanth.

  • How to update specific fields of a db table using MODIFY

    Hi all.
    I understand that MODIFY allows us to insert a record into the database if the a record with the same key is not there. If a record is there, it would update that record.
    However, when the record is there, could i update SPECIFIC fields of the record, instead of updating ALL fields of the record?

    Yes, you can with exception that you can not modify primary key values.
    Here are the details about MODIFY db table command with examples
    MODIFY - Change a database table
    Variants:
    MODIFY dbtab. or   MODIFY *dbtab. or
      MODIFY (dbtabname) ... .
    MODIFY dbtab FROM TABLE itab. or   MODIFY (dbtabname) FROM TABLE itab.
    MODIFY dbtab VERSION vers. or   MODIFY *dbtab VERSION vers.
    Effect
    Inserts new lines or updates existing lines in a database table (s. relational database). If a line with the specified primary key already exists, an UPDATE is executed. Otherwise, an INSERT is performed. You can specify the name of the database table either in the program itself in the form MODIFY dbtab ... or at runtime as the contents of the field dbtabname in the form MODIFY (dbtabname) ... . In both cases, the database table must be defined in the ABAP Dictionary. If the program contains the name of the database table, it must also have a corresponding TABLES statement. Normally, records are inserted or updated only in the current client. Data can only be inserted or updated using a view, if the view refers to a single table and was created in the ABAP Dictionary with the maintenance status "No restriction".
    MODIFY belongs to the Open SQL command set.
    When the statement has been executed, the system field SY-DBCNT contains the number of edited lines.
    The Return code is set as follows:
    SY-SUBRC = 0:
        All lines were successfully inserted or updated.
    SY-SUBRC = 4:
        One or more lines could not be inserted or updated.
    Notes
       1. You cannot modify a line if there is already a line in the table with identical key field values in a UNIQUE index.
       2. Automatic definition of INSERT and UPDATE is expensive. You should therefore use MODIFY only if you cannot define the INSERT and UPDATE cases yourself in the program.
       3. Since the MODIFY statement does not perform authority checks, you have to program them yourself.
       4. Adding or changing lines with the MODIFY command is only completed after a database commit (see LUW) has been performed. Before the database commit has been performed, any database changes can be reversed with a database rollback (see Programming transactions).
       5. Synchronization of simultanous accesses by several users to the same set of data cannot be exclusively achieved with the lock mechanism of the database system. In several cases, you are recommended to use the SAP lock mechanism.
    Variant 1
    MODIFY dbtab. or
    MODIFY *dbtab. or
    MODIFY (dbtabname) ... .
    Extras:
    ... FROM wa
    ... CLIENT SPECIFIED
    See Cannot Use Short Forms and
    Cannot Use *Work Areas.
    Effect
    Inserts a new line or updates an existing line in a database table. If you specify the name of the database table yourself, the primary key for identifying the line to be inserted or updated and the relevant values are taken from the table work area dbtab or *dbtab (see TABLES). If you declare the name of the database table explicitly, the program must also contain a corresponding TABLES statement. If the name of the database table is not determined until runtime, you need to use the addition ... FROM wa.
    Example
    Insert or change data of the customer Robinson in the current client:
    TABLES SCUSTOM.
    SCUSTOM-ID        = '12400177'.
    SCUSTOM-NAME      = 'Robinson'.
    SCUSTOM-POSTCODE  = '69542'.
    SCUSTOM-CITY      = 'Heidelberg'.
    SCUSTOM-CUSTTYPE  = 'P'.
    SCUSTOM-DISCOUNT  = '003'.
    SCUSTOM-TELEPHONE = '06201/44889'.
    MODIFY SCUSTOM.
    Addition 1
    ... FROM wa
    Effect
    The values for the line to be inserted or updated are not taken from the table work area dbtab, but from the explicitly specified work area wa. When doing this, the data is read from left to right according to the structure of the table work area dbtab (see TABLES). Since the structure of wa is not taken into account, the work area wa must be at least as wide (see DATA) as the table work area dbtab and the alignment of the work area wa must correspond to the alignment of the table work area. Otherwise, a runtime error occurs.
    Note
    If a work area is not explicitly specified, the values for the line to be inserted or updated are also taken from the table work area dbtab if the statement is in a FORM or FUNCTION where the table work area is stored in a formal parameter or local variable of the same name.
    Addition 2
    ... CLIENT SPECIFIED
    Effect
    Switches off automatic client handling. This allows you to edit data across all clients even when dealing with client-specific tables. The client field is treated like a normal table field that can be programmed to accept values in the table work area dbtab or *dbtab where the line to be edited occurs.
    The addition CLIENT SPECIFIED must be specified immediately after the name of the database table.
    Variant 2
    MODIFY dbtab FROM TABLE itab.or
    MODIFY (dbtabname) FROM TABLE itab.
    Addition:
    ... CLIENT SPECIFIED
    Effect
    Mass modify: Inserts new lines or updates existing lines of a database table. The primary keys for identifying the lines to be inserted or updated and the relevant values are taken from the internal table itab. The lines of the internal table itab must satisfy the same conditions as the work area wa in addition 1 to variant 1.
    Note
    If the internal table itab is empty, SY-SUBRC and SY-DBCNT are set to 0.
    Addition
    ... CLIENT SPECIFIED
    Effect
    As for variant 1.
    Variant 3
    MODIFY dbtab VERSION vers. or
    MODIFY *dbtab VERSION vers.
    See Cannot Use the VERSION Addition.
    Note
    This variant is obsolete.
    Effect
    Inserts a new line or updates an existing line in a database table, the name of which is taken from the field vers at runtime. If no line exists with the specified primary key, an INSERT is executed. Otherwise, an UPDATE is performed. The database table must be defined in the ABAP/4 Dictionary and its name must conform to the naming conventions for R/2 ATAB tables. These stipulate that the name must begin with 'T' and may contain up to four further characters. The field vers must contain the table name without the leading 'T'. Only lines in the current client are inserted or updated. The line to be inserted is taken from the statically specified table work area dbtab or *dbtab.
    SY-SUBRC is set to 0 if the line is successfully inserted or updated. SY-SUBRC <> 0 is not possible since any other result causes a runtime error.
    Hope this helps.
    ashish

  • How to get Delta field while going for a generic data source

    Hi all,
    We want to create a generic data source for tables involving MSEG,MKPF,SER03,OBJK and EQU by creating a view on these tables.
    fields we are mapping are ...
    MKPF          MSEG         SER03        OBJK       EQUI
    MBLNR        MBLNR       MBLNR     
    MJAHR        MJAHR        MJAHR
                       ZEILE          ZEILE
                                          OBKNR        OBKNR
    Can  any help us out in finding/creating a delta specific field,so dat we do deltas in BW after initial initialisations?
    Thanks all,
    Doug

    HI
    Try to use some time characterstic.
    Generic data will support the following delta's.
    Time stamp
    Calender day
    Numeric Pointer(for exmple doccument number,counter etc)
    regards,
    Chandra.

  • Define read-only authorization for specific field(s) on a form for 11.5.9

    Dear all,
    Can you pls let me know how is it possible to define read-only authorization access for specific field(s) per responsibility / user on a form in 11.5.9?
    For example I want to protect the item master file by assigning for example to users with responsibility buyer authorization to modify the buyer information but to have read-only only authorization on other sensitive fields such as make/buy flag, expense accounts, etc
    Through UI Modeller I have only managed to make specific fields on specific forms invisible, or whole tabs invisible, to specific responsibilities but this does not cover my needs as I want them to be able to view the data of the fields but to not be able to update them

    Arun,
    Almost but not quite.. The example you've given has the person VO at the top level which includes all the id's (City, State etc). My use case is slightly different.
    query 1
         select org_id, OrgName from x;
    query 2
         select emp_id, emp_name from y where org_id = x.org_id
    query 3
         multi-table join (approx 9 tables) to retrieve depts associated to employee
         where org_id = x.org_id
         and emp_id = y.emp_id
    Rather than using LOV's would it be better to create VO's and pass in the bind parameters at run time?

  • How to capture the field name on a form when it's double-clicked?

    Hello,
    I plan to create a two field Help table that uses the thirty or so unique field names on the user form in field one. The second field is a Memo type field that contains the Help information for each field.
    Once I know the field name clicked, I will probably use a query to retrieve the help information. I'm planning to use the Double-Click event so the users can double-click any field on the form to be presented the specific field related information
    from the Help table.
    How can I capture the name of the field that was double-clicked, so I can proceed with this project? Thank you.
    Cordially,
    John
    Thank you, John Portland, Maine

    Thank you, Hans,
    How about this code:
    Dim varClickedFieldName as String
    varClickedFieldName = ScreenActiveControl.ControlSource
    Or would you recommend other code?
    Cordially,
    John
    Thank you, John Portland, Maine

  • How to transfer the field values in MA form RFX

    Hi
    We have two  fields ( extended field of date type ) in Rfx page . Now client wants that this two field value will be transferred to Master Agreement page while creating MA form Rfx award .
    Is there any possible way to do this ?
    Regards
    Sudipta
    Edited by: Sudipta62 on Dec 20, 2011 10:38 AM

    Sudipta, Vikram,
    If names are the same, are the fields transferred automatically? Or do we still write code?
    Thanks,
    MP

  • How to enable a field on the person form?

    Hello,
    I am working in UK Legislation and I need to enable a greyed out field on the person screen. It's the "Disabled" field (to capture the disability of an employee).
    This might sound an easy thing to do but I couldn't find any function or profile option that controls this. I couldn't find any metalink note on this. Could any one tell me how to do this or let me know of any metalink note on this?
    Many Thanks,
    Baloo

    Both answers were helpful. Thanks a lot.
    In the interest of other users I am pasting the answer below:
    The Disability Discrimination Act 1995 (DDA) is the main piece of legislation which makes it unlawful to discriminate against a disabled person in their terms of employment, promotion opportunities, by dismissing them or by subjecting them to any other detriment. This act had been further amended, cumulating in the Disability Discrimination Act 2005 which is related to disability generally and extends outside the area of employment although some provisions will relate to employees.
    Parts of the Act came into force in December 2005, other parts relating for example to transportation are applicable from December 2006. The above provisions replaced the concept of Registered Disabled Persons and
    employment quotas which had been in existence since after the second world war.
    In releasing the enhanced Disabilities functionality, it was intended to facilitate the maintenance of disability records through the Disability form and not the Disabled field on the person form.

  • How to fill in fields in a PDF form? I have downloaded the Adobe Reader x 10.0.1.

    I have the Adobe Reader x 10.0.1. Free version.
    I downloaded a PDF form and open the document but cannot fill in any of the fields. With the form opened I look at File/Properties/security which shows "Filling of the form fields": Allowed.
    I do not find "Typewriter" under view.
    How can I type in to fill the fields
    Regard

    The window snip will let you see:

  • How to read data/fields of the pdf form

    Hi,
    i want to orchestrate a process where input is interactive forma and output is xml data.
    i mean i want to read data/fields of the pdf form.
    Which activity do i use on workbench.
    Regards
    Sunil

    Dieter,
    I am talking about 3rd senario, where we create one process on workbench, and pass filled pdf as input and then output of process is xml file.
    What is the process name here (Like renderPDF process) which extract data from pdf.
    regards
    Sunil

  • How to create new field while upgrading from CRM 4.0 to 7.0

    Hi ,
    How do we create new field on UI and store data into existing field in database?
    Is there any option in AET to skip the creation of new field in the database table ?
    Custom field is already created in GUI and database table while using CRM 4.0
    Now, after upgrading to 7.0 EHP3 , I need to bring this field on the UI .
    Using AET may create new field again in the database table.Please suggest.
    New filed needed to be created in Marketing Campaign Element Header data.
    Thanks
    Jayasri

    Hi Jayasri,
    As a custom fields are already there in crm 4.0. You don't need to use AET again to add field.
    These enhancements still exist after the upgrade. Dependent on the enhancement object and type some manual steps are necessary.
    For example regarding a single field enhancement for the BP the whole framework is enhanced after the upgrade. There is only one manual step to bring the field on the relevant view(s) via the UI Configuration Tool. For whole BP tables some more manual steps are necessary, these steps are described in the note 1069791 - CRM WebClient UI for EEW enhancements (reference to more notes regarding the EEW after the upgrade).
    For set types, we need to generate UI With the help of the UI configuration tool the settypes could become visible in the Web UI.
    I didn't understood your scenario, can add little more information why you want to add field by AET if available in DB?
    Refer
    FAQ - SAP CRM Upgrade from release 4.0 to 7.0 
    Regards,
    Arjun

  • Date formatting: how to get specific fields showing in localized format?

    Hi all,
    I would like to take a Date object and format it into the localized format while at the same time specifying which fields should be showing. E.g. ensure that I always have, day of week, day of month, month, year, hours, minutes, seconds and milliseconds regardless of locality.
    Is it possible to do this and if so how?

    For that there is java.util.Locale

Maybe you are looking for