SAP Portal development-Table Controls having link to table cell content
Hello all,
I am creating the SAP portal in which i am using Table controls to display the data. I want the function should be called whenever user clicks the table cell content. i.e. i want to create the function link to table cell.
Please reply soon.
Regards,
Prashant
Hi Prashant,
You haven't mentioned if you are using Webdynpro or HTMLB JSPDynPages.
If its the webdynpro, you can declare then and there itself that the content to the table column is a row my changing the property.
If it is a HTMLB component TableVIew that you are trying to use, you can include a TableCellRenderer Class which renders the cells of the table at the runtime as links or buttons or whatever you want to put.
So let me know, what exactly you are trying to use, then finding a solution will be more clear.
regards,
Sujana
Similar Messages
-
Hi,
I want to add some space before and after the table cell content. I am using setIntercellSpacing() method to achieve that and I could get the required functionality. But its adding space in the Table Header also which looks odd. Is there any way to set the spacing only for the cell and not for the table header.
Let me know if anyone has solution for this.
Thanks and Regards,
R.Vishnu Varadhan.I find this behaviour of setIntercellSpacing() very annoying, too. Why the hell did the Swing developers implement it that way?
Nevertheless, you can create the desired effect by writing a custom cell renderer, but that is if course more work than that single method call. -
Hi
I have a requirement where i need to wrap my table cell contents.I have chekced all the properties of table but none serves my purpose.Kindly help in this direction.
NWDS version : 7.3
Server version : 7.3 SP02
Thanks
MonikaHi Monika
Wrapping property is not available at table level.
The individual columns header and content in the text views only you can wrap.
If the table column cell editor is a Text View , then you can see the Wrapping property and you can change it to true for wrapping.. For column headers also you can set the property.
Regards
Venkata KALYAN -
Regarding SAP portal development
I want to know information about how to develop the sap portals using j2ee concepts ....
Pls send me details any body....ASAPNo problem, welcome
Did you try this link yet?
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/60/57683801b5c412e10000009b38f842/frameset.htm">Knowledge Management at help.sap.com</a>
Also, SDN here has a Developer Area for "Knowledge Management & Collaboration" - be sure to check out the links on the left side!
One more link for your convenience:
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/kmc/knowledge%20management%20and%20collaboration%20developers%20guide.html">Knowledge Management and Collaboration Developer's Guide</a>
The help part in addition with the SDN Developer Area for KM should give you enough material for quite some reading and studying. Take your time, get a coffee, and open your mind
Cheers,
Max -
Link to Table cell content...
Hi,
I am Prashant.i am developing SDAP Portal.In that,I am populating data to the .NET SAP NwtWieaver Table control dynamically.I am also adding LinkToAction control to the table cell.I want some action should be carried out on clicking on that link.For that i am using LeadSelect event.
Actually it works fine when i am putting data at design time by editing rows.But it does not work when i gather data from at run time.When i gather data at run time and when i click on some link,all the table data disappears.
I can not understand why this is happened?. What properties should i set for the same.If any one knows, Please help me.
Regards,
Prashant J.Soory it is not SDAP.It is SAP....
-
Command links as column cell content...
Hi
I am trying to add command links as cell content. Clicking on one of the links will cause the outputText component located at the bottom to be updated.
However, I can't differentiate the different links. Since the commandLink is generated for each row of data, the id generated for each commandLink component is the same. That is, I am getting the same ID when I call
public void commandLinkActionListener(ActionEvent ae) {
CoreCommandLink ccl = (CoreCommandLink) ae.getSource();
System.out.println("commandLinkActionListener: " + ccl.getId());
Is there any way to differentiate or pass unique data to the above action listener?
The following is the code segment:
<af:table emptyText="No items were found" value="#{MyTableBean.tableValue}"
var="row" id="table">
<af:column sortable="false" headerText="Name" formatType="text"
id="nameColumn">
<af:commandLink actionListener="#{MyTableBean.commandLinkActionListener}"
partialSubmit="false" text="#{row.name}">
</af:commandLink>
</af:column>
</af:table>
<af:outputText value="Column Trigger: #{MyTableBean.text}" partialTriggers="nameColumn"/>
Would appreciate any help on this.
ThanksFound the answer from one of Frank's blog.
public void commandLinkActionListener(ActionEvent ae) {
CoreTable ct = (CoreTable) ae.getComponent().getParent().getParent();
Object data = ct.getRowData();
The data object is the type of object that you add to your List or CollectionModel.
Note that the commandLink is a child of the column which is a child of the table. -
Autofit column width to table cell content in Pages
Hello,
Would anyone know how to autofit the column width of a table cell in Pages '09?
I have searched Pages Help to no avail.
Thank you very much in advance.There is a checkbox in the table inspector to auto-resize to fit content. Unfortunately, that only seems to work with rows, not columns.
-
Expanding/Enhancing a table cell contents
I have a search utility that shows my database query results in a read-only table.
Say this table T has columns C1-C5 and rows R1-R5.
Data returned in column C3 has a VARCHAR count between 2000-4000.
Currently the table only displays somewhere in the region of 500 characters (on mouse hover) for this column, the page depends how far you can stretch the table column.
My question is three part:
- is there an ADF component that will allow me to copy the contents of a cell, for example, column C3 row R1.
- is there an ADF component that will allow me to expand the cell(C3/R1) in a popup window? (And enable other cells in the C3 column to do the same)
- is there an ADF component that will allow me to open the cell contents in a new window? or .txt (And enable other cells in the C3 column to do the same)
Jdev Version (11.1.2.4)User, which jdev version do you use?
All this can be done.
1) Yes, but this depends on the use case (e.g. per drag & drop or copy & paste using the keyboard)
2) Yes a popup which you e.g. show on hoover which shows all text or you click on the cell and open a popup
3) Yes, if your table is in click to edit mode or you show a form with all attributes of the selected row in a new window (which allows you to layout the components better).
Timo -
Table Cell Contents Disappears Please HELP!!!!
PROBLEM: I have a different tables within different table cells in the Master table. One table per Master cell. Once I click on a table cell (0,0) and click on another table cell (1,1) the cell (0,0) blanks out. Likewise with other cells so that if I've click on all the cells in the Master Table and then clicked somewhere else all cell contents have disappeared.
QUESTION: Do I need to call some UI refresh procedure????? I have a cell renderer which returns the table for each Master's Cell.
I don't if this is clear but please help!
ThanksHi,
the problem is that the DefaultCellEditor can't handle tables.
So you have to write your CellEditor, which returns another table as Editor.
class YourTableCellRenderer implements TableCellRenderer{
private JTable table = new JTable();
public Component getTableCellRendererComponent(JTable table,
Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column){
// set Data and Layout
return table;
}then set the Editor to your MasterTable (master) with.
master.setCellEditor(TableCellEditor anEditor) or
master.setDefaultEditor(Class columnClass,
TableCellEditor editor);Hope this Helps.
Michael -
Add Hyperlink to table cell content dynamically
Hello,
I have a xdp form created in Livecycle designer. We populate a table by dynamically merging XML to this xdp form uing livecycle FormServices.
For example:
the XML:
<data>
<person>
<name> George</name>
<age>11</age>
</person>
<person>
<name> John</name>
<age>30</age>
</person>
</data>
populated in table of pdf:
Name
Age
George
11
John
30
How do I add the hyper link to "George", "John" programmatically, so it can be link to some other URL.
Thanks,
JoannaSo my table is like this:
Product
Price
Apples
1.29
Oranges
2.49
Grapes
1.99
and my XML is like this:
<
Product ProductType="Apples">
<URL>www.apples.com</URL>
<Price>1.29</Price>
</Product>
<
Product ProductType="Oranges">
<URL>www.oranges.com</URL>
<Price>2.49</Price>
</Product>
<
Product ProductType="Grapes">
<URL>www.grapes.com</URL>
<Price>1.99</Price>
</Product>
What I want to do is populate the table from the XML file, and make the URL element be linked from the product name (Apples for instance) at runtime when I fill the table. Any ideas? -
Table cell contents won't show
I've added a simple sum formula but the result doesn't show. In fact the cell appears totally blank. This has happened in a couple of other cells where the number (single digit) won't show unless I double click and then don't move the cursor. I've checked formatting, altered the size and generally fiddled with all the format settings but can't get the formula result to show. Really appreciate some help.
Thanks, I realise that. The problem was in a table in Pages but I know what you mean. I have since solved it though. The cell was too small to fit the result and therefore showed nothing. Enlarging the cell/table did the trick.
-
Hi,
we are using thumbnail images for representing some employee status in a table. Images are displayed successfully.
Problem is the white space between two cells, we want to eliminate the space between two cells. I have tried cell width property but it doesn't help.
Any other suggestions to achieve this.
Thanks a lot.
RgdsHi Sharanya,
I could not find property cell spacing and cell padding property for cell.
I am on Nw04.
Is there other way we can achieve this.
Rgds -
Centering table cell content in panel grid
How can I center the content of the cells in a table grid so it would end up something like this:
<table>
<tr>
<td align="center">You can do that using stylesheet. You can look at the
repeater demo example for ideas. The corresponding
stylesheet class is components/web/stylesheet.css .
Hope this helps.
-JayashriI think we need more powerfull layout oriented components.
XAML, XUL, ADF all of them have powerfull layout components library.
Maybe it's time start working in this direction.
I'm sure that JSF must provide in near future more powerfull layout related components library, no doubt here!
After that it will be possible to remove from styles classes and jsp code everything that was used for layout.
Layout components will take care about align components, preferred size and etc.
We need minimize number of style classes.
That possible if you will make them more universal.
But no way to make universal style classes with layout related attributes inside them.
Take a look on simple layout case:
<s:row align="opposite" styleClass="footerPage">
<h:outputText value="#{bundle.copyright}"/>
<h:outputText value="#{bundle.terms}"/>
</s:row>
public class RowRenderer extends HtmlBasicRenderer {
public RowRenderer() {
super();
public boolean getRendersChildren() {
return true;
public void encodeBegin(FacesContext context, UIComponent component) throws IOException {
if (!component.isRendered())
return;
ResponseWriter writer = context.getResponseWriter();
writer.startElement("div", component);
writeIdAttributeIfNecessary(context, writer, component);
String styleClass = (String) component.getAttributes().get("styleClass");
if (styleClass != null) {
writer.writeAttribute("class", styleClass, "styleClass");
Util.renderPassThruAttributes(writer, component);
public void encodeChildren(FacesContext context, UIComponent component) throws IOException {
if (!component.isRendered())
return;
Iterator kids = null;
String style = null;
int i = 0;
String align = (String) component.getAttributes().get("align");
if (align == null) align = "start";
if (null != (kids = getChildren(component))) {
while (kids.hasNext()) {
UIComponent child = (UIComponent) kids.next();
if (!child.isRendered())continue;
style = (String) child.getAttributes().get("style");
style = (style != null) ? style + ";" : "";
if ( (align == "start") || (align == "left"))
style += "float: left;";
else
if ( (align == "end") || (align == "right"))
style += "float: right;";
else
if (align == "opposite") {
if ((i % 2) == 0)
style += "float: left;";
else
style += "float: right;";
child.getAttributes().put("style", style);
encodeRecursive(context, child);
i++;
public void encodeEnd(FacesContext context, UIComponent component) throws IOException {
if (context == null || component == null) {
throw new NullPointerException(Util.getExceptionMessageString(
Util.NULL_PARAMETERS_ERROR_MESSAGE_ID));
if (!component.isRendered())
return;
ResponseWriter writer = context.getResponseWriter();
writer.endElement("div");
It's good idea in many layout situations to use tableless layout.
Row component just simple demonstration how it work.
There are some problems with implementation and using tableless layout
but at least in some cases it's good choise.
I'm ready to provide plenty suggestions in area of creating and using layout components.
Just don't know if you have interest to discuss that matter.
Vladimir -
Dynamic/included table cell content - is it possible in JSF ?
Folks !
There is one killer JSP feature I seem to be missing in JSF dataTable components (I have tried Tomahawk also):
Basically, I am looking to do something like this:
<f:facet name="header">
<jsp:include page="detail.jsp" flush="true"/>
</f:facet>
Reason ? I would like to reuse detail.jsp content in more than one places and don't want to duplicate same code.
This is specially the case when you are using a detail row (from Tomahawk or Trinidad) that spans across all columns
<f:facet name="detailStamp">
<jsp:include page="detail.jsp" flush="true"/>
</f:facet>
If not regular JSP, is it possible to do this somehow in Facelets ?
thanks,
-SanjaySorry, I failed to note that "detail.jsp" is not static content but actually uses the "row" variable of the datatable.
Since includes are processed seperately from taglib rendering at runtime, detail.jsp fails with error as it doesn't see the row variable null at run time.
thanks, -
CALL WEBI Report from SAP Portal
Hi Experts,
I need to call WEBI report from SAP Portal, is it possible?
The submitted report will be opened in the same window?
Kind Regads.Hi
You can call SAP portal from WebI Report...
insert blank cell in the report / or select the cell whaere do you want to in the report
and then Right click and select hyper link.
Enter the portal address
It will be opened in the same or new window based on your settings.
Target Window : New Window ..then it will open new window.
Maybe you are looking for
-
How can I get my macbook pro running Lion to print on my HP photosmart 309a??
how can I get my macbook pro running Lion to print on my HP photosmart 309a??
-
I can sign on to the iTunes store using my ID but when I want to check my billing information (to change the existing info) it wont accept my password? What do I do?
-
"LOGIC PRO X: Disk is too slow or System Overload. (-10010)" This is the message that I was having since two weeks ago with my Logic 9. I updated two days ago to Logic X and I am still having the same problem. I recently formatted my computer. In
-
How to drag files to Bluray disc in bluray internal burner, not working.
Hi Been trying to burn various files to my MCE Tech's Bluray internal burner on my early 2008 MAC PRO...was able to do it from FCP 7 to burn to this drive a mov file and play it on a set top player. But all I want to do now is drag a folder with abou
-
I have just ordered prints through iPhoto....am not seeing any options for white borders, or matte processing. Is there any current information on this topic...or another site where I could do this. My local developer is having problems with my Mac p