Alright, after some reading and coding I found the solution; TableRow row = new TableRow(); row.addCell( new TableCell(new TextValue(nodeId), owner) ); row.addCell(uplineVal); row.addCell(tip); data.addRow(row);
On 3/4/10, Odili Charles Opute <[email protected]> wrote: > here is my code > public class RemoteChartService extends DataSourceServlet { > > public DataTable generateDataTable(Query query, HttpServletRequest > hsr) throws DataSourceException { > DataTable data = new DataTable(); > //String memberId = hsr.getParameter("member"); > ChartNodeDao nodeDao = new ChartNodeDao(); > > data.addColumn(new ColumnDescription("id", ValueType.TEXT, null)); > data.addColumn(new ColumnDescription("upline", ValueType.TEXT, > null)); > data.addColumn(new ColumnDescription("tip", ValueType.TEXT, null)); > //data.addColumn(new ColumnDescription("member", ValueType.TEXT, > null)); > > ArrayList<ChartNode> nodeList = (ArrayList<ChartNode>) > nodeDao.findEntities(); > > for (ChartNode node : nodeList) { > String tip = node.getOwner().getFullName() + " :: " + > node.getLevel().getTitle(); > //String member = String.valueOf( node.getMember().getId() ); > > String value = node.getSlot().getTitle(); > Slot upline = node.getUpline(); > String uplineVal = null; > if(upline != null){ > uplineVal = node.getUpline().getTitle(); > } > data.addRowFromValues(value, uplineVal, tip); > } > > return data; > } > > @Override > protected boolean isRestrictedAccessMode() { > return false; > } > > } > > I have also not been able to pull out query parameters when they are > present. > > On 3/4/10, Odili Charles Opute <[email protected]> wrote: >> I'll give it a trial thanks >> >> On 3/4/10, MC Get Vizzy <[email protected]> wrote: >>> can you use the setFormattedValue() method of the DataTable class? >>> >>> On Wed, Mar 3, 2010 at 7:18 PM, chalu <[email protected]> wrote: >>> >>>> Any hints on this please, it's quite urgent and it's killing me >>>> >>>> On Mar 1, 8:17 am, chalu <[email protected]> wrote: >>>> > Hello all, I am using the GWT wrappers for the OrgChart visualisation >>>> > and I am having a very hard time controlling what is shown on the >>>> > OrgChart. From the docs and samples (javascript version) you can >>>> > format the text on the chart by putting something like this in place >>>> > of the value column : >>>> > <code> >>>> > {v:nodeId, f: formatedText} >>>> > </code> >>>> > >>>> > Please how do I achieve same from the GWT wrappers, specify and id >>>> > and >>>> > also control and format the text on the chart nodes.. Thanks >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups >>>> "Google Visualization API" group. >>>> To post to this group, send email to >>>> [email protected]. >>>> To unsubscribe from this group, send email to >>>> [email protected]<google-visualization-api%[email protected]> >>>> . >>>> For more options, visit this group at >>>> http://groups.google.com/group/google-visualization-api?hl=en. >>>> >>>> >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups >>> "Google Visualization API" group. >>> To post to this group, send email to >>> [email protected]. >>> To unsubscribe from this group, send email to >>> [email protected]. >>> For more options, visit this group at >>> http://groups.google.com/group/google-visualization-api?hl=en. >>> >>> >> >> >> -- >> Kind Regards >> Odili Charles Opute >> > > > -- > Kind Regards > Odili Charles Opute > -- Kind Regards Odili Charles Opute -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
