on 04-09-2010 11:36 AM
hiiiiiiii,
i want to fill dropdown by fetching a data from table, it will fill if i use context element but it gives while i use node element so give me the code for that ,
i put the that i use
String qry="select city_id,city_name from gms.tbl_cities order by city_name";
ResultSet rs=stmt.executeQuery(qry);
IModifiableSimpleValueSet cset=
wdContext
.getNodeInfo()
// .getAttribute(IPrivateAddguesthouse.IContextElement.CITYNAME)
.getAttribute(IPrivateAddguesthouse.IAddguesthouseElement.CITY__NAME)
.getModifiableSimpleType()
.getSVServices()
.getModifiableSimpleValueSet();
cset.clear();
while(rs.next())
{
cset.put(rs.getString(1),rs.getString(2));
cityid=rs.getString("City_id");
}
Hi,
Seems like Java code, Post the ques in relevant forum
Regards
manas dua
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.