Subject: Modifing original sales order form?
Prev Next
You are not authorized to post a reply.

Page 1 of 212 > >>
Author Messages
Chris BUser is Offline

Posts:36

06/05/2008 6:39 AM  
Im still new to the SDK (still trying to get a few bits working think its because devx 7.3.3 isnt installled properly at moment as designer wont comeup).

Question: We want to take the existing Sales Order Form and chop it up to peaces, take some fields off add some new ones, reorder the layout on screen? Is this possible?


Ramil DUser is Offline

Posts:218

06/05/2008 8:08 PM  
You would need the source code to chop the sales order form to pieces based on what you wanted. The trick is to copy the presentation layer of the customer module from the source code and paste it with a different project namespace. For example the current namespace of the customer module presentation project is Interprise.Presentation.Customer. You would need to change this to something like .Presentation.Customer or something else. Once you've done this you may now customize the entire project based on your requirements. This of it as a whole new set of plugin for the customer module. Just make sure that you do not apply your changes to the current IS source code so you can get hold of new updates.
Chris BUser is Offline

Posts:36

06/06/2008 1:22 AM  
Is that the only way todo it as we dont have the source code license at the moment....

If thats the only way how would that work with new versions that you release etc then....
Ramil DUser is Offline

Posts:218

06/06/2008 1:37 AM  
Based on the heavy customization you want to accomplish I believe using the Source Code as a pattern to your plugin is the only way to do it. While in order to stay updated with new releases what you need to do is inherit from the existing controls from the target module and make your changes on the derived ones.
Chris BUser is Offline

Posts:36

06/06/2008 1:42 AM  
Thanks
Ramil DUser is Offline

Posts:218

06/06/2008 1:44 AM  
You're welcome Chris.
Chris BUser is Offline

Posts:36

06/06/2008 3:37 AM  
Would it be fair to say this is how it was done on http://www.interprise.tv/Video/VideoPlayer/tabid/55/VideoId/9/Alternate-Sales-Order-Form.aspx?
Ramil DUser is Offline

Posts:218

06/11/2008 12:42 AM  
The Alternate Sales Order used a different presentation layer meaning it did not inherit from the platform's presentation layer nor it used the source code. The UI was created from scratch and without reference to the Presentation DLLs but rather Facade DLLs downward.
Chris BUser is Offline

Posts:36

06/11/2008 1:55 AM  
Thanks - would be great if I could get a sample code for SP3 HF2 as a starting point for how to do something like above to start me off on above as im still trying to peace together the Resource Center SDK!
Ramil DUser is Offline

Posts:218

06/11/2008 6:40 PM  
There are sample codes available in the Interprise Resource Center. Under 200 Tutorial you can right mouse click the One-To-One Data Entry sample and click the Open Sample Project context menu. The sample projects are available in both C# and VB.NET depending on your language choice from the toolbar.
Chris BUser is Offline

Posts:36

06/12/2008 1:37 AM  
In the SDK under the customization section the "Alturnative Sales Order Form" is grayed out is that something you will be putting on soon (bearing in mind i can only see SP3 HF2 SDK at moment till uk release SP4).
Ramil DUser is Offline

Posts:218

06/12/2008 2:37 AM  
Yes we plan on adding the sample code for the Alternate Sales Order within the Interprise Resource Center in the future to come but not in the SP4 timeframe.
Greg SUser is Offline

Posts:63

07/01/2008 3:19 PM  
Hi Ramil,

I need to do quite a few things to the SalesOrder and Quote forms. I read your post above about making a copy of the customer presentation layer. Are you saying that I could copy the entire customer presentation layer into a new project under a different namespace and then import the resulting dll to get all the plugins? This may be what I need to do.
Ramil DUser is Offline

Posts:218

07/01/2008 7:46 PM  
Yes. You may just copy the entire project from the source code you purchased and replace the namespace with yours then compile the projects. But I recommend that you only pick the ones you really need modifying OR just inherit from the base customer classes from the layers and override the methods on your derived classes. This way you will not break your upgrade path to future releases of the platform/SDK.
Greg SUser is Offline

Posts:63

07/02/2008 6:33 AM  
Thank you for all your help.

Greg
Ramil DUser is Offline

Posts:218

07/02/2008 6:27 PM  
You're most welcome Greg.
Greg SUser is Offline

Posts:63

07/03/2008 2:52 PM  
Ramil,

I sent this once but I don't think it posted so if this is a double-post I apologize...

I copied the Interprise.Presentation.Customer project and changed the namespace to MyCompany.Presentation.Customer. Then I resolved all the namespace conflicts, etc. So it is building ok now.

I imported the new dll into the plugin manager. But some of the controls that are in the project don't show up in the list of new plug in sections. The one I want is the SalesOrder.AddressesControl. The Interprise one is there but mine is not. Most of the other controls I see in the project are there, even the Invoices.AddressControl is there but not the one for the SalesOrder.

Any idea why this control would not show up?

Thanks again
Greg
Ramil DUser is Offline

Posts:218

07/03/2008 6:33 PM  
Try doing a complete rebuild of your entire project. Then if the problem persist, try hand-coding the inheritance to your addressescontrol instead of looking from the list in the recipe. You can always change the value of the inheritance so even if you are unable to pick the one you want but you are sure it is there then just manually do it for now. There maybe a bug in the factory that is causing this problem.
Greg SUser is Offline

Posts:63

07/07/2008 7:26 AM  
Hi Ramil,

A rebuild does not change it. I'm not sure what you mean by hand coding the inheritance rather than picking it. I am only taking the code of the Customer Presentation project and changing the namespace. I have not changed any of the coding or inheritance. The Sales Order Addresses control is defined like this in my new project...

Namespace SalesOrder
Public Class AddressesControl
Inherits MyCompany.Presentation.Customer.Base.SalesOrder.BaseAddressesControl
Implements Interprise.Extendable.Customer.Presentation.SalesOrder.IAddressInterface


But it doesn't show up in Interprise Suite when I try to add it as a plug in section to a form. The Invoice Addresses control from my company shows up ok but not the Sales Order one. The code for them looks nearly identical except for datasource, etc which is why I can't understand why one shows up and the other doesn't. The constructors are slightly different but it doesn't look significant. Any other ideas?

Thanks
Greg
Greg SUser is Offline

Posts:63

07/07/2008 8:58 AM  
Sorry, I think all this is my fault. I forgot to change the GUID for the assembly so I think the system was confusing mine with the Inteprise assembly. I have changed it now and re-registered the assembly. It looks to be working now. I will post back after confirmed success with my edits I need to do.

It might be a good idea to check GUIDs on custom plugin assemblies when the Plugin Manager is registering them to see if there is going to be a conflict.

Thanks and sorry to be a problem child
Greg
You are not authorized to post a reply.
Page 1 of 212 > >>

Forums > Connected Business Platform > Framework Releated Questions > Modifing original sales order form?



ActiveForums 3.7
Privacy Statement  |  Terms Of Use
Interprise Software Systems International Inc.