on 10-05-2009 6:34 PM
Hello All,
How can I add HTML Bullets to a Table Cell Text?
Thanks, John
You can't use plain HTML. As a workaround you could use a Caption as editor and set the "iconSource" to some bullet icon.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I know Armin has his point, but I'd rather just say "It's not possible, sorry." - WDP limitations. Same case as scrolling tables, you can do them, with some "tricks", but when the trick is too expensive or will generate too much effort to maintain, usually it's better just hurt the layout a bit.
Regards,
Daniel
Hi Armin,
I hope this refresh your mind:
I think use popins only to have a simple <LI> element in your page is like, killing a rat with a shotgun. Even more when you need to create an Image in order to do that. WDP should provide something in order to achieve this, since it's been in HTML since.. stone age.
About the Table discussion, I think both versions 7.0 and CE7.1 should have both styles, and the developer decides what is best to use in each case. We both know that's not the case and ** I think **, it will never be considering WDP nature.
EDIT: well, it looks like HTML works in here.. in the bullet above I was refering to [ LI ].
Regards,
Daniel
Edited by: Daniel Ruiz on Oct 7, 2009 9:44 AM
My comment about crappy workarounds was related to table scrolling. In release 7.0, a table has no scrollbar, but paginators and I recommend to use it as implemented. And when such an application is deployed to a 7.1 runtime it will immediately have a scrollbar (with the same server-side scrolling as the 7.0 version) without any change in the application. If there would exist a real workaround in 7.0 I had no problem with it, but I don't know of one.
Concerning the pop-in: The poster obviously wants a list inside a table cell. Web Dynpro does not provide this so I propose to use a table popin. What's the problem?
Armin
As I said before, it's like killing a rat with a shotgun.
I see this exactly like the thread linked. It's not supported now, maybe in future (CE7.2???) will be. Just use what you have now, what's supported and what makes sense to use in place.
And I will support what I'm saying as the topic says "Table Cell" and not Popin. They are way different UI elements in my opinion.
Hope you get my point, this is a pretty useless discussion since I don't think the poster will achieve what he REALLY wants anyway.
Regards,
Daniel
What about using a read-only TextEdit or a TextView as table cell editor and using line breaks and "-" for formatting?
For example:
Context
+ Rows (node)
+ Items (node, singleton=false)
+ text
+ formattedItemsText (string)
Table.dataSource = Rows
TableColumn.tableCellEditor = TextView
TextView.text = Rows/@formattedItemsText
void supplyRows(IRowsNode node, ...)
{
IRowsElement row = node.createAndAddRowsElement();
StringBuffer s = new StringBuffer();
for (int i = 0; i < row.nodeItems().size(); ++i)
{
IItemsElement item = row.nodeItems().getItemsElementAt(i);
s.append("- ").append(item.getText()).append("\n");
}
row.setFormattedItemsText(s.toString());
}
Armin
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.