Clear form after CREATING record

Right now when I fill out a form then click the CREATE button, the record shows up in the report but it also remains in the form in "edit"mode.
What I want is after I click the CREATE button, the form clears and the CREATE button remains so I can add another record.

I don't want to clear it for the whole page because I have 2 regions on this page. One region has a report, the other region is the form. So, when I create the record in the form I want the report to populate, but I want just the form region to clear cache. So, how do I clear the cache for just a region, not a page.

Similar Messages

  • Print Form after Defect Recording

    Hi,
    I have a requirement to print a so called Incoming Rejection Form. This form is printed after doing the defect recording.
    Is there a standard way to print a form after saving defect recording?
    Thanks,
    Raymond

    Hi
    check the FORM ....you have either made changes or create a new form
    check following
    A form definition contains the following elements:
    Header data:
    This is general information about the form, such as the user ID of the person who created it, a short text describing the form, and global control data, such as font used and page format.
    Paragraphs:
    Paragraphs are the real layout elements in SAPscript. Every text entered in the editor consists of various paragraphs. The beginning of a paragraph is indicated by a paragraph tag in the left column of the editor. Paragraph names and attributes are defined in the form.
    Characteristics or attributes which can be defined for paragraphs include text alignment, line spacing, font used etc.
    Character strings:
    Character strings are layout elements relevant for a section of text within a paragraph. They are inserted in the continuous text. The beginning of a section of text is marked with the character combination <XX> and the end with </>. Here XX is the name of the character string, which is defined in the form.
    Windows:
    Windows represent logical units. Although they do not have a physical position on the page, they have a name which reflects the purpose of the text to be displayed in the window. For example, an address window, a window for a letter header etc.
    A window type is assigned to every window. The most important type is the main window. "Continuous" text appears in the main window. The text can therefore extend over the main windows of several pages. The other window types, on the other hand, do not allow text which does not fit in the window to be continued in the window on a subsequent page.
    Pages:
    One or more pages which are to appear in the form are defined here. The attributes of a page include the name of the next page and the type of page numbering. The user determines the page sequence by specifying the next page and defining the first page of the form in the header data.
    Page windows:
    A page window is defined by specifying the position and size of a form window on a form page. The page window describes the position of a window on a specific page of the form and therefore the area in which text can be output in the form.

  • Apply Clear Overrides after creating such character styles...

    Hi everyone,
    After importing the Word document into InDesign CS3 in some of the paragraphs there is some style overrides. The InDesign styles formatting are not intented with the paragraphs properly. Eventhough the word styles are mapped with InDesign styles exactly. If i select all the paragrahs and click the option "Clear Overrides" from the paragraph styles palette, all the InDesign styles formatting are applied properly but the character style formatting get removed. So i have planned to create script to character style for each font style and each formatting of the characters. After doing this i can clear the overrides of paragraph styles without hassle. I have created the script to create character styles for character formatting and its working fine but when i tried to run this script for 2nd time in the same document it showing some error in it. Please find my script below and it is too big,
    //To find Font styles and character formatting and replacing it with character styles
    //Script for CS3
    #target InDesign
    var myDoc = app.activeDocument;
    if (myDoc.characterStyles.item("Itl") == null){
    var Itl = myDoc.characterStyles.add({name: "Itl", fontStyle: "Italic"});}
    if (myDoc.characterStyles.item("bl") == null){
    var bl = myDoc.characterStyles.add({name: "bl", fontStyle: "Bold"});}
    if (myDoc.characterStyles.item("bItl") == null){
    var bItl = myDoc.characterStyles.add({name: "bItl", fontStyle: "BoldItalic"});}
    if (myDoc.characterStyles.item("bItal") == null){
    var bItal = myDoc.characterStyles.add({name: "bItal", fontStyle: "Bold Italic"});}
    if (myDoc.characterStyles.item("sb") == null){
    var sb = myDoc.characterStyles.add({name: "sb", fontStyle: "Semibold"});}
    if (myDoc.characterStyles.item("sbItal") == null){
    var sbItal = myDoc.characterStyles.add({name: "sbItal", fontStyle: "Semibold Italic"});}
    if (myDoc.characterStyles.item("blk") == null){
    var blk = myDoc.characterStyles.add({name: "blk", fontStyle: "Black"});}
    if (myDoc.characterStyles.item("obl") == null){
    var obl = myDoc.characterStyles.add({name: "obl", fontStyle: "Oblique"});}
    if (myDoc.characterStyles.item("li") == null){
    var li = myDoc.characterStyles.add({name: "li", fontStyle: "Light"});}
    if (myDoc.characterStyles.item("liItal") == null){
    var liItal = myDoc.characterStyles.add({name: "liItal", fontStyle: "Light Italic"});}
    if (myDoc.characterStyles.item("sup") == null){
    var sup = myDoc.characterStyles.add({name: "sup", position: Position.superscript});}
    if (myDoc.characterStyles.item("sub") == null){
    var sub = myDoc.characterStyles.add({name: "sub", position: Position.subscript});}
    app.findTextPreferences = NothingEnum.nothing;
    app.changeTextPreferences = NothingEnum.nothing;
    app.findTextPreferences = null;
    app.changeTextPreferences = null;
    app.findTextPreferences.fontStyle = "Italic";
    app.changeTextPreferences.appliedCharacterStyle = Itl;
    app.documents.item(0).changeText();
    app.findTextPreferences.fontStyle = "Bold";
    app.changeTextPreferences.appliedCharacterStyle = bl;
    app.documents.item(0).changeText();
    app.findTextPreferences.fontStyle = "BoldItalic";
    app.changeTextPreferences.appliedCharacterStyle = bItl;
    app.documents.item(0).changeText();
    app.findTextPreferences.fontStyle = "Bold Italic";
    app.changeTextPreferences.appliedCharacterStyle = bItal;
    app.documents.item(0).changeText();
    app.findTextPreferences.fontStyle = "Semibold";
    app.changeTextPreferences.appliedCharacterStyle = sb;
    app.documents.item(0).changeText();
    app.findTextPreferences.fontStyle = "Semibold Italic";
    app.changeTextPreferences.appliedCharacterStyle = sbItal;
    app.documents.item(0).changeText();
    app.findTextPreferences.fontStyle = "Black";
    app.changeTextPreferences.appliedCharacterStyle = blk;
    app.documents.item(0).changeText();
    app.findTextPreferences.fontStyle = "Oblique";
    app.changeTextPreferences.appliedCharacterStyle = obl;
    app.documents.item(0).changeText();
    app.documents.item(0).changeText();
    app.findTextPreferences.fontStyle = "Light";
    app.changeTextPreferences.appliedCharacterStyle = li;
    app.documents.item(0).changeText();
    app.findTextPreferences.fontStyle = "Light Italic";
    app.changeTextPreferences.appliedCharacterStyle = liItal;
    app.findTextPreferences = NothingEnum.nothing;
    app.changeTextPreferences = NothingEnum.nothing;
    app.findTextPreferences.position = Position.superscript;
    app.changeTextPreferences.appliedCharacterStyle = sup;
    app.documents.item(0).changeText();
    app.findTextPreferences.position = Position.subscript;
    app.changeTextPreferences.appliedCharacterStyle = sub;
    app.documents.item(0).changeText();
    function setupFindText(find, change, foots, hidLayers, lockedLayers, lockedStories, masters, caseSensitive) {
      app.findTextPreferences = null;
      app.changeTextPreferences = null;
      try { app.findTextPreferences.findWhat = find } catch(e) {};
      try {app.changeTextPreferences.changeTo = change } catch(e) {};
      app.findChangeTextOptions.properties = {
        includeFootnotes:(foots == null ? false : foots),
        includeHiddenLayers:(hidLayers == null ? false : hidLayers),
        includeLockedLayersForFind:(lockedLayers == null ? false : lockedLayers),
        includeLockedStoriesForFind:(lockedStories == null ? false : lockedStories),
        includeMasterPages:(masters == null ? false : masters),
        includeCaseSensitive:(caseSensitive == null ? false : caseSensitive)
    } // end setupFindText
    alert ("DONE");
    please suggest how to simply this script and make it run faster can anyone suggest me. Also suggest me to how can add this "Clear Override" syntax with this script. I want to make this script very effective. Thanks in advance to all.
    Regards
    Thiyagu

    The reason for that error is easy.
    if (myDoc.characterStyles.item("Itl") == null){
    var Itl = myDoc.characterStyles.add({name: "Itl", fontStyle: "Italic"});}
    means "if the style does not exist, create it and assign it to the variable". What happens when it does exist? (I'll let you think of an answer here.)
    Why don't overrides work? Well, let me ask you, does it work when you do the same directly in the program? No: to clear overrides, replace a style with itself. Does that mean you should run the script twice? Well, no, a brief search through the CS3 JS help reveals this tantalizing function (for any text type element):
    void clearOverrides ([overridesToClear:OverrideType=ALL])
    Clears the specified types of override.
    Parameter
    Type
    Description
    overridesToClear
    OverrideType:
    OverrideType.ALL
    OverrideType.CHARACTER_ONLY
    OverrideType.PARAGRAPH_ONLY
    The types of override to clear. (Optional) (default: ALL)
    -- and I remember someone posting this rather nifty one-liner
    myStory.paragraphs.everyItem().clearOverrides();
    The script appears a bit Frankensteinian to me. That function setupFindText is never used; you use two different ways of clearing the find and change preferences ('null' and 'nothing' -- I believe there were some strong points against using 'null', but, anyway, you only need to set them to nothing once).
    Notice it doesn't take heed of combinations of a type style and superior/inferior -- the latter will overwrite the former.
    The usual way of speeding up a script is by putting repeated elements into an array, but I doubt this will help much here. On the other hand, it's just a handful of replaces, and it should be very fast already. Even if it takes as much as 30 seconds, it's still worth that time.

  • Clearing Form after Error

    Hi All,
    The form I'm working after commit, the records don't disappear, whereas, now I want when there is error, then also the records must not be disappear. How do I display the records with just the error meassage, and also validate the item for right or wrong data entered.
    Thanks In Advance, please reply, its' urgent...

    Doing a commit does not clear the form. If the form is being cleared, then you need to look at the code to see where a clear_form is being executed (after the commit_form).
    Once you find where it is occurring, you can write code to check for an error and display the error message before clearing the form.
    If you need to validate the data before doing a commit, use a validate trigger on the item or block. The Help documentation provides examples.

  • Add a field in a form after creating a new column in a table

    Hi,
    I have searched extensively in the help menus and tutorials and maybe I have missed this, but after adding a new column to a table. How do I update the form so that when data is entered into the form it is populated in the table? Is there a tutorial or explanation of the process somewhere?
    Thanks,

    Hi
    That has to be done manually but it is simple. Create a new item of the desired type e.g. Text Item, Select List by Right clicking on the region and select Create Page Item. A wizard will start where you will select the desired type. Press next and enter the name of the item. e.g. P3_LAST_NAME. Press Next and Enter a label for the Item. Press next and choose Source Type as Database Column when asked. Press Create button.
    Hope it helps.
    Zulqarnain
    MaxApex Hosting
    http://www.maxapex.com

  • Ipad form ....help needed please.  Clear form after email as read only and sequential numbering

    Hi
    i am a complete novice at this however this is what I want to achieve.
    i Have a paper duplicate report sheet that I want to get electronically, I want to be able to add sequential numbers to each report and be able to email the report to the client from a email field in the form
    so far I have so I have created the pdf form, I have a button that runs a JavaScript that will hide the submit button and then send to the clients email and to bcc myself so I have a copy of the report also. This has been tested and works
    i Am struggling with sequential numbering and once the form has been emailed it's un-ditable as the JavaScript has converted it to read only for emailing which is good as it can't be edited. But Is there a way on my submit button to email the report as read only and then clear all form fields in the report ready for filling with the next sequential number?
    I Have had a good look sound for a resolution to this but am struggling
    many thanks in advance for any feedback
    paul

    Hi Paul,
    I presume that you are using the desktop version of Acrobat Pro to author the form.
    I will move this discussion to the PDF Forms forum so that the experts in the forum can answer your question.
    Please note that the Reader/Acrobat DC mobile apps (for iOS, Android, Windows Phone, etc.) have limited JavaScript support.
    JavaScript for Reader Mobile API Reference (iOS)
    You may be able to make the form work as you want in the desktop version of Adobe Reader/Acrobat Reader DC.  However, some functionality (e.g adding a sequence number to each PDF) will not work in the mobile apps due to the limited JavaScript support.  Sorry for the inconvenience.

  • Clear form after submitting, Adobe X Standard

    I am trying to set up a form in Acrobat X standard that will clear the fields after it has been submitted. The form is on a local network and is being distributed using the Forms tool. Employees need to fill in the form then click the submit button on the top right side of Adobe reader, not a button field in the form. I am trying to keep employees from having one person answer the questions  then letting others change the name and resubmit. Is there a script that can do this? I am new to Javascript so I have no idea how to do this or if it can be done.

    I guess I'm not making myself clear about a major problem I have. I do not know anything about Java or JavaScript programming. I understand what document level means but I have No idea how to write a script. I can open the debug console but that is as far as it goes. With that said, I would like to figure this out but it will take a lot of hand holding. The way I see it, I need to know how to call the Adobe Reader "Submit" button, "not a form field" so that when it is clicked on "mouse up" it starts a timer. After the form has been submitted the "resetForm" command activates and all fields reset.
    So how does all that get to be a JavaScript? I have no clue..........

  • Refresh view forms after change records in db?

    Hello,
    I have problem with refresh view in master-detail form. If I press button with trigger which inserts records in master and detail table, I see change only in master table in forms. In trigger is clause execute_query; but it doesn't work. If I refresh internet search (internet explorer) then I see change in all tables, but I want see this changes after press button with trigger.
    Any suggestion?
    regards Psiezul

    This is large trigger and I make simplest this code.
    There are two tables: sprawy and watki. Table sparwy is master table and watki is detail table. And button with trigger is on master object in forms.
    DECLARE
    BEGIN
    SELECT * INTO rekord_sprawa FROM sprawy WHERE .......;
    --some changes on records rekord_sprawa, and save this records in DB.
    INSERT INTO sprawy(........) VALUES(.......);
    COMMIT;
    In this palce is ok and I see changes on my form in IE.
    Under are records which are inserted in database, but I can't see this changes in form.
    If I take count_query, then I get message that there are new records, but if I press execute_query, forms told my that, there aren't any records ! In DB are all records which I inserted. But If I click refresh on Internet Explorer, that I see changes.
    SELECT * INTO rekord_watek FROM watki WHERE .......;
    INSERT INTO watki(......) VALUES(........);
    COMMIT;      
    END LOOP;     
    END;
    Execute_query;
    It's not work(execute_query) for second table 'watki' which is visible in detail component.
    Sorry for my terrible english
    regards
    I find solution but not very good
    open_form('dokument');
    close_form('dokument');
    this clauses make refresh all table in master-detail model.
    Edited by: user515960 on 2010-06-08 04:56

  • Using Forms to create records

    I've got a form application which has typical fields for data entry, ref number, name, address etc.....up to ten items.
    I have a Main Menu form, four other forms, and can move between them fine.
    This is a cut down example, with only one text field, of the type of form I'm using to enter data to:
    package Test;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import com.borland.jbcl.control.*;
    public class Frame1 extends JFrame {
    Button button1 = new Button();
    Label label1 = new Label();
    TextField textField1 = new TextField();
    Filer filer1 = new Filer();
    //Construct the frame
    public Frame1() {
    enableEvents(AWTEvent.WINDOW_EVENT_MASK);
    try {
    jbInit();
    catch(Exception e) {
    e.printStackTrace();
    //Component initialization
    private void jbInit() throws Exception {
    button1.setBounds(new Rectangle(136, 202, 133, 45));
    button1.setLabel("a button");
    button1.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(ActionEvent e) {
    button1_actionPerformed(e);
    this.getContentPane().setLayout(null);
    this.setSize(new Dimension(400, 300));
    this.setTitle("Form Test");
    label1.setBounds(new Rectangle(18, 10, 111, 37));
    label1.setAlignment(2);
    label1.setText("a text field");
    textField1.setBounds(new Rectangle(166, 13, 109, 23));
    textField1.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(ActionEvent e) {
    filer1.setDirectory("c:\\");
    filer1.setFrame(this);
    this.getContentPane().add(label1, null);
    this.getContentPane().add(textField1, null);
    this.getContentPane().add(button1, null);
    //Overridden so we can exit on System Close
    protected void processWindowEvent(WindowEvent e) {
    super.processWindowEvent(e);
    if(e.getID() == WindowEvent.WINDOW_CLOSING) {
    System.exit(0);
    void button1_actionPerformed(ActionEvent e) {
    Frame2 myFrame = new Frame2();
    myFrame.show();
    I'd like to be able to enter the data, save individual records to disk, and access them individually. I've been trying to implement
    'Serialize' but with no success so far. I'd be most grateful for any advice on how to save the individual records without implementing a database. I'm using applications for all the forms. To get me started, I'd be happy just to be able to enter something in the example form's text field, save it, and display it again.
    Many Thanks

    Create an class with attributes to represent the data you want to save (see Person below)
    When you want to the contents of the form (i'm assuming here a form with two JTextField on it for the names) create a new Person object using the data from the form.
    As Person is Serializable you can save it to a file using an ObjectOutputStream (see java.io).
    You will then also be able to create Person objects by reading them back from file with an ObjectInputStream and setting data in the form by calling the accessor methods in the Person class.
    Hope this helps.
    public class Person implements Serializable
       private String forename;
       private String lastname;
       public Person(String forename, String lastname)
           this.forename = forename;
           this.surname = surname;
       // accessor methods
       public String getLastname { return lastname; }
       public String getForename { return surname; }
    }

  • Unable to create records in database using PHP Data Service

    Hello, I've been stuck on this for a few days and search up and down for this on the net, no response I've found has worked, so I come to you...
    Here are the steps I've taken, I think it's pretty standard
    1. I have a macbook pro running osx 10.7.3
    2. I installed MAMP all default (I've acually reinstalled this because someone suggested this might fix it)
    3. Thru phpMyAdmin I created a database called my_test
    4. In that database I created a table, this is the export of that table: (I've also tried this with InnoDB which is the default)
    CREATE TABLE `customer` (
      `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
      `name` varchar(50) NOT NULL,
      `email` varchar(150) NOT NULL,
      PRIMARY KEY (`id`),
      UNIQUE KEY `id` (`id`)
    ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
    5. I created a new Flx Project (Running Flash Builder 4.5.1 Premium)
         Project Name: PHPTest
         Application Type: Desktop (Although I've done the same thing with Web and got the same results)
         >> Next
         Application Server Type: PHP
         Web Root: /Applications/MAMP/htdocs/
         URL Root: http://localhost:8888/
         Clicked 'Validate Configuration' and that worked
         Output Folder: /Applications/MAMP/htdocs/PHPService (default by Flash Builder)
         >> Finished
    6. On the Data/Services tab on the bottom I click 'Connect to Data/Service...'
         Select 'PHP'
         >> Next
         Select 'Click here to generate a sample'
         Select 'Generate from database' radio button
         Username: root
         Password: root (default for MAMP)
         Host name: localhost
         Server port: 8889 (default for MAMP MySQL port, the HTTP port default is 8888 which in both cases seem to work but every video I've seen that uses MAMP on youtube uses 8889)
         Database: my_test
         Click 'Test Connection' (works)
         Table: customer
         Primary Key: id (this field is greyed out and Flash Builder selects 'id' which it figures out from the SQL table)
         >> Click OK
    7. Then if I don't have the Zend Framework folder in my /Applications/MAMP/htdocs/ folder it tells me its going to create that and I say alright. Then Flash Builder says stuff about how this is really only for testing and not production server ready and I say alright.
    8. Then it takes me back to the Form from Step 6 when I get the chance to select 'Click here to generate a sample'
         These fields are now filled with this data automaticly:
         PHP Class: /Applications/MAMP/htdocs/PHPTest/services/CustomerService.php
         Service name: CustomerService
         Service package: services.customerservice
         Data type package: valueObjects
         >> Click Next (shows all the functions that will be now availible)
         >> Click Finished (End of the forms and it opens Dreamweaver to the php file it created CustomerService.php which I have no need to edit so I close that down)
    9. Back in Flash Builder I switch to design view and drag a datagrid onto the big white area in the middle, whatever that is called.
    10. Then below in Data/Services tab on the bottom I click drag the function 'GetAllCustomer' on top of the datagrid.
         I say yes to rebound and click ok and the view of the datagrid is updated with the colums from the 'customer' table in mySQL.
    (Now let me say that when I hit save and compile this, if I actually had records in this table that I insert thru phpMyAdmin, this does show in the datagrid. So for the whole CRUD thing I am able to get the R which is Read)
    11. Now going back to the design view in Flash Builder I will create a form to create records in the table... (I guess this isn't really a step)
    12. In the Data/Service tab on the bottom I select 'createCustomer' function and then there is an icon called 'Generate Form' that looks like a white piece of paper with a gear on the bottom of it.
    13. This opens up a new form and since I don't have a crazy bunch of fields in my table I just click Finished (If you click next you can specify which fields you want to exclude from the form but this time I don't need to)
    14. This actually creates 2 forms if you look at the code, the second just shows the return type from when you click 'CreateCustomer' button on the first form. Because they overlap in design view I drag the form out of the way so you can see the input form, the return form, and the datagrid
    15. Then I save and compile...
    (Also if your actually reading this I didn't remove the id form field, I get the same result either way, but if you do remove the form field in the code/design you also have to update the button function to not deal with the id before it gets sent off to the php page since in this case the MySQL table is set to auto_increment the id, sorry this doesn't make much sence but this little area doesn't matter much either way)
    16. Now fill in whatever data you want for name and email, try differnt numbers in the id field like 0, nothing, 1, 1000 and click 'CreateCustomer'
    (For me nothing happens, no return is put in the return field, no error pops up and the datagrid is not updated with the new record, also going over to phpMyAdmin and checking out the table browse doesn't show any changes either, I know the button is calling the function because if I add a state change in that function it changes, it would seem that the line:
    createCustomerResult.token = customerService.createCustomer(customer2); doesn't do anything)
    So any idea what is wrong here, I'm convenced it's something stupid easy simple I just can't see it.

    In case you need more info, here is a code dump on a mxml project that has this problem:
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                           xmlns:s="library://ns.adobe.com/flex/spark"
                           xmlns:mx="library://ns.adobe.com/flex/mx"
                           xmlns:customerservice="services.customerservice.*"
                           xmlns:valueObjects="valueObjects.*"
                           currentState="State1">
        <fx:Script>
            <![CDATA[
                import mx.controls.Alert;
                import mx.events.FlexEvent;
                protected function dataGrid_creationCompleteHandler(event:FlexEvent):void
                    getAllCustomerResult.token = customerService.getAllCustomer();
                protected function button_clickHandler(event:MouseEvent):void
                    var customer2:Customer = new Customer();
                    customer2.id = parseInt(idTextInput.text);
                    customer2.name = nameTextInput.text;
                    customer2.email = emailTextInput.text;
                    currentState = "Test";
                    createCustomerResult.token = customerService.createCustomer(customer2);
            ]]>
        </fx:Script>
        <s:states>
            <s:State name="State1"/>
            <s:State name="Test"/>
        </s:states>
        <fx:Declarations>
            <s:CallResponder id="getAllCustomerResult"/>
            <customerservice:CustomerService id="customerService"
                                             fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)"
                                             showBusyCursor="true"/>
            <valueObjects:Customer id="customer"/>
            <s:CallResponder id="createCustomerResult"/>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <s:DataGrid id="dataGrid" includeIn="State1" x="330" y="10" width="392"
                    creationComplete="dataGrid_creationCompleteHandler(event)" requestedRowCount="4">
            <s:columns>
                <s:ArrayList>
                    <s:GridColumn dataField="id" headerText="id"></s:GridColumn>
                    <s:GridColumn dataField="name" headerText="name"></s:GridColumn>
                    <s:GridColumn dataField="email" headerText="email"></s:GridColumn>
                </s:ArrayList>
            </s:columns>
            <s:typicalItem>
                <fx:Object id="id1" email="email1" name="name1"></fx:Object>
            </s:typicalItem>
            <s:AsyncListView list="{getAllCustomerResult.lastResult}"/>
        </s:DataGrid>
        <s:Form includeIn="State1" defaultButton="{button}">
            <s:FormItem label="Id">
                <s:TextInput id="idTextInput" text="{customer.id}"/>
            </s:FormItem>
            <s:FormItem label="Name">
                <s:TextInput id="nameTextInput" text="{customer.name}"/>
            </s:FormItem>
            <s:FormItem label="Email">
                <s:TextInput id="emailTextInput" text="{customer.email}"/>
            </s:FormItem>
            <s:Button id="button" label="CreateCustomer" click="button_clickHandler(event)"/>
        </s:Form>
        <s:Form includeIn="State1" x="0" y="204">
            <s:FormItem label="CreateCustomer">
                <s:TextInput id="createCustomerTextInput" text="{createCustomerResult.lastResult as int}"/>
            </s:FormItem>
        </s:Form>
    </s:WindowedApplication>

  • How to show the new table record after creating

    I have a table form. After creating a new record to the table, the page go back to the same page. I wanta know how to show the new record after click 'Create' button. Right now, all the items will be cleared.
    Thanks.

    The button submits the page so just create a branch that directs to a new page (which you'll have to create if you have not already done so) after submission which directs to a new page and uses the newly generate PK to display the row you've generated. You'll need to make the branch conditional on that press of the Create button.
    Phil

  • How to get a second page in a form letter report after create it by Wizard

    How to get a second page in a form letter report after create it by Wizard
    i've built a report by wizard with a sql-Query
    the sql give me back for example 3 dataset
    and the report prints 3 pages
    dataset 1 - page 1
    dataset 2 - page 1
    dataset 3 - page 1
    thats ok,
    but now I need a second page per dataset ( with only a text )
    so that the report should print 2 pages per dataset
    dataset 1 - page 1 ,page 2
    dataset 2 - page 1 ,page 2
    dataset 3 - page 1 ,page 2
    It's not really clear for me, what to do, to create the second page
    any help ?

    .... found answer in other forum

  • Error in Forms while creating the trigger- WHEN-CREATE-RECORD

    Hello,
    Right now I am using 11g client side and 10g database.
    I am constantly getting an error while creating triggers in 11g.
    I have created a sequence in SQL developer using the following code:
    create sequence loc_id_sequence
    start with 14;
    After creating the sequence. I am trying to write the PL/SQL code in forms builder for the trigger WHEN-CREATE-RECORD
    declare
    loc_id number;
    begin
    loc_id := loc_id_sequence.nextval;
    end;
    But I have been getting the following error constantly. Can anyone please help me?
    "Error 0 at line 5, column 4
    SQL statement ignored".
    Can anyone please tell me why I am getting that error

    In fact, even I thought there might be some problem with the connectivity with the 10g database and 11g client but the other DB related code works.
    I just have the problem with using sequence for the trigger WHEN-CREATE-RECORD.
    In fact I also tried using WHEN-NEW-RECORD-INSTANCE smart trigger instead of WHEN-CREATE-RECORD for the same sequence. But even that doesn't work.
    Do u have any idea of what that error means?
    "Error 0 at line 5, column 4
    SQL statement ignored"
    Edited by: Pooja 1985 on Feb 26, 2013 5:43 PM
    Edited by: Pooja 1985 on Feb 26, 2013 5:44 PM

  • Clearing the forms after default Save Button pressed

    HI,
    in forms 6i how to clear the form after the save button is pressed, ie the form uses default menu and smart bar. the user wants to clear the form once he selects save from the menu or after pressing the save icon...
    any idea...?
    regards
    Kris

    try on-commit trigger on form level through clear_form procedure but cursor remain stay on the same record
    I think your requirement is that when user commits a record a new blank record appear so also add "create_record" procedure ;
    .but u have to apply some logic on that trigger also it ever fires when user edit/insert/delete a record and commit;
    Hope it clears now!

  • Display the records in forms when creating in a database

    hi to all
    i have a problem in forms, run in c\s using form6i..
    How can i display the records when i create a records to database and automatically display in forms when i open the forms or when creating a records?
    example:
    in form#1 , this is where i create records, i create records =A it will insert in database .when i update record A. I change A to B..then form#2 will also change to B and appear or dispaly in forms.
    in form#2, this has also a text item, when i open this form, it will appear the A records here, it will also update....
    what should be the best trigger to used and how to do this? plzzz help
    tnx in advance
    mica

    How can i display the records when i create a records
    to database and automatically display in forms when i
    open the forms or when creating a records?
    example:
    in form#1 , this is where i create records, i create
    records =A it will insert in database .when i update
    record A. I change A to B..then form#2 will also
    change to B and appear or dispaly in forms.Yours question is not clear to me , you didnt mention forms A and B contain the same underlying table or both have diffrent underlying table.
    My assumption both have diffrent table if its the case then use MERGE DML (introduced within 9i) and get refreshed it by TIMER (execute_query) within forms B.
    You need to clarify more what you wana achieve.
    Khurram

Maybe you are looking for

  • Can I have more than one ipod with more than  music library on one computer

    I was just wondering if i could have 2 different ipods (one a 5th generation and the other ipod touch) with 2 different music libraries on the same computer and itunes? because right now im using my parents computer and my fiance is using my laptop a

  • Not able to access the Default Versions Hierarchy in DRM

    Hi all, I am new to DRM I did the installation of DRM 11.1.1.2 configured on MS SQL server 2000 after starting the services and login to it successfully i am not able to find out the Hierarchy when i Right click on Initial version and say Open all i

  • Getting a New Macbook...

    Hi everyone... I'm traveling to the States soon and I'm thinking on buying a new Macbook, but I've read about a lot of people on the Internet having RSDs. If I make sure my Macbook is Week 35 or later, do you think I will be free from Random Shutdown

  • Software update forcing constant reboots

    Hello, I recently have to reinstall OS X on my MacBook Pro after a failed update to Lion.  I have installed OS X 10.6 (snow leopard) and preceded with the software updates.  However, due to my slightly dodgy Internet connection it looks like the soft

  • When can we have Product Store ANE with 64 Bit Support

    Hi, We are using Product Store ANE from Gaming SDK 1.4 . With the medatory  requirement of 64-bit support by Apple we are unable to submit our apps. Is it possible either to get the source code or a 64-bit ANE. Thanks Rahul