on 10-10-2008 9:40 PM
Hello Experts,
I am using the below code. to display in data in bizcard.
in format
label1: text1
label2: text2
label3: text 3
but the data is showed up as
label1:
text1
label2
text2
label:
text3
can anyone suggest me the solution to correct this.
for (int k = 0; k < fieldInfo.length; k++)
{
IWDLabel labelView = (IWDLabel) view.createElement(IWDLabel.class, "labelView" + iBizCardLocation + k);
labelView.setText(fieldInfo[k].label);
IWDGridData labelGridData = (IWDGridData) labelView.createLayoutData(IWDGridData.class);
labelGridData.setWidth("100px");
labelView.setWidth("35%");
IWDTextView textView = (IWDTextView) view.createElement(IWDTextView.class, "textView" + iBizCardLocation + k);
textView.setText(elementRecord.getAttributeValue(fieldInfo[k].fieldname).toString());
groupBizCard.addChild(labelView);
groupBizCard.addChild(textView);
}
Thanks,
James
IWDGridLayout grid = (IWDGridLayout) groupBizCard.getLayout();
grid.setColCount(2);
for (...)
This assumes that you already have assigned a GridLayout to the container "groupBizCard". Otherwise use
IWDGridLayout grid = (IWDGridLayout) groupBizCard.createLayout(IWDGridLayout.class);
...
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi!
you can set RootUIElementContainer property colCount as 2 .
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi James,
use method setColCount() and input as 2 or use setColSpan() and input as 2.
Edited by: Aishwarya Sharma on Oct 11, 2008 6:10 AM
Edited by: Aishwarya Sharma on Oct 11, 2008 10:17 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.