Issues With States
Hello everyone,
I have been working on this little project and it is almost
complete but I am running into some problems with the way the
states are interacting
I will show you the code.
[CODE]
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute" backgroundGradientAlphas="[1.0, 1.0]"
backgroundGradientColors="[#040404, #040404]"
initialize="getDaysUntil()">
<mx:XML id="tempXML" source="
http://misitenet/interface.php?username=admin&password=pass&customer=63&action =showopen&operation=defects&format=xml&critcal=both"
/>
<mx:Image source="@Embed('../images/title.jpg')"
width="210" height="65" top="4" left="15"/>
<mx:Image source="@Embed('../images/title1.jpg')"
id="image1" horizontalAlign="right" verticalAlign="top" right="0"
scaleContent="true" y="0"/>
<mx:states>
<mx:State name="Logged In">
<mx:SetProperty target="{panel1}" name="width"
value="98%"/>
<mx:SetProperty target="{panel1}" name="height"
value="75%"/>
<mx:RemoveChild target="{password}"/>
<mx:RemoveChild target="{customer}"/>
<mx:RemoveChild target="{username}"/>
<mx:RemoveChild target="{customerlbl}"/>
<mx:RemoveChild target="{label1}"/>
<mx:RemoveChild target="{Submit}"/>
<mx:RemoveChild target="{label2}"/>
<mx:SetProperty target="{panel1}" name="title"
value="Current Red Board Information"/>
<mx:AddChild relativeTo="{panel1}"
position="lastChild">
<mx:TileList dataProvider="{tempXML.defect.asset}"
width="100%" backgroundColor="#000000" color="#ff0000"
fontSize="27" borderColor="#000000" columnWidth="300"
rowHeight="50" themeColor="#808080" fontWeight="bold"
allowMultipleSelection="true" />
<mx:XMLListCollection id="defectXMLList"
source="{tempXML.defect}" />
</mx:AddChild>
<mx:AddChild relativeTo="{panel1}"
position="lastChild">
<mx:HBox horizontalGap="4" width="800">
<mx:Label id="lblTimeUntilRefresh" text="Current Time:"
color="#ff0000" fontSize="19" fontWeight="bold" />
<mx:Label id="lblTimeUntil" color="#ff0000" fontSize="22"
fontWeight="bold" toolTip="Page refreshes every 300 seconds"
fontFamily="Arial" width="300"/>
</mx:HBox>
</mx:AddChild>
</mx:State>
</mx:states>
<mx:Script>
<![CDATA[
import mx.rpc.events.ResultEvent;
]]>
</mx:Script>
<mx:Script>
<![CDATA[
private function checkLogin(evt:ResultEvent):void
if(evt.result.code == "200") {
mx.controls.Alert.show('The page is not responding please try
again');
}else{
currentState = "Logged In";
]]>
</mx:Script>
<mx:HTTPService id="login_user" result="checkLogin(event)"
showBusyCursor="true" method="GET"
url="https://mysite.net/interface.php" >
<mx:request xmlns="">
<customer>
{customer.text}
</customer>
<username>
{username.text}
</username>
<password>
{password.text}
</password>
</mx:request>
</mx:HTTPService>
<mx:Panel resizeEffect="Resize" width="582" height="354"
layout="absolute" title="Red Board Login" horizontalCenter="0"
verticalCenter="-2" id="panel1" color="#FF0000"
backgroundColor="#191919" cornerRadius="15" themeColor="#FFA800"
borderColor="#9FA7B7">
<mx:Label x="10" y="14" text="Customer Number"
id="customerlbl" fontSize="20" width="542" textAlign="center"/>
<mx:TextInput x="10" y="61" id="customer" width="542"
borderColor="#F90404" backgroundColor="#D5D1D1"
themeColor="#FFA800" color="#050505"/>
<mx:Label x="10" y="91" text="Username" id="label1"
fontSize="20" width="542" textAlign="center"/>
<mx:TextInput x="10" y="138" id="username" width="542"
borderColor="#F90404" backgroundColor="#D5D1D1"
themeColor="#FFA800" color="#050505"/>
<mx:Label x="10" y="175" text="Password" id="label2"
fontSize="20" width="542" textAlign="center"/>
<mx:TextInput x="11" y="217" id="password"
displayAsPassword="true" width="542" borderColor="#F90404"
backgroundColor="#D5D1D1" themeColor="#FFA800" color="#050505"/>
<mx:Button x="10" y="282" label="Login" id="Submit"
click="login_user.send();" fontSize="14" themeColor="#FFA800"
borderColor="#FA0202"/>
</mx:Panel>
</mx:Application>
[/CODE]
The XML List was showing data but now with the addition of
the log in screen in a state and panel view it is not showing up
Thanks
Can you reduce this to something easier to work with? All of
the extra properties and such make it difficult to read.
Similar Messages
-
Issue with stat() and symbolic links
Has anyone experienced the following issue with stat() ?
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
int main( int argc, char **argv )
struct stat buf;
if( argc < 2 )
return 0;
char *link = strdup( argv[1] );
if( stat( link, &buf ) == -1 ) {
puts( "Error" );
return 1;
if( ( S_IFLNK & buf.st_mode ) == S_IFLNK )
puts( "Is link" );
else
puts( "Not link" );
return 0;
If you compile and run the above code (or similar code), you would expect it to report that the given argument is a symbolic link when indeed the argument is a symbolic link; though, instead of the expected happening, the following happens as shown below:
$ gcc -o islink islink.c
$ ln -s /tmp link
$ ./islink link
Not link
$
Is anyone else experiencing this? My filesystem is ext4. The same error happens when using the S_ISLNK() macro.man 3p lstat
DESCRIPTION
The lstat() function shall be equivalent to stat(), except when path
refers to a symbolic link. In that case lstat() shall return informa‐
tion about the link, while stat() shall return information about the
file the link references. -
[svn] 4070: Addressing backwards compatibility issue with states.
Revision: 4070
Author: [email protected]
Date: 2008-11-11 13:13:43 -0800 (Tue, 11 Nov 2008)
Log Message:
Addressing backwards compatibility issue with states.
QE Notes: None
Doc Notes: None
Bugs: SDK-17395
Reviewer: Peter F.
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-17395
Modified Paths:
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/Grammar.jjRevision: 4070
Author: [email protected]
Date: 2008-11-11 13:13:43 -0800 (Tue, 11 Nov 2008)
Log Message:
Addressing backwards compatibility issue with states.
QE Notes: None
Doc Notes: None
Bugs: SDK-17395
Reviewer: Peter F.
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-17395
Modified Paths:
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/Grammar.jj -
Performance issue with statement
This is the same as my other thread but with everything formatted.
I'm having a lot of issues trying to tune this statement. I have added some new indexes and even moved existing indexes to a 32k tablespace. The execution plan has improved but when I execute the statement the data never returns. I see where my bottle-neck is but I'm lost on what else I can do to improve the performance.
STATEMENT:
SELECT DISTINCT c.oprclass, a.business_unit, i.descr, a.zsc_load,
b.ship_to_cust_id, b.zsc_load_status, f.ld_cnt,
b.zsc_mill_release, b.address_seq_num, d.name1,
e.address1 || ' - ' || e.city || ', ' || e.state || ' '
|| e.postal
FROM ps_zsc_ld a,
ps_zsc_ld_seq b,
ps_sec_bu_cls c,
ps_customer d,
ps_set_cntrl_group g,
ps_rec_group_rec r,
ps_bus_unit_tbl_fs i,
(SELECT business_unit, zsc_load, COUNT (*) AS ld_cnt
FROM ps_zsc_ld_seq
GROUP BY business_unit, zsc_load) f,
(SELECT *
FROM ps_cust_address ca
WHERE effdt =
(SELECT MAX (effdt)
FROM ps_cust_address ca1
WHERE ca.setid = ca1.setid
AND ca.cust_id = ca1.cust_id
AND ca.address_seq_num = ca1.address_seq_num
AND ca1.effdt <= SYSDATE)) e
WHERE a.business_unit = b.business_unit
AND a.zsc_load = b.zsc_load
AND r.recname = 'CUSTOMER'
AND g.rec_group_id = r.rec_group_id
AND g.setcntrlvalue = a.business_unit
AND d.setid = g.setid
AND b.ship_to_cust_id = d.cust_id
AND e.setid = g.setid
AND b.ship_to_cust_id = e.cust_id
AND b.address_seq_num = e.address_seq_num
AND a.business_unit = f.business_unit
AND a.zsc_load = f.zsc_load
AND a.business_unit = c.business_unit
AND a.business_unit = i.business_unit;EXECUTION PLAN:
Plan
SELECT STATEMENT CHOOSECost: 1,052 Bytes: 291 Cardinality: 1
25 SORT UNIQUE Cost: 1,052 Bytes: 291 Cardinality: 1
24 SORT GROUP BY Cost: 1,052 Bytes: 291 Cardinality: 1
23 FILTER
19 NESTED LOOPS Cost: 1,027 Bytes: 291 Cardinality: 1
17 NESTED LOOPS Cost: 1,026 Bytes: 279 Cardinality: 1
15 NESTED LOOPS Cost: 1,025 Bytes: 263 Cardinality: 1
12 NESTED LOOPS Cost: 1,024 Bytes: 227 Cardinality: 1
10 NESTED LOOPS Cost: 1,023 Bytes: 28,542 Cardinality: 134
7 HASH JOIN Cost: 60 Bytes: 134,101 Cardinality: 803
5 NESTED LOOPS Cost: 49 Bytes: 5,175 Cardinality: 45
3 NESTED LOOPS Cost: 48 Bytes: 1,230,725 Cardinality: 12,955
1 TABLE ACCESS FULL SYSADM.PS_CUST_ADDRESS Cost: 20 Bytes: 3,465 Cardinality: 45
2 INDEX RANGE SCAN UNIQUE SYSADM.TEST3 Cost: 1 Bytes: 5,130 Cardinality: 285
4 INDEX UNIQUE SCAN UNIQUE SYSADM.PS_REC_GROUP_REC Bytes: 20 Cardinality: 1
6 INDEX FAST FULL SCAN NON-UNIQUE SYSADM.PS0CUSTOMER Cost: 10 Bytes: 252,460 Cardinality: 4,855
9 TABLE ACCESS BY INDEX ROWID SYSADM.PS_ZSC_LD_SEQ Cost: 2 Bytes: 46 Cardinality: 1
8 INDEX RANGE SCAN UNIQUE SYSADM.TEST7 Cost: 1 Cardinality: 1
11 INDEX UNIQUE SCAN UNIQUE SYSADM.PS_ZSC_LD Bytes: 14 Cardinality: 1
14 TABLE ACCESS BY INDEX ROWID SYSADM.PS_BUS_UNIT_TBL_FS Cost: 2 Bytes: 36 Cardinality: 1
13 INDEX UNIQUE SCAN UNIQUE SYSADM.PS_BUS_UNIT_TBL_FS Cardinality: 1
16 INDEX FULL SCAN UNIQUE SYSADM.PS_SEC_BU_CLS Cost: 2 Bytes: 96 Cardinality: 6
18 INDEX RANGE SCAN UNIQUE SYSADM.PS_ZSC_LD_SEQ Cost: 1 Bytes: 12 Cardinality: 1
22 SORT AGGREGATE Bytes: 31 Cardinality: 1
21 FIRST ROW Cost: 2 Bytes: 31 Cardinality: 1
20 INDEX RANGE SCAN (MIN/MAX) UNIQUE SYSADM.PS_CUST_ADDRESS Cost: 2 Cardinality: 5,364 TRACE INFO:
call count cpu elapsed disk query current rows
Parse 1 0.22 0.24 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 1208.24 1179.86 92 221319711 0 0
total 3 1208.46 1180.11 92 221319711 0 0
Misses in library cache during parse: 1
Optimizer mode: CHOOSE
Parsing user id: 81
Rows Row Source Operation
0 SORT UNIQUE (cr=0 r=0 w=0 time=0 us)
0 SORT GROUP BY (cr=0 r=0 w=0 time=0 us)
0 FILTER (cr=0 r=0 w=0 time=0 us)
0 NESTED LOOPS (cr=0 r=0 w=0 time=0 us)
0 NESTED LOOPS (cr=0 r=0 w=0 time=0 us)
0 NESTED LOOPS (cr=0 r=0 w=0 time=0 us)
0 NESTED LOOPS (cr=0 r=0 w=0 time=0 us)
0 NESTED LOOPS (cr=0 r=0 w=0 time=0 us)
0 HASH JOIN (cr=0 r=0 w=0 time=0 us)
2717099 NESTED LOOPS (cr=221319646 r=92 w=0 time=48747178172 us)
220447566 NESTED LOOPS (cr=872143 r=92 w=0 time=10965565169 us)
4590 TABLE ACCESS FULL OBJ#(15335) (cr=99 r=92 w=0 time=58365 us)
220447566 INDEX RANGE SCAN OBJ#(2684506) (cr=872044 r=0 w=0 time=2533034831 us)(object id 2684506)
2717099 INDEX UNIQUE SCAN OBJ#(583764) (cr=220447568 r=0 w=0 time=23792811449 us)(object id 583764)
0 INDEX FAST FULL SCAN OBJ#(15319) (cr=0 r=0 w=0 time=0 us)(object id 15319)
0 TABLE ACCESS BY INDEX ROWID OBJ#(735431) (cr=0 r=0 w=0 time=0 us)
0 INDEX RANGE SCAN OBJ#(2684517) (cr=0 r=0 w=0 time=0 us)(object id 2684517)
0 INDEX UNIQUE SCAN OBJ#(550855) (cr=0 r=0 w=0 time=0 us)(object id 550855)
0 TABLE ACCESS BY INDEX ROWID OBJ#(11041) (cr=0 r=0 w=0 time=0 us)
0 INDEX UNIQUE SCAN OBJ#(582984) (cr=0 r=0 w=0 time=0 us)(object id 582984)
0 INDEX FULL SCAN OBJ#(583859) (cr=0 r=0 w=0 time=0 us)(object id 583859)
0 INDEX RANGE SCAN OBJ#(2684186) (cr=0 r=0 w=0 time=0 us)(object id 2684186)
0 SORT AGGREGATE (cr=0 r=0 w=0 time=0 us)
0 FIRST ROW (cr=0 r=0 w=0 time=0 us)
0 INDEX RANGE SCAN (MIN/MAX) OBJ#(15336) (cr=0 r=0 w=0 time=0 us)(object id 15336)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
SQL*Net message to client 1 0.00 0.00
db file scattered read 14 0.00 0.00
direct path write 3392 0.00 0.06
db file sequential read 8 0.00 0.00I had an index on that table but still that is not where my bottle neck was showing so I removed it. I have added the index back and clearly it has helped the execution plan.
PLAN_TABLE_OUTPUT
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)|
| 0 | SELECT STATEMENT | | 1 | 291 | 1035 (1)|
| 1 | SORT UNIQUE | | 1 | 291 | 1035 (1)|
| 2 | SORT GROUP BY | | 1 | 291 | 1035 (1)|
| 3 | FILTER | | | | |
| 4 | NESTED LOOPS | | 1 | 291 | 1010 (1)|
| 5 | NESTED LOOPS | | 1 | 279 | 1009 (1)|
| 6 | NESTED LOOPS | | 1 | 243 | 1008 (1)|
| 7 | NESTED LOOPS | | 1 | 227 | 1006 (0)|
| 8 | NESTED LOOPS | | 135 | 28755 | 1005 (0)|
| 9 | HASH JOIN | | 805 | 131K| 39 (0)|
| 10 | HASH JOIN | | 45 | 5175 | 28 (0)|
| 11 | TABLE ACCESS FULL | PS_CUST_ADDRESS | 45 | 3465 | 20 (0)|
| 12 | NESTED LOOPS | | 3398 | 126K| 7 (0)|
| 13 | INDEX FAST FULL SCAN | PS_REC_GROUP_REC | 1 | 20 | 5 (0)|
| 14 | INDEX RANGE SCAN | TEST11 | 3398 | 61164 | 3 (0)|
| 15 | INDEX FAST FULL SCAN | PS0CUSTOMER | 4855 | 246K| 10 (0)|
| 16 | TABLE ACCESS BY INDEX ROWID| PS_ZSC_LD_SEQ | 1 | 46 | 2 (0)|
| 17 | INDEX RANGE SCAN | PS0ZSC_LD_SEQ | 1 | | 1 (0)|
| 18 | INDEX UNIQUE SCAN | PS_ZSC_LD | 1 | 14 | |
| 19 | INDEX FULL SCAN | PS_SEC_BU_CLS | 3 | 48 | 2 (0)|
| 20 | TABLE ACCESS BY INDEX ROWID | PS_BUS_UNIT_TBL_FS | 1 | 36 | 2 (50)|
| 21 | INDEX UNIQUE SCAN | PS_BUS_UNIT_TBL_FS | 1 | | |
| 22 | INDEX RANGE SCAN | PS_ZSC_LD_SEQ | 1 | 12 | 1 (0)|
| 23 | SORT AGGREGATE | | 1 | 31 | |
| 24 | FIRST ROW | | 1 | 31 | 2 (0)|
| 25 | INDEX RANGE SCAN (MIN/MAX) | PS_CUST_ADDRESS | 5364 | | 2 (0)|
------------------------------------------------------------------------------------------------ -
Issue with Select options in select statement - ABAP Question
Hi
I am facing an issue with select options. Select statement is returning sy-subrc as 4.
I wrote the program as below:
SELECT-OPTIONS:
s_kunnr FOR bsad-kunnr,
s_lifnr FOR bsak-lifnr,
s_gjahr FOR bsad-gjahr,
s_bukrs FOR bsad-bukrs,
s_saknr FOR bsad-saknr,
s_budat FOR bsak-budat.
In start of selection I have written the select statement as
SELECT * FROM bsak INTO TABLE lt_bsak
WHERE bukrs IN s_bukrs AND lifnr = s_lifnr AND gjahr IN s_gjahr AND budat IN s_budat AND saknr IN s_saknr.
In selection screen I have not entered any values and executed the program. I am not getting any result. When I debug that, sy-subrc is 4 at above select statement. But table has records.
If am removing the "lifnr = s_lifnr " condition in select then select is returning values.
I am not getting where I made the mistake. Please suggest.
Thank you
HanuHi,
The problem here with where condition select option lifnr = s_lifnr.
Use below select query.
SELECT * FROM bsak INTO TABLE lt_bsak
WHERE bukrs IN s_bukrs
AND lifnr IN s_lifnr
AND gjahr IN s_gjahr
AND budat IN s_budat
AND saknr IN s_saknr.
s_lifnr is a select option and you are passing it as parameter lifnr = s_lifnr.
if you want to pass this s_lifnr as single vale then pass in below mentioned way.
lifnr = s_lifnr-low
BR,
Vijay -
Hi,
We have recently had issues running system state backups on our 2008 R2 Domain Controllers. They are running on Dell PowerEdge R510 Physical Hardware. Whenever you initiate a system state backup, the Domain Controller becomes unresponsive
forcing us to physically reboot it. Nothing in the Event logs or the Dell Open Management Hardware Software indicates issues with Phyiscal disks but we can always replicate the issue by starting the system state backup.
The system state backup is initialted as a batch file that runs as a scheduled task. the commands run are as follows:
WBADMIN START SYSTEMSTATEBACKUP -backupTarget:[drive letter] -quiet
We have 4 Domain Controllers with identical disk configurations. When the DCs were setup I confirmed the system state backups were working but the issue started occuring sometime in Dec 2014. We are going to run the Dell Hardware Update Utility
to update the RAID, BIOS, Firmware updates but Has anyone experienced a similar issue that may have been triggerd by a Microsoft Patch?
Thanks,
Kevin C.
kconway@fnalgov
Hi Kevin,
This issue could be due to the Mountmgr.sys driver incorrectly maintains a global mutex. This behavior causes a deadlock situation in the Mountmgr.sys driver.
Please install the hotfix in the article below to resolve the issue:
A computer stops responding because of a deadlock situation in the Mountmgr.sys driver in running Windows 7 or in Windows Server 2008 R2
http://support.microsoft.com/kb/2614892
Best Regards,
Mandy
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] -
My computer is not taking the new update from itunes. It states that i do not have the requirements to finish the Install and that it was Installed incorrectly. I have never had any issue with any previous update regarding iTunes. What is the issue?
Hi there Double2D,
You may find the troubleshooting steps in the article below helpful.
iTunes 11.1.4 for Windows: Unable to install or open
http://support.apple.com/kb/TS5376
-Griff W. -
Issue with showing input forms for update SQL statement
Hi guys - I'm currently doing a college project and I'm not overly experienced in the area of Java/JSP but I'm having an issue with a project. I have a JSP project inserting, viewing and deleting rows from a database but having an issue getting the update/modify function working in my project.
If I hardcode values into my variables and launch the project it updates fine, but I believe theres an issue with how I'm calling the existing rows. I wish for the user to be able to view the rows from the database and modify as they wish. Once they submit the modifications, I want the row to be updated. Can anyone see where the problem might exist in my code below? I hope it's something small, but I'm not able to fix it at the moment and would apreciate anyone's help! :)
The problem I'm facing at the moment is the input boxes for displaying the current rows from the database are not even showing up..
ModifyNode.jsp:
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="suaspackage.NodeManager" %>
<jsp:useBean id="AddNode" scope="session" class="suaspackage.NodeManager"/>
<%@ page language="java" %>
<%@ page import="java.sql.*" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Suas</title>
</head>
<body
<%! // Class level declarations
Connection dbCon; // interface type in java SQL
ResultSet rs; // interface type in java SQL
String serverName = "localhost";
String nodeID;
String valowneremail;
String valownersms;
boolean bFirstTime;
%>
<%
bFirstTime = true;
if(request !=null){
if(request.getParameter("submit") != null){
nodeID = "6";
valowneremail = request.getParameter("OwnerEmail");
valownersms = request.getParameter("OwnerSms");
bFirstTime = false;
AddNode.update(nodeID, valowneremail, valownersms);
%>
%>
<%
try{
Class.forName("com.mysql.jdbc.Driver"); // SQLServer specifics 1
dbCon = DriverManager.getConnection( // SQLServer specifics 2
"jdbc:mysql://" + serverName + ":3306" + "/suasdb", "root", "9631");
Statement stmt;
String sqlString = "select nodeid, node, owneremail, ownersms from nodemanager";
stmt = dbCon.createStatement();
rs = stmt.executeQuery(sqlString);
} catch (ClassNotFoundException e){
out.write("<B><CENTER><P>");
out.write("Error loading class for Suas database connection: </P><P>");
out.write(e.toString());
out.write("</B></CENTER></P>");
} catch (SQLException e){
out.write("<B><CENTER><P>");
out.write("Error accessing Suas database connection: </P><P>");
out.write("</B></CENTER></P>");
if(rs!=null){
%>
<jsp:include page="includeheader.jsp" />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/pagemarker_nodemanager.jpg" alt="Node manager" width="176" height="55"></td>
</tr>
</table>
<jsp:include page="includenodemenu.jsp" />
<TABLE WIDTH="75% BORDER="0" CELLPADDING="5" ALIGN="CENTER">
<TR BGCOLOR="#9ddc4f"> </TR>
<br>
<TR BGCOLOR="#9ddc4f">
<TH>Node ID</TH>
<TH>Node</TH>
<TH>Owner E-Mail Address</TH>
<TH>Owner SMS Number</TH>
<TH></TH>
</TR>
<% } else {
%>
<% while (rs.next()){
%>
<FORM>
<TR BGCOLOR="#d7eabf">
<TD><%=rs.getString("nodeid")%></TD>
<TD><%=rs.getString("node")%></TD>
<TD><INPUT size="20" type="text" name="OwnerEmail" value="<%=rs.getString("owneremail")%>"</TD>
<TD><INPUT size="20" type="text" name="OwnerSms" value="<%=rs.getString("ownersms")%>"</TD>
<TD><INPUT type="submit" name="submit" value="Save"></TD>
</TR>
<% }
%>
</body>
</html>
{code}
The relevant part of my NodeManger package:
{code}
public void update(String updateNodeId, String valEmail, String valSMS) throws ClassNotFoundException, SQLException{
try{
String updateSQL;
String nodeid = updateNodeId;
String updateowneremail = valEmail;
String updateownersms = valSMS;
Connection dbCon;
Statement stmt;
ResultSet rs;
String serverName = "localhost";
Class.forName("com.mysql.jdbc.Driver"); // SQLServer specifics 1
dbCon = DriverManager.getConnection( // SQLServer specifics 2
"jdbc:mysql://" + serverName + ":3306" + "/suasdb", "root", "9631");
updateSQL = "update nodemanager SET owneremail='" + updateowneremail + "', ownersms='" + updateownersms + "' WHERE nodeid='" + nodeid + "'";
stmt = dbCon.createStatement();
stmt.execute(updateSQL);
} catch (ClassNotFoundException e){
throw(e);
} catch (SQLException e){
throw(e);
}{code}
Edited by: daveomcgee on Apr 9, 2009 8:03 AMI support what ThomYork suggests. Learn how to properly separate database/business logic from your view logic. Learn how to use servlets and JSPs together. Read abourt DAO classes. Learn how to build a view in JSPs using taglibs (JSTL to begin with).
You might think it is too much work, but if you learn this stuff the wrong way now, it is going to be that much harder converting to the clean, readable, reusable and maintainable way later on. -
Selected state issue with Menu Module V2
OK so I am getting an issue with Menu Module V2. I have used this before with success but this time I have hit a wall. I possed this question to BC live chat and they bugged out real quick.
The site in construction is http://www.urbanista.com.au
What is happening is that in the top right tools nav with the headings Home, Services, People, Contact Us using Menu Module V2. The Heading Services has a drop down and this is where the issue resides. Roll over any of these nav devices and you will see they will highlight orange. Home is already auto activating its Selcted state. Click on Contact Us and it will do the same. Roll over and click on Services and it appears to have worked. While in Services roll over the drop down again and you will see all links have activated the Selected state. This is the issue. If you view the code of the Services UL you will see only the Services state has been alocated the Slected state. See below:
<li id="Services" class="selected">
<a href="/services.htm">Services</a>
<ul>
<li id="tools-panningdev">
<li id="tools-housing">
<li id="tools-urban-renewal">
<li id="tools-project-management">
<li id="tools-feasibility-tools">
<li id="tools-governance-systems">
<li id="tools-communications">
<li id="tools-projects">
</ul>
</li>
The CSS that runs the nav is as follows:
ul.dropdown {
font-weight: normal;
font-family: Arial, Helvetica, sans-serif;
font-style: normal;
text-decoration: none;
ul.dropdown li {
background-color: transparent;
color: #999;
padding-top: 5px;
padding-right: 10px;
padding-bottom: 5px;
padding-left: 10px;
font-size: 12px;
ul.dropdown li.hover,
ul.dropdown li:hover {
background-color: transparent;
color: #FFF;
ul.dropdown a:link,
ul.dropdown a:visited {
color: #FFF;
text-decoration: none;
ul.dropdown a:hover { color: #ff871f; }
ul.dropdown a:active {
color: #b33b00;
/* -- level mark -- */
ul.dropdown ul {
width: 150px;
margin-top: 1px;
background-image: url(/images/nav-transparency.png);
background-repeat: repeat;
color: #FFF;
ul.dropdown ul li {
font-weight: normal;
ul.dropdown li.selected a {
color: #ff871f;
The last entry 'ul.dropdown li.selected a {color: #ff871f;}' is required in order to allocate a Slected State. Without it not Selected state is active and the links al remian white.
I have tried all manner of combinations and additonal tags with no success. Any suggestions greatly appreciated. I have not modified the default Javascript provided by BC in the system apart from allocating the required ulTagClass as specified. The Javascript in the supplied 'container.html' is as follows:
<script type="text/javascript" >
// ids need to be unique per page, use different ones if you are including multiple menus in the same page
// id of the nav tag, used above
var divTagId = "myMenu1";
// desired id for 1st <ul> tag
var ulTagId = "myMenu1List";
// desired class for 1st <ul> tag
var ulTagClass = "dropdown dropdown-vertical";
if ((null !== ulTagId) && ("" !== ulTagId)) {
document.getElementById(divTagId).getElementsByTagName("ul")[0].setAttribute("id",ulTagId );
if ((null !== ulTagClass) && ("" !== ulTagClass)) {
document.getElementById(divTagId).getElementsByTagName("ul")[0].className = ulTagClass;
// this will set the selected state
if ((null !== ulTagId) && ("" !== ulTagId)) {
catSetSelectedCSSItem(ulTagId);
</script>
Lastly this is one of the recomended navs by BC at the following address: http://lwis.net/free-css-drop-down-menu/
I have used these before with success but for the life of me this has stumped me big time.Hi Matthew,
Having a super quick look at the code I'd say it's because of:
ul.dropdown li.selected a {
color: #ff871f;
This affects all the child elements.
To override this down the line you could do something like:
ul.dropdown li.selected ul li a {
color: #fff;
This would override the parent link color when selected.
You could probably then also add:
ul.dropdown li.selected ul li.selected a {
color: #ff871f;
For the dropdown selected states.
That's a quick look though so don't quote me too much -
Issue with TableAdapter Configuration Wizard and CASE statements
I am having an issue with using any CASE statements in the select clause for the Table Adapter Configuration Wizard (TCW). I can take any query without a CASE and it will run fine, but inserting any CASE statement in the Select such as:
SELECT
(CASE WHEN :ras_sort = 'D' THEN TO_CHAR(a.TRANS_DATE,'YYYYMMDD')
WHEN :ras_sort = 'C' THEN c.CLAIMDEP_NAME
WHEN :ras_sort = 'A' THEN TO_CHAR(a.ACCOUNT_NUMBER)
END) sort1
FROM xxxx
causes the TCW to error with "error in list of function arguments, 'THEN' not recognized" and several other errors. I have tried with and without parameters in the CASE and have tried both forms of the CASE statement. I have tried multiple queries, all that run with no problem outside of TCW and ODP, but this seems to be a real issue
Is this a known problem and are there any workarounds that will allow use of the TCW?
Thanks,
DaveHi Ashish,
perhaps you launch the Web service wizard from the wrong location (i.e. not selecting the SEI you want to use). Did you strictly follow the steps described in the <a href="http://help.sap.com/saphelp_nwce10/helpdata/en/44/f36fa8fd1d41aae10000000a114a6b/frameset.htm">documentation</a> for creating the web service? -
Issue with : Stateful BSP Applications: New State Management Option
Reference:weblog by Thomas Jung - /people/thomas.jung3/blog/2004/11/09/updated-stateful-bsp-applications-new-state-management-option
I see a comment by one user to send the complete code... I am not sure what else can be sent - try it out rather than getting spoon-fed. - getting offline - sorry...
I had two issues with this ITSM way of session handling.
First - if you are using an SP42 environment, check CL_BSP_RUNTIME=>ON_SESSION_CMD() to see if CANCEL is defined as an option. If not make sure that you use &sap-sessioncmd=CLOSE" instead of the &sap-sessioncmd=CANCEL" . If CANCEL is not defined , it will give you shortdumps...
Second - when I closed the window, the session was not terminated. I used onbeforeUnLoad="exitBSPApplication(); instead of onUnLoad="exitBSPApplication(); and it worked fine. Not sure if it has any other issues.
But now I am facing a new issue... all but one application is not ending... I have no clue on why this is happening.. I am still checking..
Thanks Thomas, you are the best, as always...Thanks for checking the code in your system.
After some investigation, I found the behavior as explained below.
If the actual url has any fields passed as parameters, e.g.. /default.htm?var1=a&var2=2 ...
- if I use CANCEL as the option, a shortdump is created and the session is not closed. if I use CLOSE, Session is terminated and no shortdump happens.
If the actual url does not have any parameters, e.g.. /default.htm ...
- CANCEL does the work, but CLOSE does not exit the session.
In my applications I used request->get_form_fields to see if there are any parameters, and if there are, then I use CLOSE as the option and else, I use CANCEL. So now, the session
management works beautifully...
There is a good chance that I am doing something wrong here too. -
Issue with reading emails state.
Dear community,
in my company, we have BB to bring a very good 24hrs service to our customer, but the thing is that we started to have an issue with our BB and the Microsoft Office 365 and Exchange service.
We have BlackBerry Enterprise service activated on each blackberry, so we receive every email in our BBs.
But, when we read an email, after you go back to the mailbox, it appears as un-read again. Then, if you read it again, and go back to the mailbox, it appears as read.
DO you know why it's happening?.
Thanks in advance,Hi,
Use TRY & CATCH statements before OPEN DATASET...
For exact syntax check F1 help on try & catch...
TRY.
CATCH.
OPEN DATASET..
endcatch.
endtry.
Hope it helps!!
Rgds,
Pavan -
Issue with active state on navigation of vertical slide website. Please help!
Hey guys!
I'm using the Adtile vertical-slide example at http://www.adtile.me/fixed-nav/ and am having some issues with the navigation...
When I add nav buttons for external pages, the navigation active state doesn't follow through the menu to the active slide (it does on the external pages as I'm using a separate css selector PHP script though). Without the additional buttons for the external pages they work fine.
Here's the link to the working example WITHOUT the additional buttons for external pages.
Here's the link for the page WITH the additional buttons for external pages.
Does anyone know how I can get the active state to work for the slides section of the website?
Thank you!
SMTry this:
.nav-collapse a:hover,
.nav-collapse a:active,
.nav-collapse a:focus {
background: #e8e8e8;
Nancy O. -
Performance issue with the ABAP statements
Hello,
Please can some help me with the below statements where I am getting performance problem.
SELECT * FROM /BIC/ASALHDR0100 into Table CHDATE.
SORT CHDATE by DOC_NUMBER.
SORT SOURCE_PACKAGE by DOC_NUMBER.
LOOP AT CHDATE INTO WA_CHDATE.
READ TABLE SOURCE_PACKAGE INTO WA_CIDATE WITH KEY DOC_NUMBER =
WA_CHDATE-DOC_NUMBER BINARY SEARCH.
MOVE WA_CHDATE-CREATEDON to WA_CIDATE-CREATEDON.
APPEND WA_CIDATE to CIDATE.
ENDLOOP.
I wrote an above code for the follwing requirement.
1. I have 2 tables from where i am getting the data
2.I have common fields in both the table names CREATEDON date. In both the tables I hve the values.
3. While accessing the 2 table and copying to thrid table i have to modify the field.
I am getting performance issues with the above statements.
Than
Edited by: Rob Burbank on Jul 29, 2010 10:06 AMHello,
try a select like the following one instead of you code.
SELECT field field2 ...
INTO TABLE it_table
FROM table1 AS T1 INNER JOIN table2 AS T2
ON t1-doc_number = t2-doc_number -
I am having an installation failure issue with my itunes 11 software. File is corrupted and i don't know what to do. I've un-install and re-installed the software three times and continue to get the same error message. It states that "This copy of ITunes is corrupted or is not installed correctly. Please reinstall Itunes"
iMac, iOS 6HI,
If your old version of iTunes is still working - then I sugest you stick with that.
iTunes 11 is a lousy update - It will not retain your playlists, you can't find and delete duplicates... and a whole arry of oyher issues. (have a look around this forum to see how many issues IT11 gives people)
Just a friendly advise and warning :-)
Maybe you are looking for
-
Duplicate Loops. Not just in the browser - actual duplicate files.
i have GarageBand loops located both in Library/Application Support/GarageBand/Apple Loops/Apple Loops for GarageBand and Library/Audio/Apple Loops/Apple/Apple Loops for GarageBand. as these are taking up space, which one can i safely delete - the on
-
"Find" Not Working in Adobe Reader X
I Installed ARX on a Win7/64 machine a few months ago...it seems to work fine. But today I tried to use the "find" function; everything seemed normal, I asked it to find the word "smith", but it wasn't there (but it really was). I then tried the wo
-
"Show Grid" in a GridBagLayout
I'm trying to show the grid for a GridBagLayout in a the Java Visual Editor for Swing, but I don't find any "Show Grid" option in the popup menu, as it's mentioned in the JDev help. I'm using JDeveloper 10.1.3. Thanks in advance.
-
I am sorry If someone asked this question before Oracle version : 10.2.0.3.0 OS : Linux Tablespace Name Tablespace Size (in MB) Used (in MB) Free (in MB) Pct. Used UNDOTBS1 2,000 1
-
I'm doing a survey for a school research project on the database career field. It would greatly help me if someone in the field would take the time to answer the following (very basic) questions. 1. What is your name? 2. Please describe your job titl