Grid Tool Bar  
Author Message
RAlvare





PostPosted: Fri Oct 05 08:48:48 PDT 2007 Top

Crm >> Grid Tool Bar Hi all,

I made a button in the toolbar of a custom entity. When this button is
clicked, the javascript code goes a IBM database, read some data and write
this data to the fields of a specific instance of this custom entity.
Everything work fine. But our customer asked us to put this button to the
"Grid Tool Bar " and when the button is pressed, the fields of fixed
instances of custom entity should be populated. There are 12 instance of this
custom entity. The url of these instances are as follows:

http://localhost:5555/userdefined/edit.aspx?id={868AFDF1-4A72-DC11-AF52-001A4BEA4E5C}&etc=10000
http://localhost:5555/userdefined/edit.aspx?id={E02758FA-4A72-DC11-AF52-001A4BEA4E5C}&etc=10000
http://localhost:5555/userdefined/edit.aspx?id={F8FBC54A-4B72-DC11-AF52-001A4BEA4E5C}&etc=10000
http://localhost:5555/userdefined/edit.aspx?id={F9FBC54A-4B72-DC11-AF52-001A4BEA4E5C}&etc=10000
http://localhost:5555/userdefined/edit.aspx?id={40D73751-4B72-DC11-AF52-001A4BEA4E5C}&etc=10000
http://localhost:5555/userdefined/edit.aspx?id={41D73751-4B72-DC11-AF52-001A4BEA4E5C}&etc=10000
http://localhost:5555/userdefined/edit.aspx?id={42D73751-4B72-DC11-AF52-001A4BEA4E5C}&etc=10000
http://localhost:5555/userdefined/edit.aspx?id={4480405A-4B72-DC11-AF52-001A4BEA4E5C}&etc=10000
http://localhost:5555/userdefined/edit.aspx?id={4580405A-4B72-DC11-AF52-001A4BEA4E5C}&etc=10000
http://localhost:5555/userdefined/edit.aspx?id={24D2A860-4B72-DC11-AF52-001A4BEA4E5C}&etc=10000
http://localhost:5555/userdefined/edit.aspx?id={25D2A860-4B72-DC11-AF52-001A4BEA4E5C}&etc=10000
http://localhost:5555/userdefined/edit.aspx?id={26D2A860-4B72-DC11-AF52-001A4BEA4E5C}&etc=10000

When the button is pressed each field in the each instance sholud be
populated. If there were a single instance, a code like:
crmForm.all.new_faturatipi.DataValue = return_value;
will do what I Want, but in this case, I must state, first which instance
and then the field.
Could anyone suggest me how to specify the instance of the entity and the
field? I think, the statement should be like this:
(url_of_First_instance).new_faturatipi.DataValue = return_value;
(url_of_Second_instance).new_faturatipi.DataValue = return_value;
.
.
.

Thanks in advance.

Information Technology391  
 
 
Matt





PostPosted: Fri Oct 05 08:48:48 PDT 2007 Top

Crm >> Grid Tool Bar You can't easily do this is just jscript. You will need to invoke a
webservice to process the update using the crm sdk api's. When you are
viewing the fgrid, the associated records most likely won't be open yet, so
you would otehrwise need to open each url, set the value and then "save &
close" the record. While this could work, it would be extremely bad from a
UI Experience standpoint and error prone.

--

Matt Parks
MVP - Dynamics CRM


"ismail" <EMail@HideDomain.com> wrote in message
news:EMail@HideDomain.com...
Hi all,

I made a button in the toolbar of a custom entity. When this button is
clicked, the javascript code goes a IBM database, read some data and write
this data to the fields of a specific instance of this custom entity.
Everything work fine. But our customer asked us to put this button to the
"Grid Tool Bar " and when the button is pressed, the fields of fixed
instances of custom entity should be populated. There are 12 instance of
this
custom entity. The url of these instances are as follows:

http://localhost:5555/userdefined/edit.aspx?id={868AFDF1-4A72-DC11-AF52-001A4BEA4E5C}&etc=10000
http://localhost:5555/userdefined/edit.aspx?id={E02758FA-4A72-DC11-AF52-001A4BEA4E5C}&etc=10000
http://localhost:5555/userdefined/edit.aspx?id={F8FBC54A-4B72-DC11-AF52-001A4BEA4E5C}&etc=10000
http://localhost:5555/userdefined/edit.aspx?id={F9FBC54A-4B72-DC11-AF52-001A4BEA4E5C}&etc=10000
http://localhost:5555/userdefined/edit.aspx?id={40D73751-4B72-DC11-AF52-001A4BEA4E5C}&etc=10000
http://localhost:5555/userdefined/edit.aspx?id={41D73751-4B72-DC11-AF52-001A4BEA4E5C}&etc=10000
http://localhost:5555/userdefined/edit.aspx?id={42D73751-4B72-DC11-AF52-001A4BEA4E5C}&etc=10000
http://localhost:5555/userdefined/edit.aspx?id={4480405A-4B72-DC11-AF52-001A4BEA4E5C}&etc=10000
http://localhost:5555/userdefined/edit.aspx?id={4580405A-4B72-DC11-AF52-001A4BEA4E5C}&etc=10000
http://localhost:5555/userdefined/edit.aspx?id={24D2A860-4B72-DC11-AF52-001A4BEA4E5C}&etc=10000
http://localhost:5555/userdefined/edit.aspx?id={25D2A860-4B72-DC11-AF52-001A4BEA4E5C}&etc=10000
http://localhost:5555/userdefined/edit.aspx?id={26D2A860-4B72-DC11-AF52-001A4BEA4E5C}&etc=10000

