on 10-31-2008 6:38 AM
Hi,
I have node Country under that I have attribute Name which contains which contains sevaral country nemes at runtime. can any one help me to retrive all the company names assigned to the attribute Name.
if i say wdContext.currentCountryElemt().getName () , i will get only selcted one , but i need all the list.
Regards,
Venki
Hi
You can do that by using a for loop like
for(int i=0;i<wdContext.nodeCountry().size();i++)
{
String name=wdContext.nodeCountry().getCountryelementAt(i).getName()
}
Regards
Raghu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
To retreive all values from the context Country as mentioned by you use the following code
for(int x=0; x<wdContext.nodeCountry().size(); s++)
{
ICountryElement element = wdContext.nodeCountry().getCountryElementAt(x);
String name = element.getName();
//TODO: Use the name for further processing.
}
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
if you use the table ui it will displays all the countries with out any coding.
assign the country to table ui dataSource property and bind the name to cell editor.
to get the all countries through code do like this,
for(int i=0;i<wdContext.nodeCountry().size();i++){
wdComponentAPI.getMessageManager().reportSuccess("Country Name:"+wdContext.nodeCountryElementAt(i).getName());
}
Regards,
ramesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Venki,
Use this code
for(int i=0; i<wdContext.nodeCountry().size(); i++)
{
wdContext.currentCountryElemt().getName
}
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.