Find Jobs
Hire Freelancers

display resultset into listview

$10-30 USD

已完成
已发布大约 8 年前

$10-30 USD

货到付款
Hello, i have a small amount of coding skills in android development but most of the time i can look at tutorials online and work around it too make it work my boss wants it too work. basically i have been trying for weeks to be able to get data from our oracle server to a list view and i have not had any success. i am able to retrieve the data fine as it just displays into a text field but it would look nicer if it was inside of a list view which i hope you can help me with. there is one problem i am not able to test to see if the code would work unless i am at work as it only works when you are on the local network. so to sum it all i got the data i need from the oracle server but i want too display it into a list view and not a text field. i know this may sound stupid too ask for probably something really simple here is a sample code i have. try { Statement stmt = null; String sql = null; stmt = [login to view URL](); sql = "Select c.client_name, c.client_code, p.product_id, p.scan_id, p.case_bar_code, p.prod_title, p.ean_upc_id" + "l.loc_code, l.product_qty, l.request_from_qty, l.request_in_qty" + " from clients c, products p, prod_locations l" + " where c.client_code=l.client_code" + " and p.client_code=l.client_code" + " and p.product_id=l.product_id" + " and (p.product_id = '" + [login to view URL]().toString() + "'" + " or p.scan_id = '" + [login to view URL]().toString() + "'" + " or p.case_bar_code = '" + [login to view URL]().toString() + "'" + " or p.prod_title like '%" + [login to view URL]().toString() + "%'" + " or p.ean_upc_id = '" + [login to view URL]().toString() + "')"; ResultSet rs = [login to view URL](sql); while ([login to view URL]()) { String client_name = [login to view URL](1); String client_code = [login to view URL](2); String product_id = [login to view URL](3); String scan_id = [login to view URL](4); String case_bar_code = [login to view URL](5); String prod_title = [login to view URL](6); String ean_upc_id = [login to view URL](7); String loc_code = [login to view URL](8); String product_qty = [login to view URL](9); String request_from_qty = [login to view URL](10); String request_in_qty = [login to view URL](11); [login to view URL]("Client: " + client_name + " | " + "Product ID: " + product_id + " | " + "Desc: " + prod_title + " | " + "LOC: " + loc_code + " | " + "QTY: " + product_qty + " | " + "Req In: " + request_in_qty + " | " + "Req Out: " + request_from_qty + "\n\n"); } [login to view URL](); } catch(Exception e) { Log.e("onCreate", "Error ", e); [login to view URL]("Error " + e); }
项目 ID: 10368404

关于此项目

1条提案
远程项目
活跃8 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
Hii, i can help you with your error, and this can take less than 1 hour, send me a msg to know more about it, have a good day!
$30 USD 在0天之内
5.0 (4条评论)
2.9
2.9
1威客以均价$30 USD来参与此工作竞标
用户头像
I hope I can help u with ur task.
$25 USD 在1天之内
0.0 (0条评论)
0.0
0.0

关于客户

UNITED STATES的国旗
Pinetops, United States
5.0
3
会员自4月 30, 2016起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。