Answered by:
force quote id field to update

Question
-
Hi all
I am trying to force update on the 'quote ID' (quotenumber) field on the Quote form. I did try the 'setsubmitmode' method, but it still does not update.
I removed the 'read only' property from the field. That works fine when I create a new quote from scratch as the system does not generate the quote id (at least I think that's why).
My problem is that when I create a new quote from opportunities, I am not able to update the quote ID field with my own data.
Is there any way to handle this issue?
Thanx
Please vote if you find my post useful. Add me on Skype @ christo.skype1
Monday, May 14, 2012 10:42 AM
Answers
-
You should download SDK and start from it.
Also you should recheck Developer Training Kit - http://www.microsoft.com/en-us/download/details.aspx?id=23416
Microsoft CRM Freelancer
My blog (english)
Мой блог (русскоязычный)
- Proposed as answer by Andrii ButenkoMVP, Moderator Monday, May 14, 2012 11:03 AM
- Marked as answer by Christo Vermeulen Monday, May 14, 2012 11:12 AM
Monday, May 14, 2012 11:03 AMModerator
All replies
-
Hello,
Based on quotenumber field description - http://technet.microsoft.com/en-us/library/gg309335 this field is not valid for update.
The only way I see is to create Pre-Create plugin and populate value of quotenumber during plugin execution (i.e. before record is created in CRM DB).
Microsoft CRM Freelancer
My blog (english)
Мой блог (русскоязычный)
- Proposed as answer by _Vikram Monday, May 14, 2012 10:59 AM
Monday, May 14, 2012 10:50 AMModerator -
Hi thanx for the reply.
I there an easy way to achieve this with normal Javascript?
Please vote if you find my post useful. Add me on Skype @ christo.skype1
Monday, May 14, 2012 10:53 AM -
Christo,
Unfortunately you can't do this through a javascript as the quote is already created by the time the javascript is loaded.
As Andrii pointed out, you will have to do this through a Pre-Create plugin and change your quote number there. There is no other option unfortunately.
Hope this helps.
Dimaz Pramudya - CRM Developer - CSG (Melbourne) www.xrmbits.com http://twitter.com/xrmbits
Monday, May 14, 2012 10:57 AM -
Hi thanx for the reply.
I there an easy way to achieve this with normal Javascript?
Please vote if you find my post useful. Add me on Skype @ christo.skype1
For normal creation - yes. You have already described how it is possible to implement it.
But for creation based on opportunities you would not have possibility to catch creation event in other way then plugin...
Microsoft CRM Freelancer
My blog (english)
Мой блог (русскоязычный)
- Proposed as answer by Andrii ButenkoMVP, Moderator Monday, May 14, 2012 11:03 AM
Monday, May 14, 2012 10:59 AMModerator -
Any guidelines on where to start?
Please vote if you find my post useful. Add me on Skype @ christo.skype1
Monday, May 14, 2012 11:01 AM -
You should download SDK and start from it.
Also you should recheck Developer Training Kit - http://www.microsoft.com/en-us/download/details.aspx?id=23416
Microsoft CRM Freelancer
My blog (english)
Мой блог (русскоязычный)
- Proposed as answer by Andrii ButenkoMVP, Moderator Monday, May 14, 2012 11:03 AM
- Marked as answer by Christo Vermeulen Monday, May 14, 2012 11:12 AM
Monday, May 14, 2012 11:03 AMModerator