Hi Jesper,
Thanks for your reply. It's a tricky one. It seems possible to add
datasources to a form which you build entirely from code. And it's also
possible to add them to a form which is not running yet (I think) - but
not to already running forms. Well, you can but only to "simple" ones.
It seems as if the design is too "complex" (has too many controls), it
freaks out and crashes.
Lars Holm
Senior Technical Consultant
T O I N C R E A S E - Y O U R B U S I N E S S
-----Original Message-----
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: 19. april 2005 16:20
To: [email protected]
Subject: AW: [development-axapta] Re: Formbuilddatasource - adding a
datasource runtime to an already running form
HI Lars,
Take a look at the form SysRecordInfo, The form generates a new form and
uses FormBuildDatasource. I am having problems attaching a new data
source to an existing form at runtime. You can add a new data source,
but you can not attach a table to the data source.
/Jesper
Von: [email protected]
[mailto:[EMAIL PROTECTED]
Gesendet: Montag, 18. April 2005 11:47
An: [email protected]
Betreff: RE: [development-axapta] Re: Formbuilddatasource - adding a
datasource runtime to an already running form
Hi Harry,
Okay, I will try to describe what I want to do. The user should be able
to setup which forms should display some additional information in the
grid or other control. E.g. in the salestable form, some additional
fields would be displayed in the grid if the form is setup for this.
This additional data is stored in a 1:1 related table with refrecid and
reftableid relation.
Then, in the syssetupformrun I will add the datasource to the particular
form and add the display controls etc. too, thus it must be done at
runtime. I can not modify all the forms in the AOT in Axapta just for
this reason.
I hope this described it in a sensible and informative way. If not,
please let me know.
Looking forward to hearing your suggestions.
Thanks.
Best regards,
Lars Holm
Senior Technical Consultant
-----Original Message-----
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of Harry
(Harshawardhan Deshpande
Sent: 17. april 2005 10:16
To: [email protected]
Subject: Re: [development-axapta] Re: Formbuilddatasource - adding a
datasource runtime to an already running form
hi
I am not sure how to add a datasource @run time but if you could let
know exactly what you are trying to achieve then perhaps I could be of
some help.
regards
harry
--- In [email protected], "Lars Holm" <[EMAIL PROTECTED]>
wrote:
>
> Hi Manfred,
>
>
> Thanks for your reply. Do you know how to add a formdatasource at
> runtime? I can't find any ways to do it myself. However, I still think
> it must be a formbuilddatasource because e.g. formbuildcontrol's can
> be added at runtime - but not a formbuilddatasource. I suspect it's a
> bug in Axapta.
>
>
> Best regards,
>
> Lars Holm
> Senior Technical Consultant
>
>
>
> -----Original Message-----
---------------------------------
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
[Non-text portions of this message have been removed]
Yahoo! Groups Links
_____
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]
be>
* Your use of Yahoo! Groups is subject to the Yahoo!
<http://docs.yahoo.com/info/terms/> Terms of Service.
[Non-text portions of this message have been removed]
Yahoo! Groups Links
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.

