Need Help in generating unique ST02&SE02 values in Multiple PO Transaction
Hi All,
We have a requirement where we need to send multiple PO's in a single transaction using the EDI X12 over Generic Exchange protocol.We could successfullly validate and generate a EDI flat file which contains multiple PO's. But, the ST02 & corresponding SE02 values which are getting generated for multiple PO's are not unique,they are same for all PO's.
But, I want all the different PO's ST02 and SE02 values to be unique.Currently,I am using #ControlNumber# in my EDI XML file to generate these values in EDI flat file.
Please do let me know how to achieve this.
Thanks in Advance.
Regards,
Kaavya
Hi Kaavya,
To address this usecase, please use EDI batching.
Please refer to http://www.oracle.com/technology/products/integration/b2b/pdf/B2B_TN_012_EDI_OutBound_Batching.pdf
Regards,
Dheeraj
Similar Messages
-
Need help in generating the ranks
Hi,
I need some help in generating the ranks from 1 to 6 for each order_id
based on the item_cnt
Order_Id 100 with the Item_cnt 217,112,89,76,55,39 to be ranked from 1 to 6
Order_Id 200 with the Item_cnt 29,25,22,19,13,13 to be ranked from 1 to 6
Order_id 300 with the Item_cnt 15,7,6,6,6,4 to be ranked from 1 to 6
SOURCE DATA TABLE : ORD_TEST
ORDER_ID ORDER_IN_DATE ORDER_OUT_DATE ITEM_CNT
100 9/11/2012 9/12/2012 217
100 9/13/2012 9/15/2012 112
100 9/14/2012 9/17/2012 89
100 9/13/2012 9/16/2012 76
100 9/12/2012 9/15/2012 55
100 11/9/2012 11/18/2012 39
100 9/14/2012 9/18/2012 37
100 9/20/2012 9/22/2012 32
200 11/9/2012 11/18/2012 29
200 9/13/2012 9/15/2012 25
200 9/12/2012 9/15/2012 22
100 9/12/2012 9/14/2012 22
100 9/13/2012 9/17/2012 20
200 9/14/2012 9/17/2012 19
100 9/14/2012 9/16/2012 19
100 9/13/2012 9/18/2012 18
100 9/12/2012 9/19/2012 15
300 9/11/2012 9/12/2012 15
200 9/12/2012 9/16/2012 13
200 9/22/2012 9/29/2012 13
200 9/13/2012 9/17/2012 12
200 10/5/2012 10/8/2012 9
300 9/12/2012 9/18/2012 7
300 9/12/2012 9/17/2012 6
300 10/6/2012 10/10/2012 6
300 4/25/2013 4/27/2013 6
300 10/6/2012 10/9/2012 4
300 9/16/2012 9/23/2012 2
100 10/5/2012 10/8/2012 1
200 9/11/2012 9/12/2012 1
QUERY OUTPUT NEEDED IS
ORDER_ID ORDER_IN_DATE ORDER_OUT_DATE ITEM_CNT RNK
100 9/11/2012 9/12/2012 217 1
100 9/13/2012 9/15/2012 112 2
100 9/14/2012 9/17/2012 89 3
100 9/13/2012 9/16/2012 76 4
100 9/12/2012 9/15/2012 55 5
100 11/9/2012 11/18/2012 39 6
200 11/9/2012 11/18/2012 29 1
200 9/13/2012 9/15/2012 25 2
200 9/12/2012 9/15/2012 22 3
200 9/14/2012 9/17/2012 19 4
300 9/11/2012 9/12/2012 15 1
200 9/12/2012 9/16/2012 13 5
200 9/22/2012 9/29/2012 13 6
300 9/12/2012 9/18/2012 7 2
300 9/12/2012 9/17/2012 6 3
300 10/6/2012 10/10/2012 6 4
300 4/25/2013 4/27/2013 6 5
300 10/6/2012 10/9/2012 4 6
Below is the script
CREATE TABLE ORD_TEST (ORDER_ID NUMBER, ORDER_IN_DATE
DATE,ORDER_OUT_DATE DATE, ITEM_CNT NUMBER)
INSERT INTO ord_test VALUES
(100,TO_DATE('9/11/2012','MM/DD/YYYY'),TO_DATE('9/12/2012','MM/DD/YYYY'),217);
INSERT INTO ord_test VALUES
(100,TO_DATE('9/13/2012','MM/DD/YYYY'),TO_DATE('9/15/2012','MM/DD/YYYY'),112);
INSERT INTO ord_test VALUES
(100,TO_DATE('9/14/2012','MM/DD/YYYY'),TO_DATE('9/17/2012','MM/DD/YYYY'),89);
INSERT INTO ord_test VALUES
(100,TO_DATE('9/13/2012','MM/DD/YYYY'),TO_DATE('9/16/2012','MM/DD/YYYY'),76);
INSERT INTO ord_test VALUES
(100,TO_DATE('9/12/2012','MM/DD/YYYY'),TO_DATE('9/15/2012','MM/DD/YYYY'),55);
INSERT INTO ord_test VALUES
(100,TO_DATE('11/9/2012','MM/DD/YYYY'),TO_DATE('11/18/2012','MM/DD/YYYY'),39);
INSERT INTO ord_test VALUES
(100,TO_DATE('9/14/2012','MM/DD/YYYY'),TO_DATE('9/18/2012','MM/DD/YYYY'),37);
INSERT INTO ord_test VALUES
(100,TO_DATE('9/20/2012','MM/DD/YYYY'),TO_DATE('9/22/2012','MM/DD/YYYY'),32);
INSERT INTO ord_test VALUES
(200,TO_DATE('11/9/2012','MM/DD/YYYY'),TO_DATE('11/18/2012','MM/DD/YYYY'),29);
INSERT INTO ord_test VALUES
(200,TO_DATE('9/13/2012','MM/DD/YYYY'),TO_DATE('9/15/2012','MM/DD/YYYY'),25);
INSERT INTO ord_test VALUES
(200,TO_DATE('9/12/2012','MM/DD/YYYY'),TO_DATE('9/15/2012','MM/DD/YYYY'),22);
INSERT INTO ord_test VALUES
(100,TO_DATE('9/12/2012','MM/DD/YYYY'),TO_DATE('9/14/2012','MM/DD/YYYY'),22);
INSERT INTO ord_test VALUES
(100,TO_DATE('9/13/2012','MM/DD/YYYY'),TO_DATE('9/17/2012','MM/DD/YYYY'),20);
INSERT INTO ord_test VALUES
(200,TO_DATE('9/14/2012','MM/DD/YYYY'),TO_DATE('9/17/2012','MM/DD/YYYY'),19);
INSERT INTO ord_test VALUES
(100,TO_DATE('9/14/2012','MM/DD/YYYY'),TO_DATE('9/16/2012','MM/DD/YYYY'),19);
INSERT INTO ord_test VALUES
(100,TO_DATE('9/13/2012','MM/DD/YYYY'),TO_DATE('9/18/2012','MM/DD/YYYY'),18);
INSERT INTO ord_test VALUES
(100,TO_DATE('9/12/2012','MM/DD/YYYY'),TO_DATE('9/19/2012','MM/DD/YYYY'),15);
INSERT INTO ord_test VALUES
(300,TO_DATE('9/11/2012','MM/DD/YYYY'),TO_DATE('9/12/2012','MM/DD/YYYY'),15);
INSERT INTO ord_test VALUES
(200,TO_DATE('9/12/2012','MM/DD/YYYY'),TO_DATE('9/16/2012','MM/DD/YYYY'),13);
INSERT INTO ord_test VALUES
(200,TO_DATE('9/22/2012','MM/DD/YYYY'),TO_DATE('9/29/2012','MM/DD/YYYY'),13);
INSERT INTO ord_test VALUES
(200,TO_DATE('9/13/2012','MM/DD/YYYY'),TO_DATE('9/17/2012','MM/DD/YYYY'),12);
INSERT INTO ord_test VALUES
(200,TO_DATE('10/5/2012','MM/DD/YYYY'),TO_DATE('10/8/2012','MM/DD/YYYY'),9);
INSERT INTO ord_test VALUES
(300,TO_DATE('9/12/2012','MM/DD/YYYY'),TO_DATE('9/18/2012','MM/DD/YYYY'),7);
INSERT INTO ord_test VALUES
(300,TO_DATE('9/12/2012','MM/DD/YYYY'),TO_DATE('9/17/2012','MM/DD/YYYY'),6);
INSERT INTO ord_test VALUES
(300,TO_DATE('10/6/2012','MM/DD/YYYY'),TO_DATE('10/10/2012','MM/DD/YYYY'),6);
INSERT INTO ord_test VALUES
(300,TO_DATE('4/25/2013','MM/DD/YYYY'),TO_DATE('4/27/2013','MM/DD/YYYY'),6);
INSERT INTO ord_test VALUES
(300,TO_DATE('10/6/2012','MM/DD/YYYY'),TO_DATE('10/9/2012','MM/DD/YYYY'),4);
INSERT INTO ord_test VALUES
(300,TO_DATE('9/16/2012','MM/DD/YYYY'),TO_DATE('9/23/2012','MM/DD/YYYY'),2);
INSERT INTO ord_test VALUES
(100,TO_DATE('10/5/2012','MM/DD/YYYY'),TO_DATE('10/8/2012','MM/DD/YYYY'),1);
INSERT INTO ord_test VALUES
(200,TO_DATE('9/11/2012','MM/DD/YYYY'),TO_DATE('9/12/2012','MM/DD/YYYY'),1);
select * from ord_test order by item_cnt desc;
Thank youHi,
That's called a Top-N Query , and here's one way to do it:
WITH got_rnk AS
SELECT o.*
, ROW_NUMBER () OVER ( PARTITION BY order_id
ORDER BY item_cnt DESC
) AS rnk
FROM ord_test o
SELECT *
FROM got_rnk
WHERE rnk <= 6
ORDER BY order_id
, rnk
;Analytic functions (such as ROW_NUMBER) are computed after the WHERE clause is applied. If you want tio use the results of an analytic function in a WHERE clause, then you can compute the analytic function in a sub-query (such as got_rnk above), and then use that value in the WHERE clause of a super-query. -
Need help in generating L4 Traffic monitor logs
Hi,
As a part of my project I need to study different types of logs produced by Cisco IronPort. I could generate some access and authentication logs however not sure about generating the L4 Traffic Monitor logs. Can anyone point me to right documentation that will help me generate those logs?
Thanks,
Harshad KashikarHarshad,
L4 Traffic Monitoring needs to be configured within the IronPort - first question is do you have a SPAN/TAP port set up on your switch to capture L4 traffic?
Second, I only use this feature to capture information on malware/spyware - I have seen P2P, IRC, and 'phone-home' traffic amongst other things. Do you have an infected host you can monitor?
BF -
Need help with MAX function to return values
I am trying to create a report to return slow moving inventory data. One of the requests is that it return only the latest date that an item transacted upon. One sheet will show the last receipt date for a part, another will show the last time a part was issued or shipped on a sales order.
The hiccup is that it is returning every single last time that an item was received, and every single last issuance of the material (on the second sheet) of items on hand.
Could someone help me to define the max value function? As listed below, and many variations, the sheet comes up with no data or corrupt dates.
MAX(Transaction Date MAX) OVER(PARTITION BY Material Transactions.Item ORDER BY Material Transactions.Item )
Still returns both the following when in reality I just want the one with the most recent date (April 2010).
100034 BNDSCE-105 - QUALITY BEARINGS OR EQUIVILANT A400M AB01D.. $0.00 WIP component issue 11-Sep-2009 -3
100034 BNDSCE-105 - QUALITY BEARINGS OR EQUIVILANT A400M AD01D.. $0.00 WIP component issue 13-Apr-2010 -16
Thank you for your assistance.
BeckaHi Becka
It does look correct. When I look at your data I can see 2 different items:
100034 BNDSCE-105 - QUALITY BEARINGS OR EQUIVILANT A400M AB01D.. $0.00 WIP component issue 11-Sep-2009 -3
100034 BNDSCE-105 - QUALITY BEARINGS OR EQUIVILANT A400M AD01D.. $0.00 WIP component issue 13-Apr-2010 -16
One is AB01D and the other being AD01D. Is this expected?
To get the right date you might want to PARTITION BY the BNDSCE-105 which might be the Item Number?
If you can get your calculation to return the correct date then you next need to put in a new condition where the Transaction Date = MAX Transaction Date
One part of the function that I would question is the use of MAX in both parts like this: MAX(Transaction Date MAX). You might be better just using MAX(Transaction Date) OVER ......
Does this help?
Best wishes
Michael -
Need help with clickbios ii terminolgy and values. Z77A-GD65 / 3770k
Hello All
I recently purchased a Z77A-GD65 board and after searching I've found the differences in terminology between this and my previous Asus board but still have a couple of settings I cant find any info on.
System Specs:
motherboard: msi z77a-gd65
cpu: intel 3770k
ram: corsair vengeance 2133mhz 1.5v
psu: corsair 850w
First things first is I believe I am running in turbo oc mode. I've selected the oc genie tab on the center right of the bios screen and proceeded to change settings there. With cpu voltage on auto and vdroop set to 50% at 4.6ghz. (I'll try and get screenshots of bios settings soon)
The following are the terms I need help with:
In the my oc genie section;
1. Long duration power limit
2. Long duration maintained
3. Short duration power limit
In the main overclocking section;
4. Digital Compensation level (not in owners manual, options auto/high)
5. Cpu core ocp expander (enabled for overclock 4.5ghz+?)
In the CPU Features section;
6. long duration power limit w (does "w" stand for watts?)
7. long duration maintained s (does "s" stand for seconds?)
8. short duration power limit
9. primary plane current limit a (does "a" stand for amps?)
10. secondary plane current limit
11. primary plane turbo power limit
12. secondary plane turbo power
I know those are a lot of settings, but would appreciate any simple definitions as to what they do and recommended values for mild overclocking (4.5-4.80)
Also on my previous board (Asus P8P67 Pro) my 3770k was stable in prime95 for 18 hrs at 4.5ghz fixed 1.155v with only ram timings put in manually and LLC set to extreme.(or whatever max is called in asus bios) Voltage was fixed and everything else was defailts.Well I'm back. Been digging around for a few days and found some answers to my questions.
First things first s that for some reason I could not adjust voltage values with the + or - symbols. Clearing cmos did not help this. I had to reflash the bios to get this functionality back as well as clearing cmos before and after the flash.
So I figured out the values in the oc genie section are the same as the normal section but only used when your using the oc genie. (numbers 1-3)
Digital compensation level and ocp expander should be set to high and enabled respectively when going for higher overclocks. (4 and 5)
Now for the rest of my questions ( 6 through 12) I have found suggested settings and some info after hours and hours of searching but still have a couple of questions about them.
Long/short duration power limit, and primary/secondary plane turbo limit. I see suggestion settings of 250 or 255. I take it this is simply max supplied watts to the chip? If so why the 250/255 values? Is that the highest the board will give? Is plane turbo limit related to the enhanced turbo stated and how much wattage can be drawn there while the other limit is for any non turbo frequencies?
Long duration maintained, I've seen 60 suggested a lot. Why is this?
There's not an over abundance of info on these boards as compared to asus so it seems info is a little less documented and video tutorials explaining things are next to none.
Any help would be appreciated. Thanks -
Need Help with complex query and computing values
I have an issue trying to combine data from several tables. I need help trying to compute the "Total Hours", "Max Pressure" ,"Average Pressure" while displaying the "Manufacturer",
"Part Type" , "Serial Number", "District", "Status","Truck Type",and "truck number" for a certain Part on all Trucks. I need to be able check and see if the serial number was on
a particular job and calculate the hours of that serial number if it was on that job and the jobdate falls between the install date and removal date. Ive tried but keep getting either
repeating rows, total hrs of the truck instead of the serial number. Ive considered doing a pivot to display it but have been having trouble putting it together.
table 1
(*records of parts*)
Contains serial number,truck number, part type, part number, install date, removal date, status
table 2
(*records of Jobs*)
contains Jobnumber, JobStartdate, Max pressure, average pressure, and Totalhrs
table 3
(records related to jobs and trucks)
contains jobnumber, district , and truck numbers
Table 4
(records of manufacturers and part numbers)
contains partnumber, manufacturer name, and truck type
I would like to get it to show like below
SerialNo PrtType
MFG TruckNo
TrkType TtlHrs
MaxPr AvgPr
Status
Dst
AB345 1200series
NGK 2G34
Boss X 400 10,000
9500 NonOp
NE
Thanks in advanceHope this helps
Note: (Date of Mar 1 2014 was just extended to a further date so the system would know that its still operating when calculating current hours)
Table 1
SerialNo TruckNo InstallDate RemovalDate Status PartNo PartType
BJ1002 F917 2013-09-17 2014-03-01 Oper L871235 BJ 3000 GL
CWS1002 F104 2012-11-21 2013-03-29 NonOper L76088-450 CWS 2000
CWS1003 F104 2013-04-24 2013-08-01 NonOper L76088-450 CWS 2000
CWS1005 F187 2012-11-21 2013-04-04 NonOper L76088-450 CWS 2000
CWS1006 F187 2013-04-24 2013-06-30 NonOper L76088-450 CWS 2000
CWS1007 F187 2013-06-30 2013-03-01 Oper L76088-450 CWS 2000
CWS1009 2F60 2013-05-05 2013-03-01 Oper L76088-450 CWS 2000
CWS1011 F809 2013-05-28 2013-08-28 NonOper L76088-400 CWS 2000
CWS1013 F990 2013-06-11 2013-10-29 NonOper L76088-450 CWS 2000
CWS1015 F783 2013-06-28 2013-03-01 Oper L76088-450 CWS 2000
Table 2
JobNumber Date District PrAvTreat PrMaxTr TotalHrs
553811287 2012-01-19 Fairmount 7337 8319 1.53
652110088 2012-08-20 San Antonio 6340 7075 0.47
652110090 2012-08-21 San Antonio 6134 7131 0.62
652110091 2012-08-22 San Antonio 6180 2950 0.58
652110092 2012-08-23 San Antonio 5959 6789 0.64
652110093 2012-08-23 San Antonio 6165 7466 0.62
Table 3
TruckNo District JobNumber
1F01 Odessa 10011012329
1F01 Odessa 10011012333
1F01 Odessa 10011014831
1F01 Odessa 10011014834
1F01 Odessa 10011012332
1F01 Odessa 10011012328
1F01 Odessa 10011014829
Table 4
PartNumber Manufacturer TruckType
L322020-2 Jimmy Dean Ford T
L322738-2 Lucas Ford T
L47869-1 Jimmy Dean Ford T
L76070-650 NGK Ford T
Sam Howard -
Need help regarding complex calculation using Max value and limiting data after Max date in MDX
I am working on a bit complex calculated measure in SSAS cube script mode.
Scenario /Data Set
Date
A
B
C
A+B
5/29/2014
Null
34
Null
34
6/30/2014
Null
23
45
68
7/15/2014
25
-25
Null
0
8/20/2014
-34
Null
Null
-34
9/30/2014
25
Null
60
25
10/15/2014
45
-45
Null
0
11/20/2014
7
8
Null
15
a) Need to capture latest non-null value of Column C based on date
with above example it should be 60 as of 9/30/2014
b) Need to capture column A+B for all dates.
c) Add values from column (A+B) only after latest date which is after 9/30/2014.
with above example it's last 2 rows and sum is 15
d) Finally add value from step a and step c. which means the calc measure value should be = 75
I need to perform all this logic in MDX. I was able to successfully get step a and b in separate calc measure, however i am not sure how to limit the scope based on certain date criteria. In this case it's, date> Max date(9/30/2014) . Also how should
i add calculated members and regular members?
I was able to get max value of C based on date and max date to limit the scope.
CREATE MEMBER CURRENTCUBE.[Measures].[LatestC] AS
TAIL(
NONEMPTY(
[Date].[Date].CHILDREN*[Measures].[C]),1).ITEM(0) ,visible=1;
CREATE MEMBER CURRENTCUBE.[Measures].[MaxDateofC] AS
TAIL(
NONEMPTY(
[Date].[Date].CHILDREN,[Measures].[C]),1).ITEM(0).MemberValue ,visible=1;
Please help with Scope statement to limit the aggregation of A+B for dates > MaxDateofC? Also further how to add this aggregation value to LatestC calc measure?
Thank YouHi Peddi,
I gave TRUNC to both of the dates. But still the same issue. I think the problem is in returning the BolbDomain.
return blobDomain;
} catch (XDOException xdoe) {
System.out.println("Exception in XDO :");
throw new OAException("Exception in XDO : "+xdoe.getMessage());
catch (SQLException sqle) {
System.out.println("Exception in SQL :");
throw new OAException("SQL Exception : "+sqle.getMessage());
catch (OAException e) {
System.out.println("Exception in OA :");
throw new OAException("Unexpected Error :: " +e.getMessage());
Thanks and Regards,
Myvizhi -
HELP! I need help to understand how to get value on radio buttons!
hello,
I realy need the help from anyone that knows how to get value from radio buttons in a JSP.
I have this :
<%
java.util.Vector vLinha = (java.util.Vector) datos.get("ConsNefect");
java.util.Hashtable ordens;
java.util.Enumeration eLinha = vLinha.elements();
String t = "radio";
String x = "escolha";
String l = "";
int i = 0;
//int esc = 0;
String fila = "";
boolean bol = true;
while (eLinha.hasMoreElements())
ordens = (com.ibm.dse.base.Hashtable) eLinha.nextElement();
if (++i%2 == 0)
fila = "formgriscla";
else
fila = "formgrisosc";
out.println("<tr>");
out.println("<td class=\"" + fila + "\">");
out.print("<p class=\"dato2\">");
out.print("<a href=" + urls.get("action"));
out.print("&sequencia=" + (String) ordens.get("sequencia"));
out.print(">");
out.print((String) ordens.get("descricao"));
out.print("</a></p></td>");
out.println("<td class=\"" + fila + "\">");
out.print("<p class=\"datop\">");
out.print((String) ordens.get("datap"));
out.print("</p>");
out.println("<td class=\"" + fila + "\">");
out.print("<p class=\"datop\">");
out.print((String) ordens.get("erro"));
out.print("</p>");
out.println("<td class=\"" + fila + "\">");
out.print("<p class=\"datop\">");
l = (String) ordens.get("sequencia");
out.println("<input type=\"" + t + "\" name=\"" + x + "\" value=\"" + l + "\">");
out.print("</p></td>");
out.println("</tr>");
//esc++;
%>
<!--input type="Hidden" name="escolha" value=<!--%l%>-->
<!--input type="Hidden" name="escolha" value="<!--%=escolha%>"-->
</td>
</tr>
I don�t know how to take the value... PLEASE HELP ME OUT!
THANKS TO ALL!,
Best wishes,
Alex (portugal)You must wrap your contents into a FORM element and, then, using getParameter("escolha"), retrieve your value.
-
Need help with generating keys from xml
Hello,
I am just learning about JCE and am haveing some problems with implementing a basic program.
I have the following information:
<RSAKeyValue>
<Modulus>Base64EncodedString</Modulus>
<Exponent>Base64EncodedString</Exponent>
<P>Base64EncodedString</P>
<Q>Base64EncodedString</Q>
<DP>Base64EncodedString</DP>
<DQ>Base64EncodedString</DQ>
<InverseQ>Base64EncodedString</InverseQ>
<D>Base64EncodedString</D>
</RSAKeyValue>
From which I need to construct a public and private key. I am using RSA algorithm for the encrypting and decrypting. I am using the org.bouncycastle.jce.provider.BouncyCastleProvider provider. Any help would be greatly appreciated.
My questions are:
1) Is it possible to create the public and private key from this data?
2) How can I construct a public and private key from this data.
Thank you in advance.
Sunit.Thanks for your help...I am still having problems.
I am now creating the public and private keys. I am generating the public exp, modulus, private exp, and the encrypted text from another source.
so my questions are:
1) How do I verfiy that the private and public keys that I generate are valid?
2) How do I get the decrypted text back in a readable form?
3) the decrypted text should read "ADAM"
Here is a test I wrote:
_________________STARTCODE_____________________
import java.security.*;
import java.security.spec.*;
import javax.crypto.*;
import javax.crypto.spec.*;
import java.math.BigInteger;
import org.bouncycastle.jce.provider.BouncyCastleProvider;
public class CryptTester
protected Cipher encryptCipher = null;
protected Cipher decryptCipher = null;
private KeyFactory keyFactory = null;
protected PublicKey publicKey = null;
protected PrivateKey privateKey = null;
private RSAPublicKeySpec publicKeySpec = null;
private RSAPrivateKeySpec privateKeySpec = null;
public CryptTester()
/* Create Cipher for asymmetric encryption (
* e.g., RSA),
try
encryptCipher = Cipher.getInstance("RSA", "BC");
System.out.println("Successfully got encrypt Cipher" );
decryptCipher = Cipher.getInstance("RSA", "BC");
System.out.println("Successfully got decrypt Cipher" );
keyFactory = KeyFactory.getInstance("RSA" , "BC");
System.out.println("Successfully got keyFactory" );
}catch ( NoSuchAlgorithmException nsae)
System.out.println("Exception1: " + nsae.toString() );
catch ( NoSuchPaddingException nspe)
System.out.println("Exception2: " + nspe.toString() );
catch ( java.security.NoSuchProviderException nspe)
System.out.println("Exceptiont6: " + nspe.toString() );
/* Get the private and public keys specs
BigInteger publicMod = new BigInteger ("86e0ff4b9e95bc6dcbfd6673b33971d4f728218496adcad92021923a9be815ddb7ecf17c06f437634c62fa999a293da90d964172a21d8ce74bd33938994fbd93377f7d83ce93d523782639c75221a3c91b53927a081b2b089a61770c6d112d78d5da8a6abc452d39a276787892080d6cf17dd09537c1ec5551d89567345068ef", 16);
BigInteger publicExp = new BigInteger ("5");
BigInteger privateExp = new BigInteger ("50ed65fa2bf3710ead980a456b88dde62de4e0e9", 16);
publicKeySpec = new java.security.spec.RSAPublicKeySpec( publicMod, publicExp );
privateKeySpec = new java.security.spec.RSAPrivateKeySpec( publicMod, privateExp);
try
privateKey = keyFactory.generatePrivate(privateKeySpec);
publicKey = keyFactory.generatePublic(publicKeySpec);
}catch ( InvalidKeySpecException ivse)
System.out.println("Exception3: " + ivse.toString() );
try
* initialize it for encryption with
* recipient's public key
encryptCipher.init(Cipher.ENCRYPT_MODE, publicKey );
decryptCipher.init(Cipher.DECRYPT_MODE, privateKey );
}catch ( InvalidKeyException ivse)
System.out.println("Exception4: " + ivse.toString() );
public String getPublicKey()
//return new String(publicKey.getEncoded());
return publicKey.toString();
public String getPrivateKey()
// return new String(privateKey.getEncoded());
return privateKey.toString();
public String encryptIt(String toencrypt)
* Encrypt the message
try
byte [] result = null;
try
result = encryptCipher.doFinal(toencrypt.getBytes());
catch ( IllegalStateException ise )
System.out.println("Exception5: " + ise.toString() );
return new String(result);
}catch (Exception e)
e.printStackTrace();
return "did not work";
public String decryptIt(String todecrypt)
* decrypt the message
try
byte [] result = null;
try
result = decryptCipher.doFinal(todecrypt.getBytes());
catch ( IllegalStateException ise )
System.out.println("Exception6: " + ise.toString() );
return new String(result);
}catch (Exception e )
e.printStackTrace() ;
return "did not work";
public static void main(String[] args)
try
Security.addProvider(new BouncyCastleProvider());
CryptTester tester = new CryptTester();
String encrypted = "307203c3f5827266f5e11af2958271c4";
System.out.println("Decoding string " + encrypted + "returns : " + tester.decryptIt(encoded) );
} catch (Exception e)
e.printStackTrace();
_________________ENDPROGRAM_____________________ -
Need help to generate "where current of" from ODBC
Hi
I am trying to develop a small stand-alone program which uses Oracle Drivers.
I have installed PERL and came up with a code (structure) like below
But I dont know how to use the current cursor reference with a statement
This is what I came up with
use Win32::ODBC;
my($db) = new Win32::ODBC("dsn=TEST_DSN; uid=TEST; pwd=TEST");
$db->SetStmtOption(SQL_CURSOR_TYPE,SQL_CURSOR_KEYSET_DRIVEN);
$db->SetStmtOption(SQL_ROWSET_SIZE,10);
$db->SetCursorName("abc");
$cursth = $db->prepare('SELECT * FROM pos_update_table testupdate where val=1 FOR UPDATE');
$cursth->execute;
print $db->GetCursorName;
while ($cursth->fetch) {
$updsth = $db->prepare("update pos_update_table set val=val+100 WHERE CURRENT OF $cursth->{CursorName}");
$updsth->execute;
$db->commit;
$db->Close();
Thanks in advance
PS: The table has one row and the intention is to update the row using where current of clause.
Message was edited by:
k.venkatThanks Justin for your reply.
I am aware of I dont need a cursor for updating single row..but from one of the applications (which uses ORACLE ODBC) i get this ODBC error "no rows updated" if I hit on save button twice (from the application)
The ODBC trace shows "where current of" clause and in the database (ORACLE 9.2) shows "update tablename set ...where rowid = "
Now I am trying to test the ODBC and trying to generate the same Statements (with where current of)
and fyi: PERL/WIN32:ODBC supports where current of coding-style (source: http://www.codeproject.com/books/1578700671.asp ..search for 'where current of')
The point is I dont want to manually grab the rowid and use it for update..Instead I want the ODBC write its own statement
Thanks
Venkat -
Need help in use of application item - value to be changed dynamically
HI ,
i have created a application item and i want to change the value of the application item when user link the URL link
for eg- I have two link -
htp.p('<tr><td>AABB<td>');
(a href="f?p=&APP_ID.:6:&SESSION..:F129_DB_NM:XXXXX">page 1)
htp.p('</a></td>');
(a href="f?p=&APP_ID.:6:&SESSION..:F129_DB_NM:YYYY">page 2);
htp.p('</a></td>');
If user click first link then i want the value of application item shuld chnage to XXXXX and it pass the same to page 1.
and vice versa.There is no if condition in this.
Please let me know on this.What i need to do in this more.
Edited by: 946963 on Oct 22, 2012 4:06 AM946963 wrote:
thanks for this .I have links with me its working fine.
Problem is that it is not chnaging the value of application item .
When i click on first link then i want to pass value XXXX for applicationitem for page 1 and value YYYY for page 2.This same value i have to pass further to page 3.
How can i do this Please let me know on this.Have you opened the link that I gave in my prev post??
//change your code to look like this
//notice the colons before your application item
htp.p('<tr><td>AABB<td>');
(a href="f?p=&APP_ID.:6:&SESSION..::::F129_DB_NM:XXXXX">page 1)
htp.p('</td>');
(a href="f?p=&APP_ID.:6:&SESSION..::::F129_DB_NM:YYYY">page 2);
htp.p('</td>'); -
Need Help to Generate Tablet Boot Performance Results through Win ADK 8.1!
I set up the WinADK 8.1 based on client-server model, and run winADK on the server to generate the boot performance (Fast Startup) results for the client: a windows 8.1 Tablet. The test was able to run and complete. There is neither warnings nor issues shown
in the results. However, No boot time shows either, and the analysis complete is "FALSE". It seems the analysis stage cannot be completed. Anyone knows how to solve this issue. On some other tests, the results are successfully generated.
Thanks,Hi,
How did you create the trace? If you want to create a boot trace, you can use tools like Xperf or XBOOTMGR performance recorder included in ADK\WPT, Use Xbootmgr.exe -trace boot to capture slow boots trace, detailed instructions are included in
these links
http://blogs.technet.com/b/jeff_stokes/archive/2012/09/17/how-to-collect-a-good-boot-trace-on-windows-7.aspx
http://blogs.technet.com/b/askpfeplat/archive/2012/06/09/slow-boot-slow-logon-sbsl-a-tool-called-xperf-and-links-you-need-to-read.aspx
For the failed test, check the event view and see if there're some valuable information for troubleshotting.
Yolanda Zhu
TechNet Community Support -
Need help to generate automatic sms(Short message service)
Does anybody can help me i.e. give some ideas with the automatic sms generation to pre-specified mobile number.
To do this with JDeveloper you need a SMS gateway that provides a Java API for their SMS services. Then you should be able to easily integrate that API with your JDeveloper/ADF project.
-
Spherical Video / Animation - Need help with a unique problem
Hi, could anyone help me which direction should I go with this issue:
I have a video / animation which is 2 unit long, 1 unit high. I would like to wrap it around a virtual sphere to create a video in which the viewer is able to decide which way to look. The same idea as behind Quick Time Spherical Panorama Photos - but this time it is a moving image. Any Quick Time Panorama Photos have the same 2:1 ration when extended flat, you wrap it around with a panorama software, and then you can "enter" it with quick time.
One or two software already exists which do the job with moving images (360 Spherical Video Viewer 4.02) but either they cannot deal with large files or belong to a company who would not give out their software without buying their whole system with cameras.
I need to solve this, but in such a way that:
1) the extended flat movie animation is large in terms of pixel dimension (around 6000*3000 pixel or 4000*2000) but short in time (4-8minutes) It is necessary to have such a large file because we always see a small part of the whole, and the visible part should be close to HD
2) should be on a loop
3) the mouse pointer is invisible even when we navigate inside the animation
4) full screen
Question: which program(s) will be able to solve (part of) this? Flash? Or a 3d program? Or the combination? Any further advice what to use in the given program? Any idea will be appreciated! Thank you!!I think you're probably in the wrong forum. The only Apple product I can think of that might be able to help you with this is Quartz Composer. You can wrap video onto a user-controlled sphere pretty easily (and much more besides). You may face performance issues with such a large video, however, and you'll need to experiment with codecs to balance data rate with decoding speed.
Quartz Composer is free and is part of the Developer Tools, freely downloadable from Apple and possibly on your system installation discs in the Options folder. -
Need help for generating textboxes in java script
hii,
yes,we are discussing about text boxes that are dynamically generated.the cursor should go from one textbox to another by pressing enter key.(suppose we are having three rows and three columns,
and each column textboxes are having the same name,then the cursor should move from one textbox of first column first row to second row first column textbox ..& like that.That means the cursor should move downwards.
if any one knows the code,please help me.hiii,
To move cursor from one textbox to another text box ,I have take the length of the textboxes of the first column.I used onkeyDown event .
in the function ,firest i checked the condition like
for(i=0;i<form1.box.length;i++) //box is the name of the textboxes
if(event.keyCode==13)
form1.box[i+1].focus();
return false;
by using this the cursor is moving from first text box to secon textbox and stops.
if i use event.returnValue=false; instead of return false ,then the cursor automatically going to the laxt textbox of the column.
my problem is how i can focus the cursor from one textbox to another textbox one after the other till the end.
if any one has solution please help me.
thanx.
Maybe you are looking for
-
Hello, everyone: I open one pdf document with Adobe Reader 9.3, but it appeared that "There was an error opening this document, the file is damaged and could not be repaired".. and I found that another several pdf document in the same folder that I h
-
can someone please help me because i really need this now
-
Adding a Drop Shadow to text in InDesign CS6
I have no character styles in my recent installation of Cloud InDesign CS6 and want to know how I import these effects.
-
How to redirect to other page in a dialogListener?
Hi All, I am using JDeveloper 11g with ADF BC. How to redirect to another page from a dialogListener of <af:dialog>? I have a page with a [Delete] button on it. When user click on the delete button, a confirmation dialog will appear to ask "Are you s
-
Importing Existing Stamps into Acrobat 9
Does anyone know how to load up an existing list of stamps into Acrobat 9? I know how to create and edit stamps. What I am trying to achieve is to simply cut and paste an esiting folder containing custom stamps into a new installation of acrobat 9. P