on 12-04-2009 7:01 AM
Hi All,
I have a requirement where in the Web dynpro Table elements or fields instead of appearing horizontal(the dafault way) they should appear vertical.
As far as I understand, there is no such UI which supports this requirement. Even if I wish for dynamic programing, I guess acheiving the exact table look and feel is difficult.
Moreover, I am not sure as well, what has to be done in case of dynamic programming. I had a chance to go through the thread
but what I learned is not going with my requirement.
I have around 16 columns to display, that is why the requirement of having it Vertically has come into picture. As we have the invert axis function in R/3, if we could acheive the same in Web dynpro Java, the requirement can be addressed.
Request all of you to let me know your thoughts on the same. Thanks!!
Regards
DK
Edited by: DIPENDRA MOHANTY on Dec 7, 2009 1:11 PM
Edited by: DIPENDRA MOHANTY on Dec 7, 2009 1:11 PM
Hi Dipendra,
1. Create a Context Value Node Vn_VerticalColumn with attributes-
Va_RowHeader-string, calculate:true, readOnly:true
Va_Entry1-string, calculated:false,readOnly:false
Va_Entry2-string, calculated:false,readonly:false
Va_HeaderEnabled-boolean, calculated:true,readOnly:true
Va_TableCellDesign-com.sap.ide.webdynpro.uielementdefinitions.TableCellDesign
2. Create a table bound to this node with one column bound to RowHeader and other two for Va_Entry1 and Va_Entry2
3. Make selectionMode of table as multipleNoLead
4. CellDesign-Positive, Desin-Header for Column 1(RowHeader); TableCellEditor- Design:GroupTitle
5. Column2(Va_Entry1)- CellDesign:Vn_VerticalColumn.Va_TableCellDesign; design:Header; TableCellEditor- readOnly:Vn_VerticleColumn.Va_HeaderEnabled
6. Clomn 3 (Va_Entry2): follow the above step for Va_Entry1
7. Use the following code to populate table in wdDoInit()-----
IPrivate<Your>View.IVn_VerticalColElement verColEle = null;
verColEle = wdContext.createVn_VerticalColElement();
verColEle.setVa_RowHeader("Employee Name");
verColEle.setVa_Entry1("TUSHAR SINHA");
verColEle.setVa_Entry2("ROHIT CHAUHAN");
wdContext.nodeVn_VerticalCol().addElement(verColEle);
verColEle = wdContext.createVn_VerticalColElement();
verColEle.setVa_RowHeader("Age");
verColEle.setVa_Entry1("26");
verColEle.setVa_Entry1("25");
wdContext.nodeVn_VerticalCol().addElement(verColEle);
-
-
wdContext.nodeVn_VerticalCol().setLeadSelection(-1);
7. Put the following code in getter for Va_TableCellDesign
return element.index()==0
? WDTableCellDesign.POSITIVE
: WDTableCellDesign.STANDARD;
8. Put the following code in getter for Va_HeaderEnabled
return element.index()==0
? true
: false;
I have posted whole of the article here. I believe, you shouldnt have a problem after this.
Regards,
Tushar Sinha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.