Please! I need a solution to read the running max-min
I am a starter and not too good in labview. I need to read the running max-min as the random numbers are generated in the loop. iam not getting it right. I have attached the VI. Can anybody please help me making it right???
Please Please Please!!
Thanks
CL
Attachments:
run max.vi 46 KB
Your code was somewhat confusing, it was hard to tell what was going on since the upper and lower kept flip-flopping (try to keep mins and max's seperate). This is *almost* the same code you submitted, just cleaned up a bit more. Remember that you want to initialize to the first value that comes out of the random number generator, since that will give you a real minimum since the generator may never reach the initialized minimum that you set (which in your case was zero, I doubt the generator will ever return true zero).
-Danny
Message Edited by texasdiaz on 09-26-2005 02:44 PM
Attachments:
run max.vi 45 KB
Similar Messages
-
HT1349 please i need an email to contact the apple store because I need information about iphone
Please i need an email to contact the apple because i need some information about iphone. Can you send to me an email? flavinha_bs<at>yahoo<dot>com<dot>br
<Email Edited By Host>We are just users like you, not Apple. Go to http://www.apple.com/retail to get contact information for Apple stores.
-
I can't find Personal Hotspot after upgrading my iPhone 5 32gb to IOS8.1......I have searched everywhere and still cannot find it .. Please I need a solution.
Hi Rayhiggs,
Welcome to the Apple Support Communities!
To set up and use Personal Hotspot please use the attached article for the process. If Personal Hotspot is not showing as an option in Settings > Cellular, it may be necessary to contact your carrier as described in the article.
iOS: Understanding Personal Hotspot - Apple Support
Cheers,
Joe -
Please i need help with switch from the us store to malaysian store how i can switch
Please i need help with switch from the us store to malaysian store how i can switch
Click here and follow the instructions to change the iTunes Store country.
(82303) -
Please send me a solution to resolve the error
Please send me a solution to resolve the error: IPHONE5, IMEI number ****. The installation of Firmware to version IOs 7.0.2 via WI FI, failed and the update does not happen, the phone rebooted and the connection icon ITUNES, when you try to re-install the Firmware via ITUNES, fails error-9, with a try through Windows-error 14, when installing Firmware via DFU the same error. What to do? The warranty period number to November 5, 2013
<Edited By Host>Hello rte05,
The following article provides information regarding both errors encountered, and steps that can help get the update process working.
iTunes: Specific update-and-restore error messages and advanced troubleshooting
http://support.apple.com/kb/TS3694
Cheers,
Allen -
I want to programmatically set the limit (max, min input) of a control inside a cluster. (see attached VI).
The max, min value will be read from a file. The input of the control must be within the range defined by the max and min value.
Can anyone tell me how to do it?
Thanks a lot for your kind help.
XiaogangAccessing the properties of a cluster (or array) is not a trivial operation until you have done it once. It's a two step (at least) process : first, ask for a reference (array of...) to the objects contained in the cluster, then tell LV what kind of object you are adressing.
See the attachment.
Chilly Charly (aka CC)
E-List Master - Kudos glutton - Press the yellow button on the left...
Attachments:
How to set limit[1].vi 52 KB -
I need a solution to restrict the acccess by using only one role....
///obs_login_html.jsp//
<%@ page import="org.ticker.*"%>
<%@ page language="java"
contentType="text/html; charset=UTF-8"
session="true"
import="com.hp.ov.ui.client.common.util.TimeZoneUtils,
com.hp.ov.obs.rep.IRepositoryObject,
com.hp.ifc.rep.AppTimeZoneInfo"
%>
<%
readMsg msg=new readMsg();
String strMessage=msg.sendMsg();
%>
<%!
final static String portalTitle = "K-C Self Help Site";
final static String portalTitle1 = " ***If you are ITS or use the full client, do not use this portal***";
final static String resourceBundle = "login";
final static String login = "Login";
final static String prompt = "Please enter your user name and password";
final static String userName = "User name:";
final static String password = "Password:";
final static String timeZone = "Timezone:";
final static String userDefaultTZ = "User Default";
private String getLocalizedString(HttpServletRequest request, String name, String text)
com.hp.ov.portal.util.OVResourceBundle bundle = com.hp.ov.portal.util.OVResourceBundle.getBundle(request, name, true);
return bundle.getString(text);
%>
<jsp:useBean id="error_msg" scope="session"
class="com.hp.ov.portal.security.LoginErrorMsg" />
<html>
<head>
<title><%=getLocalizedString(request,resourceBundle,portalTitle)%> - <%=getLocalizedString(request,resourceBundle,portalTitle)%> - <%=getLocalizedString(request,resourceBundle,login)%></title>
<link rel='stylesheet' type='text/css' href='/OvSipDocs/Skins/Chrome/Chrome.css' />
<script language="JavaScript" type="text/javascript">
<!--
function nsubmit() {
document.pwform.J_PASSWORD.focus();
return false;
function pwsubmit() {
document.pwform.J_USERNAME.value = document.nform.J_USERNAME.value;
return true;
//-->
</script>
</head>
<body bgcolor="white" text="black" onload='document.nform.J_USERNAME.focus()'>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr bgcolor="darkblue">
<td>
<font color="white">
<b> <%=getLocalizedString(request,resourceBundle,portalTitle)%></b>
</font>
</td>
</tr>
</table>
<br>
<table cellpadding="0" cellspacing="0" border="0" width="55%">
<tr bgcolor="white">
<td>
<font color="red" size="4">
<b> <%=getLocalizedString(request,resourceBundle,portalTitle1)%></b>
</font>
</td>
</tr>
</table>
<br>
<br>
<br>
<table border='0' cellspacing='0' cellpadding='0' class='paneltable' width='45%'>
<tr>
<td class='paneltopleftround'><img src='/OvSipDocs/C/images/framework/clear.gif' width='24' height='10'/></td>
<td class='paneltopround'><img src='/OvSipDocs/C/images/framework/clear.gif' height='10'/></td>
<td class='paneltoprightround'><img src='/OvSipDocs/C/images/framework/clear.gif' width='24' height='10'/></td>
</tr>
<tr>
<td class='panelleft'> </td>
<td class='panel'>
<table>
<tr >
<td nowrap>
<font color='black'>
<%
String message = error_msg.getErrorMsg();
if (message != null) {
out.println("<h2>" message "</h2>");
%>
<h2><%=getLocalizedString(request,resourceBundle,prompt)%></h2>
</font>
</td>
</tr>
<tr >
<td>
<form name="nform" action="<%=request.getContextPath()%>/" onsubmit="return nsubmit()" method="post">
<table>
<tr>
<td><%=getLocalizedString(request,resourceBundle,userName)%></td>
<td><input type="text" name="J_USERNAME" size="30"/></td></tr>
<script language="JavaScript" type="text/javascript">
<!--
document.write('<\/form><form name="pwform" action="<%=request.getContextPath()%>/" onSubmit="return pwsubmit()" method="post">')
//-->
</script>
<input type="hidden" name="J_USERNAME" value="" />
<tr>
<td><%=getLocalizedString(request,resourceBundle,password)%></td>
<td><input type="password" name="J_PASSWORD" size="30"/></td>
</tr>
<%
AppTimeZoneInfo tzis[] = TimeZoneUtils.getTimeZones();
if (tzis != null) {
%>
<tr>
<td><%=getLocalizedString(request,resourceBundle,timeZone)%></td>
<td>
<select name="Timezone">
<option selected="true" value=""><%=userDefaultTZ%></option>
<%
for (int i = 0; i < tzis.length; i++) {
AppTimeZoneInfo tzi = (AppTimeZoneInfo) tzis;
if (tzi.getAdd()) {
//if (tzi.enabled()) { //588 does no support enabled for timezones
String timeZoneShortName = tzi.getShortName();
String timeZoneInfo = TimeZoneUtils.buildTextTimeZone(tzi, false);
%>
<option value="<%=timeZoneShortName%>"><%=timeZoneInfo%></option>
<%
%>
</select>
</td>
</tr>
<%
%>
<tr>
<td><input type="submit" value="<%=getLocalizedString(request,resourceBundle,login)%>"/></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</td>
<td class='panelright'> </td>
</tr>
<tr>
<td class='panelbottomleft'><img src='/OvSipDocs/C/images/framework/clear.gif' width='24' height='17'/></td>
<td class='panelbottom'> </td>
<td class='panelbottomright'><img src='/OvSipDocs/C/images/framework/clear.gif' width='24' height='17'/></td>
</tr>
</table>
<table>
<tr bgcolor="darkblue">
<font color=white face="Verdana">
<script language="JavaScript1.2">
//Response.Write("hello")
</script>
<script language="JavaScript1.2">
//Specify the marquee's width (in pixels)
screenSize = screen.availWidth;
var marqueewidth = screenSize + "px"
//Specify the marquee's height
var marqueeheight="25px"
//Specify the marquee's marquee speed (larger is faster 1-10)
//var marqueespeed=2
var marqueespeed=4
//configure background color:
var marqueebgcolor="rgb(0,128,192)"
//Pause marquee onMousever (0=no. 1=yes)?
var pauseit=1
myMesg='<NOBR>****Welcome to K-C Self-Service HelpDesk Site****All K-C ITS users are requested to use HP Service Desk 4.5 Desktop Client Application to create / manage tickets****</NOBR>';
var marqueecontent=myMesg
marqueespeed=(document.all)? marqueespeed : Math.max(1, marqueespeed-1) //slow speed down by 1 for NS
var copyspeed=marqueespeed
var pausespeed=(pauseit==0)? copyspeed: 0
var iedom=document.all||document.getElementById
if (iedom)
document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+marqueecontent+'</span>')
var actualwidth=''
var cross_marquee, ns_marquee
function populate(){
if (iedom){
cross_marquee=document.getElementById? document.getElementById("iemarquee") : document.all.iemarquee
cross_marquee.style.left=parseInt(marqueewidth)+8+"px"
cross_marquee.innerHTML=marqueecontent
actualwidth=document.all? temp.offsetWidth : document.getElementById("temp").offsetWidth
else if (document.layers){
ns_marquee=document.ns_marquee.document.ns_marquee2
ns_marquee.left=parseInt(marqueewidth)+8
ns_marquee.document.write(marqueecontent)
ns_marquee.document.close()
actualwidth=ns_marquee.document.width
lefttime=setInterval("scrollmarquee()",20)
window.onload=populate
function scrollmarquee(){
if (iedom){
if (parseInt(cross_marquee.style.left)>(actualwidth*(-1)+8))
cross_marquee.style.left=parseInt(cross_marquee.style.left)-copyspeed+"px"
else
cross_marquee.style.left=parseInt(marqueewidth)+8+"px"
else if (document.layers){
if (ns_marquee.left>(actualwidth*(-1)+8))
ns_marquee.left-=copyspeed
else
ns_marquee.left=parseInt(marqueewidth)+8
if (iedom||document.layers){
with (document){
document.write('<table border="0" cellspacing="0" cellpadding="0"><td>')
if (iedom){
write('<div style="position:relative;width:'+marqueewidth+';height:'+marqueeheight+';overflow:hidden">')
write('<div style="position:absolute;width:'+marqueewidth+';height:'+marqueeheight+';background-color:'+marqueebgcolor+'" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed">')
write('<div id="iemarquee" style="position:absolute;left:0px;top:0px"></div>')
write('</div></div>')
else if (document.layers){
write('<ilayer width='+marqueewidth+' height='+marqueeheight+' name="ns_marquee" bgColor='+marqueebgcolor+'>')
write('<layer name="ns_marquee2" left=0 top=0 onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed"></layer>')
write('</ilayer>')
document.write('</td></table>')
</script>
</font>
</tr>
</table>
</body>
</html>
//obs_login_html_jsp.java//
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
import org.ticker.*;
import com.hp.ov.ui.client.common.util.TimeZoneUtils;
import com.hp.ov.obs.rep.IRepositoryObject;
import com.hp.ifc.rep.AppTimeZoneInfo;
public class obs_login_html_jsp extends HttpJspBase {
final static String portalTitle = "K-C Self-Service HelpDesk";
final static String portalTitle1 = " ***If it is an URGENT call, please call the Service Desk ***";
final static String portalTitle2 = " ***If you are ITS or use the full client, do not use this portal ***";
final static String resourceBundle = "login";
final static String login = "Login";
final static String prompt = "Please enter your user name and password";
final static String userName = "User name:";
final static String password = "Password:";
final static String timeZone = "Timezone:";
final static String userDefaultTZ = "User Default";
private String getLocalizedString(HttpServletRequest request, String name, String text)
com.hp.ov.portal.util.OVResourceBundle bundle = com.hp.ov.portal.util.OVResourceBundle.getBundle(request, name, true);
return bundle.getString(text);
private static java.util.Vector jspxincludes;
public java.util.List getIncludes() {
return jspxincludes;
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
javax.servlet.jsp.PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter jspxout = null;
try {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html; charset=UTF-8");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
jspxout = out;
out.write("\r\n");
out.write("\r\n\r\n");
readMsg msg=new readMsg();
String strMessage=msg.sendMsg();
out.write("\r\n\r\n");
out.write("\r\n\r\n");
com.hp.ov.portal.security.LoginErrorMsg error_msg = null;
synchronized (session) {
error_msg = (com.hp.ov.portal.security.LoginErrorMsg) pageContext.getAttribute("error_msg", PageContext.SESSION_SCOPE);
if (error_msg == null){
try {
error_msg = (com.hp.ov.portal.security.LoginErrorMsg) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "com.hp.ov.portal.security.LoginErrorMsg");
} catch (ClassNotFoundException exc) {
throw new InstantiationException(exc.getMessage());
} catch (Exception exc) {
throw new ServletException("Cannot create bean of class " + "com.hp.ov.portal.security.LoginErrorMsg", exc);
pageContext.setAttribute("error_msg", error_msg, PageContext.SESSION_SCOPE);
out.write("\r\n\r\n");
out.write("<html>\r\n");
out.write("<head>\r\n ");
out.write("<title>");
out.print(getLocalizedString(request,resourceBundle,portalTitle));
out.write(" - ");
out.print(getLocalizedString(request,resourceBundle,portalTitle));
out.write(" -");
out.print(getLocalizedString(request,resourceBundle,portalTitle));
out.write("- ");
out.print(getLocalizedString(request,resourceBundle,login));
out.write("</title>\r\n ");
out.write("<link rel='stylesheet' type='text/css' href='/OvSipDocs/Skins/Chrome/Chrome.css' />\r\n ");
out.write("<script language=\"JavaScript\" type=\"text/javascript\">\r\n");
out.write("<!--\r\n function nsubmit() {\r\n document.pwform.J_PASSWORD.focus();\r\n return false;\r\n }\r\n\r\n function pwsubmit() {\r\n document.pwform.J_USERNAME.value = document.nform.J_USERNAME.value;\r\n \r\n\t\t return true;\r\n }\r\n//-->\r\n\r\n\r\n ");
out.write("</script>\r\n\r\n");
out.write("</head>\r\n\r\n");
out.write("<body bgcolor=\"white\" text=\"black\" onload='document.nform.J_USERNAME.focus()'>\r\n\r\n ");
out.write("<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\">\r\n ");
out.write("<tr bgcolor=\"darkblue\">\r\n ");
out.write("<td>\r\n\t ");
out.write("<font color=\"white\">\r\n\t ");
out.write("<b> ");
out.print(getLocalizedString(request,resourceBundle,portalTitle));
out.write("</b>\r\n\t ");
out.write("</font>\r\n\t ");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("</table>\r\n ");
out.write("<br> \r\n");
out.write("<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"55%\">\r\n");
out.write("<tr bgcolor=\"white\">\r\n");
out.write("<td>\r\n\t ");
out.write("<font color=\"red\" size=\"4\">\r\n\t ");
out.write("<b> ");
out.print(getLocalizedString(request,resourceBundle,portalTitle1));
out.write("</b>\r\n\t ");
out.write("</font>\r\n\t ");
out.write("</td>\r\n");
out.write("</tr>\r\n");
out.write("</table>\r\n");
out.write("<br> \r\n");
out.write("<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"55%\">\r\n");
out.write("<tr bgcolor=\"white\">\r\n");
out.write("<td>\r\n\t ");
out.write("<font color=\"red\" size=\"4\">\r\n\t ");
out.write("<b> ");
out.print(getLocalizedString(request,resourceBundle,portalTitle2));
out.write("</b>\r\n\t ");
out.write("</font>\r\n\t ");
out.write("</td>\r\n");
out.write("</tr>\r\n");
out.write("</table>\r\n");
out.write("<br>\r\n ");
out.write("<br>\r\n");
out.write("<br>\r\n ");
out.write("<table border='0' cellspacing='0' cellpadding='0' class='paneltable' width='45%'>\r\n ");
out.write("<tr>\r\n ");
out.write("<td class='paneltopleftround'>");
out.write("<img src='/OvSipDocs/C/images/framework/clear.gif' width='24' height='10'/>");
out.write("</td>\r\n ");
out.write("<td class='paneltopround'>");
out.write("<img src='/OvSipDocs/C/images/framework/clear.gif' height='10'/>");
out.write("</td>\r\n ");
out.write("<td class='paneltoprightround'>");
out.write("<img src='/OvSipDocs/C/images/framework/clear.gif' width='24' height='10'/>");
out.write("</td>\r\n ");
out.write("</tr>\r\n\r\n ");
out.write("<tr>\r\n ");
out.write("<td class='panelleft'> ");
out.write("</td>\r\n ");
out.write("<td class='panel'>\r\n ");
out.write("<table>\r\n ");
out.write("<tr >\r\n ");
out.write("<td nowrap>\r\n ");
out.write("<font color='black'>\r\n\r\n ");
String message = error_msg.getErrorMsg();
if (message != null) {
out.println("<h2>" message "</h2>");
out.write("\r\n\r\n ");
out.write("<h2>");
out.print(getLocalizedString(request,resourceBundle,prompt));
out.write("</h2>\r\n ");
out.write("</font>\r\n ");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("<tr >\r\n ");
out.write("<td>\r\n\r\n ");
out.write("<form name=\"nform\" action=\"");
out.print(request.getContextPath());
out.write("/\" onsubmit=\"return nsubmit()\" method=\"post\">\r\n ");
out.write("<table>\r\n ");
out.write("<tr>\r\n ");
out.write("<td>");
out.print(getLocalizedString(request,resourceBundle,userName));
out.write("</td>\r\n ");
out.write("<td>");
out.write("<input type=\"text\" name=\"J_USERNAME\" size=\"30\"/>");
out.write("</td>");
out.write("</tr>\r\n ");
out.write("<script language=\"JavaScript\" type=\"text/javascript\">\r\n");
out.write("<!--\r\n document.write('");
out.write("<\\/form>");
out.write("<form name=\"pwform\" action=\"");
out.print(request.getContextPath());
out.write("/\" onSubmit=\"return pwsubmit()\" method=\"post\">')\r\n//-->\r\n ");
out.write("</script>\r\n ");
out.write("<input type=\"hidden\" name=\"J_USERNAME\" value=\"\" />\r\n ");
out.write("<tr>\r\n ");
out.write("<td>");
out.print(getLocalizedString(request,resourceBundle,password));
out.write("</td>\r\n ");
out.write("<td>");
out.write("<input type=\"password\" name=\"J_PASSWORD\" size=\"30\"/>");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
AppTimeZoneInfo tzis[] = TimeZoneUtils.getTimeZones();
if (tzis != null) {
out.write("\r\n ");
out.write("<tr>\r\n ");
out.write("<td>");
out.print(getLocalizedString(request,resourceBundle,timeZone));
out.write("</td>\r\n ");
out.write("<td>\r\n ");
out.write("<select name=\"Timezone\">\r\n ");
out.write("<option selected=\"true\" value=\"\">");
out.print(userDefaultTZ);
out.write("</option>\r\n ");
for (int i = 0; i < tzis.length; i++) {
AppTimeZoneInfo tzi = (AppTimeZoneInfo) tzis[i];
if (tzi.getAdd()) {
//if (tzi.enabled()) { //588 does no support enabled for timezones
String timeZoneShortName = tzi.getShortName();
String timeZoneInfo = TimeZoneUtils.buildTextTimeZone(tzi, false);
out.write("\r\n ");
out.write("<option value=\"");
out.print(timeZoneShortName);
out.write("\">");
out.print(timeZoneInfo);
out.write("</option>\r\n ");
out.write("\r\n ");
out.write("</select>\r\n ");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("\r\n ");
out.write("<tr>\r\n ");
out.write("<td>");
out.write("<input type=\"submit\" value=\"");
out.print(getLocalizedString(request,resourceBundle,login));
out.write("\"/>");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("</table>\r\n ");
out.write("</form>\r\n ");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("</table>\r\n\r\n ");
out.write("</td>\r\n ");
out.write("<td class='panelright'> ");
out.write("</td>\r\n ");
out.write("</tr>\r\n\r\n ");
out.write("<tr>\r\n ");
out.write("<td class='panelbottomleft'>");
out.write("<img src='/OvSipDocs/C/images/framework/clear.gif' width='24' height='17'/>");
out.write("</td>\r\n ");
out.write("<td class='panelbottom'> ");
out.write("</td>\r\n ");
out.write("<td class='panelbottomright'>");
out.write("<img src='/OvSipDocs/C/images/framework/clear.gif' width='24' height='17'/>");
out.write("</td>\r\n ");
out.write("</tr>\r\n\r\n\r\n");
out.write("</table>\r\n\r\n ");
out.write("<br/>\r\n ");
out.write("<br/>\r\n ");
out.write("<br/>\r\n \r\n\r\n");
out.write("<br/>\r\n");
out.write("<br/>\r\n");
out.write("<br/>\r\n");
out.write("<table>\r\n\r\n");
out.write("<tr bgcolor=\"darkblue\">\r\n\r\n\t ");
out.write("<font color=white face=\"Verdana\">\r\n\r\n");
out.write("<script language=\"JavaScript1.2\">\r\n//Response.Write(\"hello\")\r\n\r\n");
out.write("</script>\r\n");
out.write("<script language=\"JavaScript1.2\">\r\n\r\n\r\n//Specify the marquee's width (in pixels)\r\nscreenSize = screen.availWidth;\r\n\r\nvar marqueewidth = screenSize + \"px\"\r\n//Specify the marquee's height\r\nvar marqueeheight=\"25px\"\r\n//Specify the marquee's marquee speed (larger is faster 1-10)\r\n//var marqueespeed=2\r\nvar marqueespeed=4\r\n//configure background color:\r\nvar marqueebgcolor=\"rgb(0,128,192)\"\r\n//Pause marquee onMousever (0=no. 1=yes)?\r\nvar pauseit=1\r\n\r\n\r\n\r\nmyMesg='");
out.write("<NOBR>****Welcome to K-C Self-Service HelpDesk Site****All K-C ITS users are requested to use HP Service Desk 4.5 Desktop Client Application to create / manage tickets****");
out.write("</NOBR>';\r\nvar marqueecontent=myMesg\r\n\r\n\r\n\r\nmarqueespeed=(document.all)? marqueespeed : Math.max(1, marqueespeed-1) //slow speed down by 1 for NS\r\n\r\nvar copyspeed=marqueespeed\r\nvar pausespeed=(pauseit==0)? copyspeed: 0\r\nvar iedom=document.all||document.getElementById\r\n\r\nif (iedom)\r\ndocument.write('");
out.write("<span id=\"temp\" style=\"visibility:hidden;position:absolute;top:-100px;left:-9000px\">'+marqueecontent+'");
out.write("</span>')\r\n\r\nvar actualwidth=''\r\nvar cross_marquee, ns_marquee\r\n\r\nfunction populate(){\r\n\t\r\nif (iedom){\r\n\t\r\ncross_marquee=document.getElementById? document.getElementById(\"iemarquee\") : document.all.iemarquee\r\ncross_marquee.style.left=parseInt(marqueewidth)+8+\"px\"\r\ncross_marquee.innerHTML=marqueecontent\r\nactualwidth=document.all? temp.offsetWidth : document.getElementById(\"temp\").offsetWidth\r\n}\r\nelse if (document.layers){\r\n\t\r\nns_marquee=document.ns_marquee.document.ns_marquee2\r\nns_marquee.left=parseInt(marqueewidth)+8\r\nns_marquee.document.write(marqueecontent)\r\nns_marquee.document.close()\r\nactualwidth=ns_marquee.document.width\r\n}\r\n\r\nlefttime=setInterval(\"scrollmarquee()\",20)\r\n\r\n}\r\n\r\nwindow.onload=populate\r\n\r\n\r\nfunction scrollmarquee(){\r\n\t\r\nif (iedom){\r\n\t\r\nif (parseInt(cross_marquee.style.left)>(actualwidth*(-1)+8))\r\ncross_marquee.style.left=parseInt(cross_marquee.style.left)-copyspeed+\"px\"\r\nelse\r\ncross_marquee.style.left=parseInt(marqueewidth)+8+\"px\"\r\n\r\n}\r\nelse if (document.layers){\r\nif (ns_marquee.left>(actualwidth*(-1)+8))\r\n");
out.write("ns_marquee.left-=copyspeed\r\nelse\r\nns_marquee.left=parseInt(marqueewidth)+8\r\n}\r\n}\r\n\r\nif (iedom||document.layers){\r\n\t\r\nwith (document){\r\n\t\r\ndocument.write('");
out.write("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
out.write("<td>')\r\nif (iedom){\r\nwrite('");
out.write("<div style=\"position:relative;width:'+marqueewidth+';height:'+marqueeheight+';overflow:hidden\">')\r\nwrite('");
out.write("<div style=\"position:absolute;width:'+marqueewidth+';height:'+marqueeheight+';background-color:'+marqueebgcolor+'\" onMouseover=\"copyspeed=pausespeed\" onMouseout=\"copyspeed=marqueespeed\">')\r\nwrite('");
out.write("<div id=\"iemarquee\" style=\"position:absolute;left:0px;top:0px\">");
out.write("</div>')\r\nwrite('");
out.write("</div>");
out.write("</div>')\r\n}\r\nelse if (document.layers){\r\nwrite('");
out.write("<ilayer width='+marqueewidth+' height='+marqueeheight+' name=\"ns_marquee\" bgColor='+marqueebgcolor+'>')\r\nwrite('");
out.write("<layer name=\"ns_marquee2\" left=0 top=0 onMouseover=\"copyspeed=pausespeed\" onMouseout=\"copyspeed=marqueespeed\">");
out.write("</layer>')\r\nwrite('");
out.write("</ilayer>')\r\n}\r\ndocument.write('");
out.write("</td>");
out.write("</table>')\r\n}\r\n}\r\n\r\n");
out.write("</script>\r\n\r\n");
out.write("</font>\r\n\r\n");
out.write("</tr>\r\n ");
out.write("</table>\r\n\r\n");
out.write("</body>\r\n");
out.write("</html>\r\n");
} catch (Throwable t) {
out = jspxout;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (pageContext != null) pageContext.handlePageException(t);
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
//portalpage_html_jsp.java//
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
import java.util.List;
import java.util.Iterator;
import java.util.Date;
import java.text.DateFormat;
import com.hp.ov.portal.core.Profile;
import com.hp.ov.portal.util.NameAndTitle;
import com.hp.ov.portal.util.Pair;
import com.hp.ov.portal.util.PortalIDs;
import java.util.List;
import java.util.Iterator;
import com.hp.ov.portal.util.OVResourceBundle;
import com.hp.ov.portal.core.Profile;
import com.hp.ov.portal.core.AdminBean;
import com.hp.ov.portal.util.NameAndTitle;
import com.hp.ov.portal.util.PortalIDs;
public class portalpage_html_jsp extends HttpJspBase {
The following imports must be made in any jsp which includes this page
via: <%@ include file="common.jsp" %>
import="java.util.List,
java.util.Iterator,
com.hp.ov.portal.core.Profile,
com.hp.ov.portal.util.NameAndTitle,
com.hp.ov.portal.util.OVResourceBundle,
com.hp.ov.portal.util.PortalIDs"
final static String portalTitle = "HP OpenView Web Console";
// The following are for the toolbar buttons
final static String toolbarOptsLabel = "Options";
final static String toolbarOptsImg = "/OvSipDocs/C/images/framework/opt_icon.gif";
final static String toolbarAdminLabel = "Admin";
final static String toolbarAdminImg = "/OvSipDocs/C/images/framework/opt_icon.gif";
final static String toolbarHomeLabel = "Home";
final static String toolbarHomeImg = "/OvSipDocs/C/images/framework/opt_icon.gif";
final static String toolbarLogoutLabel = "Logout";
final static String toolbarLogoutImg = "/OvSipDocs/C/images/framework/logout_icon.gif";
final static String toolbarHelpLabel = "Help";
final static String toolbarHelpImg = "/OvSipDocs/C/images/framework/hlp_icon.gif";
final static String toolbarOKLabel = "OK";
final static String toolbarOKImg = null;
final static String toolbarCancelLabel = "Cancel";
final static String toolbarCancelImg = null;
final static String toolbarCloseLabel = "Close";
final static String toolbarCloseImg = null;
final static String toolbarApplyLabel = "Apply";
final static String toolbarApplyImg = null;
final static String toolbarResetLabel = "Reset";
final static String toolbarResetImg = null;
// These are the strings and URLs for the module titlebar area
final static String moduleEditImg = "/OvSipDocs/C/images/framework/edit.gif";
final static String moduleEditTxt = "Edit";
final static String moduleHelpImg = "/OvSipDocs/C/images/framework/help.gif";
final static String moduleHelpTxt = "Help";
final static String moduleDetachImg = "/OvSipDocs/C/images/framework/detach.gif";
final static String moduleDetachTxt = "Detach";
final static String moduleDeleteImg = "/OvSipDocs/C/images/framework/x.gif";
final static String moduleDeleteTxt = "Remove";
final static String moduleDeleteMsg = "Are you sure you want to remove this module? This can not be undone.";
final static String moduleRollUpTxt = "Roll Up";
final static String moduleRollDnTxt = "Roll Down";
final static String moduleRollUpImg = "/OvSipDocs/C/images/framework/rolledup.gif";
final static String moduleRollDnImg = "/OvSipDocs/C/images/framework/rolleddn.gif";
private String getLocalizedString(Profile profile, String name, String text)
HttpServletRequest rHi
This is a repeated post, posted twice before.
Thread 1, Thread 2
I have the followings suggestions for you:
1. Please post your requirement in the body of the message and not in the 'subject line'.
2. Please do not open multiple threads for the same query.
3. Since you have already posted this on the Job Openings forum, please do not repeat this here. You will definetly get a response to your job post in the other forum. -
Find the abs(max/min) value error.
Hi, SAP experts
Now I want to find the Abs(max) and Abs(min), (you know, for the displacement, if we want to find the max and min, we have to consider it both "+" and "-"), I use the code:
local numbervar i;
local currencyVar min;
local currencyVar max;
For i := 1 to GetNumRows-1 do
If i = 1 then
min := GridValueAt(i, CurrentColumnIndex, CurrentSummaryIndex);
max := GridValueAt(i, CurrentColumnIndex, CurrentSummaryIndex);
else
If Abs(GridValueAt(i, CurrentColumnIndex, CurrentSummaryIndex)) <= Abs(min) then
min := GridValueAt(i, CurrentColumnIndex, CurrentSummaryIndex);
If Abs(GridValueAt(i, CurrentColumnIndex, CurrentSummaryIndex)) >= Abs(max) then
max := GridValueAt(i, CurrentColumnIndex, CurrentSummaryIndex);
if CurrentFieldValue In [max, min] then
crBold
else
crRegular
But it seems not correct, why?Hi Hu,
See if this works:
local numbervar i;
local currencyVar min;
local currencyVar max;
For i := 1 to GetNumRows-1 do
If i = 1 then
min := GridValueAt(i, CurrentColumnIndex, CurrentSummaryIndex);
max := GridValueAt(i, CurrentColumnIndex, CurrentSummaryIndex);
else
If Abs(GridValueAt(i, CurrentColumnIndex, CurrentSummaryIndex)) <= Abs(min) then
min := Abs(GridValueAt(i, CurrentColumnIndex, CurrentSummaryIndex));
If Abs(GridValueAt(i, CurrentColumnIndex, CurrentSummaryIndex)) >= Abs(max) then
max := Abs(GridValueAt(i, CurrentColumnIndex, CurrentSummaryIndex));
if Abs(CurrentFieldValue) In [max, min] then
crBold
else
crRegular
-Abhilash -
When I middle click the mouse it opens a new tab & also push my website to the top of the page and that is realy annoying when I need to drag all the way back to where I was
URL of your website? And an example of a hyperlink which does that?
-
Please i need a default password of the SQL Server...
hi...
I have a big problem, we have a EP in a server but we don´t remember any user or any pass, and i don´t have a documentation of this...
Are a way to know the user and/or password of SQL to try to read this information. We don´t change this params(I hope so). Thanks...
Sorry for my english
Carlos LiguesHi Carlos,
where do you want to log on? To the portal as a user/admin? To the J2EE Engine?
From the databases, you have no chance to get the password of anything, because passes are stored as hashes and not as clear text.
If you forgot any user/passes to log on to the portal, please activate the sap* user, see How To SAP* Initial User Set or Reset
For the J2EE engine it depends on the version you are using. For 6.20 there has been a default user "Administrator", password empty.
Hope it helps
Detlev -
......
If you want to read pdf files in adobe. You need to add adf files to adobe directly. For this you need to connect your device and go to apps section. In that section select adobe then right side you will get a window. In that window you can add pdf files.
-
I need to install in Mac and PC, now there is any possibility to download Encore from CC, but is there another way?
CS6 - http://helpx.adobe.com/x-productkb/policy-pricing/cs6-product-downloads.html
-
I need an app to read the Los Angeles Times
Can't seem to find one. Any suggestions?
Use Safari to go to this link: http://www.latimes.com/
Or get this app: http://itunes.apple.com/us/app/l-a-times-news-reader/id311028433?mt=8 -
i forgot my i cloud apple password and security question and i dont remember the id well how can i activate my device? please i need help
Hello there, Hisham1977.
The following Knowledge Base article provides the steps to follow if you've forgotten the answer to your security questions:
Apple ID: All about Apple ID security questions
http://support.apple.com/kb/HT5665
What should I do if I don't remember the answers to my Apple ID security questions?
If you forgot the answers to your security questions, try answering them at least once to see if you can get them right, even if you're not sure you remember the answers. If you're confident that you can't remember them, try one of the following:
If you have three security questions and a rescue email address, sign in to My Apple ID and select the “Password and Security” tab to send an email to your rescue email address to reset your security questions and answers.
If you have one security question and you know your Apple ID password, sign in to My Apple ID and select the “Password and Security” tab to reset your security question.
If you have one security question, but don't remember your Apple ID password, contact Apple Support for assistance. Learn more about creating a temporary support PIN to help Apple confirm your identity when you contact Apple Support.
Note: If you forgot your password and answer your security questions incorrectly too many times in a row, you will be unable to try to answer your security questions for a period of time. During that time, you will not be able to reset your password and will not have access to your account.
Thanks for reaching out to Apple Support Communities.
Cheers,
Pedro -
Hi Gurus,
I am dier need of one of the xml issue which I am facing right now.
I am reading one of the xml file which is like this
<?xml version="1.0" encoding="UTF-8" ?>
- <GEBIZ_ORDER xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <HEADER>
<MINISTRY_CODE>RPO</MINISTRY_CODE>
<DEPARTMENT_CODE>000</DEPARTMENT_CODE>
<ORDER_CODE>RPO000EPO11000953</ORDER_CODE>
<EXTERNAL_SYSTEM_CODE>E</EXTERNAL_SYSTEM_CODE>
<AMENDMENT_NUMBER>0</AMENDMENT_NUMBER>
<VARIATION_NUMBER>0</VARIATION_NUMBER>
<DESCRIPTION>Purchase Order for Air tickets for SOT to Korea (from 17th - 26th Sep 2011) off PC(RPO000ECN11000100)for SAS</DESCRIPTION>
<STATUS>NEW</STATUS>
<STATUS_DATE>2011-07-08T16:57:39</STATUS_DATE>
<PAYMENT_TERMS xsi:nil="true" />
<BILL_TO>One-Stop Centre, 9 Woodlands Avenue 9, S(738964)</BILL_TO>
<JUSTIFICATION>Please refer to attached approval email.</JUSTIFICATION>
<CREATE_TIMESTAMP>2011-07-08T16:57:39</CREATE_TIMESTAMP>
<TERMINATE_REASON xsi:nil="true" />
<TERMINATE_TIMESTAMP xsi:nil="true" />
<ORDER_TYPE>1</ORDER_TYPE>
- <FINANCIAL_SYSTEM>
<SUB_BUSINESS_UNIT>RPS01</SUB_BUSINESS_UNIT>
</FINANCIAL_SYSTEM>
- <SUPPLIER>
<CODE>200003048E</CODE>
<NAME>Safe2Travel Pte Ltd</NAME>
<GST_NUMBER>20-0003048-E</GST_NUMBER>
<CONTACT_NAME>ONG PEI LENG</CONTACT_NAME>
<CONTACT_PHONE>68233103</CONTACT_PHONE>
<CONTACT_EMAIL>[email protected]</CONTACT_EMAIL>
<CONTACT_FAX>68221636</CONTACT_FAX>
- <SITES>
- <SITE>
<ID>1</ID>
<NAME>ravel Pte Ltd</NAME>
<PHONE>68233013</PHONE>
<PHONE_EXTENSION xsi:nil="true" />
<FAX>68221636</FAX>
<EMAIL>[email protected]</EMAIL>
<ADDRESS_LINE1>10 Eunos Road 8</ADDRESS_LINE1>
<ADDRESS_LINE2>#08-03 (North Lobby)</ADDRESS_LINE2>
<ADDRESS_LINE3>Singapore Post Centre</ADDRESS_LINE3>
<COUNTRY_CODE>SG</COUNTRY_CODE>
<PROVINCE xsi:nil="true" />
<STATE xsi:nil="true" />
<CITY xsi:nil="true" />
<AREA_CODE xsi:nil="true" />
<ZIP>408600</ZIP>
<REGION_CODE xsi:nil="true" />
</SITE>
- <SITE>
<ID>2</ID>
<NAME>ravel Pte Ltd</NAME>
<PHONE>62208866</PHONE>
<PHONE_EXTENSION xsi:nil="true" />
<FAX>62265578</FAX>
<EMAIL>[email protected]</EMAIL>
<ADDRESS_LINE1>3 Lim Teck Kim Road</ADDRESS_LINE1>
<ADDRESS_LINE2>#02-02</ADDRESS_LINE2>
<ADDRESS_LINE3>Singapore Technologies Building</ADDRESS_LINE3>
<COUNTRY_CODE>SG</COUNTRY_CODE>
<PROVINCE xsi:nil="true" />
<STATE xsi:nil="true" />
<CITY xsi:nil="true" />
<AREA_CODE xsi:nil="true" />
<ZIP>088934</ZIP>
<REGION_CODE xsi:nil="true" />
</SITE>
- <SITE>
<ID>3</ID>
<NAME>Safe2Travel Pte Ltd</NAME>
<PHONE>62208866</PHONE>
<PHONE_EXTENSION xsi:nil="true" />
<FAX>62265578</FAX>
<EMAIL>[email protected]</EMAIL>
<ADDRESS_LINE1>3 Lim Teck Kim Road</ADDRESS_LINE1>
<ADDRESS_LINE2>#02-02</ADDRESS_LINE2>
<ADDRESS_LINE3>Singapore Technologies Building</ADDRESS_LINE3>
<COUNTRY_CODE>SG</COUNTRY_CODE>
<PROVINCE xsi:nil="true" />
<STATE xsi:nil="true" />
<CITY xsi:nil="true" />
<AREA_CODE xsi:nil="true" />
<ZIP>088934</ZIP>
<REGION_CODE xsi:nil="true" />
</SITE>
</SITES>
</SUPPLIER>
- <USER>
<CODE>JOYCE SOON</CODE>
<NAME>JOYCE SOON</NAME>
<ORGANISATION_NAME>Republic Polytechnic</ORGANISATION_NAME>
</USER>
- <FUND_COMMIT_AMOUNT>
<CURRENCY_CODE>SGD</CURRENCY_CODE>
<CURRENCY_RATE>1</CURRENCY_RATE>
<CURRENCY_RATE_DATE>1900-01-01T00:00:00</CURRENCY_RATE_DATE>
<CURRENCY_RATE_TYPE>BOOK</CURRENCY_RATE_TYPE>
<CURRENCY_AMOUNT>21551.4</CURRENCY_AMOUNT>
</FUND_COMMIT_AMOUNT>
- <PERIOD_CONTRACT>
<CODE>RPO000ECN11000100</CODE>
<AGENCY_CODE>RPO000</AGENCY_CODE>
<ADMIN_FEE_SGD_AMOUNT>0</ADMIN_FEE_SGD_AMOUNT>
</PERIOD_CONTRACT>
- <BUYER>
<ORGANISATION_CODE>1</ORGANISATION_CODE>
<ORGANISATION_NAME>Republic Polytechnic</ORGANISATION_NAME>
<NAME>Sally Ang</NAME>
<PHONE>31001711</PHONE>
<FAX>64151310</FAX>
<EMAIL>[email protected]</EMAIL>
</BUYER>
<APPROVING_OFFICERS />
</HEADER>
- <ITEMS>
- <ITEM>
<LINE_NUMBER>1</LINE_NUMBER>
<STATUS>NEW</STATUS>
<STATUS_DATE>2011-07-08T16:57:39</STATUS_DATE>
<DESCRIPTION>Return Air Ticket including Airport Taxes and Fuel Surcharges (2 staff and 24 students)</DESCRIPTION>
<UNIT_OF_MEASURE>PAX</UNIT_OF_MEASURE>
<QUANTITY>26</QUANTITY>
<LINE_TYPE>SERVICES</LINE_TYPE>
<UNIT_PRICE>828.9</UNIT_PRICE>
<PRICE_UNIT>1</PRICE_UNIT>
<TOTAL_AMOUNT>21551.4</TOTAL_AMOUNT>
<MATERIAL_MASTER_CODE xsi:nil="true" />
<MATERIAL_GROUP_CODE xsi:nil="true" />
<PLANT_CODE xsi:nil="true" />
<ITEM_CATEGORY_CODE xsi:nil="true" />
<ADMIN_FEE_SGD_AMOUNT>0</ADMIN_FEE_SGD_AMOUNT>
<INSTRUCTION_TO_SUPPLIER>Purchase of goods/services is subject to the Terms & Conditions found in www.rp.sg/purchase and/or in the ITQ/ITT Specifications. Please liaise with the Contact Person for delivery details. Invoice MUST be addressed to the Contact Person. PO number MUST be included in the Description field under e-Invoice Details section at Vendor@Gov.</INSTRUCTION_TO_SUPPLIER>
<PERIOD_CONTRACT_LINE_NUMBER>1</PERIOD_CONTRACT_LINE_NUMBER>
<GOODS_INSPECT_FLAG>N</GOODS_INSPECT_FLAG>
- <PURCHASE_REQUEST>
<CODE>RPO000EPR11000465</CODE>
<LINE_NUMBER>1</LINE_NUMBER>
</PURCHASE_REQUEST>
- <PART_NUMBER_INFORMATION>
<NATO_STOCK_NUMBER xsi:nil="true" />
<MANUFACTURER_PART_NUMBER xsi:nil="true" />
<PART_NUMBER xsi:nil="true" />
<CAGE_CODE xsi:nil="true" />
<CAGE_NAME xsi:nil="true" />
<ITEM_CONDITION xsi:nil="true" />
<MINIMUM_SHELF_LIFE xsi:nil="true" />
<SHELF_LIFE_REMAINING xsi:nil="true" />
<CERTIFICATE_OF_CONFORMANCE xsi:nil="true" />
<EXPORT_LICENSE xsi:nil="true" />
</PART_NUMBER_INFORMATION>
- <LOCATIONS>
- <LOCATION>
<LINE_NUMBER>1</LINE_NUMBER>
<STATUS>NEW</STATUS>
<STATUS_DATE>2011-07-08T16:57:39</STATUS_DATE>
<QUANTITY>26</QUANTITY>
<DELIVERY_DESTINATION>Republic Polytechnic, One-Stop Centre, 9 Woodlands Avenue 9, S(738964)</DELIVERY_DESTINATION>
<DELIVERY_DATE>2011-07-11T00:00:00</DELIVERY_DATE>
<DELIVERY_TERMS>LOC</DELIVERY_TERMS>
<PORT_OF_ORIGIN>-</PORT_OF_ORIGIN>
- <RECIPIENT>
<CODE>OSC</CODE>
<NAME>One Stop Centre</NAME>
<PHONE>65103000</PHONE>
<EMAIL>[email protected]</EMAIL>
</RECIPIENT>
- <DISTRIBUTIONS>
- <DISTRIBUTION>
<LINE_NUMBER>1</LINE_NUMBER>
<STATUS>NEW</STATUS>
<STATUS_DATE>2011-07-08T16:57:39</STATUS_DATE>
<QUANTITY>26</QUANTITY>
<CHART_OF_ACCOUNT>1/G01/3SAS/020/220908/0000/0000/0000</CHART_OF_ACCOUNT>
<PROJECT_DISTRIBUTION xsi:nil="true" />
</DISTRIBUTION>
</DISTRIBUTIONS>
</LOCATION>
</LOCATIONS>
</ITEM>
</ITEMS>
</GEBIZ_ORDER>I was able to read this kind of file structure but due to some constraints now they added supplier sites and increment that one which will be like variable kind of thing now.
And below mentioned is the script which I am using right now for reading that xml file
PROCEDURE XGBZPROD.XGBZ_PUR_ORD_XMLTAG_PROC(P_XML_FILE IN VARCHAR2, P_FOLDER_NAME IN VARCHAR2)
IS
lv_supp_file XMLTYPE;
lv_hdr_error VARCHAR2(240);
lv_line_error VARCHAR2(240);
lv_line_loc_err VARCHAR2(240);
lv_dist_err VARCHAR2(240);
l_file_name VARCHAR2(300);
l_folder_name VARCHAR2(300);
lv_sysdate DATE := sysdate;
BEGIN
l_file_name := p_xml_file;
l_folder_name := p_folder_name;
-- this clause to check whether is xml file or NODATA FILE.
IF upper(substr(l_file_name,instr(l_file_name,'.',1)+1,3)) ='XML' THEN
lv_supp_file := xmltype( bfilename('XMLDIR',P_XML_FILE), nls_charset_id('AL32UTF8'));
dbms_output.put_line('P_XML_FILE '||P_XML_FILE);
-- Initially insert data into 11g table
-- This is to read xml datafile
INSERT INTO XGBZ_PO_XML_DETAILS
(ministry_code ,
department_code ,
order_code ,
external_system_code ,
amendment_number ,
variation_number ,
description ,
status ,
status_date ,
payment_terms ,
bill_to ,
justification ,
create_timestamp ,
terminate_reason ,
terminate_timestamp ,
order_type ,
sub_business_unit ,
cost_center_group ,
buyer_code ,
financial_system_order_code ,
user_nric ,
supplier_code ,
supplier_name ,
gst_number ,
contact_name ,
contact_phone ,
contact_email ,
contact_fax ,
supp_site_id ,
supp_site_name ,
supp_site_phone ,
supp_sit_phone_ext ,
supp_site_fax ,
supp_site_email ,
supp_site_add_line1 ,
supp_site_add_line2 ,
supp_site_add_line3 ,
supp_site_country_code ,
supp_site_province ,
supp_site_state ,
supp_site_city ,
supp_site_area_code ,
supp_site_zip ,
supp_site_region_code ,
user_code ,
user_name ,
user_org_name ,
currency_code ,
currency_rate ,
currency_rate_date ,
currency_rate_type ,
currency_amount ,
tx_field_2 ,
agency_code ,
admin_fee_sgd ,
buyer_orgn_code ,
buyer_orgn_name ,
buyer_name ,
buyer_phone ,
buyer_fax ,
buyer_email ,
ao_code ,
ao_name ,
line_no ,
line_status ,
line_status_date ,
line_description ,
unit_of_measure ,
line_qty ,
line_type ,
unit_price ,
line_total_amount ,
material_master_code ,
material_group_code ,
item_category_code ,
line_admin_fee_sgd_amt ,
instruction_supplier ,
period_contract_line_no ,
goods_inspect_flag ,
pr_code ,
pr_line_number ,
nato_stock_number ,
manufacturer_part_no ,
part_number ,
cage_code ,
cage_name ,
item_condition ,
minimum_shelf_life ,
shelf_life_remaining ,
cert_of_conformance ,
export_license ,
line_location_no ,
line_loc_status ,
line_loc_status_date ,
line_loc_qty ,
delivery_destination ,
delivery_date ,
delivery_terms ,
port_of_origin ,
recipient_code ,
recipient_name ,
recipient_phone ,
recipient_email ,
dist_line_no ,
dist_line_status ,
dist_line_status_date ,
dist_line_qty ,
chart_of_account ,
project_distribution
SELECT --Header Data
ministry_code ,
department_code ,
order_code ,
external_system_code ,
amendment_number ,
variation_number ,
description ,
status ,
status_date ,
payment_terms ,
bill_to ,
justification ,
create_timestamp ,
terminate_reason ,
terminate_timestamp ,
order_type ,
sub_business_unit ,
cost_center_group ,
buyer_code ,
financial_system_order_code ,
user_nric ,
supplier_code ,
supplier_name ,
gst_number ,
contact_name ,
contact_phone ,
contact_email ,
contact_fax ,
supp_site_id ,
supp_site_name ,
supp_site_phone ,
supp_sit_phone_ext ,
supp_site_fax ,
supp_site_email ,
supp_site_add_line1 ,
supp_site_add_line2 ,
supp_site_add_line3 ,
supp_site_country_code ,
supp_site_province ,
supp_site_state ,
supp_site_city ,
supp_site_area_code ,
supp_site_zip ,
supp_site_region_code ,
user_code ,
user_name ,
user_org_name ,
currency_code ,
currency_rate ,
currency_rate_date ,
currency_rate_type ,
currency_amount ,
tx_field_2 ,
agency_code ,
admin_fee_sgd ,
buyer_orgn_code ,
buyer_orgn_name ,
buyer_name ,
buyer_phone ,
buyer_fax ,
buyer_email ,
ao_code ,
ao_name ,
line_no ,
line_status ,
line_status_date ,
line_description ,
unit_of_measure ,
line_qty ,
line_type ,
unit_price ,
line_total_amount ,
material_master_code ,
material_group_code ,
item_category_code ,
line_admin_fee_sgd_amt ,
instruction_supplier ,
period_contract_line_no ,
goods_inspect_flag ,
pr_code ,
pr_line_number ,
nato_stock_number ,
manufacturer_part_no ,
part_number ,
cage_code ,
cage_name ,
item_condition ,
minimum_shelf_life ,
shelf_life_remaining ,
cert_of_conformance ,
export_license ,
line_location_no ,
line_loc_status ,
line_loc_status_date ,
line_loc_qty ,
delivery_destination ,
delivery_date ,
delivery_terms ,
port_of_origin ,
recipient_code ,
recipient_name ,
recipient_phone ,
recipient_email ,
dist_line_no ,
dist_line_status ,
dist_line_status_date ,
dist_line_qty ,
chart_of_account ,
project_distribution
FROM XMLTable('/GEBIZ_ORDER'
passing lv_supp_file
columns
ministry_code VARCHAR2(3) path 'HEADER/MINISTRY_CODE',
department_code VARCHAR2(3) path 'HEADER/DEPARTMENT_CODE',
order_code VARCHAR2(17 ) path 'HEADER/ORDER_CODE',
external_system_code VARCHAR2(1) path 'HEADER/EXTERNAL_SYSTEM_CODE',
amendment_number VARCHAR2(5) path 'HEADER/AMENDMENT_NUMBER' ,
variation_number VARCHAR2(5) path 'HEADER/VARIATION_NUMBER',
description VARCHAR2(500) path 'HEADER/DESCRIPTION',
status VARCHAR2(500) path 'HEADER/STATUS',
status_date VARCHAR2(24) path 'HEADER/STATUS_DATE',
payment_terms VARCHAR2(400) path 'HEADER/PAYMENT_TERMS',
bill_to VARCHAR2(200) path 'HEADER/BILL_TO',
justification VARCHAR2(400) path 'HEADER/JUSTIFICATION',
create_timestamp VARCHAR2(24) path 'HEADER/CREATE_TIMESTAMP',
terminate_reason VARCHAR2(400) path 'HEADER/TERMINATE_REASON',
terminate_timestamp VARCHAR2(24) path 'HEADER/TERMINATE_TIMESTAMP',
order_type VARCHAR2(2 ) path 'HEADER/ORDER_TYPE',
sub_business_unit VARCHAR2(5 ) path 'HEADER/FINANCIAL_SYSTEM/SUB_BUSINESS_UNIT',
cost_center_group VARCHAR2(20 ) path 'HEADER/FINANCIAL_SYSTEM/NFS/COST_CENTER_GROUP',
buyer_code VARCHAR2(30 ) path 'HEADER/FINANCIAL_SYSTEM/NFS/BUYER_CODE',
financial_system_order_code VARCHAR2(20 ) path 'HEADER/FINANCIAL_SYSTEM/NFS/FINANCIAL_SYSTEM_ORDER_CODE',
user_nric VARCHAR2(9 ) path 'HEADER/FINANCIAL_SYSTEM/NFS/USER_NRIC',
supplier_code VARCHAR2(10) path 'HEADER/SUPPLIER/CODE',
supplier_name VARCHAR2(140) path 'HEADER/SUPPLIER/NAME' ,
gst_number VARCHAR2(30 ) path 'HEADER/SUPPLIER/GST_NUMBER',
contact_name VARCHAR2(140 ) path 'HEADER/SUPPLIER/CONTACT_NAME',
contact_phone VARCHAR2(23 ) path 'HEADER/SUPPLIER/CONTACT_PHONE',
contact_email VARCHAR2(100) path 'HEADER/SUPPLIER/CONTACT_EMAIL',
contact_fax VARCHAR2(23 ) path 'HEADER/SUPPLIER/CONTACT_FAX',
supp_site_id NUMBER path 'HEADER/SUPPLIER/SITES/SITE/ID',
supp_site_name VARCHAR2(140) path 'HEADER/SUPPLIER/SITES/SITE/NAME',
supp_site_phone VARCHAR2(23) path 'HEADER/SUPPLIER/SITES/SITE/PHONE',
supp_sit_phone_ext VARCHAR2(4 ) path 'HEADER/SUPPLIER/SITES/SITE/PHONE_EXTENSION',
supp_site_fax VARCHAR2(23 ) path 'HEADER/SUPPLIER/SITES/SITE/FAX',
supp_site_email VARCHAR2(100 ) path 'HEADER/SUPPLIER/SITES/SITE/EMAIL',
supp_site_add_line1 VARCHAR2(254 ) path 'HEADER/SUPPLIER/SITES/SITE/ADDRESS_LINE1',
supp_site_add_line2 VARCHAR2(35 ) path 'HEADER/SUPPLIER/SITES/SITE/ADDRESS_LINE2',
supp_site_add_line3 VARCHAR2(35 ) path 'HEADER/SUPPLIER/SITES/SITE/ADDRESS_LINE3',
supp_site_country_code VARCHAR2(2 ) path 'HEADER/SUPPLIER/SITES/SITE/COUNTRY_CODE',
supp_site_province VARCHAR2(25 ) path 'HEADER/SUPPLIER/SITES/SITE/PROVINCE',
supp_site_state VARCHAR2(25 ) path 'HEADER/SUPPLIER/SITES/SITE/STATE',
supp_site_city VARCHAR2(25 ) path 'HEADER/SUPPLIER/SITES/SITE/CITY',
supp_site_area_code VARCHAR2(10 ) path 'HEADER/SUPPLIER/SITES/SITE/AREA_CODE',
supp_site_zip VARCHAR2(20 ) path 'HEADER/SUPPLIER/SITES/SITE/ZIP',
supp_site_region_code VARCHAR2(3 ) path 'HEADER/SUPPLIER/SITES/SITE/REGION_CODE',
user_code VARCHAR2(16 ) path 'HEADER/USER/CODE',
user_name VARCHAR2(25 ) path 'HEADER/USER/NAME',
user_org_name VARCHAR2(95 ) path 'HEADER/USER/ORGANISATION_NAME',
currency_code VARCHAR2(3 ) path 'HEADER/FUND_COMMIT_AMOUNT/CURRENCY_CODE',
currency_rate NUMBER path 'HEADER/FUND_COMMIT_AMOUNT/CURRENCY_RATE',
currency_rate_date VARCHAR2(24) path 'HEADER/FUND_COMMIT_AMOUNT/CURRENCY_RATE_DATE',
currency_rate_type VARCHAR2(5 ) path 'HEADER/FUND_COMMIT_AMOUNT/CURRENCY_RATE_TYPE',
currency_amount NUMBER path 'HEADER/FUND_COMMIT_AMOUNT/CURRENCY_AMOUNT',
tx_field_2 VARCHAR2(17 ) path 'HEADER/PERIOD_CONTRACT/CODE',
agency_code VARCHAR2(6 ) path 'HEADER/PERIOD_CONTRACT/AGENCY_CODE',
admin_fee_sgd NUMBER path 'HEADER/PERIOD_CONTRACT/ADMIN_FEE_SGD_AMOUNT' ,
buyer_orgn_code VARCHAR2(5 ) path 'HEADER/BUYER/ORGANISATION_CODE',
buyer_orgn_name VARCHAR2(95 ) path 'HEADER/BUYER/ORGANISATION_NAME',
buyer_name VARCHAR2(80 ) path 'HEADER/BUYER/NAME',
buyer_phone VARCHAR2(23 ) path 'HEADER/BUYER/PHONE',
buyer_fax VARCHAR2(23 ) path 'HEADER/BUYER/FAX',
buyer_email VARCHAR2(100 ) path 'HEADER/BUYER/EMAIL',
ao_code VARCHAR2(16 ) path 'HEADER/APPROVING_OFFICERS/APPROVING_OFFICER/CODE',
ao_name VARCHAR2(40 ) path 'HEADER/APPROVING_OFFICERS/APPROVING_OFFICER/NAME',
items XMLTYPE path 'ITEMS'
) x1,
XMLTABLE('/ITEMS/ITEM'
passing x1.items
columns
line_no VARCHAR2(5) path 'LINE_NUMBER',
line_status VARCHAR2(15) path 'STATUS',
line_status_date VARCHAR2(24) path 'STATUS_DATE',
line_description VARCHAR2(500) path 'DESCRIPTION',
unit_of_measure VARCHAR2(3) path 'UNIT_OF_MEASURE',
line_qty NUMBER path 'QUANTITY',
line_type VARCHAR2(20) path 'LINE_TYPE',
unit_price NUMBER path 'UNIT_PRICE',
line_total_amount NUMBER path 'TOTAL_AMOUNT',
material_master_code VARCHAR2(20) path 'MATERIAL_MASTER_CODE',
material_group_code VARCHAR2(10) path 'MATERIAL_GROUP_CODE',
item_category_code VARCHAR2(18) path 'ITEM_CATEGORY_CODE',
line_admin_fee_sgd_amt NUMBER path 'ADMIN_FEE_SGD_AMOUNT',
instruction_supplier VARCHAR2(400) path 'INSTRUCTION_TO_SUPPLIER',
period_contract_line_no NUMBER path 'PERIOD_CONTRACT_LINE_NUMBER',
goods_inspect_flag VARCHAR2(1) path 'GOODS_INSPECT_FLAG',
pr_code VARCHAR2(17) path 'PURCHASE_REQUEST/CODE',
pr_line_number VARCHAR2(5) path 'PURCHASE_REQUEST/LINE_NUMBER',
nato_stock_number VARCHAR2(14) path 'PART_NUMBER_INFORMATION/NATO_STOCK_NUMBER',
manufacturer_part_no VARCHAR2(32) path 'PART_NUMBER_INFORMATION/MANUFACTURE_PART_NUMBER',
part_number VARCHAR2(200) path 'PART_NUMBER_INFORMATION/PART_NUMBER',
cage_code VARCHAR2(10) path 'PART_NUMBER_INFORMATION/CAGE_CODE',
cage_name VARCHAR2(140) path 'PART_NUMBER_INFORMATION/CAGE_NAME',
item_condition VARCHAR2(1) path 'PART_NUMBER_INFORMATION/ITEM_CONDITION' ,
minimum_shelf_life NUMBER path 'PART_NUMBER_INFORMATION/MINIMUM_SHELF_LIFE',
shelf_life_remaining VARCHAR2(3) path 'PART_NUMBER_INFORMATION/SHELF_LIFE_REMAINING',
cert_of_conformance VARCHAR2(1000) path 'PART_NUMBER_INFORMATION/CERTIFICATE_OF_CONFORMANCE',
export_license VARCHAR2(3) path 'PART_NUMBER_INFORMATION/EXPORT_LICENSE',
locations XMLTYPE path 'LOCATIONS'
)x2,
XMLTABLE('/LOCATIONS/LOCATION'
passing x2.locations
columns
line_location_no NUMBER path 'LINE_NUMBER',
line_loc_status VARCHAR2(15) path 'STATUS',
line_loc_status_date VARCHAR2(24) path 'STATUS_DATE',
line_loc_qty NUMBER path 'QUANTITY',
delivery_destination VARCHAR2(1000) path 'DELIVERY_DESTINATION',
delivery_date VARCHAR2(24) path 'DELIVERY_DATE',
delivery_terms VARCHAR2(3) path 'DELIVERY_TERMS',
port_of_origin VARCHAR2(150) path 'PORT_OF_ORIGIN',
recipient_code VARCHAR2(16 ) path 'RECIPIENT/CODE',
recipient_name VARCHAR2(40 ) path 'RECIPIENT/NAME',
recipient_phone VARCHAR2(23 ) path 'RECIPIENT/PHONE',
recipient_email VARCHAR2(100 ) path 'RECIPIENT/EMAIL',
distributions XMLTYPE path 'DISTRIBUTIONS'
)x3,
XMLTABLE('/DISTRIBUTIONS/DISTRIBUTION'
passing x3.distributions
columns
dist_line_no NUMBER path 'LINE_NUMBER',
dist_line_status VARCHAR2(15) path 'STATUS',
dist_line_status_date VARCHAR2(24) path 'STATUS_DATE',
dist_line_qty NUMBER path 'QUANTITY',
chart_of_account VARCHAR2(420) path 'CHART_OF_ACCOUNT',
project_distribution VARCHAR2(4000) path 'PROJECT_DISTRIBUTION'
)x4;
end;As there is change in requirement now I need to read the multiple supplier sites at the header level. Current this is my structure please give an idea how to read the mulitple sites as one record, probably i can increase the supplier site columns at table level so as to capture second site level information.
But if in case if i receive that time it should not fail please provide some good solution for this issue.
Thanks in advance for your help.
Regards
NagendraHi odie,
Thanks for your response. But here my supplier site will always be maxiumum 2 times and minimum 1 time. My thinking is to fit this one in the existing code by repeating the supplier site only like this
supp_site_id NUMBER path 'HEADER/SUPPLIER/SITES/SITE/ID',
supp_site_name VARCHAR2(140) path 'HEADER/SUPPLIER/SITES/SITE/NAME',
supp_site_phone VARCHAR2(23) path 'HEADER/SUPPLIER/SITES/SITE/PHONE',
supp_sit_phone_ext VARCHAR2(4 ) path 'HEADER/SUPPLIER/SITES/SITE/PHONE_EXTENSION',
supp_site_fax VARCHAR2(23 ) path 'HEADER/SUPPLIER/SITES/SITE/FAX',
supp_site_email VARCHAR2(100 ) path 'HEADER/SUPPLIER/SITES/SITE/EMAIL',
supp_site_add_line1 VARCHAR2(254 ) path 'HEADER/SUPPLIER/SITES/SITE/ADDRESS_LINE1',
supp_site_add_line2 VARCHAR2(35 ) path 'HEADER/SUPPLIER/SITES/SITE/ADDRESS_LINE2',
supp_site_add_line3 VARCHAR2(35 ) path 'HEADER/SUPPLIER/SITES/SITE/ADDRESS_LINE3',
supp_site_country_code VARCHAR2(2 ) path 'HEADER/SUPPLIER/SITES/SITE/COUNTRY_CODE',
supp_site_province VARCHAR2(25 ) path 'HEADER/SUPPLIER/SITES/SITE/PROVINCE',
supp_site_state VARCHAR2(25 ) path 'HEADER/SUPPLIER/SITES/SITE/STATE',
supp_site_city VARCHAR2(25 ) path 'HEADER/SUPPLIER/SITES/SITE/CITY',
supp_site_area_code VARCHAR2(10 ) path 'HEADER/SUPPLIER/SITES/SITE/AREA_CODE',
supp_site_zip VARCHAR2(20 ) path 'HEADER/SUPPLIER/SITES/SITE/ZIP',
supp_site_region_code VARCHAR2(3 ) path 'HEADER/SUPPLIER/SITES/SITE/REGION_CODE',
supp_site_id2 NUMBER path 'HEADER/SUPPLIER/SITES/SITE/ID',
supp_site_name2 VARCHAR2(140) path 'HEADER/SUPPLIER/SITES/SITE/NAME',
supp_site_phone2 VARCHAR2(23) path 'HEADER/SUPPLIER/SITES/SITE/PHONE',
supp_sit_phone_ext2 VARCHAR2(4 ) path 'HEADER/SUPPLIER/SITES/SITE/PHONE_EXTENSION',
supp_site_fax2 VARCHAR2(23 ) path 'HEADER/SUPPLIER/SITES/SITE/FAX',
supp_site_email2 VARCHAR2(100 ) path 'HEADER/SUPPLIER/SITES/SITE/EMAIL',
supp_site_add_line1_2 VARCHAR2(254 ) path 'HEADER/SUPPLIER/SITES/SITE/ADDRESS_LINE1',
supp_site_add_line2_2 VARCHAR2(35 ) path 'HEADER/SUPPLIER/SITES/SITE/ADDRESS_LINE2',
supp_site_add_line3_2 VARCHAR2(35 ) path 'HEADER/SUPPLIER/SITES/SITE/ADDRESS_LINE3',
supp_site_country_code_2 VARCHAR2(2 ) path 'HEADER/SUPPLIER/SITES/SITE/COUNTRY_CODE',
supp_site_province_2 VARCHAR2(25 ) path 'HEADER/SUPPLIER/SITES/SITE/PROVINCE',
supp_site_state_2 VARCHAR2(25 ) path 'HEADER/SUPPLIER/SITES/SITE/STATE',
supp_site_city_2 VARCHAR2(25 ) path 'HEADER/SUPPLIER/SITES/SITE/CITY',
supp_site_area_code_2 VARCHAR2(10 ) path 'HEADER/SUPPLIER/SITES/SITE/AREA_CODE',
supp_site_zip_2 VARCHAR2(20 ) path 'HEADER/SUPPLIER/SITES/SITE/ZIP',
supp_site_region_code_2 VARCHAR2(3 ) path 'HEADER/SUPPLIER/SITES/SITE/REGION_CODE',As this table I am being used in many areas, it will be problem for me if try to go for different levels of tables. Or else can it be possible to read only once
I mean only the first in the xml tags and leave the second xml. As there is not much significant for the second one.
I appreciate your ideas on this, as the structure we are following is to rigid so I don't have much options to explore, please provide me your inputs in this context.
Thanks for your help.
Regards
Nagendra
Edited by: 838961 on Jul 13, 2011 1:43 AM
Maybe you are looking for
-
How many shows can you record at one time?
I have the CHS435HDC and I was talking to the rep and he thought it was 7 shows at one time....being a previous tech rep from the 'other guy', I know the standard is two shows at once and watching one of the other, nothing beyond those two..... Anyon
-
Hi all I want to to create a SWC with a font resource using the IDE. So I create in the library a font called Presenter_font I use Arial ( it has all the glyphs I need) I create a textfield and assign it Presenter_font* I embed the font , I want to i
-
I have a payment arrangement made for July 3rd. My bill is 313 dollars and I was able to make a payment of 150 dollars. My parents usually pay half but their payment will not go through and only method of payment they have is check. Is my service goi
-
Hi, Strange phenomenon just started happening. I have many client flash sites, some of which have been running for years. Suddenly, if you let the mouse hover (just stay in one place for a few seconds), a yellow "tool tip", you know those little yell
-
Unable to refresh filters from planning desktop(9.2.x)
Hi i am unable to refresh filters from planning desktop.ie when a refresh is performed i get a popup with alist of users for which the filters didnt get updated and also the application goes into locked state. I feel this is mainly due to the existen