on 07-23-2009 7:19 AM
Hi, expert
If I create a table view with a model node, such as BTOrder.
How to bind data to the table view and show the data in the web ui ?
Thanks.
Oliver.
hi,
It depends on the scnario that you are working on. You can bind node with custom controller as well. and bind node of custom controller with component controller. It depends upon the apporach that you are following. You can also create same node in component controller.
Best regards
Pankaj Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi , pankaj
Thanks for you advice, now i am study the standard component IUBP_HIER.
Can i use the standard BOL to build a tree view?
Now i have a table view, how can i change it to a tree view? By changing the Implemented class?
Thanks.
Oliver.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
for 1st goto
Customer Relationship Management>CRM Cross-Application Components>Generic Interaction Layer/Object Layer
I will suggest you to follow standard component view. See component ibhier, view tree. See how it is done in standard by seeing the bolg. It will be very difficult for me to tell you step by step.
Best regards
Pankaj Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, pankaj kumar
Thanks for your help.
I have seen the blog, but i don't kown how to do the first two steps :
Prerequisites: The business objects used should be defined in the business object layer as well. Also the dependent objects should be defined via relations.
Step 1: Context node for the tree
First of all you need a context node for the tree, which holds the displayed entities and defines the tree columns. It basically reflects the complete UI state of the tree control in the model.
The problems are:
1. How to define the business objects and the dependent objects ?
2. How to build the node for the tree, so that the node will be showed as a tree structure ?
As i think , first we create a table view with the root node, then how can i make it show as a tree structure ?
Thanks.
Oliver.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
I think this blog can help you.
/people/poonam.assudani/blog/2009/06/24/create-a-tree-view-display-in-crm-web-ui
Best Regards
Pankaj Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, pankaj kumar
I am a novice, so I don't know how to describe the scenario rightly. I'll describe what we want to do.
We want to create a hierarchy map, to show a hierarchy of my production, such as production of Petrochemical industry.
When we select the material name on one level , the page will show the details of the selected material.
So we just try to show the root node in a table view by first, then try to find out how to change it to a hierarchy map.
Thanks.
Oliver.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I will appreciate if you tell me scenario. Which object you are working on? From where you want to fetch data?
Thanks and regards
Pankaj Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, pankaj kumar
I can see the table view, by deleting the code below in the html page :
displayMode = "<%= controller->view_group_context->is_view_in_display_mode( controller ) %>"
But there is no data showed in the view, should i define some method to get data and fill the data to the table view ?
Oliver.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, pankaj kumar
As you said, whether need i create a same model node in the component controller ?
Oliver.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Oliver,
For displaying a model node in a table view , you have to do the binding in the html page .
Please refer to the below code
<chtmlb:configTable actions = "<%= controller->gt_button %>"
actionsMaxInRow = "5"
id = "Table"
onRowSelection = "select"
table = "//BTAdminI/Table" width = "100%"
selectedRowIndexTable = "<%= BTAdminI->SELECTION_TAB %>"
selectionMode = "<%= BTAdminI->SELECTION_MODE %>"
allRowsEditable = "TRUE"
visibleRowCount = "10"
visibleFirstRow = "<%= BTAdminI->VISIBLE_FIRST_ROW_INDEX %>"
displayMode = "<%= controller->view_group_context->is_view_in_display_mode( controller ) %>"
usage = "ASSIGNMENTBLOCK"
personalizable = "FALSE"
downloadToExcel = "FALSE" />
In the attribute "table" , specify your model node name . Now the model node is mapped to the table view . display the fields as required from the model node .
Please let me know if you still have any query .
Thanks
Manish
hi,.
You bind data of table view as you do for empty view. ie by code
owner->do_context_node_binding( iv_controller_type = cl_bsp_wd_controller=>co_type_component
iv_target_node_name = 'BTAdminI'
iv_node_2_bind = BTAdminI ).
Instead of BTAdminI use your Object. You write this code in create_contexnode (eg create_btadminI) method of context class.
Best regards
Pankaj Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.