on 12-07-2005 12:31 PM
Hi all,
Can somebody tell me if it is possible to fill a standard greated simple type by using JDBC connection.
I have created a simple type in the dictionary part of the developer Studio, but i want to fill the content with a sql statement.
Kind regards,
Richard Middelburg
Hi,
U can do this by dropdownby key also. but i have used dpopdown by index and i have not checked for key. in dropdownby key bind it to the selected key properties.
check this link to get idea about dropdownby key
Regards,
Vijayakhanna Raman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vijayakhanna,
Thanks for your source. Can I do the same with a dropDownByKey?
Kind Regards,
Richard
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Richard,
U can create a simple type in dictionary and change the type of the attribute to simple type and bind to a dropdownbox to display the values similarly the values here are there in the database table and u can set to the dropdown attribute directly, why u want to set to simple type in dictionary.
LetThis is a DropDownBy Index. Create a node Node_sub and Attribute subjectid and bind to it and get the values from the database tabe and display it in the DropDown
try{
InitialContext ctx=new InitialContext();
DataSource ds=(DataSource)ctx.lookup("jdbc/SAPJ2EDB");
Connection con=ds.getConnection();
Statement stmt=con.createStatement();
ResultSet rs1=stmt.executeQuery("select * from TMP_TECHNOLOGY");
while(rs1.next()){
String id1=rs1.getString("SUBJECTID");
IPrivatePermission_Adminview.INode_subElement x=wdContext.nodeNode_sub().createNode_subElement();
wdContext.nodeNode_sub().addElement(x);
wdContext.currentNode_subElement().setPermission_subjectid(id1);
wdContext.nodeNode_sub().moveNext();
}
Let me know weather this works for u
Regards,
Vijayakhanna Raman.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
Try this link.
http://help.sap.com/saphelp_erp2005/helpdata/en/07/73a840bd6d3c13e10000000a155106/frameset.htm
hope this helps u.
Regards,
Praveen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
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.