[development-axapta] element and this

2004-06-29 Thread axapta_dude




hi guys,
I'm a newbie and i need some pointer from experts.What is the difference between 
element. and this. .Why sometimes it use element and othertime this

Thanx in advanced











Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/development-axapta/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










RE: [development-axapta] element and this

2004-06-30 Thread Anil Ozay
Hi,
 
i can explain it on a sample. if u override a clicked method of a button on form:
 
"this" refers to button object.
 
"element" refers to form object.
 
 
"this" refers to only scope you are in, but "element" refers to whole object (form, 
report..).in this example, u must use "element" to call form method, "this" to call 
button method.
 
 
 
Anýl Özay
ERP Technical Consultant(Microsoft Axapta)
DataSistem Genel Otomasyon ve Sanayi Tic. A.Þ.
Web : <http://www.datasistem.com/> www.datasistem.com.tr 
<http://www.datasistem.com.tr/> 
Phone : (0232) 4631663 - 208
 
 

  _  

From: axapta_dude [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 29, 2004 8:51 PM
To: [EMAIL PROTECTED]
Subject: [development-axapta] element and this


hi guys,
I'm a newbie and i need some pointer from experts.What is the difference between 
element. and this. .Why sometimes it use element and othertime this

Thanx in advanced




Yahoo! Groups Sponsor   
ADVERTISEMENT
click here 
<http://us.ard.yahoo.com/SIG=1290kar90/M=298184.5022502.6152625.3001176/D=groups/S=1705006764:HM/EXP=1088625819/A=2164339/R=0/SIG=11e2d64in/*http://www.netflix.com/Default?mqso=60183348>
   
 
<http://us.adserver.yahoo.com/l?M=298184.5022502.6152625.3001176/D=groups/S=:HM/A=2164339/rand=278446815>
  

  _  

Yahoo! Groups Links


*   To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
  
*   To unsubscribe from this group, send an email to:
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
  
*   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service 
<http://docs.yahoo.com/info/terms/> . 




[Non-text portions of this message have been removed]




 Yahoo! Groups Sponsor ~--> 
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/saFolB/TM
~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
 http://groups.yahoo.com/group/development-axapta/

<*> To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
 http://docs.yahoo.com/info/terms/
 




Re: [development-axapta] element and this

2004-06-30 Thread jesper.joergensen




Hi,

element would be the father object. This is the current control element. If you are in a datasource in a form, this would be the datasource, to address an mothod from the form, you need to address it using element.

/Jesper

 Original Message 
Subject: [development-axapta] element and this (29-Jun-2004 22:05)
From:    [EMAIL PROTECTED]
To:  [EMAIL PROTECTED]

> hi guys,
> I'm a newbie and i need some pointer from experts.What is the difference 
> between 
> element. and this. .Why sometimes it use element and othertime this
> 
> Thanx in advanced
> 
> 
> 
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> To: [EMAIL PROTECTED]











Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/development-axapta/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










AW: [development-axapta] element and this

2004-06-30 Thread Unger, Denis




For example in a form:
"element" is allways the form and "this" is a reference to the "object" (field, grid, ...) where "this" is called.
If you call "this" in a form method its the same as element. But here you should also use element.

Denis Unger


-Ursprüngliche Nachricht-
Von: axapta_dude [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 29. Juni 2004 19:51
An: [EMAIL PROTECTED]
Betreff: [development-axapta] element and this


hi guys,
I'm a newbie and i need some pointer from experts.What is the difference between 
element. and this. .Why sometimes it use element and othertime this

Thanx in advanced





 
Yahoo! Groups Links



 











Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/development-axapta/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [development-axapta] element and this

2004-06-30 Thread Max Belugin




Hello axapta_dude,

âòîðíèê, 29 èþíÿ 2004 ã., you wrote:

a> I'm a newbie and i need some pointer from experts.What is the difference between
a> element. and this. .Why sometimes it use element and othertime this

Try  overrride, for example, button.clicked - this in this method will
be button itself, but element will be parent form of this button.

I think in form this is equivalent of element, isn't it?

-- 
Best regards,
 Max    

http://belugin.newmail.ru
ICQ:9406811











Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/development-axapta/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










RE: [development-axapta] element and this

2004-06-30 Thread Girish Bhatkal




Element is used in scope of a form to refer the complete form object.

this is usually used to call the method of a particular element. like if you
are calling a method from a method written in Form/methods then using "this"
you can only call the one written within the methods written in form/method.
  if you are modifing a method in the datasource and you want to
call another method written in the datasource then you can use this.method
but if you want to call a method written in form/method then call using
element.method.

hope this helps you.

[Girish Bhatkal]
 -Original Message-
From: Max Belugin [mailto:[EMAIL PROTECTED]
Sent: 30 June 2004 09:25
To: axapta_dude
Subject: Re: [development-axapta] element and this


  Hello axapta_dude,

  âòîðíèê, 29 èþíÿ 2004 ã., you wrote:

  a> I'm a newbie and i need some pointer from experts.What is the
difference between
  a> element. and this. .Why sometimes it use element and othertime
this

  Try  overrride, for example, button.clicked - this in this method will
  be button itself, but element will be parent form of this button.

  I think in form this is equivalent of element, isn't it?

  --
  Best regards,
  Max

  http://belugin.newmail.ru
  ICQ:9406811



    Yahoo! Groups Sponsor
  ADVERTISEMENT






--
  Yahoo! Groups Links

    a.. To visit your group on the web, go to:
    http://groups.yahoo.com/group/development-axapta/

    b.. To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

    c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



[Non-text portions of this message have been removed]











Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/development-axapta/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.