Inconsistent insert behavior

Please help.
1. The following code snippet does not work properly:
<td colspan="3">Contact relationship to peer
educator</td>
<td> </td>
</tr>
<tr>
<td>
<?php if (isset($_POST['Contact2Peer']) &&
is_array($_POST['Contact2Peer'])) {
echo '$_POST[\'Contact2Peer\'] is an array. It contains: ';
print_r($_POST['Contact2Peer']);
elseif (!isset($_POST['Contact2Peer'])) {
echo '$_POST[\'Contact2Peer\'] does not exist';
else {
echo '$_POST[\'Contact2Peer\'] is of the following data
type:
'.gettype($_POST['Contact2Peer']);
} ?>
<?php foreach($_POST['Contact2Peer'] as $peerrel)
echo "<p>".$peerrel."</p>";
$insertSQLTPR = sprintf("INSERT INTO TEENPEERRELATIONSHIP
(PEEREDU_OWNS_ID,
TEEN_ID,
PEEREDU_TALKS_ID,
CONTACT_DATE,
Contact2PeerID)
VALUES (%s,
%s,
%s,
%s,
%s)",
GetSQLValueString($_POST['peereduid'], "int"),
GetSQLValueString($_POST['teenid'], "int"),
GetSQLValueString($_POST['peereduid'], "int"),
GetSQLValueString($_POST['ContactDate'], "date"),
GetSQLValueString($peerrel, "int"));
mysql_select_db($database_cnPeer_Outreach,
$cnPeer_Outreach);
$Result1 = mysql_query($insertSQLTPR, $cnPeer_Outreach) or
die(mysql_error());
?> </td>
<td colspan="2"> </td>
<td> </td>
</tr>
<tr>
<td>Encounter referred by:</td>
<td colspan="2"> </td>
<td> </td>
</tr>
<tr>
<td>
<?php if (isset($_POST['ReferredBy']) &&
is_array($_POST['ReferredBy'])) {
echo '$_POST[\'ReferredBy\'] is an array. It contains: ';
print_r($_POST['ReferredBy']);
elseif (!isset($_POST['ReferredBy'])) {
echo '$_POST[\'ReferredBy\'] does not exist';
else {
echo '$_POST[\'ReferredBy\'] is of the following data type:
'.gettype($_POST['ReferredBy']);
} ?>
<?php foreach($_POST['ReferredBy'] as $refby)
{echo "<p>".$refby."</p>";
$insertSQLCRB = sprintf("INSERT INTO CONTACTREFERREDBY
(PEEREDU_OWNS_ID,
TEEN_ID,
PEEREDU_TALKS_ID,
CONTACT_DATE,
PERSONTYPE_ID)
VALUES (%s,
%s,
%s,
%s,
%s)",
GetSQLValueString($_POST['peereduid'], "int"),
GetSQLValueString($_POST['teenid'], "int"),
GetSQLValueString($_POST['peereduid'], "int"),
GetSQLValueString($_POST['ContactDate'], "date"),
GetSQLValueString($refby, "int"));
mysql_select_db($database_cnPeer_Outreach,
$cnPeer_Outreach);
$Result1 = mysql_query($insertSQLCRB, $cnPeer_Outreach) or
die(mysql_error());
?> </td>
2. It produces the following results:
(var_dump POST)
array(28) {
["PeerEducator"]=> string(1) "2"
["ContactDate"]=> string(10) "2007-04-30"
["Contact2Peer"]=> array(1) { [0]=> string(1) "3" }
["ReferredBy"]=> array(1) { [0]=> string(1) "2" }
["ContactType"]=> string(11) "Small Group"
["NumPeople"]=> string(1) "5"
["Location"]=> string(4) "home"
["ContactLength"]=> string(2) "10"
["Topic"]=> array(2) { [0]=> string(1) "A" [1]=>
string(1) "D" }
["Materials"]=> array(2) { [0]=> string(1) "B"
[1]=> string(1) "R" }
["KnowTeenWire"]=> string(1) "1"
["UseTeenWire"]=> string(1) "1"
["ReferredFor"]=> array(2) { [0]=> string(1) "A"
[1]=> string(1) "M" }
["Escort"]=> string(1) "1"
["VisitTeenWire"]=> string(1) "1"
["PresentReferral"]=> string(1) "1"
["RecTalkTo"]=> array(2) { [0]=> string(1) "1"
[1]=> string(1) "3" }
["TalkAbout"]=> string(13) "you know what"
["Action"]=> array(2) { [0]=> string(1) "D" [1]=>
string(1) "L" }
["ContactTalkTo"]=> array(2) { [0]=> string(1) "1"
[1]=> string(1) "3" }
["ContactMedicalVisit"]=> array(2) { [0]=> string(1)
"C" [1]=> string(1) "O" }
["Comments"]=> string(4) "none"
["ContactLater"]=> string(1) "0"
["ConvenientDay"]=> string(0) ""
["ConvenientTime"]=> string(0) ""
["Submit"]=> string(6) "Submit"
["teenid"]=> string(1) "6"
["peereduid"]=> string(1) "2"
Contact relationship to peer educator
$_POST['Contact2Peer'] is of the following data type: array
3
Encounter referred by:
$_POST['ReferredBy'] is an array. It contains: Array ( [0]
=> 2 )
2
Column 'CONTACT_DATE' cannot be null
3. The second insert fails even though the first insert
works. Also of interest but may be superfluous is the fact that the
two arrays Contact2Peer and ReferredBy trigger different results in
the debugging code.
4. Dreamweaver support would not even touch this case.

Please help.
1. The following code snippet does not work properly:
<td colspan="3">Contact relationship to peer
educator</td>
<td> </td>
</tr>
<tr>
<td>
<?php if (isset($_POST['Contact2Peer']) &&
is_array($_POST['Contact2Peer'])) {
echo '$_POST[\'Contact2Peer\'] is an array. It contains: ';
print_r($_POST['Contact2Peer']);
elseif (!isset($_POST['Contact2Peer'])) {
echo '$_POST[\'Contact2Peer\'] does not exist';
else {
echo '$_POST[\'Contact2Peer\'] is of the following data
type:
'.gettype($_POST['Contact2Peer']);
} ?>
<?php foreach($_POST['Contact2Peer'] as $peerrel)
echo "<p>".$peerrel."</p>";
$insertSQLTPR = sprintf("INSERT INTO TEENPEERRELATIONSHIP
(PEEREDU_OWNS_ID,
TEEN_ID,
PEEREDU_TALKS_ID,
CONTACT_DATE,
Contact2PeerID)
VALUES (%s,
%s,
%s,
%s,
%s)",
GetSQLValueString($_POST['peereduid'], "int"),
GetSQLValueString($_POST['teenid'], "int"),
GetSQLValueString($_POST['peereduid'], "int"),
GetSQLValueString($_POST['ContactDate'], "date"),
GetSQLValueString($peerrel, "int"));
mysql_select_db($database_cnPeer_Outreach,
$cnPeer_Outreach);
$Result1 = mysql_query($insertSQLTPR, $cnPeer_Outreach) or
die(mysql_error());
?> </td>
<td colspan="2"> </td>
<td> </td>
</tr>
<tr>
<td>Encounter referred by:</td>
<td colspan="2"> </td>
<td> </td>
</tr>
<tr>
<td>
<?php if (isset($_POST['ReferredBy']) &&
is_array($_POST['ReferredBy'])) {
echo '$_POST[\'ReferredBy\'] is an array. It contains: ';
print_r($_POST['ReferredBy']);
elseif (!isset($_POST['ReferredBy'])) {
echo '$_POST[\'ReferredBy\'] does not exist';
else {
echo '$_POST[\'ReferredBy\'] is of the following data type:
'.gettype($_POST['ReferredBy']);
} ?>
<?php foreach($_POST['ReferredBy'] as $refby)
{echo "<p>".$refby."</p>";
$insertSQLCRB = sprintf("INSERT INTO CONTACTREFERREDBY
(PEEREDU_OWNS_ID,
TEEN_ID,
PEEREDU_TALKS_ID,
CONTACT_DATE,
PERSONTYPE_ID)
VALUES (%s,
%s,
%s,
%s,
%s)",
GetSQLValueString($_POST['peereduid'], "int"),
GetSQLValueString($_POST['teenid'], "int"),
GetSQLValueString($_POST['peereduid'], "int"),
GetSQLValueString($_POST['ContactDate'], "date"),
GetSQLValueString($refby, "int"));
mysql_select_db($database_cnPeer_Outreach,
$cnPeer_Outreach);
$Result1 = mysql_query($insertSQLCRB, $cnPeer_Outreach) or
die(mysql_error());
?> </td>
2. It produces the following results:
(var_dump POST)
array(28) {
["PeerEducator"]=> string(1) "2"
["ContactDate"]=> string(10) "2007-04-30"
["Contact2Peer"]=> array(1) { [0]=> string(1) "3" }
["ReferredBy"]=> array(1) { [0]=> string(1) "2" }
["ContactType"]=> string(11) "Small Group"
["NumPeople"]=> string(1) "5"
["Location"]=> string(4) "home"
["ContactLength"]=> string(2) "10"
["Topic"]=> array(2) { [0]=> string(1) "A" [1]=>
string(1) "D" }
["Materials"]=> array(2) { [0]=> string(1) "B"
[1]=> string(1) "R" }
["KnowTeenWire"]=> string(1) "1"
["UseTeenWire"]=> string(1) "1"
["ReferredFor"]=> array(2) { [0]=> string(1) "A"
[1]=> string(1) "M" }
["Escort"]=> string(1) "1"
["VisitTeenWire"]=> string(1) "1"
["PresentReferral"]=> string(1) "1"
["RecTalkTo"]=> array(2) { [0]=> string(1) "1"
[1]=> string(1) "3" }
["TalkAbout"]=> string(13) "you know what"
["Action"]=> array(2) { [0]=> string(1) "D" [1]=>
string(1) "L" }
["ContactTalkTo"]=> array(2) { [0]=> string(1) "1"
[1]=> string(1) "3" }
["ContactMedicalVisit"]=> array(2) { [0]=> string(1)
"C" [1]=> string(1) "O" }
["Comments"]=> string(4) "none"
["ContactLater"]=> string(1) "0"
["ConvenientDay"]=> string(0) ""
["ConvenientTime"]=> string(0) ""
["Submit"]=> string(6) "Submit"
["teenid"]=> string(1) "6"
["peereduid"]=> string(1) "2"
Contact relationship to peer educator
$_POST['Contact2Peer'] is of the following data type: array
3
Encounter referred by:
$_POST['ReferredBy'] is an array. It contains: Array ( [0]
=> 2 )
2
Column 'CONTACT_DATE' cannot be null
3. The second insert fails even though the first insert
works. Also of interest but may be superfluous is the fact that the
two arrays Contact2Peer and ReferredBy trigger different results in
the debugging code.
4. Dreamweaver support would not even touch this case.

Similar Messages

  • PWA 2013 "Add a new task" - inconsistent task insertion behavior

    Hi all!
    New to the forum and wondering if anyone out there has insight into what I've encountered with the "Add a new task" feature in on-prem Project Server 2013.  
    First some context... I am setting up 12-month projects for different teams to forecast and log their administrative and reactive time for the year.
     We are tracking this within enterprise projects.  The projects have a series of summary tasks that serve to categorize work.  There is a placeholder task within each summary task that establishes duration and where we may assign generic resources
    to establish a baseline cost for the 12 month period for that category of work.  The vision is for team members to go to their PWA Tasks list, "Add a new task", select the project and the summary task to categorize and add their new task to
    the project, enter the task information, and submit for approval.  
    My issue appears when the Project Manager approves a task and opens the project in Project Professional because the system appears to exhibit inconsistent
    behavior - Scenario 1 vs Scenario 2 below.  
    Scenario 1 – Project structure prior
    to adding a new task:
    Project Summary Task, 260d
    -Summary Task, 260d
    --Placeholder Task, 260d, generic resources assigned, ID=n
    -Summary Task, 260d
    Team member adds a new task and submits.  The new task is inserted as a child task to the summary task selected when adding
    the new task.  This is what PWA Approval Preview shows and what is found when file is opened in Project Professional:
    Project Summary Task, 260d?
    -Summary Task, 260d?
    --New task just added, 2d?, named resource assigned, ID=n
    --Placeholder Task, 260d, generic resources assigned, ID=n+1
    -Summary Task, 260d
    Scenario 2 – Same project structure as scenario 1... team member submits a new task
    and the new task is inserted per below.  This is NOT what PWA Approval Preview shows.  PWA shows the new task as a child of the summary task.  Once approved and the file is opened in Project Professional, the task instead reflects as a child
    task to the placeholder task, and impacts the duration of the original summary task:
    Project Summary Task, 260d?
    -Summary Task, 2d?
    --Placeholder Task, 2d?, generic resource assignments, ID=n
    ---New task just added, 2d?, named resource assigned, ID=n+1
    -Summary Task, 260d
    I am using separate project files to produce the scenario, and as far as I can tell they are set up exactly the same, but one file consistently produces
    scenario 2 behavior and the other consistently produces scenario 1 behavior. It seems that something is different between the two files and causing the issue, but I can't figure out what it is.  
    Any idea what I could do to establish consistent (preferably Scenario 1) task insertion behavior from PWA?

    Anyone else running into this?  We're now on the April CU and still experiencing this apparent bug.  I've replicated it in different PWA instances using "Add a new task" from both the timesheet and tasks.  
    It only happens on certain projects as Greg mentioned... One way we've been able to pinpoint where it's taking place:  since the bug causes a task to become a summary task, and since most of our tasks have assignments, if a project contains any summary
    tasks with assignments, those may be an early indicator of the bug (after we rule out PM-induced summary task assignments).  
    We're seeing this impact our project actuals and reports, so there is a fair amount of going back through approval history and restoring actual hours to the correct calendar dates in the Project Client.  Not ideal, because we are planning to lock that
    capability down in the near future.
    On a whim, I tried using the "Save for sharing" method to fix the issue, and new tasks appeared to insert correctly after that.  Seems OK for a workaround (we'll see how durable it is), but better yet would be consistent new task insertion
    behavior.

  • Inconsistent aggregation behavior activation will be terminated 0PUR_DS03

    Hi All,
    Iam getting the following error while activating ODS 0PUR_DS03 delta request
    Inconsistent aggregation behavior activation will be terminated.
    The Initiales request for it went smoothly but giving error while activating Delta request only.
    I found one sap note 1081423 but it is applicable before 16 and Iam already on support package 16 .
    Thanks and Regards .
    Akash

    Hi,
    But the correction are already been done for SP16.
    https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/spat/index.htm?sp1=SAPKW70016
    Have you checked the Notes, 1074388 1074236 and 875986.
    Edited by: Aduri on Dec 11, 2008 12:55 PM

  • Inconsistent aggregation behavior - activation will be terminated

    Hi BW Gurus
    DSO activation is failing with the error message : "Inconsistent aggregation behavior - activation will be terminated"
    Can any one please suggest on the above issue like how it will be caused and resolved
    Thanks in advance
    Venkat

    Hi....
    If u r getting error in data activation, try the below procedure
    If u want to activate the DSO the status of all the requests must be green.
    If all requests are not in green then this eeror will come.
    Right click on the DSO-> Administrator data target.
    Thaere check whrther the status of any request is yellow or red.
    May be that load going on in some other chain......just click on the Monitor icon.
    Then in the IP monitor .
    Go to the Details tab.
    Expand the Process chain node->right click ->Display messages.
    If you are loading through DTP.
    Then it will take u to the DTP monitor.......
    If PC node is not there,then go to the header tab->click on the IP->it will take u to the IP scheduler
    ->there in the Schedule tab->a Where used list icon is there,it will show u all the chains.
    If that is also not there...then that IP is not a part of any chain,may be it is an Adhoc run,
    wait until the load get completed, then repeat the DSO activation.
    If there is any red request,then first check why it failed, try to rectify the error and repeating the load.if it is not required just delete the request
    then repeat the DSO activation
    Hope this helps.......
    Regards,
    BRS

  • An interesting problem with DW insert behavior

    I've recently realized that the Insert behavior allows for
    certain
    problems.. for example,
    http://www.websitenamehere.com/register.asp?MM_Insert=Registration
    will insert a null record since the querystring MM_Insert
    having the Value
    of Registration will set up all the conditions necessary to
    insert a record
    without validating any data.
    I know this because I recently had 200 null records suddenly
    show up in the
    database.. any suggestions for how to avoid this? Anyone?

    We have done a lot in the field of xsl:fo but not for BIP but for FOP. I've had the same problem for some reports but in the end I gave up and used jasperserver. I find it a little amusing that the same problem of FOP exists in BIP...
    Jasper reports is completely java based and can convert to all formats BIP can. It can also read html from clobs and convert it for your reports.
    Another advantage is that it's free. The downside is that imho there are still some bugs in the jasperserver and it's quit hard to install. But once it's running it's great...
    Br,
    Nico
    Edited by: NicoMartens_InterAccessBE on 16-mei-2011 14:51

  • Doing an insert behavior in Dreamweaver CS five and Access?

    so there I am doing  an Insert Record into a table  in Access. I have used this behavior before and have had no problem. When I am doing a form element type selection (for each field in the record) I have no problem – except for the second field. The default value <ignore >cannot be changed: there is no drop-down list as there is with every other field. I have tried changing the name of the field (from Fullname to Fname) thinking that this might be a reserved word problem, but it is not. What could be the problem and what might be the solution?
    Thanks!
    Ross

    I've attached a screenshot might depict my dilemma a little more thoroughly: about a picture being worth 1000 words? With this I double clicked on the insert behavior. Notice the "insert into column" drop box which has the phrase <ignore > highlighted?I want to have  fname inserts into fullname but I cannot do so. I have tried changing the field name in the  Access database itself but it makes no difference. I have even tried setting it to a bogus value – one on the list – but I get complaints at runtime about the same input field be stuffed into two columns. So how do I get the actual field name for the column, Fullname, instead of the <ignore >??
    Ross

  • Inconsistent inserts into detail table of master-detail form

    Hello,
    [I am not sure if this is a bug or user error, so I've also put this in the bug tracking system.  Apologize for the 'duplication']
    I have a master-detail form: Orders is the master, and Order_Details is the detail. I have noticed some inconsistent behavior when inserting the detail information.
    On occasion, the row will be inserted, and a null value will get inserted into the database for the first column of the detail table; all the other data values will be inserted fine. There doesn't seem to be any pattern to when it happens. I wrote down the following test steps:
    1. Enter new order information and click 'Create'
    2. Click 'Add Row' button so can add order detail info
    3. Enter detail row information
    4. Click 'Add Row' (I do this so I can see the success message that the detail data was actually inserted)
    5. Click 'Apply Changes' at the master level.
    I ran a query on the order details table and saw that the data inserted correctly. Then I ran the following test:
    1. Enter new order information and click 'Create'
    2. Click Add Row button so can add order detail info
    3. Enter detail row information
    4. Click 'Add Row' (success message appears that detail was inserted)
    5. Enter second detail row information
    6. Click 'Add Row' (success message appears that detail was inserted, however, now in the first column of that second detail row - the product name field/column - the data does not appear. I only see my null text value. The data in the first detail row is all correct)
    7. Enter third row detail information
    8. Click 'Add Row' (success message appears that detail was inserted, and this row's information appears correctly, as does the first row's, but the second row is still showing a null value for the product name column)
    9. Click 'Apply Changes' to get out of the form
    A query of the order details table shows that a null value (-) has indeed been inserted into the table for the product name column of the second detail row.
    This behavior also happens when I don't have a null value for the LOV (i.e., it defaults to the first row of the lookup table).
    Has anyone seen this before? Am I entering the data incorrectly?
    Thanks.
    -melissa
    Message was edited by:
    mblakene

    having the some problem. Any help with this ??
    milowski were you able to solve it ? can you share the information.
    Thanks

  • Inconsistent Form Behavior on Failed Struts Validation

    So I'm working on a strange bug regarding an Edit User form for an application, where some fields revert to their default and some fields do not.
    We have a form for editing users in our system, with most of the usual information inputted in text boxes (login, first name, last name, password, password confirmation). We also have three possible levels of 'admin' - none, admin, and superadmin. These are chosen via radio buttons. There are also a couple of checkboxes (like 'user is active'). Overall, it's a fairly simple form.
    When the form is submitted, we do struts validation. We've set up the validation via comment annotation in our Java code, like so:
         * @struts.validator type="minlength"
         *                   arg1value="${var:minlength}"
         * @struts.validator-var name="minlength" value="8"
         * @struts.validator type="maxlength"
         *                   arg2value="${var:maxlength}"
         * @struts.validator-var name="maxlength" value="50"
        public void setPassword1(String string) {
            password1 = string;
        }All of the fields in our form are set from user properties, so they're initialized by the values in the user object. For example, if we had user John Smith, an admin, with login 'jsmith,' we'd have the first name and last name fields initialized to John and Smith, and the radio buttons for Admin set to 'admin.' For reference, here's the EditUser.jsp code for the radio buttons, based off of the selectedAdminRole property:
    <div class="InputElement">
            <label for="selectedAdminRole"><bean:message key="userForm.adminType"/></label>
              <html:radio styleId="selectedAdminRole" property="selectedAdminRole" value="None"
                          disabled="${userForm.loggedInUser.admin and userForm.userId == userForm.loggedInUser.id}">None</html:radio>
              <html:radio property="selectedAdminRole" value="Admin"
                          disabled="${userForm.loggedInUser.admin and userForm.userId == userForm.loggedInUser.id}">Admin</html:radio>
              <c:if test="${userForm.loggedInUser.superAdmin}">
                  <html:radio property="selectedAdminRole" value="SuperAdmin">Super</html:radio>
              </c:if>
         </div>As you can see above, the struts validator requires passwords to be at least 8 characters long. So if the user tries to change their password to something with less than that, they'll fail validation and they'll end up back on the form with the validation errors in red at the top of the page. However, the form data that they've edited will be preserved. So if John had tried to change his first name to 'Fred,' he'd still see 'Fred' in the First Name text field, even though it wouldn't actually get saved to the user object until he submitted the form with no errors. This works with radio buttons too - if John had tried to set his admin status down to 'none' from 'admin,' the radio button 'none' would still be checked. Basically, it preserves all your progress on the form until you navigate away.
    Unfortunately, it does NOT do this when you create a new user. Creating a new user uses the same form, and since there's no user object to get the fields from, they all get initialized to blank - except for one of the checkboxes ('user is active') and the radio buttons for admin (starts with 'none' checked). Now, if the user fills out the form and hits submit, but fails the struts validation, it preserves all the form data in the text fields, but reverts the checkboxes and the radio buttons to their default state.
    This leads to the following problem: say I'm trying to create a new admin, Jane Smith. I fill out the whole form, check the 'admin' button, and then enter a four-letter password. I submit, and the form fails struts validation and throws me back to the page with an error message informing me that passwords need to be at least 8 characters. I look over the form again - the login field is still 'janesmith,' the first name field is still 'Jane,' the last name field is still 'Smith,' everything looks fine except I screwed up the password. I enter an 8 letter password and resubmit. Jane then logs in and complains that she's not an admin, because I didn't notice that the 'admin' button had reset itself to the default of 'none' when I failed validation.
    My question is, why does it reset the radio buttons and checkboxes - but not the text fields - on failed validation when a new user is being created, but resets nothing at all when an existing user is being edited? I'd like it to reset none of the information when a new user is being created, but I cannot figure out the reason for this inconsistent behavior.
    If anyone can help me figure out how to get this working so that nothing gets reset - or at least explain to me the reason for this inconsistent behavior - I would be very grateful. I will also try to provide any additional information I can if this isn't enough.

    So what you are saying is that radio and checkboxes don't retain their state when validation fails?
    Checkboxes are always troublesome because of their design. If not selected, they don't submit any value - so you have to specifically unset them.
    My first instinct would be to look at the formbean which you are populating from, and see what (if anything) modifies its values.
    - for originally loading the new user page is it an action or JSP? Does it apply any default values to the form?
    - check the "input" page you redirect to when validation fails. Is it an action or a JSP?
    - is the same form being uses on the newUser jsp and whatever action you are submitting it to?
    - is there a form reset() method?
    My theory is that the "input" page you are redirecting to when validation fails is an action, and it sets some values on the form prior to loading.
    But thats just a guess at this point. Its hard to debug this without a working example. Its been a while since I worked with struts, and never with annotations providing the validation.
    Suggestion for debugging: dump the contents of the form bean at strategic points in the process to see that the values are what you think they should be.
    - running the save action
    - just after validation
    - on the jsp page.
    Hope this helps some,
    evnafets

  • Inconsistent KVM behavior in Leopard?

    Has anyone else had problems with inconsistent behavior when using a KVM under Leopard? (Display mirroring is not enabled)
    Under Tiger, when I switched my laptop to my Cinema display, the entire contents of the display would move - dock, menubar, all applications and windows.
    Since installing Leopard, the behavior is inconsistent. The Dock and the menubar move, as do some applications. However, most applications remain on the laptop screen. Additionally, an application such as Safari, when moved to the Cinema display, still opens new windows on the laptop screen.
    Any thoughts?

    Does the delete button have a light glow around it? If it does, you can tap the space bar and that will be selected.
    If not, look in the System Preferences application, go to the Keyboard and Mouse panel, Keyboard Shortcuts tab, you'll select the Full keyboard access, both options allow this function.
    I use this tapping on the space bar for many different options in various dialog boxes throughout the OS and applications.
    This has worked at least since Tiger, may have been around longer, I don't recall. But I have used it for years and love it.
    Hope that helps.
    Joel.

  • ACE Cookie insert behavior

    Hi ,
    My requirement is as follows
    i have following url
    http://x.x.x.x/abc
    http://x.x.x./dce
    http://x.x.x.x/fgh
    only for http://x.x.x.x/abc should be using stickiness based on http cookie insert remaining all it should use ip based stickiness.
    problem what i am facing is ,
    if i access http://x.x.x.x/dce , it is not showing any COOKIE in the header ( which is as expected ) and when i access http://x.x.x./abc it showing the inserted COOKIE (again expected) , but when i am accessing the url http://x.x.x.x/dce or fgh again , it is still showing the INSERTED COOKIE  is it a known behaviour?.
    as far as i understand , before the session  request , ACE maintains the insert cookie values in the cookie database and thus it is less processing intensive.
    However , why is it inserting to all request , even though i am not configuring as such .
    following is my configuration  , is it a known behaviour or is it the way it should work?
    serverfarm host SF-FOR-DCE
      probe TCP_8032
      rserver MYSERVER1 8032
        inservice
      rserver MYSERVER2 8032
        inservice
    serverfarm host SF-FOR-FGH
      probe TCP_8083
      rserver MYSERVER1 8083
        inservice
      rserver MYSERVER2  8083
        inservice
    serverfarm host SF-FOR-ABC
      probe TCP_8081
      rserver MYSERVER1 8081
        inservice
      rserver MYSERVER1 8081
        inservice
    sticky http-cookie COOKIE-SKYCHAIN STICKY-ABC
      cookie insert browser-expire
      timeout 720
      replicate sticky
      serverfarm SF-FOR-ABC
    sticky ip-netmask 255.255.255.0 address source STICKY-DCE
      timeout 720
      replicate sticky
      serverfarm SF-FOR-DCE
    sticky ip-netmask 255.255.255.0 address source STICKY-EFG
      timeout 720
      replicate sticky
      serverfarmSF-FOR-FGH
    class-map type http loadbalance match-all CM7-1
      2 match http url /dce/*.*
    class-map type http loadbalance match-all CM7-2
      2 match http url /fgh/*.*
    class-map type http loadbalance match-all CM7-3
      2 match http url /abc*.*
    policy-map type loadbalance first-match PM7-1
      class CM7-1
        sticky-serverfarm STICKY-DCE
      class CM7-2
        sticky-serverfarm STICKY-EFG
      class CM7-3
        sticky-serverfarm STICKY-ABC
    class-map match-any CM3-VIP
      3 match virtual-address x.x.x.x tcp eq www
    policy-map multi-match PM34-VIP
    class CM3-VIP
        loadbalance vip inservice
        loadbalance policy PM7-1
        loadbalance vip icmp-reply
    Assistance appreciated.
    thanks
    -PMD

    Are you seeing the client still send the cookie when going to the other locations /DCE or /FGH, or are you seeing the ACE insert the cookie? If you are only seeing the client still sending the cookie this is expected behavior. The cookie is issued for the path / so if the client learned the cookie from the domain x.x.x.x it will send the cookie any time it goes to that domain regardless of the path that is being used.
    Regards
    Jim

  • BLOB insert behavior with thin driver using standard JDBC2.0 and ORACLE-JDBC2.0API

    We have a problem with a BLOB insert to an oracle 8.1.7 DB using Oracle 8.1.7 JDBC thin driver.We get socket read/write error after inserting 32k of data using the standard JDBC2.0 API but using the Oracle JDBC2.0API (using OracleResultSet) it goes fine. We have a requirement to use the standard JDBC2.0 so that our code works with multiple database vendors. Is there another way to get in the blob data with standard JDBC API & using thin driver...?
    thanks,
    Madhu
    Here is my sample test program that does both standard & oracle specific JDBC Blob test insert.
    import java.sql.*;
    import java.io.*;
    import oracle.sql.BLOB;
    import oracle.jdbc.driver.OracleResultSet;
    public class testBLOB {
    //trying to insert a huge file to a BLOB
    static String fileName = "/kernel/genunix";
    public static void main(String[] args) {
    String driverName = "oracle.jdbc.driver.OracleDriver";
    String dbURL = "jdbc:oracle:thin:@localhost:1521:test"; //thin driver
    String user = "BlobTest";
    String passwd = "BlobTest";
    Connection con=null;
    try {
    Class.forName(driverName);
    con=DriverManager.getConnection(dbURL, user,passwd);
    catch (Exception e) {
    e.printStackTrace();
    close(con);
    int i = 0;
    while (i < args.length) {
    if (args.equals("-f"))
    fileName = args[++i];
    i++;
    System.out.println("The file being Stored is: "+fileName);
    createTable(con);
    insertUsingOracleAPI(con);
    insertUsingJDBC20API(con);
    //readDB(con);
    static String getFileName() {
    return fileName;
    public static void close(Connection con) {
    try {
    if (con != null) {
    con.close();
    catch (Exception e) {
    System.exit(-1);
    public static void createTable(Connection con) {
    Statement stmt ;
    try {
    stmt = con.createStatement();
    stmt.execute("DROP TABLE basic_blob_table");
    stmt.close();
    catch (SQLException sqlEx) {
    System.out.println("Dropped the Table");
    try {
    stmt = con.createStatement();
    stmt.execute("CREATE TABLE basic_blob_table ( x varchar2(30), b blob)");
    stmt.close();
    catch (SQLException sqlEx) {
    sqlEx.printStackTrace();
    close(con);
    System.out.println("Created the Table");
    public static void insertUsingOracleAPI(Connection con) {
    OutputStream os = null;
    Statement stmt = null;
    ResultSet rs = null;
    FileInputStream is = null;
    try {
    con.setAutoCommit(false);
    stmt = con.createStatement();
    stmt.execute("INSERT INTO basic_blob_table VALUES( 'OracleAPI', empty_blob())");
    System.out.println("Inserted the dummy Row");
    rs = stmt.executeQuery("Select * from basic_blob_table where x='OracleAPI'");
    if (rs != null && rs.next()) {
    BLOB blob = ((OracleResultSet)rs).getBLOB(2);
    File file = new File(getFileName());
    is = new FileInputStream(file);
    os = blob.getBinaryOutputStream();
    byte[] chunk = new byte[1024];
    int length = -1;
    while((length = is.read(chunk)) != -1)
    os.write(chunk, 0,length);
    System.out.println("Inserted the File " + getFileName() );
    catch (Exception e) {
    e.printStackTrace();
    finally {
    try {
    if (os != null) {
    os.flush();
    os.close();
    if (is != null)
    is.close();
    stmt.close();
    con.commit();
    con.setAutoCommit(true);
    catch (Exception e) {}
    public static void insertUsingJDBC20API(Connection con) {
    PreparedStatement stmt = null;
    FileInputStream is = null;
    try {
    stmt = con.prepareStatement("INSERT INTO basic_blob_table VALUES(?,?)");
    File file = new File(getFileName());
    is = new FileInputStream(file);
    stmt.setString(1,"JDBC20API");
    stmt.setBinaryStream(2,is,(int)file.length());
    stmt.executeUpdate();
    catch (Exception e) {
    e.printStackTrace();
    finally {
    try {
    if (is != null)
    is.close();
    stmt.close();
    catch (Exception e) {}
    null

    Thanks for the response.
    I understand what you are saying...
    that readers don't block writers in Oracle (the same is true in SQL Server 2000).
    However, I don't see how my test case is working correctly with Oracle (the exact same code acting as I'm thinking it should with SQL Server, but I still think it is acting incorrectly with Oracle).
    I have transaction A do this:
    update <table> set <column2>=<value> where <column1>='1'
    then I use Thread.sleep() to make that program hang around for a few minutes.
    Meanwhile I sneak off and start another program which begins transaction B. I have transaction B do this:
    select * from <table> where <column1>='1'
    and the read works immediately (no blocking... just as you have said) however, transaction A is still sleeping, it has not called commit() or rollback() yet.
    So what if transaction A were to call rollback(), the value read by transaction B would be incorrect wouldn't it ?
    Both A and B use setAutoCommit(false) to start their transactions, and then call setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED).
    Isn't that supposed to guarantee that a reader can only read what is committed ?
    And if a row is in "flux"... in the process of having one or more values changed, then the database cannot say what the value will be ?
    I can almost see what you are saying.
    In letting the reader have what it wants without making it wait, I suppose it could be said that Oracle is holding true to the "only let committed data be read"
    So if that's it, then what if I want the blocking ?
    I want an entire row to be locked until whoever it in the middle of updating, adding, or removing it has finished.
    Do you know if that can be done with Oracle ? And how ?
    Thanks again for helping me.

  • Inconsistent selection behavior when deleting files in Cover Flow

    I love browsing through my pictures folder using Cover Flow. However, I've noticed that deleting a file by pressing Cmd-Delete produces inconsistent selection results. Sometimes Finder will select the next file down the list, and sometimes it will select no file at all. However, the Cover Flow portion of the window will always show the next file.
    It is misleading when Cover Flow shows the next file, but the file selection pane shows no file selected. I often hit the down-arrow (or right-arrow) key, expecting to skip to the next file, but the first file in the folder gets selected, Cover Flow re-winds its view, and I have to re-find my last position.
    There is also no way to select the current file by clicking on the Cover Flow preview currently showing. I have to click some other file and re-browse to the current file in order to sync up the two panes.
    Is this a bug? Does Apple know about it?

    As mentioned, cover flow does not change the basic Finder operation. Return allows editing the name and Cmd-O or Cmd-downarrow opens the item. It also functions similar to the list view, when you open a folder, the subfolders are added to the cover flow; they do not replace the cover flow icons.

  • PLEASE HELP - Inconsistent AQ Behavior!

    HELP!!!! HELP!!!! HELP!!!!
    We are using Java 1.3 and Oracle 8.1.7's aqapi.jar. A frontend application enqueues messages OK. The other "side" of the queue dequeues these messages MOST of the time, but not all the time. If we change it from blocking forever to polling (timing out every 10 seconds and reconnecting), this still happens.
    We are seeing this with RAW payloads (as well as Object payloads).
    Storage space should not be an issue nor should network traffic with regards to the staging environment box we are dealing with.
    Here are the enqueue and dequeue options we are using:
    // Use most default Enqueue options
    AQEnqueueOption enqueueOption = new AQEnqueueOption();
    enqueueOption.setVisibility(AQEnqueueOption.VISIBILITY_IMMEDIATE)
    AQDequeueOption dequeueOption = new AQDequeueOption();
    dequeueOption.setDequeueMode(AQDequeueOption.DEQUEUE_LOCKED);
    dequeueOption.setNavigationMode(AQDequeueOption.NAVIGATION_FIRST_MESSAGE);
    dequeueOption.setWaitTime(AQDequeueOption.WAIT.FOREVER); //(or set with a time)
    dequeueOption.setVisibility(AQDequeueOption.VISIBILITY_ONCOMMIT);
    We are using CorrelationIDs to make sure we are getting the proper response to our request.
    I know JDBC drivers are not certified for JDK 1.3, but...why would it work most of the time? An example would be enqueuing 71 similar messages using the same calls and only 65 being dequeued on the other side. This example happened all within the span of 5 minutes. None of the Java calls we are using are synchronized and the enqueuing message expirations are set high enough(60+ seconds).
    We ARE NOT using JMS. We are NOT using OCI. It queue is setup as a single consumer queue. Pure Java to AQ over JDBC. There is a separate in and out queue table each with one queue (so we have separated the connections when one is committed, the other queue is not affected).
    If you need more information to help with this, please let me know. We've been trying at this for MONTHS!! HELLLPP!!!!
    null

    We are seeing similar behavior and would greatly appreciate any help.
    Our application enqueues messages without any problems, and the registered message listener receives the sent messages just fine, at first... After a while (can be minutes, hours, days), the listener just stops receiving messages. We can still enqueue messages, but the are not dequeued.
    If we stop our application and start it again, we DO receive all of the messages that were previously stuck in the queue. However, unfortunately we are not able to receive any new messages.
    If we shutdown Oracle and restart it, everything works fine again... at least until AQ wedges again.
    Oddly enough, the messages are in the 'READY' state, so you would think that the listener would receive them, but it does not.
    All indicators are that this is an Oracle AQ problem, as the only way to make things work correctly again is to stop and restart Oracle.
    We checked for trace (.trc) files when this problem occurred, but no new ones where generated.
    Any thoughts, suggestions, workarounds, tracing options that we can set, queries we can run to get more debug info, etc would be greatly appreciated.
    Please feel free to email me directly: [email protected] We would prefer to use Oracle AQ, but are on the verge of trying our luck with WebLogic JMS...
    Thank you in advance!

  • Insert behavior query

    Hi there
    I wonder if anyone could help.
    I have an html form which insert data to a mysql db.
    I am sticking at a particular point:
    I have three tick boxes ( A , B, C ) if left blank the data
    in their corresponding db field is 0, if ticked it's 1.
    I have three other db fields which I use to check the access
    level of a user to partuclar leve in the site ( L1, L2, L3 ) they
    are set to 0 by default
    if the user tick the A box, it add a 1 to the L1 box so leave
    L2 and L3 values are still 0 . all is well and it works
    I would like the following, if the user tick B, it should add
    the value 1 ot L1 AND L2
    and If the user tick C, it should add the value 1 to L1, L2
    and L3
    to sumarise, Is it possible to write data in 2 or more db
    field from the input of 1 checkbox ( if that make sens )
    Any advice would be appreciated
    CHeers
    Chris

    Yes it is possible to write a SQL statement that will take
    the data and
    manipulate it any way that you want, however you will need to
    hand code the
    whole thing (not that much of a challenge) as the DW standard
    behaviours
    work on a one to one match.
    FYI a checkbox only has a value when it it checked. When
    unchecked it simply
    does not exist in terms of passing values when the form is
    posted.
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "goasduff" <[email protected]> wrote in
    message
    news:eebp9c$mt6$[email protected]..
    > Hi there
    > I wonder if anyone could help.
    >
    > I have an html form which insert data to a mysql db.
    >
    > I am sticking at a particular point:
    >
    > I have three tick boxes ( A , B, C ) if left blank the
    data in their
    > corresponding db field is 0, if ticked it's 1.
    > I have three other db fields which I use to check the
    access level of a
    > user
    > to partuclar leve in the site ( L1, L2, L3 ) they are
    set to 0 by default
    >
    > if the user tick the A box, it add a 1 to the L1 box so
    leave L2 and L3
    > values
    > are still 0 . all is well and it works
    >
    > I would like the following, if the user tick B, it
    should add the value 1
    > ot
    > L1 AND L2
    > and If the user tick C, it should add the value 1 to L1,
    L2 and L3
    >
    > to sumarise, Is it possible to write data in 2 or more
    db field from the
    > input
    > of 1 checkbox ( if that make sens )
    >
    > Any advice would be appreciated
    >
    > CHeers
    >
    > Chris
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >

  • Inconsistent event behavior

    Can anyone reproduce this bug?
    1. Select File->Open... select two Photoshop documents, and press "Open"
    2. Select File->Scripts->Script Events Manager...
    Change the Photoshop Event drop-down to "Everything" and the script to "Welcome"
    Press "Add", then "Done" then press "OK" on the Script Alert box.
    3. Click the Tab or Title Bar of the inactive document.
    Results: Nothing happens
    Expected Results: Photoshop should trigger an event when switching documents, and the Script Event dialog box should pop-up. 
    Switching back to the first document will trigger an event, and switching to the secend document again will trigger an event.
    I made a panel that gives information about the current selected document, but this bug makes it unreliable.

    Hello !
    I don't have this behavior with CS4.
    Opening several docs then defining the notifier for all events, then selecting an inactive document: the script is called on a "select" event. 
    When the notifier is already defined, the open command of several docs raises the good number of "open" events, but only the first has some arguments (file path) and the next have not ??.

Maybe you are looking for