Uccx range of triggers with a single application
I am using a range of triggers for one of my applications 1XXX. I am trying to get some reporting on the individual numbers dialed. I can get the number in the scripts by doing a Get Call Info - Dialed Number instead of Called Number.In 8.5 the Called Number Summary Activity Report shows the range in the report. It doesn't break down the numbers individually. I am seeing a report for "Dialed Number"
thanks for the reply Neal but in the Application Report there is not way to group by called number
We are looking for a quick tally based on the number called
Similar Messages
-
UCCX-Max JTAPI triggers that can be associated with a single script
Hi,
We are on UCCX 7.0(1)SR5 cluster. I would like to know if there is any maximum limit on the number of JTAPI triggers that can be associated with a single UCCX application/script. I have this requirement where in I will have to create 80+ JTAPI triggers and associate all of them to a single UCCX script. Will there be any impact on the performance with this approach?
My second question is- is there a limit on the number of sessions that can be associated with a single UCCX application?
Thanks,
DMThere is no need to have multiple chained CTI Route Points. The call should flow through UCM as follows:
Arrives from a PSTN gateway with a specific DNIS value per number. In most cases carriers will not give you the real toll-free number that was called but either another DNIS value representing each toll-free number; or, a portion of it such as the last four digits.
In many cases - but not necessarily required - customers then use translation patterns to change the provided value into a value that the CCX CTI Route Points are configured in. For example, if the provider is sending you a DNIS of 84XX of the toll-free calls and you want the CTI RPs to be 71XX, you can create a translation pattern that does exactly that.
You create a single trigger (assuming all the toll-free numbers go to the same script/application) and use a wildcard pattern of 71XX when creating it.
(More Optional) If the script needs to know the exact toll-free number that was dialed, you can use the Get Call Contact Info step to get the called number.
Otherwise the script wouldn't be aware that you've used wildcards in the route point. -
APEX 3.0 with Single Sign On for single application
Hi All,
I have been playing around with SSO (IAS 10.1.2) and an APEX application for the past couple of days and am still having problems.
I have followed the instructions word for word in the various how to documents named in this forum and am now at the point where I successfully redirect to SSO login page > login using a username created in OID (which is the same username/password in my application) > then get redirected back to "http://<MY_SSO_HOST>:7777/sso/auth"..
Some things about my instance:
1. Oracle DB > 10g 10.1.2
2. Oracle IAS > 10g 10.1.2 (different server to above)
3. APEX 3.0 > trying to run SSO authentication against a single application rather than the whole APEX instance.
4. I have (after a lot of grief - figured out that the DAD MUST be /pls/somedad and that the port number 80 must be defined in the SSO token regardless - those two little gems got me as far as I am..
Now I know very little about SSO and am trying to evaluate it for my application (which uses a DB login/password and has to continue to do so for other reasons which I do not control). I am assuming there is some method of synchronizing the OID/SSO repository with my db accounts but haven't yet figured that one out.
I cannot for the life of me see what's wrong here. Any ideas??Thanks Scott..
Okay let me go through the responses here..
...login using a username created in OID (which is the same username/password in my application)
My application overlays another Oracle application (old client server) which relies on physical database user accounts to perform its own internal grants etc. i.e. it uses where USER = blah all over the place.
Therefore my application is currently using the internal authentication scheme DATABASE (using DAD to resolve the credentials). In attempting to use SSO I am assuming that SSO must in some way be synched with my database (otherwise how does it pass any password changes applied in SSO to the database?)
Given that it's a base install (SSO) the only login I have there is the default orcladmin account. So I am trying to figure out how to get SSO to pass an acceptable login name/password to my application. My first attempt has been to create a user in OID that matches the DB login to see if SSO passes these on login - maybe I'm completely missing the point here??
...After login you get redirected to "http://<MY_SSO_HOST>:7777/sso/auth"? That's not right..
I have created/registered the application as per the how to guide using <my app name>.<my host>:<port> and setting the success URL to http://<my host>:<port>/pls/<mydad>/<my schema>.<custom success proc>
When I fire up my browser and go to http://<my host>/pls/<mydad>/f?p=9900:1 it sends me to the SSO login page. After entering my username and password I then end up with a HTTP 404 - not found page with the URL "http://<MY_SSO_HOST>:7777/sso/auth".
..You should think about getting to 10.2 at least, ..
Agreed but when I tried to upgrade the other day it fell in a big heap - so I backed it out to 10.1 again.
..I think I know what you mean. You installed the SSO SDK in a schema local to one workspace..
That is correct - had to do it as my instance has multiple applications and I want to check it works on this one before breaking anything else!
..No, that's not always the case. If you find that putting '80' in works in your configuration and leaving it out doesn't work then put it in..
I tried initially without the 80 but it threw errors whenever I tried to connect (these errors were APEX ones not SSO). On an off chance I put the 80 in there and presto it worked (in the sense that it redirected me to SSO anyway).
..Your application's use of a DB login/password is incongruous with using a different authentication method -- SSO or any other...
Given the constraints mentioned earlier (answer to first question above) I don't really have much choice. I have an Oracle application that uses DB accounts to authenticate users and authorize thier use of the app modules. What I need to do is 'wrap' and APEX application around this Oracle application to make it SOX compliant (it does not currently enforce password aging/structure etc.) So.. I was thinking that SSO might be the answer.
If SSO (used with OID) can enforce password aging and policies my intent is to have SSO 'manage' the user passwords for my APEX app (and it's underlying Oracle application). Hence the question about synching SSO with the underlying DB accounts. I thought the whole point of SSO/OID was to allow various enterprise apps to have thier authentication layers 'managed' by SSO - again maybe I'm misinterpreting this..
..if your application is working now with a non-SSO authentication scheme, then it should continue to work the same with SSO because after authentication, APP_USER is FRED in both cases..
Agreed - but how does SSO "know" to let a given user have access to that particular application?
Paul -
How to use Mulitple DAQs with a single triggered event on only one of the DAQs
I have three PXI6115 and would like to tie all these to a single triggered event on one of the DAQs. I've scaned the examples and any assistance would be greatly appreciated....
TCjr,
Please refer to your other post:
How to use Multiple DAQs with a single triggered event on only one of the DAQs -
I need to generate a still shot from from a video I made with my camera. I would like to accomplish this task using a single application. If this is not possible with my MacBook Pro as purchased from Apple, please recommend which applications I can purchase that include this feature. Thanks in advance.
For FREE do the following:
When you get to othe part of the video you want a still shot from, put the video on pause.
Take a screen shot: Apple>Shift>4 - which will produce a cross hair so you can manually select which part of the video you want.Check inside either your Applications or Utility folder for an app called Grab. Will do the above with just a single click.
If you still want to purchase software, suggest that you do a Google & MacUpdate search. This way, you can find exactly what you want. -
Problem with retrieving single digit date and month
Hello Sir,
I have the following code. Cuurently when I insert date in this format 1984/11/14 and also in this format 1984/11/4 and retrieve the following two dates, I could successfully populate the dates into the corresponding fields in the form. But earlier in the database, there are some records created in the following formats:
1984/3/1 and 1987/10/4(i.e.,yyyy/mm/dd).In the form when I try to populate them into their corresponding fields I am able to populate only 1984 into the year filed in the first case and in the second case I could populate 1987 and 10 into the year and month fields. I could not populate the values of the records with single digit either in month or day fields.
By observing the code, could you let me know what needs to be done in order to populate the previously created records with the single digit month and date.
This is the jsp for creating and editing the records.
<HTML>
<HEAD>
<TITLE> CRM Event Information </TITLE>
<script language="JavaScript" src="../javascript/misc.js"></script>
<script language="JavaScript">
function saveMe(methodHow) {
var elementNumber = CRMEvent.elements.length
var field1 = "";
var field2 = "";
var field3 = "";
var field4 = "";
var field5 = "";
var field6 = "";
var field7 = "";
var field8 = "";
for(i=0; i < elementNumber; i++){
submitForm.elements.name = CRMEvent.elements[i].name;
submitForm.elements[i].value = CRMEvent.elements[i].value;
for (k = 0; k < oneToMany1.addedItems.options.length; k++){;
if (addTemp.field1oneToMany1Value[k] == ""){
addTemp.field1oneToMany1Value[k] = "9999"
if (addTemp.field2oneToMany1Value[k] == ""){
addTemp.field2oneToMany1Value[k] = "99"
if (addTemp.field3oneToMany1Value[k] == ""){
addTemp.field3oneToMany1Value[k] = "99"
if (addTemp.field4oneToMany1Value[k] == ""){
addTemp.field4oneToMany1Value[k] = "9999"
if (addTemp.field5oneToMany1Value[k] == ""){
addTemp.field5oneToMany1Value[k] = " "
if (addTemp.field6oneToMany1Value[k] == ""){
addTemp.field6oneToMany1Value[k] = " "
if (addTemp.field7oneToMany1Value[k] == ""){
addTemp.field7oneToMany1Value[k] = " "
if (addTemp.field8oneToMany1Value[k] == ""){
addTemp.field8oneToMany1Value[k] = " "
if (eval(oneToMany1.addedItems.options.length - 1) == k){
field1 = field1 + addTemp.field1oneToMany1Value[k];
field2 = field2 + addTemp.field2oneToMany1Value[k];
field3 = field3 + addTemp.field3oneToMany1Value[k];
field4 = field4 + addTemp.field4oneToMany1Value[k];
field5 = field5 + addTemp.field5oneToMany1Value[k];
field6 = field6 + addTemp.field6oneToMany1Value[k];
field7 = field7 + addTemp.field7oneToMany1Value[k];
field8 = field8 + addTemp.field8oneToMany1Value[k];
}else{
field1 = field1 + addTemp.field1oneToMany1Value[k]+"|";
field2 = field2 + addTemp.field2oneToMany1Value[k]+"|";
field3 = field3 + addTemp.field3oneToMany1Value[k]+"|";
field4 = field4 + addTemp.field4oneToMany1Value[k]+"|";
field5 = field5 + addTemp.field5oneToMany1Value[k]+"|";
field6 = field6 + addTemp.field6oneToMany1Value[k]+"|";
field7 = field7 + addTemp.field7oneToMany1Value[k]+"|";
field8 = field8 + addTemp.field8oneToMany1Value[k]+"|";
submitForm.elements[eval(i)].name = "eventtype"
submitForm.elements[eval(i)].value = field1
submitForm.elements[eval(i+1)].name = "dd_crmstart"
submitForm.elements[eval(i+1)].value = field2
submitForm.elements[eval(i+2)].name = "mm_crmstart"
submitForm.elements[eval(i+2)].value = field3
submitForm.elements[eval(i+3)].name = "yy_crmstart"
submitForm.elements[eval(i+3)].value = field4
submitForm.elements[eval(i+4)].name = "crmremark_code"
submitForm.elements[eval(i+4)].value = field5
submitForm.elements[eval(i+5)].name = "crmperson_firstname"
submitForm.elements[eval(i+5)].value = field6
submitForm.elements[eval(i+6)].name = "crmperson_lastname"
submitForm.elements[eval(i+6)].value = field7
submitForm.elements[eval(i+7)].name = "crmnote"
submitForm.elements[eval(i+7)].value = field8
submitForm.elements[eval(i+8)].name = "mode"
submitForm.elements[eval(i+8)].value = methodHow
submitForm.method="post";
onSave(submitForm);
function onSave(form) {
if (!oneToMany1.addedItems.options.length == 0) {
for (i=1;i<=oneToMany1.addedItems.options.length;i++) {
validate.elements[0].value = addTemp.field4oneToMany1Value[i-1];
if (validate.elements[0].value != '9999') {
if(!validateForm('validate','validation','isNumber')) {
alert("CRM Event Information "+ i + ": Year must be number");
return false;
if(!validateForm('validate','validation','checkrange')) {
alert("CRM Event Information "+ i + ": Year out of range");
return false;
form.submit();
return true;
</script>
</HEAD>
<BODY BGCOLOR=#ffffff>
<BASEFONT="3">
<FONT SIZE = -1>
<%@ page errorPage="errorPage.jsp" %>
<%@ page import="java.util.*" %>
<%@ page import="java.sql.*" %>
<%@ page import="dss.*" %>
<!-- instantiate -->
<jsp:useBean id="pool" scope="session" class="dss.ConnectionPool" />
<jsp:useBean id="SelectBox" scope="session" class="dss.dataMisc" />
<jsp:useBean id="query" class="dss.QueryData" scope="session" />
<%
// *************check for user session *************
session = request.getSession();
if (session.getValue("userSession") == null) {
response.sendRedirect (response.encodeRedirectUrl
("dssLogin.jsp?Origin=dssACCRMEventAddEdit.jsp"));
else {
String dhr_id = "";
String mode = "";
String eventtype = "9999";
String crmremark_code = "";
String crmperson = "";
String crmnote = "";
String crmKey = "";
String dd_crmstart = "99";
String mm_crmstart = "99";
Vector tempVector = new Vector();
Vector CRMEventVector = new Vector();
Vector CRMEventPerson = new Vector();
Vector monthVector = new Vector();
Vector dayVector = new Vector();
Vector field1Vector = new Vector();
Vector field5Vector = new Vector();
Vector field6Vector = new Vector();
Vector field7Vector = new Vector();
Vector field8Vector = new Vector();
Vector field234Vector = new Vector();
Vector tempDayVector = new Vector();
Vector tempMonthVector = new Vector();
Vector tempYearVector = new Vector();
Connection conn = null ;
conn = pool.getConnection() ;
dss.Database db = new dss.Database( conn ) ;
dhr_id = request.getParameter("dhr_id");
try {
mode = request.getParameter("mode");
dhr_id = request.getParameter("dhr_id");
//look up Setting List
String strSQL = "";
//look up CRM Event Type List
strSQL ="select crmtype_code value, item display from code_crmtype order by 2" ;
db.setSQL( strSQL ) ;
db.query() ;
CRMEventVector = db.getSelectionList() ;
//look up Month List
db.setSQL( "select LPAD(to_char(month_code),2,'0') value , item display from code_month order by 1" ) ;
db.query() ;
monthVector = db.getSelectionList();
//look up Day List
db.setSQL( "select LPAD(to_char(day_code),2,'0') value , item display from code_day order by 1" ) ;
db.query() ;
dayVector = db.getSelectionList();
// ************ EDIT Mode *************
if (mode.equals("edit"))
//out.println("mode is edit");
mode = "edit";
//***********get archaeology_pkey based on dhr_id
int archKey = 0;
strSQL = " SELECT archaeology_pkey "+
" FROM archaeology "+
" WHERE UPPER(dhr_id)='"+ dhr_id.toUpperCase() + "'";
//out.println(strSQL);
Statement stmt2 = conn.createStatement();
ResultSet rs2 = stmt2.executeQuery(strSQL);
while (rs2.next()) {
archKey = rs2.getInt(1);
rs2.close();
stmt2.close();
// ********* end getting **************
strSQL = "Select crmtype_code, crmstart, crmremark, crmperson_firstname, crmperson_lastname, crmnote "+
" From archaeologycrmevent " +
" Where archaeology_pkey =" + archKey ;
Statement stmtSQL = conn.createStatement();
ResultSet rset = stmtSQL.executeQuery(strSQL);
ResultSetMetaData rsmd = rset.getMetaData() ;
while (rset.next()) {
//get values
field1Vector.addElement(rset.getString(1));
field234Vector.addElement(rset.getString(2));
field5Vector.addElement(rset.getString(3));
field6Vector.addElement(rset.getString(4));
field7Vector.addElement(rset.getString(5));
field8Vector.addElement(rset.getString(6));
//crmKey = rset.getString(7);
for (int i=0; i<field234Vector.size(); i++){
StringTokenizer tempDate = new StringTokenizer((String)field234Vector.elementAt(i),"/");
while (tempDate.hasMoreTokens() ) {
tempYearVector.addElement ( tempDate.nextToken());
tempMonthVector.addElement( tempDate.nextToken());
tempDayVector.addElement ( tempDate.nextToken());
} //end edit
} //end try
catch ( Exception e) {
out.println ( e.toString() ) ;
} finally {
db.cleanup() ;
%>
<P>
<FORM NAME="oneToMany1">
<TABLE BORDER=1 CELLPADDING=0 CELLSPACING=0 WIDTH="100%" BGCOLOR="#BBBBBB">
<TR>
<TD BGCOLOR="#002B82" COLSPAN=9 width="100%" height="31">
<p align="center">
<font face="Arial" size="2" color="#FFFFFF">
<b>6. CRM Event Information - </b>DHR ID# : <%=dhr_id %>
</font>
</p>
</td>
</TR>
<TR>
<TD WIDTH=83 ALIGN="RIGHT" height="21"><FONT SIZE=-1><B>CRM Event Type: </FONT></B></TD>
<TD WIDTH=112 height="21">
<%
out.println ( SelectBox.strSelectionList((Vector)CRMEventVector.elementAt(0), (Vector)CRMEventVector.elementAt(1), "field1", "", eventtype, "180" ));
%>
</TD>
<TD WIDTH=89 ALIGN="RIGHT" height="21"><FONT SIZE=-1><B>Event Date: </FONT></B></TD>
<TD WIDTH=455 height="21"><font size="1">
<%
out.println ("<b><font size = 1>Date: "+ SelectBox.strSelectionList((Vector)dayVector.elementAt(0), (Vector)dayVector.elementAt(1), "field2", "", dd_crmstart, "180" ));
out.println ("Month: "+ SelectBox.strSelectionList((Vector)monthVector.elementAt(0), (Vector)monthVector.elementAt(1), "field3", "", mm_crmstart, "180" ));
%>
</select><B>Year:</B><input type="text" name="field4" size="4" id="Year" maxlength="4">
</TD>
</TR>
<TR>
<TD WIDTH=83 ALIGN="RIGHT" height="30"><FONT SIZE=-1><B>ID# Associated with Event:</B> </FONT></TD>
<TD WIDTH=112 height="30">
<input type="text" name="field5" size="15" value="<%=crmremark_code%>">
</TD>
<TD WIDTH=89 ALIGN="RIGHT" height="30"><FONT SIZE=-1><B>
CRM Person/ Organization: </FONT></B></TD>
<TD WIDTH=455 height="30">
<% // Modified by Robert Cox 09/12/2001 - changed field size from 20 to 30 // %>
<TABLE BORDER="0">
<TR><TD>
<FONT SIZE="1"><B>First:</B></FONT><input type="text" name="field6" size="15">
</TD>
<TD>
<FONT SIZE="1"><B>Last:</B></FONT><input type="text" name="field7" size="15">
</TD>
</TR>
</TABLE>
</TD>
</TR>
<TR>
<TD WIDTH=83 ALIGN="RIGHT" height="79"><FONT SIZE=-1><B>CRM Event Comments: </FONT></B></TD>
<TD COLSPAN="3" width="660" height="79">
<TEXTAREA ROWS="5" NAME="field8" cols="65"></TEXTAREA>
</TD>
</TR>
<TR>
<TD COLSPAN="4">
<table border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="50" align="left"> </td>
<td align="center">
<input type="button" value="Add" onClick="addUpdate(1,8,oneToMany1,Array('field1','field2','field3','field4','field7','field6'))">
<input type="button" value="Modify" onClick="addUpdate(2,8,oneToMany1,Array('field1','field2','field3','field4','field7','field6'))">
<input type="button" value="Update" onClick="addUpdate(3,8,oneToMany1,Array('field1','field2','field3','field4','field7','field6'))">
<input type="button" value="Remove" onClick="addUpdate(4,8,oneToMany1,Array('field1','field2','field3','field4','field7','field6'))">
</td>
<td width="50" align="right"> </td>
</tr>
</table>
</TD>
</TR>
<tr>
<td width="100%" align="center" height="40" colspan="4"><select size="3" name="addedItems" style="width:100%">
</td>
</tr>
</TABLE>
<%/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//|------------------------------------------------------------------------------------------------------------------------
//| Start code for one-to-many in edit mode /
//|---------------------------------------------
%>
<script language="javascript">
/* Check to see if the necessary arrays have been defined - if not define them */
try{
if (!eval("addTemp.addoneToMany1Name")){
//alert("False");
addTemp.addoneToMany1Name = Array();
addTemp.addoneToMany1Value = Array();
for(i = 1; i <= 8; i++){
eval("addTemp.field" + i + "oneToMany1Value = Array();");
}else{
//alert("already created");
/* Catch any errors that may occur when checking if arrays are defined */
catch(e) {
alert(e);
<%
Enumeration field1_ = field1Vector.elements();
Enumeration field2_ = tempDayVector.elements();
Enumeration field3_ = tempMonthVector.elements();
Enumeration field4_ = tempYearVector.elements();
Enumeration field5_ = field5Vector.elements();
Enumeration field6_ = field6Vector.elements();
Enumeration field7_ = field7Vector.elements();
Enumeration field8_ = field8Vector.elements();
Object currentfield1 = "";
Object currentfield2 = "";
Object currentfield3 = "";
Object currentfield4 = "";
Object currentfield5 = "";
Object currentfield6 = "";
Object currentfield7 = "";
Object currentfield8 = "";
int counter = 0;
int clength = 1;
while (field1_.hasMoreElements()){
//out.println("while field1_ has more elements");
//|---------------------------------------------------------------------------------------------------------------------------
//| define field elements - Use first and second lines if text box or memo field, Use third line if select box /
//|------------------------------------------------------------------------------------------------------------
// currentfield1 = query.replaceString(field1_.nextElement().toString(),"'","\'").trim();
// currentfield1 = query.replaceString(currentfield1.toString(),"\"","\\" + "\"");
currentfield1 = field1_.nextElement();
// currentfield2 = query.replaceString(field2_.nextElement().toString(),"'","\'").trim();
// currentfield2 = query.replaceString(currentfield2.toString(),"\"","\\" + "\"");
currentfield2 = field2_.nextElement();
// currentfield3 = query.replaceString(field3_.nextElement().toString(),"'","\'").trim();
// currentfield3 = query.replaceString(currentfield3.toString(),"\"","\\" + "\"");
currentfield3 = field3_.nextElement();
currentfield4 = query.replaceString(field4_.nextElement().toString(),"'","\'").trim();
currentfield4 = query.replaceString(currentfield4.toString(),"\"","\\" + "\"");
// currentfield4 = field4_.nextElement();
currentfield5 = query.replaceString(field5_.nextElement().toString(),"'","\'").trim();
currentfield5 = query.replaceString(currentfield5.toString(),"\"","\\" + "\"");
// currentfield5 = tempElement;
currentfield6 = query.replaceString(field6_.nextElement().toString(),"'","\'").trim();
currentfield6 = query.replaceString(currentfield6.toString(),"\"","\\" + "\"");
// currentfield6 = field6_.nextElement();
currentfield7 = query.replaceString(field7_.nextElement().toString(),"'","\'").trim();
currentfield7 = query.replaceString(currentfield7.toString(),"\"","\\" + "\"");
// currentfield7 = field7_.nextElement();
currentfield8 = query.replaceString(field8_.nextElement().toString(),"'","\'").trim();
currentfield8 = query.replaceString(query.replaceString(query.replaceString(currentfield8.toString(),"\"","\\" + "\""),"\r","\\" + "r"),"\n","\\" + "n");
// currentfield8 = field8_.nextElement();
out.println("oneToMany1.addedItems.options.length ="+clength+";");
// First Line - Displayed fields, Second Line - Count value /
out.println("oneToMany1.addedItems.options[" + counter + "].text = \"" + currentfield1 + " - " + currentfield2 + " - " + currentfield3 + " - " + currentfield4 + " - " + currentfield7 + " - " + currentfield6 + "\";");
out.println("oneToMany1.addedItems.options[" + counter + "].value = '" + counter + "';");
// First Line - Displayed fields, Second Line - Count value /
out.println("addTemp.addoneToMany1Name[" + counter + "] = \"" + currentfield1 + " - " + currentfield2 + " - " + currentfield3 + " - " + currentfield4 + " - " + currentfield7 + " - " + currentfield6 + "\";");
out.println("addTemp.addoneToMany1Value[" + counter + "] = \"" + counter + " \";");
// Use first line for text boxes and memo fields, Use second line for Select Boxes /
// out.println("addTemp.field1oneToMany1Value[" + counter + "] = \"" + currentfield1 + "\";");
out.println("addTemp.field1oneToMany1Value[" + counter + "] = '" + currentfield1 + "';");
// out.println("addTemp.field2oneToMany1Value[" + counter + "] = \"" + currentfield2 + "\";");
out.println("addTemp.field2oneToMany1Value[" + counter + "] = '" + currentfield2 + "';");
// out.println("addTemp.field3oneToMany1Value[" + counter + "] = \"" + currentfield3 + " \";");
out.println("addTemp.field3oneToMany1Value[" + counter + "] = '" + currentfield3 + "';");
out.println("addTemp.field4oneToMany1Value[" + counter + "] = \"" + currentfield4 + "\";");
// out.println("addTemp.field4oneToMany1Value[" + counter + "] = '" + currentfield4 + "';");
out.println("addTemp.field5oneToMany1Value[" + counter + "] = \"" + currentfield5 + "\";");
// out.println("addTemp.field5oneToMany1Value[" + counter + "] = '" + currentfield5 + "';");
out.println("addTemp.field6oneToMany1Value[" + counter + "] = \"" + currentfield6 + "\";");
// out.println("addTemp.field6oneToMany1Value[" + counter + "] = '" + currentfield6 + "';");
out.println("addTemp.field7oneToMany1Value[" + counter + "] = \"" + currentfield7 + "\";");
// out.println("addTemp.field7oneToMany1Value[" + counter + "] = '" + currentfield7 + "';");
out.println("addTemp.field8oneToMany1Value[" + counter + "] = \"" + currentfield8 + "\";");
// out.println("addTemp.field8oneToMany1Value[" + counter + "] = '" + currentfield8 + "';");
clength = clength + 1;
counter = counter + 1;
%>
</script>
</FORM>
</FONT>
<BR>
<FORM NAME="CRMEvent">
<input type="hidden" name=dhr_id value=<%=dhr_id %>>
<!-- <input type="hidden" name=crmKey value=<%//=crmKey %>> -->
<input type="hidden" name=mode value=<%=mode%>>
<table border="0" width="100%" cellspacing="1">
<tr>
<%
if (mode.equals("add")) {
%>
<td width="67"><input type="button" value="Next >>" name="Next" onClick="callNext(this.form, '<%=dhr_id%>', 'dssMenuChoice.jsp?item=2,1,1,7', '<%=mode%>')" ></td>
<td width="120"></td>
<td width="52"><input type="button" value="Save" name="Save" onClick="saveMe('add')"></td>
<% } else if (mode.equals("edit")){
%>
<td width="103"><input type="button" value="<< Previous" name="Previous" onclick="history.go(-1)"></td>
<td width="67"><input type="button" value="Next >>" name="Next" onClick="callNext(this.form, '<%=dhr_id%>', 'dssMenuChoice.jsp?item=2,1,1,7', '<%=mode%>')" ></td>
<td width="120"></td>
<td width="52"><input type="button" value="Save" name="Save" onClick="saveMe('edit')"></td>
<%
%>
</tr>
</table>
<%
}; //end else for checking session
%>
</FORM>
<HR>
Click the next button to move to the next screen without saving the current screen.<br>
Click the save button to save the current screen and then move to the next screen.<br>
<p>
<form name="submitForm" action="dssACCRMEventDB.jsp" action="post">
<input type="hidden" name="temporary"><input type="hidden" name="temporary"><input type="hidden" name="temporary">
<input type="hidden" name="temporary"><input type="hidden" name="temporary"><input type="hidden" name="temporary">
<input type="hidden" name="temporary"><input type="hidden" name="temporary"><input type="hidden" name="temporary">
<input type="hidden" name="temporary"><input type="hidden" name="temporary"><input type="hidden" name="temporary">
<input type="hidden" name="temporary"><input type="hidden" name="temporary"><input type="hidden" name="temporary">
<input type="hidden" name="temporary"><input type="hidden" name="temporary"><input type="hidden" name="temporary">
<input type="hidden" name="temporary"><input type="hidden" name="temporary"><input type="hidden" name="temporary">
<input type="hidden" name="temporary"><input type="hidden" name="temporary"><input type="hidden" name="temporary">
<input type="hidden" name="temporary"><input type="hidden" name="temporary"><input type="hidden" name="temporary">
<input type="hidden" name="temporary"><input type="hidden" name="temporary"><input type="hidden" name="temporary">
<input type="hidden" name="temporary"><input type="hidden" name="temporary"><input type="hidden" name="temporary">
<input type="hidden" name="temporary"><input type="hidden" name="temporary"><input type="hidden" name="temporary">
<input type="hidden" name="temporary"><input type="hidden" name="temporary"><input type="hidden" name="temporary">
<input type="hidden" name="temporary"><input type="hidden" name="temporary"><input type="hidden" name="temporary">
<input type="hidden" name="temporary"><input type="hidden" name="temporary"><input type="hidden" name="temporary">
<input type="hidden" name="temporary"><input type="hidden" name="temporary"><input type="hidden" name="temporary">
<input type="hidden" name="temporary"><input type="hidden" name="temporary"><input type="hidden" name="temporary">
<input type="hidden" name="temporary"><input type="hidden" name="temporary"><input type="hidden" name="temporary">
<input type="hidden" name="temporary"><input type="hidden" name="temporary"><input type="hidden" name="temporary">
<input type="hidden" name="temporary"><input type="hidden" name="temporary"><input type="hidden" name="temporary">
<input type="hidden" name="temporary"><input type="hidden" name="temporary"><input type="hidden" name="temporary">
</form>
<form name="validate">
<input type="hidden" name="validation">
</form>
</BODY>
</HTML>Hello Sir,
I have the following code. Cuurently when I insert date in this format 1984/11/14 and also in this format 1984/11/4 and retrieve the following two dates, I could successfully populate the dates into the corresponding fields in the form. But earlier in the database, there are some records created in the following formats:
1984/3/1 and 1987/10/4(i.e.,yyyy/mm/dd).In the form when I try to populate them into their corresponding fields I am able to populate only 1984 into the year filed in the first case and in the second case I could populate 1987 and 10 into the year and month fields. I could not populate the values of the records with single digit either in month or day fields.
By observing the code, could you let me know what needs to be done in order to populate the previously created records with the single digit month and date.
This is the jsp for creating and editing the records.
<HTML>
<HEAD>
<TITLE> CRM Event Information </TITLE>
<script language="JavaScript" src="../javascript/misc.js"></script>
<script language="JavaScript">
function saveMe(methodHow) {
var elementNumber = CRMEvent.elements.length
var field1 = "";
var field2 = "";
var field3 = "";
var field4 = "";
var field5 = "";
var field6 = "";
var field7 = "";
var field8 = "";
for(i=0; i < elementNumber; i++){
submitForm.elements.name = CRMEvent.elements[i].name;
submitForm.elements[i].value = CRMEvent.elements[i].value;
for (k = 0; k < oneToMany1.addedItems.options.length; k++){;
if (addTemp.field1oneToMany1Value[k] == ""){
addTemp.field1oneToMany1Value[k] = "9999"
if (addTemp.field2oneToMany1Value[k] == ""){
addTemp.field2oneToMany1Value[k] = "99"
if (addTemp.field3oneToMany1Value[k] == ""){
addTemp.field3oneToMany1Value[k] = "99"
if (addTemp.field4oneToMany1Value[k] == ""){
addTemp.field4oneToMany1Value[k] = "9999"
if (addTemp.field5oneToMany1Value[k] == ""){
addTemp.field5oneToMany1Value[k] = " "
if (addTemp.field6oneToMany1Value[k] == ""){
addTemp.field6oneToMany1Value[k] = " "
if (addTemp.field7oneToMany1Value[k] == ""){
addTemp.field7oneToMany1Value[k] = " "
if (addTemp.field8oneToMany1Value[k] == ""){
addTemp.field8oneToMany1Value[k] = " "
if (eval(oneToMany1.addedItems.options.length - 1) == k){
field1 = field1 + addTemp.field1oneToMany1Value[k];
field2 = field2 + addTemp.field2oneToMany1Value[k];
field3 = field3 + addTemp.field3oneToMany1Value[k];
field4 = field4 + addTemp.field4oneToMany1Value[k];
field5 = field5 + addTemp.field5oneToMany1Value[k];
field6 = field6 + addTemp.field6oneToMany1Value[k];
field7 = field7 + addTemp.field7oneToMany1Value[k];
field8 = field8 + addTemp.field8oneToMany1Value[k];
}else{
field1 = field1 + addTemp.field1oneToMany1Value[k]+"|";
field2 = field2 + addTemp.field2oneToMany1Value[k]+"|";
field3 = field3 + addTemp.field3oneToMany1Value[k]+"|";
field4 = field4 + addTemp.field4oneToMany1Value[k]+"|";
field5 = field5 + addTemp.field5oneToMany1Value[k]+"|";
field6 = field6 + addTemp.field6oneToMany1Value[k]+"|";
field7 = field7 + addTemp.field7oneToMany1Value[k]+"|";
field8 = field8 + addTemp.field8oneToMany1Value[k]+"|";
submitForm.elements[eval(i)].name = "eventtype"
submitForm.elements[eval(i)].value = field1
submitForm.elements[eval(i+1)].name = "dd_crmstart"
submitForm.elements[eval(i+1)].value = field2
submitForm.elements[eval(i+2)].name = "mm_crmstart"
submitForm.elements[eval(i+2)].value = field3
submitForm.elements[eval(i+3)].name = "yy_crmstart"
submitForm.elements[eval(i+3)].value = field4
submitForm.elements[eval(i+4)].name = "crmremark_code"
submitForm.elements[eval(i+4)].value = field5
submitForm.elements[eval(i+5)].name = "crmperson_firstname"
submitForm.elements[eval(i+5)].value = field6
submitForm.elements[eval(i+6)].name = "crmperson_lastname"
submitForm.elements[eval(i+6)].value = field7
submitForm.elements[eval(i+7)].name = "crmnote"
submitForm.elements[eval(i+7)].value = field8
submitForm.elements[eval(i+8)].name = "mode"
submitForm.elements[eval(i+8)].value = methodHow
submitForm.method="post";
onSave(submitForm);
function onSave(form) {
if (!oneToMany1.addedItems.options.length == 0) {
for (i=1;i<=oneToMany1.addedItems.options.length;i++) {
validate.elements[0].value = addTemp.field4oneToMany1Value[i-1];
if (validate.elements[0].value != '9999') {
if(!validateForm('validate','validation','isNumber')) {
alert("CRM Event Information "+ i + ": Year must be number");
return false;
if(!validateForm('validate','validation','checkrange')) {
alert("CRM Event Information "+ i + ": Year out of range");
return false;
form.submit();
return true;
</script>
</HEAD>
<BODY BGCOLOR=#ffffff>
<BASEFONT="3">
<FONT SIZE = -1>
<%@ page errorPage="errorPage.jsp" %>
<%@ page import="java.util.*" %>
<%@ page import="java.sql.*" %>
<%@ page import="dss.*" %>
<!-- instantiate -->
<jsp:useBean id="pool" scope="session" class="dss.ConnectionPool" />
<jsp:useBean id="SelectBox" scope="session" class="dss.dataMisc" />
<jsp:useBean id="query" class="dss.QueryData" scope="session" />
<%
// *************check for user session *************
session = request.getSession();
if (session.getValue("userSession") == null) {
response.sendRedirect (response.encodeRedirectUrl
("dssLogin.jsp?Origin=dssACCRMEventAddEdit.jsp"));
else {
String dhr_id = "";
String mode = "";
String eventtype = "9999";
String crmremark_code = "";
String crmperson = "";
String crmnote = "";
String crmKey = "";
String dd_crmstart = "99";
String mm_crmstart = "99";
Vector tempVector = new Vector();
Vector CRMEventVector = new Vector();
Vector CRMEventPerson = new Vector();
Vector monthVector = new Vector();
Vector dayVector = new Vector();
Vector field1Vector = new Vector();
Vector field5Vector = new Vector();
Vector field6Vector = new Vector();
Vector field7Vector = new Vector();
Vector field8Vector = new Vector();
Vector field234Vector = new Vector();
Vector tempDayVector = new Vector();
Vector tempMonthVector = new Vector();
Vector tempYearVector = new Vector();
Connection conn = null ;
conn = pool.getConnection() ;
dss.Database db = new dss.Database( conn ) ;
dhr_id = request.getParameter("dhr_id");
try {
mode = request.getParameter("mode");
dhr_id = request.getParameter("dhr_id");
//look up Setting List
String strSQL = "";
//look up CRM Event Type List
strSQL ="select crmtype_code value, item display from code_crmtype order by 2" ;
db.setSQL( strSQL ) ;
db.query() ;
CRMEventVector = db.getSelectionList() ;
//look up Month List
db.setSQL( "select LPAD(to_char(month_code),2,'0') value , item display from code_month order by 1" ) ;
db.query() ;
monthVector = db.getSelectionList();
//look up Day List
db.setSQL( "select LPAD(to_char(day_code),2,'0') value , item display from code_day order by 1" ) ;
db.query() ;
dayVector = db.getSelectionList();
// ************ EDIT Mode *************
if (mode.equals("edit"))
//out.println("mode is edit");
mode = "edit";
//***********get archaeology_pkey based on dhr_id
int archKey = 0;
strSQL = " SELECT archaeology_pkey "+
" FROM archaeology "+
" WHERE UPPER(dhr_id)='"+ dhr_id.toUpperCase() + "'";
//out.println(strSQL);
Statement stmt2 = conn.createStatement();
ResultSet rs2 = stmt2.executeQuery(strSQL);
while (rs2.next()) {
archKey = rs2.getInt(1);
rs2.close();
stmt2.close();
// ********* end getting **************
strSQL = "Select crmtype_code, crmstart, crmremark, crmperson_firstname, crmperson_lastname, crmnote "+
" From archaeologycrmevent " +
" Where archaeology_pkey =" + archKey ;
Statement stmtSQL = conn.createStatement();
ResultSet rset = stmtSQL.executeQuery(strSQL);
ResultSetMetaData rsmd = rset.getMetaData() ;
while (rset.next()) {
//get values
field1Vector.addElement(rset.getString(1));
field234Vector.addElement(rset.getString(2));
field5Vector.addElement(rset.getString(3));
field6Vector.addElement(rset.getString(4));
field7Vector.addElement(rset.getString(5));
field8Vector.addElement(rset.getString(6));
//crmKey = rset.getString(7);
for (int i=0; i<field234Vector.size(); i++){
StringTokenizer tempDate = new StringTokenizer((String)field234Vector.elementAt(i),"/");
while (tempDate.hasMoreTokens() ) {
tempYearVector.addElement ( tempDate.nextToken());
tempMonthVector.addElement( tempDate.nextToken());
tempDayVector.addElement ( tempDate.nextToken());
} //end edit
} //end try
catch ( Exception e) {
out.println ( e.toString() ) ;
} finally {
db.cleanup() ;
%>
<P>
<FORM NAME="oneToMany1">
<TABLE BORDER=1 CELLPADDING=0 CELLSPACING=0 WIDTH="100%" BGCOLOR="#BBBBBB">
<TR>
<TD BGCOLOR="#002B82" COLSPAN=9 width="100%" height="31">
<p align="center">
<font face="Arial" size="2" color="#FFFFFF">
<b>6. CRM Event Information - </b>DHR ID# : <%=dhr_id %>
</font>
</p>
</td>
</TR>
<TR>
<TD WIDTH=83 ALIGN="RIGHT" height="21"><FONT SIZE=-1><B>CRM Event Type: </FONT></B></TD>
<TD WIDTH=112 height="21">
<%
out.println ( SelectBox.strSelectionList((Vector)CRMEventVector.elementAt(0), (Vector)CRMEventVector.elementAt(1), "field1", "", eventtype, "180" ));
%>
</TD>
<TD WIDTH=89 ALIGN="RIGHT" height="21"><FONT SIZE=-1><B>Event Date: </FONT></B></TD>
<TD WIDTH=455 height="21"><font size="1">
<%
out.println ("<b><font size = 1>Date: "+ SelectBox.strSelectionList((Vector)dayVector.elementAt(0), (Vector)dayVector.elementAt(1), "field2", "", dd_crmstart, "180" ));
out.println ("Month: "+ SelectBox.strSelectionList((Vector)monthVector.elementAt(0), (Vector)monthVector.elementAt(1), "field3", "", mm_crmstart, "180" ));
%>
</select><B>Year:</B><input type="text" name="field4" size="4" id="Year" maxlength="4">
</TD>
</TR>
<TR>
<TD WIDTH=83 ALIGN="RIGHT" height="30"><FONT SIZE=-1><B>ID# Associated with Event:</B> </FONT></TD>
<TD WIDTH=112 height="30">
<input type="text" name="field5" size="15" value="<%=crmremark_code%>">
</TD>
<TD WIDTH=89 ALIGN="RIGHT" height="30"><FONT SIZE=-1><B>
CRM Person/ Organization: </FONT></B></TD>
<TD WIDTH=455 height="30">
<% // Modified by Robert Cox 09/12/2001 - changed field size from 20 to 30 // %>
<TABLE BORDER="0">
<TR><TD>
<FONT SIZE="1"><B>First:</B></FONT><input type="text" name="field6" size="15">
</TD>
<TD>
<FONT SIZE="1"><B>Last:</B></FONT><input type="text" name="field7" size="15">
</TD>
</TR>
</TABLE>
</TD>
</TR>
<TR>
<TD WIDTH=83 ALIGN="RIGHT" height="79"><FONT SIZE=-1><B>CRM Event Comments: </FONT></B></TD>
<TD COLSPAN="3" width="660" height="79">
<TEXTAREA ROWS="5" NAME="field8" cols="65"></TEXTAREA>
</TD>
</TR>
<TR>
<TD COLSPAN="4">
<table border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="50" align="left"> </td>
<td align="center">
<input type="button" value="Add" onClick="addUpdate(1,8,oneToMany1,Array('field1','field2','field3','field4','field7','field6'))">
<input type="button" value="Modify" onClick="addUpdate(2,8,oneToMany1,Array('field1','field2','field3','field4','field7','field6'))">
<input type="button" value="Update" onClick="addUpdate(3,8,oneToMany1,Array('field1','field2','field3','field4','field7','field6'))">
<input type="button" value="Remove" onClick="addUpdate(4,8,oneToMany1,Array('field1','field2','field3','field4','field7','field6'))">
</td>
<td width="50" align="right"> </td>
</tr>
</table>
</TD>
</TR>
<tr>
<td width="100%" align="center" height="40" colspan="4"><select size="3" name="addedItems" style="width:100%">
</td>
</tr>
</TABLE>
<%/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//|------------------------------------------------------------------------------------------------------------------------
//| Start code for one-to-many in edit mode /
//|---------------------------------------------
%>
<script language="javascript">
/* Check to see if the necessary arrays have been defined - if not define them */
try{
if (!eval("addTemp.addoneToMany1Name")){
//alert("False");
addTemp.addoneToMany1Name = Array();
addTemp.addoneToMany1Value = Array();
for(i = 1; i <= 8; i++){
eval("addTemp.field" + i + "oneToMany1Value = Array();");
}else{
//alert("already created");
/* Catch any errors that may occur when checking if arrays are defined */
catch(e) {
alert(e);
<%
Enumeration field1_ = field1Vector.elements();
Enumeration field2_ = tempDayVector.elements();
Enumeration field3_ = tempMonthVector.elements();
Enumeration field4_ = tempYearVector.elements();
Enumeration field5_ = field5Vector.elements();
Enumeration field6_ = field6Vector.elements();
Enumeration field7_ = field7Vector.elements();
Enumeration field8_ = field8Vector.elements();
Object currentfield1 = "";
Object currentfield2 = "";
Object currentfield3 = "";
Object currentfield4 = "";
Object currentfield5 = "";
Object currentfield6 = "";
Object currentfield7 = "";
Object currentfield8 = "";
int counter = 0;
int clength = 1;
while (field1_.hasMoreElements()){
//out.println("while field1_ has more elements");
//|---------------------------------------------------------------------------------------------------------------------------
//| define field elements - Use first and second lines if text box or memo field, Use third line if select box /
//|------------------------------------------------------------------------------------------------------------
// currentfield1 = query.replaceString(field1_.nextElement().toString(),"'","\'").trim();
// currentfield1 = query.replaceString(currentfield1.toString(),"\"","\\" + "\"");
currentfield1 = field1_.nextElement();
// currentfield2 = query.replaceString(field2_.nextElement().toString(),"'","\'").trim();
// currentfield2 = query.replaceString(currentfield2.toString(),"\"","\\" + "\"");
currentfield2 = field2_.nextElement();
// currentfield3 = query.replaceString(field3_.nextElement().toString(),"'","\'").trim();
// currentfield3 = query.replaceString(currentfield3.toString(),"\"","\\" + "\"");
currentfield3 = field3_.nextElement();
currentfield4 = query.replaceString(field4_.nextElement().toString(),"'","\'").trim();
currentfield4 = query.replaceString(currentfield4.toString(),"\"","\\" + "\"");
// currentfield4 = field4_.nextElement();
currentfield5 = query.replaceString(field5_.nextElement().toString(),"'","\'").trim();
currentfield5 = query.replaceString(currentfield5.toString(),"\"","\\" + "\"");
// currentfield5 = tempElement;
currentfield6 = query.replaceString(field6_.nextElement().toString(),"'","\'").trim();
currentfield6 = query.replaceString(currentfield6.toString(),"\"","\\" + "\"");
// currentfield6 = field6_.nextElement();
currentfield7 = query.replaceString(field7_.nextElement().toString(),"'","\'").trim();
currentfield7 = query.replaceString(currentfield7.toString(),"\"","\\" + "\"");
// currentfield7 = field7_.nextElement();
currentfield8 = query.replaceString(field8_.nextElement().toString(),"'","\'").trim();
currentfield8 = query.replaceString(query.replaceString(query.replaceString(currentfield8.toString(),"\"","\\" + "\""),"\r","\\" + "r"),"\n","\\" + "n");
// currentfield8 = field8_.nextElement();
out.println("oneToMany1.addedItems.options.length ="+clength+";");
// First Line - Displayed fields, Second Line - Count value /
out.println("oneToMany1.addedItems.options[" + counter + "].text = \"" + currentfield1 + " - " + currentfield2 + " - " + currentfield3 + " - " + currentfield4 + " - " + currentfield7 + " - " + currentfield6 + "\";");
out.println("oneToMany1.addedItems.options[" + counter + "].value = '" + counter + "';");
// First Line - Displayed fields, Second Line - Count value /
out.println("addTemp.addoneToMany1Name[" + counter + "] = \"" + currentfield1 + " - " + currentfield2 + " - " + currentfield3 + " - " + currentfield4 + " - " + currentfield7 + " - " + currentfield6 + "\";");
out.println("addTemp.addoneToMany1Value[" + counter + "] = \"" + counter + " \";");
// Use first line for text boxes and memo fields, Use second line for Select Boxes /
// out.println("addTemp.field1oneToMany1Value[" + counter + "] = \"" + currentfield1 + "\";");
out.println("addTemp.field1oneToMany1Value[" + counter + "] = '" + currentfield1 + "';");
// out.println("addTemp.field2oneToMany1Value[" + counter + "] = \"" + currentfield2 + "\";");
out.println("addTemp.field2oneToMany1Value[" + counter + "] = '" + currentfield2 + "';");
// out.println("addTemp.field3oneToMany1Value[" + counter + "] = \"" + currentfield3 + " \";");
out.println("addTemp.field3oneToMany1Value[" + counter + "] = '" + currentfield3 + "';");
out.println("addTemp.field4oneToMany1Value[" + counter + "] = \"" + currentfield4 + "\";");
// out.println("addTemp.field4oneToMany1Value[" + counter + "] = '" + currentfield4 + "';");
out.println("addTemp.field5oneToMany1Value[" + counter + "] = \"" + currentfield5 + "\";");
// out.println("addTemp.field5oneToMany1Value[" + counter + "] = '" + currentfield5 + "';");
out.println("addTemp.field6oneToMany1Value[" + counter + "] = \"" + currentfield6 + "\";");
// out.println("addTemp.field6oneToMany1Value[" + counter + "] = '" + currentfield6 + "';");
out.println("addTemp.field7oneToMany1Value[" + counter + "] = \"" + currentfield7 + "\";");
// out.println("addTemp.field7oneToMany1Value[" + counter + "] = '" + currentfield7 + "';");
out.println("addTemp.field8oneToMany1Value[" + counter + "] = \"" + currentfield8 + "\";");
// out.println("addTemp.field8oneToMany1Value[" + counter + "] = '" + currentfield8 + "';");
clength = clength + 1;
counter = counter + 1;
%>
</script>
</FORM>
</FONT>
<BR>
<FORM NAME="CRMEvent">
<input type="hidden" name=dhr_id value=<%=dhr_id %>>
<!-- <input type="hidden" name=crmKey value=<%//=crmKey %>> -->
<input type="hidden" name=mode value=<%=mode%>>
<table border="0" width="100%" cellspacing="1">
<tr>
<%
if (mode.equals("add")) {
%>
<td width="67"><input type="button" value="Next >>" name="Next" onClick="callNext(this.form, '<%=dhr_id%>', 'dssMenuChoice.jsp?item=2,1,1,7', '<%=mode%>')" ></td>
<td width="120"></td>
<td width="52"><input type="button" value="Save" name="Save" onClick="saveMe('add')"></td>
<% } else if (mode.equals("edit")){
%>
<td width="103"><input type="button" value="<< Previous" name="Previous" onclick="history.go(-1)"></td>
<td width="67"><input type="button" value="Next >>" name="Next" onClick="callNext(this.form, '<%=dhr_id%>', 'dssMenuChoice.jsp?item=2,1,1,7', '<%=mode%>')" ></td>
<td width="120"></td>
<td width="52"><input type="button" value="Save" name="Save" onClick="saveMe('edit')"></td>
<%
%>
</tr>
</table>
<%
}; //end else for checking session
%>
</FORM>
<HR>
Click the next button to move to the next screen without saving the current screen.<br>
Click the save button to save the current screen and then move to the next screen.<br>
<p>
<form name="submitForm" action="dssACCRMEventDB.jsp" action="post">
<input type="hidden" name="temporary"><input type="hidden" name="temporary"><input type="hidden" name="temporary">
<input type="hidden" name="temporary"><input type="hidden" name="temporary"><input type="hidden" name="temporary">
<input type="hidden" name="temporary"><input type="hidden" name="temporary"><input type="hidden" name="temporary">
<input type="hidden" name="temporary"><input type="hidden" name="temporary"><input type="hidden" name="temporary">
<input type="hidden" name="temporary"><input type="hidden" name="temporary"><input type="hidden" name="temporary">
<input type="hidden" name="temporary"><input type="hidden" name="temporary"><input type="hidden" name="temporary">
<input type="hidden" name="temporary"><input type="hidden" name="temporary"><input type="hidden" name="temporary">
<input type="hidden" name="temporary"><input type="hidden" name="temporary"><input type="hidden" name="temporary">
<input type="hidden" name="temporary"><input type="hidden" name="temporary"><input type="hidden" name="temporary">
<input type="hidden" name="temporary"><input type="hidden" name="temporary"><input type="hidden" name="temporary">
<input type="hidden" name="temporary"><input type="hidden" name="temporary"><input type="hidden" name="temporary">
<input type="hidden" name="temporary"><input type="hidden" name="temporary"><input type="hidden" name="temporary">
<input type="hidden" name="temporary"><input type="hidden" name="temporary"><input type="hidden" name="temporary">
<input type="hidden" name="temporary"><input type="hidden" name="temporary"><input type="hidden" name="temporary">
<input type="hidden" name="temporary"><input type="hidden" name="temporary"><input type="hidden" name="temporary">
<input type="hidden" name="temporary"><input type="hidden" name="temporary"><input type="hidden" name="temporary">
<input type="hidden" name="temporary"><input type="hidden" name="temporary"><input type="hidden" name="temporary">
<input type="hidden" name="temporary"><input type="hidden" name="temporary"><input type="hidden" name="temporary">
<input type="hidden" name="temporary"><input type="hidden" name="temporary"><input type="hidden" name="temporary">
<input type="hidden" name="temporary"><input type="hidden" name="temporary"><input type="hidden" name="temporary">
<input type="hidden" name="temporary"><input type="hidden" name="temporary"><input type="hidden" name="temporary">
</form>
<form name="validate">
<input type="hidden" name="validation">
</form>
</BODY>
</HTML> -
Closing the browser with a single click from form
Hi All,
Will u please help me anyone how to close the browser with a single click pressing exit button or closing the cross buton.
ArifAlways start with a search on this forum
Solution
Instructions:
1. Using an html or text editor, create an html file with the following code:
<html>
<head>
<script type="text/javascript">
// Create a ref to the original method
var windowClose = window.close;
// Re-implement window.open
window.close = function ()
window.open("","_self");
windowClose();
</script>
</head>
<body onload="window.close()">
<!-- The following text added in case users have disabled Java Scripting -->
<!-- or if browser fails to close for some other reason. -->
Your browser or system settings have prevented this window from closing.
In order to ensure the highest level of security,
please close/exit this browser session immediately.
</body>
</html> 2. Save the html file with the following name: close.htm
3. Store this file on the middle tier, in a directory which has an associated virtual path configured in the HTTP Server. You can use a pre-existing path or create a new one. For example, in version 10.1.2 you could copy the html file to this directory:
ORACLE_HOME\tools\web\html
The above virtually maps to the following by default:
/forms/html/
For information on creating a virtual path for the HTTP Server, please refer to the HTTP Server Administrator's Guide.
4. In the Forms application, choose the desired trigger where you would like to execute the closing of the browser. Remember that by executing this code, the application will be ungracefully terminated, therefore it is recommended that the following code only be entered in the Forms POST-FORM trigger.
web.show_document ('/forms/html/close.htm','_self');
5. Compile and run the form.
Upon exiting the form, the web browser will call close.htm resulting in the browser closing.
This has been successfully tested using IE7 on XP-SP3. Although this code will work with other browsers, for example FireFox 3, a configuration change in FF must be made in order for it to work correctly.
Manual Steps Required for FireFox:
1. Open one instance of the FireFox browser.
2. In the address bar, enter the following and press Enter on the keyboard:
about:config
3. In the list presented, locate the following parameter:
dom.allow_scripts_to_close_windows
4. Double-click on this parameter to set its value to TRUE
5. Exit the browser
Edited by: BaiG on Mar 30, 2010 12:23 PM -
Hello , can you with a single account creative cloud , install on two computers ? (The one from home and one at work)
This will avoid me lugging around my mac, sorry for my english.
Margaux, photographerYes, this has been allowed with Adobe applications going back many years. A program such as Photoshop can legally be installed and activated on two computers at a time for the use of the single licensed user. You can't install legally on your own and a friend's computer for use by the two different people. Prior to Creative Cloud, there was an unwritten limit on how many times a given application could be activated, but there is no longer such a limit under CC. That means you could theoretically install on three or four computers, activating only two at a time, and then deactivating one or both before activating on another computer.
-
How to add a JMenubar and a JTable in a JFrame in a single application
Hi all,
I require an urgent help from you.I am a beginer in programming Swing.I want to add a menu,combobox,and a table in a single application.I did coding as below:
package com.BSS;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.table.*;
import javax.swing.border.*;
import javax.swing.event.*;
public class newssa extends JFrame
public JMenuBar menuBar;
public JToolBar toolBar;
public JFrame frame;
private JLabel jLabel1;
private JLabel jLabel2;
private JLabel jLabel3;
private JLabel jLabel4;
private JLabel jLabel5;
private JLabel jLabel6;
private JComboBox jComboBox1;
private JComboBox jComboBox2;
private JComboBox jComboBox3;
private JComboBox jComboBox4;
private JComboBox jComboBox5;
private JComboBox jComboBox6;
private JTable jTable1;
private JScrollPane jScrollPane1;
private JPanel contentPane;
public newssa()
super();
initializeComponent();
this.setVisible(true);
private void initializeComponent()
jLabel1 = new JLabel();
jLabel2 = new JLabel();
jLabel3 = new JLabel();
jLabel4 = new JLabel();
jLabel5 = new JLabel();
jLabel6 = new JLabel();
jComboBox1 = new JComboBox();
jComboBox2 = new JComboBox();
jComboBox3 = new JComboBox();
jComboBox4 = new JComboBox();
jComboBox5 = new JComboBox();
jComboBox6 = new JComboBox();
frame=new JFrame();
//Included here
JMenuBar menuBar = new JMenuBar();
JMenu general = new JMenu("General");
menuBar.add(general);
JMenu actions =new JMenu("Actions");
menuBar.add(actions);
JMenu view=new JMenu("View");
menuBar.add(view);
JMenu Timescale=new JMenu("TimeScale");
menuBar.add(Timescale);
Timescale.add("Today CTRL+D");
Timescale.add("Current Week CTRL+W");
Timescale.add("Current Month CTRL+M");
Timescale.add("Current Quarter CTRL+Q");
Timescale.add("Current Year CTRL+Y");
Timescale.add("Custom TimeScale CTRL+U");
JMenu start=new JMenu("Start");
menuBar.add(start);
JMenu options=new JMenu("Options");
menuBar.add(options);
JMenu help=new JMenu("Help");
menuBar.add(help);
JFrame.setDefaultLookAndFeelDecorated(true);
frame.setJMenuBar(menuBar);
frame.pack();
frame.setVisible(true);
toolBar = new JToolBar("Formatting");
toolBar.addSeparator();
//Before this included new
String columnNames[] = { "ColorStatus", "Flash", "Service Order","Configuration","Configuration Description"};
// Create some data
String dataValues[][] =
{ "blue", "flash", "ORT001" },
{ "AVCONF", "av configuration with warrenty"}
// Create a new table instance
//jTable1 = new JTable( dataValues, columnNames );
jTable1 = new JTable(dataValues,columnNames);
jScrollPane1 = new JScrollPane(jTable1);
contentPane = (JPanel)this.getContentPane();
//scrollPane = new JScrollPane( table );
//topPanel.add( scrollPane, BorderLayout.CENTER );
// jLabel1
jLabel1.setText("Service Centers");
// jLabel2
jLabel2.setText("Service Areas");
// jLabel4
jLabel3.setText("Skills");
jLabel4.setText("Availablity Types");
// jLabel5
jLabel5.setText("From Date");
// jLabel6
jLabel6.setText("To");
// jComboBox1
jComboBox1.addItem("Coimbatore");
jComboBox1.addItem("Chennai");
jComboBox1.addItem("Mumbai");
jComboBox1.addItem("New Delhi");
jComboBox1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e)
jComboBox1_actionPerformed(e);
// jComboBox2
jComboBox2.addItem("North Zone");
jComboBox2.addItem("South Zone");
jComboBox2.addItem("Central Zone");
jComboBox2.addItem("Eastern Zone");
jComboBox2.addItem("Western Zone");
jComboBox2.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e)
jComboBox2_actionPerformed(e);
// jComboBox3
jComboBox3.addItem("Microsoft Components");
jComboBox3.addItem("Java Technologies");
jComboBox3.addItem("ERP");
jComboBox3.addItem("Others");
jComboBox3.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e)
jComboBox3_actionPerformed(e);
// jComboBox4
jComboBox4.addItem("One");
jComboBox4.addItem("Two");
jComboBox4.addItem("Three");
jComboBox4.addItem("Four");
jComboBox4.addItem("Five");
jComboBox4.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e)
jComboBox4_actionPerformed(e);
// jComboBox5
jComboBox5.addItem("12/12/2004");
jComboBox5.addItem("13/12/2004");
jComboBox5.addItem("14/12/2004");
jComboBox5.setEditable(true);
jComboBox5.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e)
jComboBox5_actionPerformed(e);
// jComboBox6
jComboBox6.addItem("12/11/2004");
jComboBox6.addItem("13/11/2004");
jComboBox6.addItem("14/11/2004");
jComboBox6.setEditable(true);
jComboBox6.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e)
jComboBox6_actionPerformed(e);
// jTable1
jTable1.setModel(new DefaultTableModel(4, 4));
// jScrollPane1
jScrollPane1.setViewportView(jTable1);
// contentPane
contentPane.setLayout(null);
addComponent(contentPane, jLabel1, 2,29,84,18);
addComponent(contentPane, jLabel2, 201,33,76,18);
addComponent(contentPane, jLabel3, 384,32,59,18);
addComponent(contentPane, jLabel4, 2,77,85,18);
addComponent(contentPane, jLabel5, 197,79,84,18);
addComponent(contentPane, jLabel6, 384,80,60,18);
addComponent(contentPane, jComboBox1, 85,32,100,22);
addComponent(contentPane, jComboBox2, 276,32,100,22);
addComponent(contentPane, jComboBox3, 419,30,100,22);
addComponent(contentPane, jComboBox4, 88,76,100,22);
addComponent(contentPane, jComboBox5, 276,79,100,22);
addComponent(contentPane, jComboBox6, 421,78,100,22);
addComponent(contentPane, jScrollPane1, 33,158,504,170);
// newssa
this.setTitle("SSA Service Scheduler");
this.setLocation(new Point(0, 0));
this.setSize(new Dimension(560, 485));
/** Add Component Without a Layout Manager (Absolute Positioning) */
private void addComponent(Container container,Component c,int x,int y,int width,int height)
c.setBounds(x,y,width,height);
container.add(c);
// TODO: Add any appropriate code in the following Event Handling Methods
private void jComboBox1_actionPerformed(ActionEvent e)
int index = jComboBox1.getSelectedIndex();
switch(index)
case 0: System.out.println("Area Coimbatore Selected "); break;
case 1: System.out.println("Area Chennai selected"); break;
case 2: System.out.println("Mumbai being selected"); break;
case 3: System.out.println("New Delhi being selected"); break;
private void jComboBox2_actionPerformed(ActionEvent e)
int index = jComboBox2.getSelectedIndex();
switch(index)
case 0: System.out.println("North Zone Selcted "); break;
case 1: System.out.println("South Zone being selected"); break;
case 2: System.out.println("Central Zone being selected"); break;
case 3: System.out.println("Eastern Zone being selected"); break;
case 4: System.out.println("Western Zone being selected"); break;
private void jComboBox3_actionPerformed(ActionEvent e)
int index = jComboBox3.getSelectedIndex();
switch(index)
case 0: System.out.println("Microsoft Components being selected"); break;
case 1: System.out.println("Java Technologies being selected"); break;
case 2: System.out.println("ERP Tehnologies being selected"); break;
case 3: System.out.println("Other's selected"); break;
private void jComboBox4_actionPerformed(ActionEvent e)
int index = jComboBox4.getSelectedIndex();
switch(index)
case 0: System.out.println("One selected"); break;
case 1: System.out.println("Two selected"); break;
case 2: System.out.println("Three selected"); break;
case 3: System.out.println("Four selected"); break;
case 4: System.out.println("Five selected"); break;
private void jComboBox5_actionPerformed(ActionEvent e)
int index = jComboBox5.getSelectedIndex();
switch(index)
case 0: System.out.println("12/12/2004 being selected"); break;
case 1: System.out.println("13/12/2004 being selected"); break;
case 2: System.out.println("14/12/2004 being selected"); break;
private void jComboBox6_actionPerformed(ActionEvent e)
int index = jComboBox6.getSelectedIndex();
switch(index)
case 0: System.out.println("12/11/2004 being selected"); break;
case 1: System.out.println("13/11/2004 being selected"); break;
case 2: System.out.println("14/11/2004 being selected"); break;
public static void main(String[] args)
newssa ssa=new newssa();
//JFrame.setDefaultLookAndFeelDecorated(true);
//JDialog.setDefaultLookAndFeelDecorated(true);
//JFrame frame = new JFrame("SSA Service Scheduler");
//frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//frame.setJMenuBar(ssa.menuBar);
//frame.getContentPane( ).add(ssa.toolBar, BorderLayout.NORTH);
//frame.getContentPane( ).add(ssa.pane, BorderLayout.CENTER);
//frame.pack( );
//frame.setVisible(true);
try
//UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
UIManager.setLookAndFeel("com.sun.java.swing.plaf.motif.MotifLookAndFeel");
catch (Exception ex)
System.out.println("Failed loading L&F: ");
System.out.println(ex);
But as a O/P ,I am getting menu in a seperate windos and the rest of the combobox and jtable in a seperate window.Kindly help me to solve the application.
VERY URGENT PLEASE..
Thanks in advance
with kind regds
Satheesh.KBut did u mean this as the next problem,Which I will come across..Yes, the second setVisible(true) seemed to be producing a smaller frame behind the main frame.
And your JMenuBar is declared twice, but not sure if this will affect the code - haven't read it all. -
How can i migrate a single application from my old macbook to my new macbook
Can I migrate only single applications or files using the migration assistant? how?
I feel I've explained plenty what you must do but you aren't getting it.
All music on your old iPhone should be in your iTunes library on your computer. Transfer the music from your iTunes library on your computer to your new iPhone in the same way it was transferred from your iTunes library to your old iPhone - via the iTunes sync/transfer process.
Since you prefer the manual way, you must manually drag and drop the same 377 songs from your iTunes library to your new iPhone - in the same way the 377 songs were manually transferred from your iTunes library to your old iPhone.
Or you can sync which provides more options overall. Create an iTunes playlist for the 377 songs. Select Sync Music under the Music tab for your iPhone sync preferences with iTunes and choose selected playlists, artists, albums, and genres. Select the iTunes playlist below that includes the 377 songs followed by a sync. -
My first, and perhaps clearest, example here is iMessage. It's great that I can take and reply to messages on my iPhone and on my iPad as if it didn't matter which device I use. However, I spend most of my working day on my Mac, and it's a little annoying to have to use one of my other devices to send and receive messages when my most powerful device (my Mac) is right there under my finger tips. I'm an iChat user, which has some great functionality, but of course it doesn't integrate with iMessage in anyway or Facetime for that matter, even though you can effectively do a "Facetime" call on iChat if the other person has the appropriate user account.
So my question/suggestion is - I wonder if there's a way of bringing iChat, iMessage, Facetime etc... all into harmony so that messages, video chatting, screen sharing etc... is dealt with under a single application. I accept you may have it so that there is more functionality on, say, your Mac (e.g. screen sharing). But the integration would still be helpful I think.
Any thoughts (with the hope that Apple will also see these comments/answers/suggestions and take it as food for thought on product development)?
Incidentally, and also for Apple's benefit, please don't read this message as as meaning that I don't like what's already been done! It's great and I think it really is moving in the right direction. It's just that there's still room for improvement.
RobThanks for responding Wes. I've pasted the confusing text from that website referenced in my original post below:
Ingest movie clips
You can ingest entire movie clips or a selected portion of the movie clips (partial ingest). You can also transcode the selected movie clips using more than one encoding option.
Select File > Ingest. Alternatively, press Ctrl+I (Win) or Cmd+I (Mac OS).
Navigate to the folder containing media, and click the folder. The contents of the folder are displayed in the center panel.
Tip: To access folders from which you previously ingested content, use the menu above the panel.
Do the following based on your requirements:
To view content as Thumbnails, click the Icon View button.
To view content as a list, click the List View button.
To quickly preview the contents of a movie clip, drag the cursor across the thumbnail. You can also click the thumbnail and use the playhead to scrub the movie. Alternatively, use the JKL keys to control playback of the selected thumbnail.
To change the thumbnail size of movie clips in the panel, use the Zoom slide bar. -
Oracle E-Business Suite account has not been linked with the Single Sign-On
We followed this note 1484024.1 to integrate Oracle EBS 12.1.3 with Oracle Access manager 11g R2.
Integrating Oracle E-Business Suite Release 12 with Oracle Access Manager 11gR2 (11.1.2) using Oracle E-Business Suite Access Gate [ID 1484024.1]
All the steps have been complete successfully without any errors.
When the excisistign users trying to login.. they will get the single single OAM page but not able to use their current user id and passwords..
it says: "Your Oracle E-Business Suite account has not been linked with the Single Sign-On account that you just entered. Please enter your Oracle E-Business Suite information. The next time you sign on with your Single Sign-On account, it will automatically sign you on to the Oracle E-Business Suite using the following account information. "
Any help greatly appreciated.
Thanks!Hi,
it says: "Your Oracle E-Business Suite account has not been linked with the Single Sign-On account that you just entered. Please enter your Oracle E-Business Suite information. The next time you sign on with your Single Sign-On account, it will automatically sign you on to the Oracle E-Business Suite using the following account information. "this is expected, if you are linking your existing OID users with existing EBS users.
When it asks the user information here, enter the EBS username and password.
The first time users login to ebs, it needs to link that particular usre with a particular.
The next time you login, it does auto link.
Please see "Applications SSO Auto Link User (APPS_SSO_AUTO_LINK_USER)" in
http://docs.oracle.com/cd/E18727_01/doc.121/e12843/T156458T465432.htm
Thanks -
I'm testing out datasockets to an A-B RSLinx OPC server. At the moment, it appears as though each register in the PLC has to be accessed with an individual URL. Is it possible to access a group of (sequential) registers with a single URL? I suspect i may have to cluster a bunch of individuals together
goog,
For each data member, you will need a unique URL. There is not a way to bundle them into one URL.
Randy Hoskin
Applications Engineer
National Instruments
http://www.ni.com/ask -
Using XA with Oracle ERP application
Hi,
We have two Tuxedo Domains that we need to establish global transaction:
First Domain - Tuxedo 6.4 with Oracle 8.0.6 database.
Second Domain - Tuxedo 6.4 with Oracle ERP application (Oracel version 8.0.5)
A Client that calls a Tuxedo server in the first domain this service doing some work
on the database and then calls another service in the second domain (using Domain
connection).
The service in the second Domain activate a Oracle API (package) from the ERP application.
The Rollback works but we problem with the commit. We recieve the following Oracle
Error - ORA-06574: Function "VIEW_ALL" references package state can not execute remotly.
Revital Bloom
[email protected]Subbu,
As I mentioned earlier in this thread, support for Oracle RAC has been
implemented in Tuxedo 9.1 and in the Tuxedo 8.1 and Tuxedo 9.0 rolling patch
streams. There are no plans to backport this feature to Tuxedo 8.0. If you
plan to use RAC transactionally and if it is possible for multiple services
that could be located on different RAC instances to be accessed in a single
transaction (which will be true for most applications), then you should
upgrade to a version of Tuxedo with support for Oracle RAC. The
documentation at http://e-docs.bea.com/tuxedo/tux91/ads/adorac.htm#248431
gives an overview of RAC support in Tuxedo.
Ed
<Subramonian Arumugom> wrote in message news:[email protected]..
Hello Nadeer, Hello Ed,
Has the implementation of Tuxedo8.0 with Oracle RAC was completed
successfully ?.
If it is done , I have few doubts. Could you please help me ?.
1) I hope your Tuxedo middleware connects to the oracle Database using
Oracle XA resource manager and the TMS server built using buildtms with
oracle as RM .As per the mail from Ed, migration of Tuxedo9.1 should be done
before moving to Oracle RAC.
Also from BEA documentation, Oracle RAC support was given as new feature in
Tuxedo9.1.
Our Application uses Oracle RM to connect to Oracle DB[ Oracle 10g] from
Tuxedo8.0. So do we need to upgrade to Tuxedo9.1. for using Oracle RAC ?.
Thanks for your help
Best Regards
Subbu
#9880278452
Edited by subramonian.a at 04/16/2007 12:15 AM
Edited by subramonian.a at 04/16/2007 12:19 AM
Edited by subramonian.a at 04/16/2007 1:37 AM
Edited by subramonian.a at 04/16/2007 8:20 AM -
Get the battery usage of single application programmatically in ios7 and later
Get the battery usage of single application programmatically in ios7 and later
Not natively with iOS. you might check the app store for a battery monitoring app, but to be honest, it you find one that claims to be able to do this, I'm nopt sure I would trust it.
Maybe you are looking for
-
How to create a tree structure using forms.
Hi, How do i create a tree structure using oracle forms,i have a table named Functions and a specific column 'Function Name' should be displayed in the tree nodes.Can anyone help me out on how to create a tree structure and populating the nodes?? tha
-
Hi, I have configured JDBC Reciever Adapater and i have given the paramenter like following - JDBC Drvier : com.microsoft.sqlserver.jdbc.SQLServerDriver Connection : jdbc:sqlserver://<dbServer>:14330;databaseName=<dbName> (Note - with the above detai
-
Hi all, I am intermediate to this J2EE domain,I am in this technology and having more than 1 year exp.I know jsp,servlet,beans,Oracle.But as for my experiene concerned ,i want to improve my skills in J2EE (EJB,JMS...and knowledge of Application serve
-
Thu Jul 31 00:16:54 2014 panic(cpu 1 caller 0xffffff800cedc24e): Kernel trap at 0x00007fff0ced693b, type 13=general protection, registers: CR0: 0x000000008001003b, CR2: 0x000000013062b000, CR3: 0x00000000356c1026, CR4: 0x00000000001606e0 RAX: 0xfffff
-
Premiere Pro CS5.5 & Nvidia Drivers 267.17 & 270.71
Hello, Information for anyone struggling with a PC, PPro CS5.5, Quadro 2000, and nvidia drivers 267.17 or 270.71: This past week-end I struggled getting PPro CS5.5 to run right on the system I just built. WIN7 x64, 2 PNY Quadro 2000 video cards, nvid