When the button is pressed each field in the each instance sholud be
populated. If there were a single instance, a code like:
crmForm.all.new_faturatipi.DataValue = return_value;
will do what I Want, but in this case, I must state, first which instance
and then the field.
Could anyone suggest me how to specify the instance of the entity and the
field? I think, the statement should be like this:
(url_of_First_instance).new_faturatipi.DataValue = return_value;
(url_of_Second_instance).new_faturatipi.DataValue = return_value;
.
.
.

Thanks in advance.



 
 
ismail





PostPosted: Fri Oct 05 22:49:00 PDT 2007 Top

Crm >> Grid Tool Bar Thank you for your reply.

"Matt Parks" wrote:

> You can't easily do this is just jscript. You will need to invoke a
> webservice to process the update using the crm sdk api's. When you are
> viewing the fgrid, the associated records most likely won't be open yet, so
> you would otehrwise need to open each url, set the value and then "save &
> close" the record. While this could work, it would be extremely bad from a
> UI Experience standpoint and error prone.
>
> --
>
> Matt Parks
> MVP - Dynamics CRM
>
>
> "ismail" <EMail@HideDomain.com> wrote in message
> news:EMail@HideDomain.com...
> Hi all,
>
> I made a button in the toolbar of a custom entity. When this button is
> clicked, the javascript code goes a IBM database, read some data and write
> this data to the fields of a specific instance of this custom entity.
> Everything work fine. But our customer asked us to put this button to the
> "Grid Tool Bar " and when the button is pressed, the fields of fixed
> instances of custom entity should be populated. There are 12 instance of
> this
> custom entity. The url of these instances are as follows:
>
> http://localhost:5555/userdefined/edit.aspx?id={868AFDF1-4A72-DC11-AF52-001A4BEA4E5C}&etc=10000
> http://localhost:5555/userdefined/edit.aspx?id={E02758FA-4A72-DC11-AF52-001A4BEA4E5C}&etc=10000
> http://localhost:5555/userdefined/edit.aspx?id={F8FBC54A-4B72-DC11-AF52-001A4BEA4E5C}&etc=10000
> http://localhost:5555/userdefined/edit.aspx?id={F9FBC54A-4B72-DC11-AF52-001A4BEA4E5C}&etc=10000
> http://localhost:5555/userdefined/edit.aspx?id={40D73751-4B72-DC11-AF52-001A4BEA4E5C}&etc=10000
> http://localhost:5555/userdefined/edit.aspx?id={41D73751-4B72-DC11-AF52-001A4BEA4E5C}&etc=10000
> http://localhost:5555/userdefined/edit.aspx?id={42D73751-4B72-DC11-AF52-001A4BEA4E5C}&etc=10000
> http://localhost:5555/userdefined/edit.aspx?id={4480405A-4B72-DC11-AF52-001A4BEA4E5C}&etc=10000
> http://localhost:5555/userdefined/edit.aspx?id={4580405A-4B72-DC11-AF52-001A4BEA4E5C}&etc=10000
> http://localhost:5555/userdefined/edit.aspx?id={24D2A860-4B72-DC11-AF52-001A4BEA4E5C}&etc=10000
> http://localhost:5555/userdefined/edit.aspx?id={25D2A860-4B72-DC11-AF52-001A4BEA4E5C}&etc=10000
> http://localhost:5555/userdefined/edit.aspx?id={26D2A860-4B72-DC11-AF52-001A4BEA4E5C}&etc=10000
>
> When the button is pressed each field in the each instance sholud be
> populated. If there were a single instance, a code like:
> crmForm.all.new_faturatipi.DataValue = return_value;
> will do what I Want, but in this case, I must state, first which instance
> and then the field.
> Could anyone suggest me how to specify the instance of the entity and the
> field? I think, the statement should be like this:
> (url_of_First_instance).new_faturatipi.DataValue = return_value;
> (url_of_Second_instance).new_faturatipi.DataValue = return_value;
> ..
> ..
> ..
>
> Thanks in advance.
>
>
>
>