Normal Topic Adding Data: Cursor Position (Read 607 times)
Louis Galvao
Full Member
***
Offline


"Sufferin' Succatash"

Posts: 265
Location: Canada
Joined: Feb 14th, 2005
Adding Data: Cursor Position
Aug 30th, 2005 at 5:20pm
Print Post Print Post  
I have noticed that when you first go into Add data mode, the cursor is clearly placed at the first field in your record (as per Navigation order set up in the DSR).

However, when adding additional records, you must click on the particular field to activate the form and position of the cursor.

Should I be using some sort of @add programming to re-activate the cursor ?  Or Goto or Throwfocus ?

Thanks,

Louis
  

Louis Galvao
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Adding Data: Cursor Position
Reply #1 - Aug 30th, 2005 at 5:32pm
Print Post Print Post  
Hello Louis,

I just tested this out in the sample Customers application and once you F10 to create a new record in Add mode the cursor is thrown to the first element on the form. You can immediately start typing the next record without having to click.

You may want to have a look at the code in your application and see if a piece of code is preventing Sesame from behaving the way it does in customers.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Louis Galvao
Full Member
***
Offline


"Sufferin' Succatash"

Posts: 265
Location: Canada
Joined: Feb 14th, 2005
Re: Adding Data: Cursor Position
Reply #2 - Aug 30th, 2005 at 9:45pm
Print Post Print Post  
Ray:

It turns out the same thing happens when I am in Search/update mode.

I think it is to do with the Notify Form (but not sure) programming in my On Form Entry event as follows.

Do I need an @Add statement here ?

Thanks,

Louis


//Prevents User from adding records in Search/Update mode but allows saving

     If @Update Then
     {
           If @ResultSetCurrentPosition() = @ResultSetTotal() Then
                 {
                       NotifyForm(2)
                 }
                 Else
                 {
                       NotifyForm(-2)
                 }
     }
//HIDES THE REPORT TREE FROM MARKETING GROUP

     IF @MODE() = 1 AND sGroup = "MARKETING" THEN
     {
           vHideTree = @HideTreeItem("Search Update Menu!Results Commands!Reports!SALES CALLS") 
     }      
     ELSE

     If @Mode() = 1 Then
     {
       vHideTree = @HideTreeItem("Search Update Menu!Results Commands!Reports!SALES CALLS!CALLS COMPLETED - ALL (print immediate)")
}
  

Louis Galvao
Back to top
 
IP Logged