Hi Akash,
I think you should get the quotation id in the form by iteself if you are using the same extended data type for quotationid field in both tables (datasource) of forms.
Just write this code to get the quotationId in another form.
TableName object;
object = element.args().record().datasource();
print object.QuotationID will print the quotation id, which called this form
Hope it helps.
Regards
Girish Bhatkal <[EMAIL PROTECTED]> wrote: i am not sure why you did not get the attachment as i did attach an doc. any
way i am forwarding the attachment again.
cheers,
Girish
-----Original Message-----
From: akash malohatra [mailto:[EMAIL PROTECTED]
Sent: 26 May 2004 04:11
To: [EMAIL PROTECTED]
Subject: RE: [development-axapta] Regarding Data access in another form
Thanks girish.
By the way i didnt find any attachments u mentioned...
Regards
Akash
--- Girish Bhatkal <[EMAIL PROTECTED]> wrote: >
you can send data though the following ways:
>
> 1.
> On the menuButton in the clicked method (Before
> super()) on the source form
> write
> {
> container contains;
> contains = ConIns(contains,1,QuotationId); //
> quotation id is the record
> you want to send
>
>
xsysLastValue::putValue(contains,curext(),curuserid(),UtilElementType::Form,
> formstr(FormName),'Identification'); // formName is
> the name of the form and
> Identification is any unique identification
> }
>
>
> on the destination form init method
> container Quotation =
>
xSysLastValue::getValue(curext(),curuserid(),UtilElementType::Form,formstr(a
> dt_FormName),'Identification');
>
> in this container you have retrieved the data sent
> from the source form
>
> 2. As i told in the earlier mail you can check the
> example of any standard
> function and copy the same process. As you said that
> it should work like in
> quotation form, you check what relations are used
> and what are the index on
> the corresponding tables.
>
>
> 3. Global variables : check the attached document.
>
> Hope this would help you .
>
> cheers,
> Girish
>
>
>
> -----Original Message-----
> From: akash malohatra
> [mailto:[EMAIL PROTECTED]
> Sent: 25 May 2004 13:52
> To: [EMAIL PROTECTED]
> Subject: RE: [development-axapta] Regarding Data
> access in another form
>
>
> Hi Girish,
> Thanks for your prompt reply.
>
> My requirement is :
>
> I have a Form having data. Say main and unique
> data is
> QuotationId. I am trying to copy this selected
> Quotation id data , to create another line , just
> like
> in Quotation Form. Hence when i click the copy
> Quotation button , it calls another form ( just
> like
> in Quotation copy Form) . I need to pass the
> selected
> Quotation id to this Form. But it always takes the
> first line data of the caller form.
>
> Can you tell me how can i pass the selected
> quotation
> id to the next form.
>
> Regards
> Akash
>
> --- Girish Bhatkal <[EMAIL PROTECTED]> wrote:
> >
> Hi Akash,
> > there are a few ways you can achieve this
> > a. if like in case of Item master when you open
> the
> > customer item
> > description form you get to see only the details
> > entered for the Item, this
> > is acheived by relations.
> > b. you can pass an args from the source form and
> get
> > the same in the
> > desitination form .
> >
> > if you could give an example of what you need to
> > select i could get the
> > better picture of ur query.
> >
> > cheers,
> > Girish
> > -----Original Message-----
> > From: akash malohatra
> > [mailto:[EMAIL PROTECTED]
> > Sent: 25 May 2004 10:02
> > To: [EMAIL PROTECTED]
> > Subject: [development-axapta] Regarding Data
> > access in another form
> >
> >
> > Hi All,
> >
> > I am a newbie in Axapta and trying to learn as
> > early
> > as possible and correct path.
> >
> > I have one doubt , hope you guys will help me.
> >
> > How can i access the current record ( selected
> > record
> > ), in another Form called from this current
> Form .
> > i
> > tried some way , but it always takes the
> first
> > row of
> > record in stead of the selection record.
> >
> > waiting for replies.
> >
> > Anyhelp will be appriciated.
> >
> > Regards
> > Akash
> >
> >
> >
> >
> >
> >
> >
>
>
____________________________________________________________
> > Yahoo! Messenger - Communicate
> instantly..."Ping"
> > your friends today! Download Messenger Now
> >
> http://uk.messenger.yahoo.com/download/index.html
> >
> > 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
> >
> >
> >
> > Yahoo! Groups Links
> >
> >
> http://groups.yahoo.com/group/development-axapta/
> >
> >
> [EMAIL PROTECTED]
> >
> >
> >
>
>
>
>
>
=== message truncated ===
____________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html
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 SponsorADVERTISEMENT
---------------------------------
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.
---------------------------------
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger
[Non-text portions of this message have been removed]
| Yahoo! Groups Sponsor | |
|
|
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.

