How to enhance BOL for Webclient??? Thanks

Question: Hi all experts:

I am currently working on a IC webclient project and encount a problem
which I can not figure out.
We are trying to add a new input field to one of the view.
However this filed is not part of the standard BOL attributes and is from a Z table. We need to retrieve the value from this input fied and proceed more processes.
I can add the input field to the screen. But I do not know what is the logic
way to implement its business logic. Do I have to enhance BOL or I have to do something to link the Z table to BOL?

Thanks,
Ben

Answer:
The process is pretty complicated. Some of the steps are hinted at in the WebClient cookbook. I don't know what object you're modifying, but here are some of the basic steps:

1) Copy the context node class
2) Copy the context class
3) Change the view page attribute for the context node to point to your Z class
4) Change the attribute for your context node of the new context class to point to the new Z class
5) Modify the constructor method of the new context class to use the new context node class
6) Copy the superclass of the view controller class and point the TYPED_CONTEXT attribute to your new context class
7) Change the inheritance of the controller class to point to the class you created in #6
8 ) Extend the BOL structure for the object to add your field (found in txn GENIL_MODEL_BROWSER) - for BP this is CRMST_HEADER_OBJECT_BUIL
9) Use CRMV_GENIL in the Component Definition to find the implementation class for your object - for BP this is CL_CRM_BUIL - copy the class
10) In CRMV_GENIL, create a new component definition with the new implementation class
11) In CRMV_GENIL, create a new application definition
12)In CRMV_GENIL, in the Applic -> Component section, copy the component set of the source application to your new application created in #11
13) Update your framework profile in the WebClient IMG section to point to your new application ( <InteractionLayerApplication> section of the XML file )
14) Copy the class found in the methods of the class from #9 as needed - for BP header fields this is CL_BUIL_HEADER - and update these methods to point to the new class
15) Update the methods in the class created in #14 to account for the new Z field.
16) Add the new field to the view
17) Replaced the view controller in the framework profile

Answer:
Thanks Bradb.
I will give a try.

Answer:
Hi Bradb & all other experts,

In my situation, I am trying to modify BUAG (Business Agreement) object.
Maybe I am thinking too complicated.
I just would like to add a Z table field to the BuAgSearch View as another
search criteria. However this Z table field is in R3, not CRM.
Therefore it is not an attribute of BUAG object.
Probably there is a simple way to handle this rather than modifying
BOL object.

Do you think the way you described is the more logic way to go?
Or you may have a simple way to handle it?

Thank you very much for your input.
Ben

Answer:
It's not absolutely necessary to tie into the BOL model. It's certainly a heck of alot easier to code without a context node. If you don't think you need your Z-table changes to be tightly integrated with that object, then don't use the context node. Usa a page attribute and attributes/methods of the view controller class to handle the z-table. Again, I haven't used those views, I can only advise you from what I've done with BP (which was basically completely redoing most of the views). I have used context node modifications for most of the development, but have also used the other way.

By the way, SDN CRM Development is a better forum for WebClient issues. You won't find alot of experts here on that topic.

Answer:
Thanks for your kind help.

I also posted my question in SDN forum.
In my case, I am just using the Z feild for searching objects.
I am not changing the Z table at all.

If this is the case, would you recommend to use Page Attributs and View
Controller Methods to handle this?

Also in your experiences, when should I modify Context nodes and BOL?

Thanks again,
BW
Copyright ?2007 - 2008 www.jt77.com