How do i display vector values to use for insesrting inot a database?
does anyone know how i can retrieve values from a vector and use this to insert into a database?
i have tied array but its not working..
here is part of my code:
Vector p=new Vector();
try{
//go to server n store values in vector p
SFlight f= new SFlight();
p=f.View(destination,date,time);
catch(Exception w)
System.out.println(w.getMessage());
//to insert values in the cache from server
int y=0;
String data[][]=new String [10][10];;
for(int i=0;i<p.size();i++)
//Flight is my serialisable class containing num,nam,etc
Flight tm=(Flight)p.elementAt(i);
data[y][0]=tm.num;
data[y][1]=tm.nam;
data[y][2]=tm.op;
data[y][3]=tm.des;
data[y][4]=tm.dat;
data[y][5]=tm.Nseat;
data[y][6]=tm.Stime;
y++;
//System.out.println(p.elementAt(1)); }
} try{
String query3="INSERT INTO Cache(FltName,Operator,Destination,Date,NumSeat,Ctime) VALUES (?????????);
int result3=Stmt.executeUpdate(query3);
if (result3==1)
System.out.println( "Record inserted successfully");
Stmt.close();
Conn.close();
else
System.out.println( "Record not inserted");
}try
catch (SQLException eq)
System.out.println("Exception in SQL occured at query level??");
return p;
can anyone please help me with this..its very important..
I appreciate the offer. However, for somestrange
reason, I have no shortage of people ready,willing,
and able to give me a good smack upside the
head.
Yeah, sorry, that's a bug in the reality matrix.
We'll get around that. In the meantime: wear ahelmet.
Franks and BEANS!!!!Yeah, but - how'd you get the beans above the franks?
Similar Messages
-
How to Download displayed output to Excel Using Bsp Application
Hi Experts,
please give me some idea because I am New In BSP.
How to Download displayed output to Excel Using Bsp Application.
If any sample code please do send me.
In my condition I am getting data in 2-3 table view formats on one page and i want download that in Excel.
please help me.
Regards & Thanks,
YogeshHi,
This is more a question for the BSP forum.
Anyway, as such it's realy easy since you can use HTML in order to import to Excel. All you need to do is add
runtime->server->response->set_header_field( name = 'Contnet-Type'
value = 'application/vnd.ms-excel' ).
runtime->server->response->delete_header_field( name = 'Cache-Control' ).
runtime->server->response->delete_header_field( name = 'Expires' ).
runtime->server->response->delete_header_field( name = 'Pragma' ).
Also check threads like
Download BSP data into Excel
export bsp-table to excel
Export BSP Table to Excel
Eddy
PS. Reward useful answers and earn points yourself -
How do i display input values (POV) for a table control field
Hi guyz !
How do i display input values (POV) for a field in table control,
i mean when user presses F4 on a table control field.
Please help.
Thanks
jahanPROCESS ON VALUE-REQUEST( F4 ) statement
Code to demonstrate how to perform a manual value help(F4) on a particular field using the PROCESS ON VALUE-REQUEST statement and how to return values back to a table control on the screen. For standard screen fields simply move the value to the appropriate screen field name.
* Screen flow logic........
PROCESS BEFORE OUTPUT.
*MODULE PBO_MODULE.
PROCESS AFTER INPUT.
*MODULE PAI_MODULE.
PROCESS ON VALUE-REQUEST. "F4
FIELD EKPO-EBELP MODULE help_ekpo.
MODULE help_ekpo INPUT.
**Transport values to table dynpro/screen table control
DATA: l_stepl LIKE sy-stepl,
l_indx LIKE sy-stepl.
DATA: dynpfields LIKE dynpread OCCURS 5 WITH HEADER LINE.
* Adjust for scroling within table control
CALL FUNCTION 'DYNP_GET_STEPL'
IMPORTING
povstepl = l_stepl
EXCEPTIONS
stepl_not_found = 0
OTHERS = 0.
l_indx = tc_ekpotable-top_line + l_stepl - 1.
"tc_ekpotable should already have been declared
REFRESH dynpfields.
CLEAR dynpfields.
dynpfields-fieldname = 'EKPO-EBELN'.
dynpfields-fieldvalue = '00010' "wa_ekpo-ebeln.
dynpfields-stepl = l_stepl.
APPEND dynpfields.
dynpfields-fieldname = 'EKPO-EBELP'.
dynpfields-fieldvalue = '00020' "wa_ekpo-ebelp.
dynpfields-stepl = l_stepl.
APPEND dynpfields.
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
dyname = 'SAPLZZ_EKKO' "Program name
dynumb = '0100' "Screen number
TABLES
dynpfields = dynpfields
EXCEPTIONS
OTHERS = 0.
ENDMODULE. " help_ekpo INPUT
reward points if it is usefull ..
Girish -
Time Capsule only works for one device at a time, how to make it capable to be used for multiple devices at times.
Please help to set it up, thanks in advanceYou need to give more info..
Firstly only works for what.. networking.. backup.. wireless. You need more nouns.. more adjectives... describe what you want and what fails.. then we can figure out why.
Most likely you have bridged it when it should be in router mode..
Most likely you are using Lion or ML which has the airport utility bridge the TC by default.
Change it to working as a router. That might help.
If you press reset button it will default back to router btw.
If you are on Lion.. use a real utility. http://support.apple.com/kb/DL1547 -
How can i write the below code using "For all entries"
Hi
How can we write the below code using "for all entries" and need to avoid joins...
Please help
SELECT aaufnr aobjnr aauart atxjcd a~pspel
agstrp awerks carbpl cwerks
INTO TABLE t_caufv
FROM caufv AS a
INNER JOIN afih AS b
ON aaufnr = baufnr
INNER JOIN crhd AS c
ON bgewrk = cobjid
AND c~objty = 'D'
WHERE ( a~pspel = space
OR a~txjcd = space
OR NOT a~objnr IN
( select OBJNR from COBRB AS e
WHERE objnr = a~objnr ) )
AND a~werks IN s_plant
AND a~auart IN s_wtype
AND NOT a~objnr IN
( select OBJNR from JEST AS d
WHERE objnr = a~objnr
AND ( dstat = 'A0081'OR dstat = 'A0018' )
AND d~inact 'X' ).
Reward points for all helpfull answers
Thanks
Ammi.Hi,
SELECT objnr objid aufnr
from afih
into table t_afih.
SELECT objnr
from JEST
into table t_JEST
where stat = 'A0045'
OR stat = 'A0046'
AND inact 'X'.
SELECT objnr
from COBRB
into table t_cobrb.
SELECT arbpl werks objid objty
from crhd
INTO table it_crhd
FOR ALL ENTRIES IN it_afih
WHERE objty eq 'D'
AND gewrk = it_afih-objid.
SELECT aufnr objnr auart txjcd pspel gstrp werks aufnr
FROM caufv
INTO table t_caufv
FOR ALL ENTRIES IN it_afih
WHERE aufnr = it_afih-aufnr
And pspel = ' '
AND txjcd = ' '
ANd objnr ne it_crhd-objnr
AND auart in s_wtype
AND werks in s_plant.
AND objnr ne it_jest-objnr.
dont use NE in the select statements, it may effect performance also. Instead use if statements inside
loops.
loop at t_caufv.
read table it_chrd............
if t_caufv-objnr ne it_chrd-objnr.
read table it_jest..........
if if t_caufv-objnr ne it_jest-objnr.
(proceed further).
endif.
endif.
endloop.
hope this helps.
Reward if useful.
Regards,
Anu -
I have a pdf file whose images are compressed in jpeg2000 format which the iPad doesn't support. I used Acrobat to save the pdf file using the zip compression for the images and another time using the jpg compression. I set this in the PDF Optimizer screen. The images in the pdf do not show up in the iPad.
I am not sure if I am doing something wrong. How do I know what compression was used for the images in a pdf file?My work around for now is "Make Compatible with…’ from Acrobat 4.0 " which does not support JPEG2000 compression.
http://forums.adobe.com/message/3847176#3847176 -
I think I uninstall the font on my system. How I can know wich fonts Itunes uses for install it?
I'm using Win Vista 64b - but I try already to install all my fot library but nothing happen,, still not able to see some menu's from lists, tabs titles, etc.
I search through itune's web site and not sign of info about how can I fix this problem...
help!It has something to do with Segoe fonts in your system.
Refer this link for solution
iTunes 10.1 Missing Text -
How do you display the capacity/free space for the hard drive on the desktop, under the hard drive icon.... I have seen this done, but I am not seeing any options to do so.... thanks.
View, Show View Options…, Show item info checkbox.
-
HT201250 How do I reformat a disk to use for Time Machine?
How do I reformat a disk to use for Time Machine?
The disk is from Seagate, a GoFlex Home unit that was used originally by someone else with a PC.Drive Preparation
1. Open Disk Utility in your Utilities folder.
2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Click on the Options button, set the partition scheme to GUID then click on the OK button. Set the format type to Mac OS Extended (Journaled.) Click on the Partition button and wait until the process has completed.
4. Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
5. Set the format type to Mac OS Extended (Journaled.) Click on the Security button, check the button for Zero Data and click on OK to return to the Erase window.
6. Click on the Erase button. The format process can take up to several hours depending upon the drive size. -
I need to know how to change the identity (email address) used for the iTunes store as I no longer use that email.
Settings > iTunes & App store.
Tap AppleID, sign out then sign back in.
The Apple ID is right everywhere else. I've synced the phone. I've reset it in Settings on the phone. I've changed it at Apple.
When you write, "I've changed it at Apple, this means you updated yoru old AppleID or you ceated a new AppleID? -
How can i display the values in the vector in a jsp using jstl
in a task i am recieving a vector in a jsp... how can i display those vector values in the jsp using jstl.... plz help me
thanks in advance<%
here you got vector say; v
pagecontext.setAttribute("varname",v);
%>
<c:forEach var="i" items="${varname}">
<c:out value="${i}">
</c:forEach> -
How do I display array values in a text field?
Hi there-
I have a small Flash movie I'm trying to complete, it's my
first go around with Flash 8 so I appreciate your patience:
I built an array with some actionscript which seems to work
fine (I can trace it and all is well in the trace window). Now I'm
simply trying to display it to my Flash movie screen and I've built
a dynamic text window which is working, except that I only ever get
the last array element to appear in the dynamic text window. I've
traced the code and see all of my array values, but when I use
"myResults_txt.text=picker_array;" I only see the last position's
value in my array. I tried playing with the "multiline" attribute
for the text field, it didn't seem to make any difference.
I'm sure it's probably something silly that I've missed, but
how do you display an array, with all of it's values to a dynamic
text field (I even tried using the textArea component but ran into
the same problem).
Thanks in advance for any help-
richThanks for your input. I tried just about everything but
ended up re-writing the contents of the array to a var and looping
through the var. Not my first choice but it got me to done.
Thanks again,
Rich -
How can I display the value of the Target Currency variable in my query
We have a query which has a key figure set to prompt for a Target Currency at runtime. Because the user did not want the currency displayed in each cell they used the NODIM function to remove it. They do however want to display the Target Currency in a cell within the report. Using Report Designer, I've tried to set up a Text Box to display this value, however, it is not in the list when looking at Constants, Filters or Variables or trying to display it in a Text box. Has anyone found a way to be able to do this?
Hi and thanks for the reply. I should have stated that because this was a validated query, we'd like to do this without modifying the query and thus having to go through another lengthy validation process. That's why we did not go the route of adding Unit to the query but we may have to. Another thing we can do is use a text variable in the headers that displays the currency. That works but, again, it's a query change whereas finding it in Report Designer will not require a query modification.
-
Hi,
I am using VSTS 2010 for performance testing and have a question about Extraction Rules functionality. Requirement below.
Example :
Server Response
<a>1</a>
<a>2</a>
<a>3</a>
<a>...</a>
we need to capture all the values with same left and right boundary. Along with the number of occurrence from the response. We need pass a random value in the
index where the index value will be between 0 - count of values with same left and right boundary.
How to find out the count of values with same left and right boundary.Thanks for Adrian's help.
Hi PChav,
Based on your issue, I think that the Adrian's suggestion is useful for you, so I suggest you could refer the Adrian's suggestion to check your issue.
In addition, I suggest you could also try the rogeorge's suggestion to create a custom extraction rule to do this.
Reference:
https://social.msdn.microsoft.com/Forums/vstudio/en-US/ccff9f7a-d5bc-45d5-80eb-c83f9fc0e103/how-to-capture-all-the-valuesoccurrence-using-extraction-rulescorrelation-in-web-test?forum=vstswebtest
Hope it help you!
Best Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
In the Info panel, how do I display pixel values as values, not as percentages?
I'm trying to show, using the eye dropper tool, the actual values of pixels in an 8-bit grayscale image (Mode command confirms that's what's there). In the Info panel, the eye dropper tool displays percentages for every type of color information (K, CMYK), while the "8-bit" field remains blank.
I've looked at Properties and pretty much everything else that I can find with no luck.
Photoshop CS6, 64 bit, Win7-64
Thanks!
Ian J.Ian Jaffray wrote:
Noel,
Thanks for your reply. I thought this had been fixed by recreating the Preferences file, but this morning I was back to percentages. I did have different settings in the Info Panel from the ones in your very helpful picture, and after I changed mine to match yours I now see 0-255 values in the R, G, B settings when using the eyedropper on this grayscale image.
Instead of RGB Color for the First Color Readout I had "Actual Color". This by itself causes percentages to be displayed. All options for the Second Color Readout all seem to produce percentages.
"Actual Color" is what I normally use for the first readout. In the case of a Grayscale document, it will display a K (black) value. For a RGB image, it will display R,G and B values. And so on.
When 8-bit is chosen for the value format, we expect a value of 0..255 to be displayed. As you know, that works fine for the RGB readout, but a Grayscale readout displays a percentage instead.
So if you set one of the readouts to RGB and 8-bit, you can get 0..255 values to be displayed for your Grayscale document.
When the document is Grayscale, the RGB values are a conversion from the document colour space to the RGB working space as defined in Edit > Color Settings. To get the true values of the pixels, the Grayscale document profile and RGB working space must be complementary (for lack of a better word). That's why, in my first reply, I said to use the following combinations:
Doc with sGray profile and RGB working space of sRGB.
Doc with Gray Gamma 2.2 profile and RGB working space of Adobe RGB.
Maybe you are looking for
-
Edit in Photoshop CS6 from Lightroom 4.1 fails
I am using LR 4.1 and PS CS6 on a Win7 64bit system. Previously with LR3 and LR4 I was able to "Edit in Photoshop" from Lightroom to CS5 and all was well. Now with LR4.1 and PS CS6 when I "Edit in Photoshop CS6" I get a partial image. Any image th
-
CC API lacks closedDocument networkEventSubscribe event all of a sudden?
Hey, I can't seem to get Photoshop CC under OSX (Mavericks and pre-mavericks) to dispatch a closedDocument event, has it been removed or has it's name changed? The plugin SDK for the AIR SDK and the Android SDK all mention it still, and it works nice
-
We currently have an ACS SE 1112 version 3.3.4.12. Windows Active Directory is being used to authenticate users. We have a new ACS (1113 running 4.1.1.23.5) that will be replacing this one. Regarding the new install, do I need to install a new remote
-
Configure context to return similar words
Dear experts, we have Oracle 11.2.0.4 and we are using context index. What needs to be done so that searching for the term 'center' will return center as well as centre automatically without the user having to do soundex search. Thanks.
-
Cursor Variable in Nested Block
Dear all, I have a package that has procedures that open cursor variables and print the queries of sample schema HR. There's one procedure that opens the cursor with an input integer to choose which query that wants to be fetched. The other prints th