www.Inmagic.com    Inmagic Forums    Inmagic Forums  Hop To Forum Categories  Scripting    get field values on onRecordOpen()
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Posted
Hello,
Is it possible to get the field values of a record by scripting on the onRecordOpen() function?

something like this?? Actually this code does not work, it is only to get you an idea of what I'm trying to do :

function onRecordOpen()
{

Application.Message(Field("DT").Value)

}

thank you
JP
 
Posts: 166 | Location: Lima, Peru | Registered: Thu July 05 2001Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
Hi

Yes, you can do that. Try using

Application.Message(Form.boxes("name1").content);

where name1 is the name you have set for that box

Norma


Maxus Australia
Authorised Inmagic Partner
 
Posts: 56 | Location: Melbourne, Australia | Registered: Thu July 17 2003Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
Hi Norma,
I don't want to use boxes, I just want to retrieve the database value directly by scripting.
thank you

Jean Pierre
 
Posts: 166 | Location: Lima, Peru | Registered: Thu July 05 2001Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
I see!

Then you will have to do some more complex scripting: use the Recordset and open each record in turn to get the field values!

Norma


Maxus Australia
Authorised Inmagic Partner
 
Posts: 56 | Location: Melbourne, Australia | Registered: Thu July 17 2003Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 

www.Inmagic.com    Inmagic Forums    Inmagic Forums  Hop To Forum Categories  Scripting    get field values on onRecordOpen()