How to fill info from database
I have the database talking to livecycle. I am using OLEDB via the ODBC in server 2003 for the connection. I can access the database in PHP no problem using the ODBC functions.
All I want to do is query a customer ID and return a first and last name. The SELECT statement is simple however what goes in front and after the SELECT statement is not clear to me.
I just need a bare bones example to get going. with what the fields need and the button to execute the query.
Any help would be greatful.
Thanks in advance Charlie
Is this data being retrieved after the user enters the Customer ID?
If so then you can set up th econnection to have a delayed open (so that you can control when the connection to the DB is established). There is a checkbox on the 2nd screen of the data connection wizard.
Now you can create the SQL statement and set a property of the DtaaConnection (programmatically) and open the data connection. If you post your email address I will send you a sample. You will not have my DB but you will get the idea.
Similar Messages
-
I have a new MacBook Air and don't know how to get info from my USB stick and get info from my SD card. Can anyone help, please?
Plug the stick and/or card into the appropriate slots on the side of your Air. Do you see icons for the devices appear on the desktop? Click into them to see what files are there.
Matt -
How to get info from a layer which is applied with styles ?
How to get info from a layer ? such as ( apply style or not , which effect have applied on it etc..)
I really can't solve it , Who can hlep me.. By the way , I 'am using CS version.xtools/xlib/Styles.js has a set of functions for working with layer styles. I do not know if it works with CS. I wrote it several years ago for either CS or CS2. If this doesn't work, then nothing will. The script retrieves a layer's style by saving it to disk then parsing the file for the desired ActionDescriptor.
There is a function at the bottom of the file that tests the Styles.js API.
Styles.test = function() { var doc = app.activeDocument;
var layer0 = doc.artLayers[0];
var gdesc = Styles.getLayerStyleDescriptor(doc, layer0);
if (!gdesc) {
alert("There is no layer style associated with the layer");
return;
// this will set the layer style to another layer.
// var layer1 = doc.artLayers[1];
// Styles.setLayerStyleDescriptor(doc, layer1, gdesc);
if (!gdesc.hasKey(cTID('FrFX'))) { // look for a stroke effect
return;
var frfx = gdesc.getObjectValue(cTID('FrFX'));
if (!frfx.hasKey(cTID('Clr '))) { // look for the color
return;
var clr = frfx.getObjectValue(cTID('Clr '));
// we should really check that the objectType is RGBC
var r = clr.getDouble(cTID('Rd '));
var g = clr.getDouble(cTID('Grn '));
var b = clr.getDouble(cTID('Bl '));
if (r == 0 && g == 0xFF && b == 0xFF) {
return;
clr.putDouble(cTID('Rd '), 0);
clr.putDouble(cTID('Grn '), 0xFF);
clr.putDouble(cTID('Bl '), 0xFF);
frfx.putObject(cTID('Clr '), cTID('RGBC'), clr);
gdesc.putObject(cTID('FrFX'), cTID('FrFX'), frfx);
Styles.setLayerStyleDescriptor(doc, layer0, gdesc); -
How to retrive data from database views or projection views
how to retrive data from database views or projection views
Hi chintam,
1. Very simple
2. Just like normal select statement.
3. Select * from VIEWNAME.
4. (Instead of the tablename, we just have to give the viewname)
regards,
amit m. -
How to display items from database using catagorylookupdroplet
Hi everyone,
i want to know how to display items from database using catagorylookup droplet. if anybody have any code snippet please share it.
Thanks in advance,<dsp:droplet name=".................../CategoryLookup">
<dsp:param name="id" param="itemId"/>
<dsp:oparam name="output">
<dsp:valueof param="element.displayName"/>
<%-- This is show the Child Category --%>
<dsp:droplet name="......................./ForEach">
<dsp:param name="array" param="element.childCategories"/>
<dsp:oparam name="outputStart">Child Categories</dsp:oparam>
<dsp:oparam name="output">
<dsp:a href="">//bydefault it will take its own file's name
<dsp:param name="itemId" param="element.repositoryId"/> <dsp:valueof param="element.displayName"/>
</dsp:a>
</dsp:oparam>
</dsp:droplet>
<%-- This is show the Child Product --%>
<dsp:droplet name=".............../ForEach">
<dsp:param name="array" param="element.childProducts"/>
<dsp:oparam name="outputStart">Child Products</dsp:oparam>
<dsp:oparam name="output">
<dsp:droplet name="................/ProductLookup">
<dsp:param name="id" param="itemId"/>
<dsp:param name="elementName" value="Prod"/>
<dsp:oparam name="output">
<dsp:getvalueof id="img102" param="Prod.smallImage.url" idtype="java.lang.String">
<dsp:img height="250" width="250" src="<%=img102%>"/>
</dsp:getvalueof>
</dsp:oparam>
</dsp:droplet>
<dsp:a href="productView.jsp">
<dsp:param name="itemId" param="element.repositoryId"/>
<dsp:valueof param="element.displayName"/>
</dsp:a>
Hope this helps.
-RMishra -
Help with displaying info from database+asp
How can I display info from a database so that it is
formatted into rows in a table
here is an example of what I would like
http://www.westerveltcollege.com/new/programs/bus_admin_computers.html
(it is the section that show the course content)
I know it has been code into the table but how to do this
dymanically
hope that makes sense to someone ;)To do it properly you would set up two tables. The first
would contain the
topics and be something like this
topicID
topicName
Then you would have a second table that would hold the
content like this
contentID
contentName
topicID
The last field links this table to the topic.
To display them you would link the topics into a master list,
and then pass
the topicID to the page displaying the content and use the
topicID as a
filter on the content table.
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver
Valleybiz Internet Design
www.valleybiz.net
"jnc1965" <[email protected]> wrote in
message
news:eeot1q$db0$[email protected]..
> nice one thanks
>
> now one more quetion
> how do I set up the info in the database
> I have serveral page for different topics and each page
has a table like
> mentioned above
> I dont want to make a different colunm for each for the
course contents
> I would like to build one table and have each subject's
course content in
> a
> column but how would I do this?
> and still have appear like the example
> -
How to fetch data from database in javafx 2.2 table which is editable.
Dears!
I want to fetch data from database in javafx 2.2 tableformat with jdbc , which is also editable and i can add more records in this table also.
Can anybody help meI can vaguely recall some sort of JavaFX database connectivity feature, I'm not sure if it's valid anymore.The link is based on JavaFX Composer which only applied to NetBeans 6.9 and JavaFX 1.x (both of which are now dead techs).
There is a good chance you will have to write your own. There are several blogs describing other peoples' work. You could probably use them as a reference.Here is Narayan's basic [url http://blog.ngopal.com.np/2011/10/19/dyanmic-tableview-data-from-database/] tutorial for displaying data from a database in a TableView, you'll need to look elsewhere for the editing portion.
The [url http://docs.oracle.com/javafx/2/ui_controls/table-view.htm]JavaFX TableView tutorial gives info about how to handle edits in a TableView, but you will need to tie the updates back to the database yourself.
It is possible that [url http://www.javafxdata.org/]DataFX may provide some facilities to help support you. -
How to send info from Win32 Application to C# application
I develop two separate application Win32 and C# (WPF). I would like to send some info (such as a list of words) from Win32 application to a window in C# application. How to do this?
We have SendMessage and PostMessage Win API but not sure how to catch these messages from C# application's window. Or do we have other methods to send info to C#?
Actually I would like to send a list of words from Text Service (Win32) to a keyboard (C#-WPF).
Thanks,
ntquy99Hi,
This may be funny but may work and meet your requirement.
http://www.c-sharpcorner.com/UploadFile/6f0898/simple-way-to-establish-interaction-between-two-visual-studi/
Here I used To communicate Two Different Window Forms application using a text file as communication mode to as a connection database
Regards,
Selva Ganapathy K
Thank you Selva. Your solution is to polling the update from another application.
My situation is a little different. I just simply want to send message/info from Win32 app to C# app and wonder how to do this? -
How to get data from database to JComboBox
hi
i am trying to get data which is in database. here the problem is i am getting only one row in the JcomboBox
i want all data just like list. i dont know how to get that . below is the code plz any one help me....
import javax.swing.*;
import javax.swing.JList.*;
import java.awt.*;
import java.awt.event.*;
import java.lang.String.*;
import java.lang.Integer.*;
import java.sql.*;
public class customer_code extends JFrame implements ActionListener
Container c=getContentPane();
JLabel customer_code=new JLabel("Customer Code and Name");
customer_code()
super("Customer Details");
setSize(300,250);
setVisible(true);
setLayout(null);
setLocation(430,310);
Font f=new Font("SansSerif",1,16);
Font f1=new Font("SansSerif",0,14);
customer_code.setBounds(10,20,250,30);
add(customer_code);
customer_code.setFont(f);
ResultSet rs=null;
String j=null,k=null;
try
System.out.println("MySQL Connect Example.");
Statement st=null;
Connection con=null;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con = DriverManager.getConnection("jdbc:odbc:project","vikky","vishu");
System.out.println("Connected to the database");
st=con.createStatement();
rs=st.executeQuery(" select code as c,Customer_name as n from customer_details ");
while(rs.next())
j=rs.getString("c");
k=rs.getString("n");
System.out.println(j);
System.out.println(k);
String[] names = new String[] {j,k};
JComboBox comboBox = new JComboBox(names);
add(comboBox);
comboBox.setBounds(25,60,250,50);
comboBox.setFont(f);
comboBox.addActionListener(this);
comboBox.setMaximumRowCount(10);
con.close();
System.out.println("Disconnected from database");
catch (Exception e)
e.printStackTrace();
public void actionPerformed(ActionEvent event)
if ("comboBoxChanged".equals(event.getActionCommand()))
System.out.println("User has selected an item from the combo box.");
JComboBox comboBox = (JComboBox) event.getSource();
if(comboBox.getSelectedItem().equals("None"))
public static void main(String agr[])
customer_code cd=new customer_code();
}r035198x wrote:
Also separate that database code from interface display code.
You should never access the database on the EDT.
See [Doing Swing Right|http://bytes.com/topic/java/insights/853297-doing-swing-right] for more details.
Yes! By the time you are working with Swing and JDBC you should already know how to structure code. If not, then you are not ready for these topics and you've jumped the gun. -
How to fetch data from Database using SUP MBOs
I'm learning to develop blackberry apps using SUP.I am new to both blackberry api and SUP.
I need to make a login page for a Student and then validate the username and password entered using data from a database.
I need to check the database for the username and password entered. What should be my next step? How do i get this data from the database. Using findAll() method is not working . Do i need to connect to SCC or unwired server first. If yes , then someone please provide a sample code for it.Hi!, I see your code and I see that you have a fee errors, try to use this:
import java.text.*;
import java.sql.*;
import java.util.*;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.OutputStream;
* NOTE: You must put the try-catch and your sql code into the get method
/** Servlet program to take fetchdata from database and display that on the broswer*/
public class Fetchdata
extends HttpServlet {
String query = new String();
String uid = "ashvini";
String pwd = "******";
public void doGet(HttpServletRequest request, HttpServletResponse response) throws
ServletException, Exception {
try {
Connection con = null;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String url = "jdbc:odbc:Testing";
con = DriverManager.getConnection(url, uid, pwd);
Statement s = con.createStatement();
query = "select * from gowri.msllst1";
ResultSet rs = s.executeQuery(query);
response.setContentType("text/html");
ServletOutputStream out = response.getOutputStream();
out.println("<HTML>" + "<BODY BGCOLOR=\"#FDF5E6\">\n" +
"<H1 ALIGN=CENTER>" + title + "</H1>\n" +
"<table>" + " <th>ITEM Code</th>");
while (rs.next()) {
out.println("<tr><td>" + rs.getString(1).trim() + "</td></tr>");//I change </tr></td> for </td></tr>
} //end of while
out.println("</table></BODY></HTML>");
catch (Exception e) {
System.out.println(e);
} //end of doGet method
}I hope this help you :) -
How to display data from Database individually??? Anyone can help ?
HI,
i i had select a row of data from database using ,
/* Query * From Table RESOURCEORDER where po = selected no and project = selected project */
public ResultSet getAllData() throws SQLException
getConnection();
Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery("SELECT * FROM RESOURCEORDER WHERE PROJECT = '" + getSelProject() + "' and PURCHASEORDERNO = '" + getPo() + "'" );
return rs;
After that , how do i display the data individually ?
Eg select data is ('projectA','7891203-1', '10-4-2005','lcd',2000,'121-45217-8','electrical','pending','donwong')
i want to display them individually, like this in a page
Projectname: /* should display the Project A*/
P.O no:
Date:
Order:
Cost:
Acc no:
Type:
status:
Orderedby:
Can anyone help ? cos i'm new to JSP ......Thanks alot!!!!!
Regards,
khimI assume PO being a unique key, will always return 1 row from db.
public String[] getAllData() throws Exception
getConnection();
Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery("SELECT * FROM RESOURCEORDER WHERE PROJECT = '" + getSelProject() + "' and PURCHASEORDERNO = '" + getPo() + "'" );
String [] returnValue = new String[9];
while(rs.next())
returnValue[1] = rs.getString("colname");
returnValue[2] = rs.getString("colname");
///and so on
return returnValue;
}Once you get that you could individually view it by setting a loop to run through the returned array.
Hope it helps -
How to popup values from database tables to SelectOneMenu
Hi friends,
I am doing a jsf application, in which there is a selectOneMenu
control and I want that, iwhen this page is loaded after clicking button
on the previous page, the selectOne Menu should be populated with
the values from database.
Also I want , if i will select any menu item from the menu , acccordingly
another selectOneMenu control should be filled with respective values
thanx,
byeOh dear. I don't think anybody can advise you until you are not "kinda" new to Java anymore. Learn Java itself (the language, the platform and the tools), only then should you start considering going into web development.
-
How to extract data from database to XSLT?
I want to generate a report by XSLT, but the data is extracted from the database. I will use Access/SQL server for my database. Can i write SQL in XSLT to extract data from database? Have any sample code or reference website to show how it work?
THXfor example: "SELECT code, name FROM TABLE FOR XML RAW"
String xml = null;
if(rs.next()){
xml = rs.getString(1);
}You will get xml string something like this:
<row empID="1234"/><row empID="1235"/>
You can construct a DOM using this xml data and operate on it.
However you may explore more on resulting xml format.
A different SQL Query (rather than using XML RAW) may give output in a more desired format. -
How to retrieve data from database to the structure(complicated)
Hello everyone:
I want to retrieve data from database to the structure. but the structure defined like this below:
TOLERANZOB LIKE QAMV-TOLERANZOB
TOLERANZOB1 LIKE QAMV-TOLERANZOB
so how can I retrieve the data from the database ? make sure that the two fields contain data both.
Thanks in advance .
Regards
NickHi Nick,
To retreive data for TOLERANZOB from QAMV,
If you know the key fields then use
SELECT SINGLE TOLERANZOB FROM QAMV INTO TOLERANZOB WHERE keyfields.
else, you can use
SELECT TOLERANZOB FROM QAMV UPTO ONE ROWS INTO TOLERANZOB WHERE....
Once you retreive the data using the select query, you can check if it is initial and if not move the data from TOLERANZOB to TOLERANZOB1.
<b>Reward points for helpful answers.</b>
Best Regards,
Ram. -
Help , How to get data from database using recordset with UI API
I want to get a data from database
when I want to create recordset i notice that UI API didn't has record set
so I created recordset using DI API (SAPbobscom.recordset and SAPbobscom.company)
======================================================
Dim oCompanyUI As SAPbouiCOM.Company <<UI API
Dim oRecSet As New SAPbobsCOM.Recordset << DI API
Dim oCompanyDI As New SAPbobsCOM.Company << DI API
'=====================================================
oCompanyDI.Connect
Set oRecSet = oCompanyDI.GetBusinessObject(BoRecordset)
oRecSet.DoQuery ("SELECT T0.CardCode, T0.CardName FROM OCRD T0")
SBO_Application.MessageBox oRecSet.Fields.Item(1).Value
======================================================
but I got an error it said "you are not connected to company"
I'm really don't have an idea about how to get a data from using UI API (exp I want to get a date or costumer code)
can someone help me please, I really need it
Thanksyou need a single sign on
Dim oDICompany As SAPbobsCOM.Company
Dim sCookie As String
Dim sConnStr As String
Dim ret As Integer
oDICompany = New SAPbobsCOM.Company
sCookie = oDICompany.GetContextCookie
sConnStr = SBO_Application.Company.GetConnectionContext(sCookie)
If oDICompany.Connected Then
oDICompany.Disconnect()
End If
ret = oDICompany.SetSboLoginContext(sConnStr)
If Not ret = 0 Then
SBO_Application.MessageBox("set Login Context failed!")
Exit Sub
End If
ret = oDICompany.Connect()
If Not ret = 0 Then
SBO_Application.MessageBox("Company Connect failed!")
End If
Maybe you are looking for
-
Sender File Adapter not able to get file via FTP from an external system
Hi, I have a Sender File Adapter using FTP which polls a server every 10 seconds looking for a file ".xml". The adapter will connect and pick up the waiting file, but sometimes the adapter not able to get file via FTP from an external system. The fi
-
How To Generate And Print Reports In PDF Format From EBS With The UTF8 Char
Hi, I want to know How To Generate And Print Reports In PDF Format From EBS With The UTF8 Character Set in R12.0.4. Regards
-
ACR 6.1 vs DXO Lens Correction?
I have been experimenting with the lens correction module in ACR 6.1, which has profiles for two lenses I own, the Nikkor AF-S 18-70mm f/3.5-4.5 G and the Nikkor AF-S 70-200mm f/2.8 G IF-ED VR, and am quite pleased with the results. The 18-70 lens is
-
Education pricing and Corporae Discount
Can I use education pricing adn an employee purchase program benefit discount? I can't seem to make the too chow up together only one or the other.
-
Why do I have double ups of installations of Applications
I have the following installed applications Photoshop CC & Photoshop CC (2014) Illustrator CC & Illustrator CC (2014) Dreamweaver CC & Dreamweaver CC (2014) Muse CC & Muse CC (2014.2) x 2 times Can anyone tell me why this has happened? Will I need t