Where can I handle Validation When user clicks Add? (User Table Form)

Hi,
  Iam not sure as to where is the correct way to validate form info when the user clicks Add, and if a field is blank that it is needed to be filled, how to stop the adding process?
Also, I want to set default values after a successful save has been done, what event can I use to determine this?
Thank you!

Hi,
after closing the last questions without rewarding i give you a second chance
you're talking about UserTables Standard Forms ?
catch the et_ITEM_PRESSED event to validate if someone wants to add something
the only tricky thing for a UserTable Form is that you have to compare the oForm.Title to know
which window is open.
so you should do something like
if oForm.Title = "UserTable - Description" and pVal.EventType = et_ITEM_PRESSED and pVal.ItemUID = "1" and
   pval.BeforeAction = True then
   ' check the data and set bubbleevent to false to stop the adding process if you need to
    BubbleEvent = False
end if
default Data you set in UserTable very easy - give the field in "manage user fields" window a default value.
if you need more help feel free to ask
lg David

Similar Messages

  • My trash bin has one item that refuses to be deleted. Under name, it says, 0. date; dec. 31, 1903. size; 0 kb. I have no idea where it came from. When I click, info. the info. window starts to appear, then goes away. Weird or what? Hope someone can help?

    my trash bin has one item that refuses to be deleted. Under name, it says, 0. date; dec. 31, 1903. size; 0 kb. I have no idea where it came from. When I click, info. the info. window starts to appear, then goes away. Weird or what? Hope someone can help?

    sorry i forgot that... i use php5 so i guessed at the module name... upon looking closer at the conf its mod_php4.c
    <pre>
    <IfModule mod_php4.c>
    AddType application/x-httpd-php .php
    </IfModule>
    </pre>

  • When I click "add vault" aperture quits unexpectedly. Can anyone help?

    When I click "add vault" aperture quits unexpectedly. Can anyone help?
    Thank you in advance for any help. It is greatly appreciated.

    Do you get a crash report? if so cut and paste the first 50 lines of the report here.
    Are you really using Aperture 2 on Lion? 
    You can try making a new empty library and see if the ad vault command works with the new library. If that fails try making a new user on your system log in as that user and run Aperture on a new library and try the command. Doing these two things will help determine if the problem is system wide or if it is something in your account/library.

  • I am trying to use a website on my ipad which says it needs Adobe Flashplayer but I can't download Adobe when I click on it

    I am trying to use a website on my ipad which says it needs Adobe Flashplayer but I can't download Adobe when I click on it

    Adobe has not made a version of Flash for the iPad.
    Kappy explains why. https://discussions.apple.com/message/19446567#19446567
    5 Flash Player Alternatives http://www.techshout.com/features/2011/01/flash-player-for-ipad-apps/
    Top 4 browsers supports flash player on iPad and iPhone
    http://mashtips.com/flash-player-ios/
     Cheers, Tom

  • How can i delete Record when i click on Delete Link in a report

    hi,
    i have to create report
    select S_NO,BILL_NO,LED_NAME,PUR_LED,VAT,BILL_DATE,ST_GRP_UND,GODOWN_NAME,
    ITEM_NAME,UNIT,QTY,RATE,PER,DIS,AMOUNT,'Delete' from DUMY_AC_LED_PURASEI want to delete corressponding record when i click on Delete Link.
    Here S_NO is P.k.
    How can i delete Record when i click on Delete Link.

    Manoj,
    If something does not work then you should report back on the same thread so that there is continuity to the whole episode. Be as lucid as you can be so that people know whats the scenario. E.g. is not working is not enough. What happens? Does is show error , go blank, goes to another page... all that is important.
    Its for posterity, down the line others will also visit the thread (may be).
    Regards,

  • Where can I download and install user guides for Elements 5.0?

    Where can I download and install user guides for Elements 5.0?

    It should be available within the app. Press the F1 key.

  • Where can I find a useful "user guide" I can print for an ipad2

    Where can I find a useful "user guide" I can print for an ipad2

    Be green and don't print!  The iPad user's guide is in the bookmarks section of Safari.  But, because you'll be reading it in Safari, you have to be in a wifi area or using the 3G network.  However, you can download the .pdf and open it in the free iBooks reader.  Then you have it with you wherever you go and don't have to be on the internet to read it.

  • Where can I find a detailed user manual for my MAC

    Where can I find a detailed user manual for my Mac

    Here http://support.apple.com/manuals/#imac find the correct ken for your iMac.

  • Issue where the cart is empty when user logs back in

    Having issue where the cart is empty when user logs back in
    Steps:
    1. User logs into the site
    2. User selects items and the cart is updated
    3. User logs out of their account
    4. User exits/closes the browsers
    5. User then reopens the browser, navigates to the site, logs in and the cart is empty
    My understanding is that the cart should be populated with the previous items since the user did not complete the order.
    I have the following settings:
    in shoppingcart.properties
    persistOrdersForAnonymousUsers=true
    persistOrders=true
    in cookieManager.properties
    sendProfileCookies=true
    in /atg/userprofiling/ProfileRequestServlet.properties
    verifyBasicAuthentication=true
    in /atg/dynamo/servlet/dafpipeline/ProfileRequestServlet.properties
    persistAfterLogout=true
    persistentAnonymousProfiles=true
    Anything else that needs to be set?
    Edited by: boyd4715 on Feb 6, 2013 11:07 AM

    I reset the properties back to their orignal state
    in shoppingcart.properties
    persistOrdersForAnonymousUsers=false
    persistOrders=true
    in cookieManager.properties
    sendProfileCookies=true
    in /atg/userprofiling/ProfileRequestServlet.properties
    verifyBasicAuthentication=false
    in /atg/dynamo/servlet/dafpipeline/ProfileRequestServlet.properties
    persistAfterLogout=false
    persistentAnonymousProfiles=false
    in /atg/userprofiling/ProfileTools.properties
    mergeOrder=false;
    Observateion:
    If an anonymous user comes to the site, adds items to the cart, leaves the site and comes back - the cart is empty - the order repository is not updated
    If a user logs into the site, adds items to the cart and then exits the browser (does not log out), comes back to the site, the selected items are in the cart
    If a usr logs into the site, adds items to the cart, logs out of the site, exits the browser, comes back to the site, the selected items are not in the cart
    An order does not get presisted to the repository until the order is confirmed.
    Based on the last item that explains why the user is not seeing any anything in their cart when they log out. If they do not log out, I assume then that the content of their cart is stored in the cookie.
    So, now the question is - why is this happening - I am not the original author of the site - just trying to get some things fixed on it.

  • When I try to load firefox it only shows in the bar at the bottom of the screen. I can highlight it but when I click on it, it just returns to the bar.

    When I try to load firefox it only shows in the bar at the bottom of the screen. I can highlight it but when I click on it, it just returns to the bar. Can't get it to maximize. Please help.

    The "System Tray" is located at the very bottom right of your screen and is a list of most/all running applications that will show in this list.
    For your SysFader issue, this "may" be the problem:
    1 Find the "My Computer" desktop icon and right-click it. A pull-down menu will appear. Select "Properties."
    2 Click on the "Advanced" tab. This will load a new page of options.
    3 Select the "Visual Effects" tab at the top of the window and deselect "Animate Windows when minimizing and maximizing," "Fade or slide menus into view," "Fade or slide Tool Tips into view" and "Fade out Menu items after checking."
    4 Click "OK." This will remove most if not all of the Sysfader effects, at the same time correcting related errors that used to come up during opening a new file or program.

  • Where can close the objects when i am using prepareStatement

    hi,
    where can close the objects when i am using prepareStatement
    the following is code i am using.
    Connection connection;
         PreparedStatement prepare;
         JTextField tfStateNameEng;
         JTextField tfStateNameKan;
         JButton save;
         public DynamicSQL(){
    try{
         Class.forName("com.mysql.jdbc.Driver");
    connection=DriverManager.getConnection("jdbc:mysql://localhost:3306/kantest","gk","gk");
         String sql ="insert into daya (Name,Name_KAN) values (?,?)";
         prepare = connection.prepareStatement(sql);
    }catch(Exception e){System.out.println(e);}
         tfStateNameEng = new JTextField(20);
         tfStateNameKan = new JTextField(20);
         save = new JButton("save");
         save.addActionListener(this);
         this.getContentPane().add(tfStateNameEng,"North");
         this.getContentPane().add(tfStateNameKan,"Center");
         this.getContentPane().add(save,"South");
         pack();
         setVisible(true);
         setDefaultCloseOperation(EXIT_ON_CLOSE);
    public void actionPerformed(ActionEvent ae){
         try{
              prepare.clearParameters();
              prepare.setString(1,tfStateNameEng.getText());
              prepare.setString(2,tfStateNameKan.getText());
              prepare.executeUpdate();
              }catch(Exception e){System.out.println(e);}
    /*try{
              //     connection.close(); // if going to close object here then it won't work
                   //prepare.close();//next time.
              }catch(Exception e){} */
         public static void main(String args[]){
              new DynamicSQL();
    thanks
    daya

    hello,
    ok.
    thanks
    daya

  • Will only shut down manually? What do I need to do to get it back to where it will shut down when I click the shutdown function?

    Will only shut down manually? What do I need to do to get it back to where it will shut down when I click the shutdown function?

    Boot holding down the command-r keys into the Lion Recovery Disk. Select Disk Utility and run Repair Disk.

  • In synk, when I click "add device" instead of opening a window to enter the codes, it opens another firefox window and takes me to the help page for synk. [SOLVED]

    I got a new laptop today and after downloading firefox I tried to use the synk feature and it says I have to add device on my old computer. In following the directions I never get to the screen to enter the codes from my new computer onto the old one. When I click add device on the old computer it takes me to the help page on the web with the same directions that took me there in the first place! So, how am I supposed to synk my new computer if I can't add device on the old or simply log in to my synk account on the new?

    Ok, I figured it out, I clicked "i don't have device available" and it let me log in to my account.

  • Where can i find a "plug-in" or "add-on" that includes electrical construction symbols?

    where can i find a "plug-in" or "add-on" that includes electrical construction symbols?

    For what?
    The comment and markup types are fixed, you can't create your own - but there's nothing to stop a user from creating a series of custom stamps that show a symbol from a bitmap image or vector (PDF) file.

  • How do I add an iCloud account to my "Messages" if the only options it gives me when I click "Add Account" is Google, Yahoo, and AOL?

    I want to add another I cloud account to my Messages, But when I Click add account, the only options it gives me is Gmail, Yahoo, and AOL. But I have an iCloud.com email. What do I do in this case ?

    Hi rarellano1,
    In order to have an iCloud account available for the Messages application it must first be set up in System Preferences > Internet Accounts. If this is a second (or later) iCloud account, it will not have Messages available. See this article for details -
    OS X Yosemite: Change iCloud feature settings
    Thanks for using Apple Support Communities.
    Sincerely,
    Brett L 

Maybe you are looking for

  • Need opinions on how to get sketches in Illustrator to become vectors

    Have Illustrator CS6, Medium Baboo tablet. I can draw well but it seems almost impossible to get the quality of my sketch work to go to Illustrator in a way I am happy with. I do not like what I see from scanner to Imagetrace either. This is largely

  • Why does a BPM Process fail at the Start Activity?

    Hello All, We're currently working on a Dev environement (WLS 10.3), where we're experiencing issues with BPM Processes that fail at the start node. The error observed is a "Null Pointer Exception" despite there definteily being parameters passed int

  • Need phone space!! Please help  

    If I delete photos from my iPhone will they still be saved in my icloud account?

  • Getting nested TransactionScopes working

    Hello, I'm using ODP.NET 2.111.7.20 and database 11.1.0.7.0 - 64bit. I'm trying something like this, only the insert method is in another DLL and the insert is a bit more complicated: Even if I didn't complete the root transaction the rows are insert

  • Doing FTP using a Dynamic Port

    Hi, I am having an odx with a Receive Shape, expression and Send shape. The send shape is connected to a dynamic port: There is a message var called ShowPartMessage. There is no transformation. This message needs to be received and sent via FTP. In t