Urgent help reqd : DynaValidatorForm with html:multibox

Hi,
I've an urgent issue. I'm using a DynaValidatorForm to retreive data from struts <html:multibox> . But when the checkboxes are disabled, even if the boxes are checked, the form fails to retreive the data in the action page. But if I make it enable, it works. Just wondering,if DynaValidatorForm doesn't support disabled checkboxes.
Also, I tried using hidden parameters instead, but I can't find a way to track the values for which the checke boxes are checked.
Here's the code I'm using in jsp :
<logic:notEmpty name="promotionComponentsList">
<bean:define id="promotionComponentsList" name="promotionComponentsList"/>
<logic:iterate id="option" name="promotionComponentsList" indexId="pIdx" type="com.jun.esales.epromo.model.referencedata.Option">
<%if((pIdx.intValue()%2)==0){%>
<td><html:multibox property="promotionComponent" disabled="<%=!isCreatorEditable%>" onclick="javascript:chgPromotionComponents(this);" value="<%=option.getCode()%>"/>     <bean:write property="name" name="option"/><br>
<%} else {%>
                                   <html:multibox property="promotionComponent" disabled="<%=!isCreatorEditable%>" onclick="javascript:chgPromotionComponents(this);" value="<%=option.getCode()%>"/>     <bean:write property="name" name="option"/></td>
                                   <%}%>
                                   </logic:iterate>
                         </logic:notEmpty>
Any pointer on this will be highly appreciated as I'm stuck in this for a while now.
Thanks,

If a checkbox (or any html form component for that matter) is disabled, it won't submit a value.
This is a feature of html - NOT of struts. Struts can't do anything to change this functionality.
Maybe you could include a hidden field for the value "isCreatorEditable" and only run the validation IF the editable flag is there.
Good luck,
evnafets

Similar Messages

  • Urgent Help Reqd: Delta Problem....!!!

    Hi Experts,
    Urgent help reqd regarding follwoing scenario:
    I am getting delta to ODS 1 (infosource : 2LIS_12_VCHDR) from R/3. Now this ODS1 gives delta to Cube1. I got one error record which fails when going to cube (due to master data check).And this record would be edited later.
    So I thought of re loading cube and using error handling to split request in PSA and load valid records in cube.Later when I have coorect info abt error, I would load erroneous record manually using PSA.
    I did following steps:
    1)Failed request is not in cube...(setting is PSA and then into target)....also it has been deleted from PSA.
    2)Remove data status from source ODS1.
    3)Change error handling in infopackage to valid " Valid records update, reporting possible".
    4)start loading of cube.
    But when I did this I got following message :
    <b> "Last delta update is not yet completed.Therefore, no new delta update is possible.You can start the request again if the last delta request is red or green in the monitor"</b>
    But both my requests in cube and ODS are Green...no request is in yellow...!!
    Now the problem is :
    1) I have lost ODS data mart status
    2)how to load valid records to cube, since errorneous record can be edited only after 3- 4 days.
    3)How not to affect delta load of tomorrow.
    Please guide and help me in this.
    Thanks in advance and rest assured I will award points to say thanks to SDNers..
    Regards,
    Sorabh
    Message was edited by: sorabh arora

    Hi Joseph,
    Thanks for replying....
    I apolgize and I have modified the message above..
    I just checked in cube...there is no failed request for today...and neither in PSA....Person who has handed this to me may have deleted this is PSA..and why req is not in failed state in cube...I am not sure..though setting is "PSA and then into data package".....
    So how to go frm here....
    Thanks
    Sorabh

  • URGENT: Help reqd with wwsbr_explorer

    Jerry,
    I am able to create a sitemap by using the above package and passing it the values that I need for site and render type. However, I do not know the values for p_header and p_footer. Can you please help me out.
    Also, I would like to supress the [Return Object] hyperlink. I am quite content with any unsupported bit of code. My client
    cannot wait till 3.1 for the sitemap feature.
    Please help
    Sanjay

    p_header takes the name of a valid string in WWNLS_STRINGS$ table for which the actual string that is displayed is returned. The domain and sub-domain is hardcoded to wws and text respectively. This is the equivalent of:
    v_header := wwnls_api.get_string
    (p_domain=>'wws',
    p_sub_domain=>'text',
    p_name => p_header,
    p_language=>'us');
    v_header would then be the actual header that gets displayed. p_header is the string that identifies the v_header within wws domain and text sub-domain.
    To hide Return Object (remember this will result in the functionality becoming unusable) find all instances of l_robj and the associated 'ReturnObject' and set them to null in sbrexplr.pkb. For example:
    if p_object_type = 'FOLDERMAP' then
    return l_robj;
    under upper(p_menu_type) = 'LABELS' and the associated
    if p_object_type = 'FOLDERMAP' then
    return 'ReturnObject';
    under upper(p_menu_type) = 'COMMANDS' should be set to return NULL:
    if p_object_type = 'FOLDERMAP' then
    return NULL;
    if p_object_type = 'FOLDERMAP' then
    return NULL;
    Another way this was implemented is:
    l_folder_menu.MenuLabel := l_robj;
    l_folder_menu.MenuCmd := 'ReturnObject';
    These should also be set to NULL:
    l_folder_menu.MenuLabel := NULL;
    l_folder_menu.MenuCmd := NULL;
    null

  • URGENT Help for applet with JAR file in Netscape

    I am having Applet with few classes
    Html is in /www directory
    and all class files are in /www/javaclassfiles
    I jared all javaclassfiles with following command
    c:\www\javaclassfiles>jar -cvf sample.jar TaxPaymentAppletForm.class *.class
    where sample.jar is my jar file and TaxPaymentAppletForm.class is the main applet class file.
    THEN I DELETED ALL CLASS FILES & KEPT ONLY SAMPLE.JAR FILE ON SERVER
    My html code is like below:
    <APPLET CODE="TaxPaymentAppletForm" ARCHIVE="sample.jar" CODEBASE="JavaClassFiles" WIDTH=460 HEIGHT=400></APPLET>
    The things are running on IE properly, but not on Netscape. Netscape is giving following error :
    java.io.IOException: <null>
    at netscape.net.URLConnection.connect(Compiled Code)
    at netscape.net.URLConnection.getInputStream(Compiled Code)
    * at netscape.applet.AppletClassLoader.grabArchiveFile(Compiled Code)
    at netscape.applet.AppletClassLoader.openArchive(Compiled Code)
    at netscape.applet.AppletClassLoader.openArchive(Compiled Code)
    at netscape.applet.AppletClassLoader.<init>(Compiled Code)
    at netscape.applet.AppletClassLoader.getClassLoader(Compiled Code)
    at netscape.applet.DerivedAppletFrame$LoadAppletEvent.dispatch(Compiled Code)
    at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled Code)
    at java.awt.EventDispatchThread.run(Compiled Code)
    at netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled Code)
    # Unable to load archive http://nearbuy_server:90/iras/JavaClassFiles/sample.jar: java.io.IOException: <null>
    # Applet exception: class TaxPaymentAppletForm could not be loaded
    # Applet exception: class TaxPaymentAppletForm could not be loaded
    # Applet exception: class TaxPaymentAppletForm could not be loaded
    In netscape also it is sometimes running some times not, without any logical reson.
    Any help regarding this is appreciated
    manisha

    Following is the more detailed analysis when applet is running and when not
    On local server, it is running fine on both IE / Netscape
    When I transfered jar file to live server
    On IE it is running for the first time and then onwards not running, If I clear the catch then again applet is running.
    For second time it is giving following error :
    IOException Loading Archive: http://dev1.janusx-collections.com/iras/JavaClassFiles/AppletForm.jar
    java.io.IOException: dev1.janusx-collections.com:80//iras/JavaClassFiles/AppletForm.jar
    at com/ms/net/wininet/http/HttpInputStream.connect
    at com/ms/net/wininet/http/HttpInputStream.<init>
    at com/ms/net/wininet/http/HttpURLConnection.createInputStream
    at com/ms/net/wininet/WininetURLConnection.getInputStream
    at com/ms/vm/loader/JarArchiveSet.loadNextJar
    at com/ms/vm/loader/JarArchiveSet.getResourceBits
    at com/ms/vm/loader/JarArchiveSet.getClassData
    at com/ms/vm/loader/ResourceLoader.getClassData
    at com/ms/vm/loader/URLClassLoader.findClass
    at com/ms/vm/loader/URLClassLoader.loadClass
    at com/ms/vm/loader/URLClassLoader.loadClass
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.run
    at java/lang/Thread.run
    java.lang.ClassNotFoundException: TaxPaymentAppletForm
    at com/ms/vm/loader/URLClassLoader.loadClass
    at com/ms/vm/loader/URLClassLoader.loadClass
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.run
    at java/lang/Thread.run
    ON Netscape it is NOT running at all on from live server and error is as given in above first post.
    manisha

  • Help Please:  working with HTML BLOBS and workflow attachments

    simply put need to be able to:
    1. create html document using plsql and store as BLOB in a table.
    2. retrieve this BLOB and send as Document Attachment in workflow notification.
    This sounds so simple to be able to do and yet I've spent the past week trying to find easy to understand documentation on how to do this.
    The html i'm creating is too large for just the normal 32K (I believe) buffer for a regular (text) document attachment. If i limit the # of rows returned, I can use this method just fine. However, my assumption is that with the amount of data I need to return in the attachment is that the BLOB type is what i will need to be able to accomplish this.
    I would be more than happy to e-mail anyone samples of the workflow and code I am currently using to attempt this.
    Lastly, one of the main articles I've looked at is this:
    http://oracle.anilpassi.com/index2.php?option=com_content&do_pdf=1&id=22
    In my latest attempt, i picked an html file currently stored in fnd_lobs and tried to send the file as an attachment.
    wf_engine.setitemattrdocument ( itemtype => c_itemtype,
    itemkey => l_itemkey,
    aname => 'LOB_DOCUMENT',
    documentid =>'PLSQLBLOB:DANA_RLM_EXCEPTION_NOTIFY.xx_notif_attach_procedure/' || to_char(75871));
    I get the following error in Workflow when trying to open the attached document:
    ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    Any help would be greatly appreciated... would consider naming our next child after you. ;)

    I had done some work trying to see how Lotus Notes handles HTML content.. to my dismay, Lotus Notes does not even handle some of the basic HTML correctly.. leave alone the embedded OA Fwk content in the workflow e-mail notifications.
    This seems to be a bug in Lotus notes.. I don't have the link to the IBM site that talks abt the bug. Will post it once I have it.

  • Urgent help needed please, with parse error message

    Hi. I've got a page which comes at the end of a 3 page sequence - search, results, detail. The detail page had been working fine, but yesterday I added a second recordset to the page, to pull reviews from a separate table, and now I'm getting the following error:
    Parse error: syntax error, unexpected ')', expecting T_STRING or T_VARIABLE or '$' in /Applications/MAMP/htdocs/goodvetguide/practice_Detail.php on line 78
    (should point out that I'm using DMW8 on a Mac and testing locally using MAMP as my testing server).
    line 78 is:
    if (isset()) {
      $Parampractice_id_WADApracticelist = (get_magic_quotes_gpc()) ?  : addslashes();
    and the full code for the page is posted below. I've googled this error and found a variety of different reasons for why this might be happening but none of the examples I've seen appear to apply to my case, so I'd really appreciate any assistance anyone can offer with this. Thanks in advance.
    Page code:
    <?php require_once('Connections/connGVG.php'); ?>
    <?php require_once('Connections/connGVG.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    ?><?php
    if (!session_id()) session_start();
    ?>
    <?php
    $Parampractice_WADApracticelist = "-1";
    if (isset($_GET['practice_id'])) {
      $Parampractice_WADApracticelist = (get_magic_quotes_gpc()) ? $_GET['practice_id'] : addslashes($_GET['practice_id']);
    $ParamSessionpractice_WADApracticelist = "-1";
    if (isset($_SESSION['WADA_Insert_practicelist'])) {
      $ParamSessionpractice_WADApracticelist = (get_magic_quotes_gpc()) ? $_SESSION['WADA_Insert_practicelist'] : addslashes($_SESSION['WADA_Insert_practicelist']);
    $Parampractice_WADApracticelist = "-1";
    if (isset($_GET['practice_id'])) {
      $Parampractice_WADApracticelist = (get_magic_quotes_gpc()) ? $_GET['practice_id'] : addslashes($_GET['practice_id']);
    $Parampractice_id_WADApracticelist = "-1";
    if (isset()) {
      $Parampractice_id_WADApracticelist = (get_magic_quotes_gpc()) ?  : addslashes();
    $Parampractice_id2_WADApracticelist = "-1";
    if (isset()) {
      $Parampractice_id2_WADApracticelist = (get_magic_quotes_gpc()) ?  : addslashes();
    $ParamSessionpractice_id_WADApracticelist = "-1";
    if (isset()) {
      $ParamSessionpractice_id_WADApracticelist = (get_magic_quotes_gpc()) ?  : addslashes();
    mysql_select_db($database_connGVG, $connGVG);
    $query_WADApracticelist = sprintf("SELECT practice_id, practicename, address1, address2, address3, address4, postcode, location, practicewebsite, practicetype, starrating FROM practicelist WHERE practice_id = %s OR ( -1= %s AND practice_id= %s)", GetSQLValueString($Parampractice_id_WADApracticelist, ""),GetSQLValueString($Parampractice_id2_WADApracticelist, ""),GetSQLValueString($ParamSessionpractice_id_WADApracticelist, ""));
    $WADApracticelist = mysql_query($query_WADApracticelist, $connGVG) or die(mysql_error());
    $row_WADApracticelist = mysql_fetch_assoc($WADApracticelist);
    $totalRows_WADApracticelist = mysql_num_rows($WADApracticelist);
    $colname_rsReviews = "-1";
    if (isset($_GET['WADALocation'])) {
      $colname_rsReviews = (get_magic_quotes_gpc()) ? $_GET['WADALocation'] : addslashes($_GET['WADALocation']);
    mysql_select_db($database_connGVG, $connGVG);
    $query_rsReviews = sprintf("SELECT * FROM reviews WHERE practice_id = %s", GetSQLValueString($colname_rsReviews, "int"));
    $rsReviews = mysql_query($query_rsReviews, $connGVG) or die(mysql_error());
    $row_rsReviews = mysql_fetch_assoc($rsReviews);
    $totalRows_rsReviews = mysql_num_rows($rsReviews);
    ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Details practicelist</title>
    <style type="text/css">
    <!--
    -->
    </style>
    <link href="style.css" rel="stylesheet" type="text/css" />
    <link href="WA_DataAssist/styles/Refined_Pacifica.css" rel="stylesheet" type="text/css" />
    <link href="WA_DataAssist/styles/Arial.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    /* Details page CSS */
    .WADADetailsContainer {
    font-size: 11px;
    #WADADetails {
    padding-top: 10px;
    </style>
    </head>
    <body>
    <div id="wrapper">
      <div id="header"></div>
      <div id="content">
        <div id="menu">
          <a href="addreview.html">Add review</a>  <a href="contact.html">Contact</a>  <a href="terms.html">Terms</a>  <a href="practice_Search.php">Search</a>  <a href="about.html">About </a><a href="index.html">Home </a></div>
        <div id="contentleft2">
          <div id="greenpiccont"></div>
          <div id="cright">
            <div class="boldwhite" id="rightblue">Review your vet<br />
              <br />
              <span class="smallbold">Tell us your experience</span><br />
              <br />
              <span class="smallwhite">Give people information<br />
              on your experiences so <br />
              that they can make an<br />
              informed decision.</span><br />
              <div id="startbutton"><a href="#">Start</a></div>
            </div>
          <div id="bluemap2"></div>
          <div id="searchbox">
            <table width="202" border="0" cellspacing="0">
              <tr>
                <th scope="row"><div align="left" class="smalltext">Search by postcode</div></th>
              </tr>
              <tr>
                <th height="31" scope="row"><input name="Name" class="Width250px" /></th>
              </tr>
              <tr>
                <th scope="row"><div align="left" class="smalltext">Miles</div></th>
              </tr>
              <tr>
                <th height="39" scope="row"><div align="left">
                  <input name="Name2" class="Width250px" />
                </div></th>
              </tr>
            </table>
          </div>
          </div>
          <div class="about10" id="contl">Practice details<br />
            <div class="WADADetailsContainer"> <a name="top"></a>
              <div class="WADAHorizLine"><img src="WA_DataAssist/images/_tx_.gif" alt="" height="1" width="1" border="0" /></div>
              <?php if ($totalRows_WADApracticelist > 0) { // Show if recordset not empty ?>
                <div id="WADADetails">
                  <table class="WADADataTable" cellpadding="0" cellspacing="0" border="0">
                    <tr>
                      <th class="WADADataTableHeader">Practice name:</th>
                      <td class="WADADataTableCell"><strong><?php echo($row_WADApracticelist['practicename']); ?></strong></td>
                    </tr>
                    <tr>
                      <th class="WADADataTableHeader">Practice type:</th>
                      <td class="WADADataTableCell"><?php echo($row_WADApracticelist['practicetype']); ?></td>
                    </tr>
                    <tr>
                      <th class="WADADataTableHeader">Address:</th>
                      <td class="WADADataTableCell"><?php echo($row_WADApracticelist['address1']); ?></td>
                    </tr>
                    <tr>
                      <th class="WADADataTableHeader"> </th>
                      <td class="WADADataTableCell"><?php echo($row_WADApracticelist['address2']); ?></td>
                    </tr>
                    <tr>
                      <th class="WADADataTableHeader"> </th>
                      <td class="WADADataTableCell"><?php echo($row_WADApracticelist['address3']); ?></td>
                    </tr>
                    <tr>
                      <th class="WADADataTableHeader"> </th>
                      <td class="WADADataTableCell"><?php echo($row_WADApracticelist['address4']); ?></td>
                    </tr>
                    <tr>
                      <th class="WADADataTableHeader">Postcode:</th>
                      <td class="WADADataTableCell"><?php echo($row_WADApracticelist['postcode']); ?></td>
                    </tr>
                    <tr>
                      <th class="WADADataTableHeader">Location:</th>
                      <td class="WADADataTableCell"><?php echo($row_WADApracticelist['location']); ?></td>
                    </tr>
                    <tr>
                      <th class="WADADataTableHeader">Website:</th>
                      <td class="WADADataTableCell"><a href="http://www.<?php echo $row_WADApracticelist['practicewebsite']; ?>" target="_blank"><?php echo($row_WADApracticelist['practicewebsite']); ?></a></td>
                    </tr>
                    <tr>
                      <th class="WADADataTableHeader">Star rating:</th>
                      <td class="WADADataTableCell"><?php echo($row_WADApracticelist['starrating']); ?></td>
                    </tr>
                  </table>
                  <div class="WADAHorizLine"><img src="WA_DataAssist/images/_tx_.gif" alt="" height="1" width="1" border="0" /></div>
                  <div class="WADAButtonRow">
                    <table class="WADADataNavButtons" border="0" cellpadding="0" cellspacing="0">
                      <tr>
                        <td class="WADADataNavButtonCell" nowrap="nowrap"></td>
                        <td class="WADADataNavButtonCell" nowrap="nowrap"></td>
                        <td class="WADADataNavButtonCell" nowrap="nowrap"><a href="practice_Results.php" title="Results"><img border="0" name="Results" id="Results" alt="Results" src="WA_DataAssist/images/Pacifica/Refined_results.gif" /></a></td>
                      </tr>
                    </table>
                  </div>
                </div>
              <?php } // Show if recordset not empty ?>
              <?php if ($totalRows_WADApracticelist == 0) { // Show if recordset empty ?>
                <div class="WADANoResults">
                  <div class="WADANoResultsMessage">No record found.</div>
                </div>
                <div class="WADAHorizLine"><img src="WA_DataAssist/images/_tx_.gif" alt="" height="1" width="1" border="0" /></div>
                <div class="WADADetailsLinkArea">
                  <div class="WADADataNavButtonCell"><a href="practice_Results.php" title="Results"><img border="0" name="Results1" id="Results1" alt="Results" src="WA_DataAssist/images/Pacifica/Refined_results.gif" /></a></div>
                </div>
                <div class="WADAHorizLine"><img src="WA_DataAssist/images/_tx_.gif" alt="" height="1" width="1" border="0" /></div><p><strong>Reviews for this practice:</strong></p>
                <?php do { ?>
                  <table width="100%" border="0" cellspacing="5" cellpadding="2">
                    <tr>
                      <td width="23%"> </td>
                      <td width="77%"><?php echo $row_rsReviews['comments']; ?></td>
                    </tr>
                    <tr>
                      <td> </td>
                      <td> </td>
                    </tr>
                                  </table>
                  <?php } while ($row_WADApracticelist = mysql_fetch_assoc($WADApracticelist)); ?>
                <?php } // Show if recordset empty ?>
            </div>
          </div>
        </div>
        <div id="contentright">
          <p> </p>
        </div>
      </div>
      <div class="clr"></div>
      <div id="footer">hj</div>
    </div>
    </body>
    </html>
    <?php
    mysql_free_result($WADApracticelist);
    mysql_free_result($rsReviews);
    ?>

    I haven't studied your code in detail, but it looks very much as though you have been editing the page without properly removing server behaviors through the Server Behaviors panel. Look at the following section:
    <?php require_once('Connections/connGVG.php'); ?>
    <?php require_once('Connections/connGVG.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    ?>
    You have the connection file attached twice, and the GetSQLValueString() function is defined twice. However, the cause of all your problems lies here:
    $Parampractice_WADApracticelist = "-1";if (isset($_GET['practice_id'])) {
      $Parampractice_WADApracticelist = (get_magic_quotes_gpc()) ? $_GET['practice_id'] : addslashes($_GET['practice_id']);
    $ParamSessionpractice_WADApracticelist = "-1";
    if (isset($_SESSION['WADA_Insert_practicelist'])) {
      $ParamSessionpractice_WADApracticelist = (get_magic_quotes_gpc()) ? $_SESSION['WADA_Insert_practicelist'] : addslashes($_SESSION['WADA_Insert_practicelist']);
    $Parampractice_WADApracticelist = "-1";
    if (isset($_GET['practice_id'])) {
      $Parampractice_WADApracticelist = (get_magic_quotes_gpc()) ? $_GET['practice_id'] : addslashes($_GET['practice_id']);
    $Parampractice_id_WADApracticelist = "-1";
    if (isset()) {
      $Parampractice_id_WADApracticelist = (get_magic_quotes_gpc()) ?  : addslashes();
    $Parampractice_id2_WADApracticelist = "-1";
    if (isset()) {
      $Parampractice_id2_WADApracticelist = (get_magic_quotes_gpc()) ?  : addslashes();
    $ParamSessionpractice_id_WADApracticelist = "-1";
    if (isset()) {
      $ParamSessionpractice_id_WADApracticelist = (get_magic_quotes_gpc()) ?  : addslashes();
    mysql_select_db($database_connGVG, $connGVG);
    Look how many times the same code is repeated. What's causing the problem are the three final sections where there is no argument passed to isset().
    Delete the code highlighted in red.

  • URGENT HELP IS NEEDED WITH IMOVIE and MY SONY HD CAMERA HDR XR100E

    Hi there Fellow Mac Users.
    ok heres the situation..
    i bought the brand new sony HDR xr100E Video camera and as soon as i connetced it a few weeks back to my Apple Mac IMOVIE opened automatically and i was able to edit the movie, add sound, titles etc.
    Now last week there was a IMOVIE Update launched via software update and i downloaded it and now since then my Sony Cameara does not work with IMOVIE as imovie does not recognise it any more.
    when ever you go to the option to import from cameara it does not find the camera but instead it opens the I sight Camera on the Macbook.
    i have uninstalled the operating system, reinstalled, i have uninstalled the imovie application, reinstalled and still nothing.
    Can some one , anyone please help me ASAP im desperate.. ow and PS has anyone else exeprienced this same issue since the Upgrade?

    Thanks. What we will be using it for is mainly videoing children and family and we would like the 1080 HD but not necessarily hooked on the tape system. A hydrid might be something... like the BD and HDD. I found the Sony autofocus a bit slow at times which we would like to improve and we would like to have something that easily allow some pre-editing before getting to the FCE (I mean deleting unwanted clips etc). Also preferably not too large and heavy...
    Hope that makes the advise easier. Thanks again.

  • Urgent help reqd on CRM tables/FM/BAdI

    Hi Everybody,
    I'm new to CRM, though old to ABAP. Need some help on the following:-
    1) CRM tables and their relationship too (esp. contract, order, billing, iBase, counter & realted to UBB).
    2) Enhancement of BAdIs.
    3) Setting actions (esp. sending forms at trigger).
    Also, my mail id is [email protected]
    Regards,
    Sanj.

    hi
    as u have these documents with  you now. i appreciate if u could send it to mail id
    [email protected]
    thank you
    chandra

  • Urgent help reqd in string tokenizing

    hi all,
    i want to count the number of commas in the screen,
    ths is my code
    import java.util.*;
    class TokenizerTest
         public static void main(String[] args)
    String str= new String("REMOVE_STR,01,6403,40,143,990,410,,,11,ATTN PAT COLEMAN,, ,,,N,,,,,,,,,,,NC,,,,,");
         StringTokenizer st= new StringTokenizer(str,",",false);
         int i=0;
         while(st.hasMoreTokens())
              System.out.println(st.nextToken()+" Val :"+i);
              i++;
         System.out.println("Value of i"+i);
    System.out.println("Count is " +st.countTokens());     
    }but its notgiving the proper count... those commas whcih are not separated by spaces orcharacter, it desn't count like" ,," it won't count theese commas it works fine when commas are separated by spaces or charachters.
    what is the solution for this?.. plz help me its urgent
    Thanx in advance
    Deepali

    countTokens() should have been called before the while loop.
    so, System.out.println("Count is " +st.countTokens()); should be place before the while loop or create
    a local int variable to store the count and use the variable in the
    System.out.println("Count is " + count);
    The reason why you're not getting the proper count is this:
        In the while loop..you use nextToken()..when this method is called..countToken() method count the total
        number of token left; therefore...after the while loop..countToken() will always return ZERO.
        you should use the String split(String regex) function, if you are using the jdsk 1.4 or higher.
    public static void main(String[] args) {
        String str= new String("REMOVE_STR,01,6403,40,143,990,410,,,11,ATTN PAT COLEMAN,, ,,,N,,,,,,,,,,,NC,,,,,");
        String s[] = str.split(",");  // require jdk 1.4
        // NOTE:   the String "a,,b"      - two commas return
        //    s[0] = "a"    
        //    s[1] = "";    // empty string
        //    s[2] = "";    // empty string
        //    s[3] = "b";
        for (int i = 0; i < s.length; i++)
            System.out.println("Value of i = " + s);
    System.out.println("Count is = " + (s.length - 1) );

  • Urgent help - T430s shipped with non-workin​g keyboard

    Had a delivery of a T430s today and the keyboard is not functioning. I have to tap several keys such as the enter key many times before it recognises the press. Other key effected are space, A and Delete.
    I will telephone Technical Support, any idea on what to say so I have no problems in talking with them?
    Thanks
    ThinkPad T420s (4174-HG6) i5-2540M 8GB RAM, 320GB HDD
    ThinkPad T430s (2356-GDG) i5-3320M, 8GB RAM, 500GB HDD x 2
    Solved!
    Go to Solution.

    You did not specify what kind of warranty you have, so I'm assuming you have a depot (ship it back to Lenovo) warranty and want to deal with the issue faster, since if you had on-site it would not be an issue. The keyboard is a FRU (Field Replaceable Unit). Before I upgraded the warranty on my T400 to on-site, I had a keyboard issue. Since the keyboard was a FRU, Lenovo shipped the keyboard directly to me. I then installed the replacement keyboard on the machine. 
    I know warranties are different depending on what country you are in, so it might be different for you. However, I would try to convince them to send you the keyboard so that you can replace it yourself. You may need to ask them, to ship it to you. Before you ask to replace it yourself, go to this page http://support.lenovo.com/en_US/detail.page?DocID=​UM014541 and download the HMM (Hardware Maintenance Manual) for the T430. Read the part about replacing a keyboard and make sure you are comfortable with the procedure. It is also possible that simply reseating the keyboard connector on your current machine may fix the issue.
    Until the part arrives, you should be able to use an external keyboard.
    When asking for help, post your question in the forum. Remember to include your system type, model number and OS. Do not post your serial number.
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help others with the same question in the future.
    My TPs: Twist 2HU: i5-3317U Win 8 Pro, 4GB RAM 250GB Samsung 840 | T420 4177CTO: i5-2520M, HD+, Win 7 Pro x64, 8GB RAM, Optimus, 160GB Intel 320 SSD, Intel 6300 WiFi, BT 3.0 | T400 2764CTO: P8700, WXGA, Win 7 Ult x64, AMD 3470, 8GB RAM, 64GB Samsung SSD, BT, Intel 5300 WiFi | A20m 14.1" PIII 500 (retired). Monitors: 2x Dell U2211h IPS 100% sRGB calibrated w/ Spyder3.

  • URGENT HELP PLS :  Issue with Multi Level Master Detail block

    This is an issue someone else had posted in this forum few years back but there was no solution mentioned, I have run into this same issue , The problem is as explained below.
    Any help on this is appreciated.
    Scenario:
    There are 3 Blocks in the form : A (Master Block)
    : B (Detail of A )
    : C (Detail of B )
    There is master detail relation created between A and B and B and C. So initially when we query for a record in Master A, it shows all records properly in B and C.
    Now if i navigate to the first record of B , and then second record of B , records corresponding to that record shows up properly in C block.
    Till now everything works fine.
    Issue 1:
    But in case after querying initially on Master Block A,If I go directly to the second record of B block, it clears the whole B block and C block.
    Issue 2:
    Same thing happens if I am on C block ( corresponding to second record of B block) and then navigate to first record in B block , it again clears the whole B block and C block.
    Please Help !!
    Thanks !

    Thanks Xem for Your reply , I tried those settings but it did not help..here is the original link that to the thread that talks about the same problem ,
    Issue with Multi Level Master Detail block
    The last update to this was the following :
    "I figured out that this is happening because Block Status is set to 'Changed' and this is causing it to clear out the blocks.
    But cant figure out why the status is setting to 'Changed' "
    Any Help from the form Gurus on this form in this matter is truely appreicated !!
    Thanks,
    Zid.

  • Urgent: Help Reqd for outfile

    Hi,
    My Oracle version is 10g and I am using SQL Plus.
    When I use command:
    select * from emp into outfile 'e1.txt';
    it gives me error:
    ORA-00933: SQL command not properly ended
    I have tried all the possible options but none work.
    Please help me solve it,
    thanks,
    R.GOPALAN

      select * from emp into outfile 'e1.txt';
                             ^
                             |
                             |
                             is not a command
    a SELECT statement with an INTO clause is to be used with a PL/SQL. those what you see on the INTO clause are all variables that are declared in PL/SQL code. basically the correct syntax is
      select [column,...] into [variable,...] from [table]
    anyway where do you happen to get the idea that the OUTFILE is an oracle command?

  • Urgent Help ! Partition with UDA

    Hi,
    I am trying to create a partition using a UDA for a time dimension (month and its days).
    The target database will have three months (current, prior, and month -12).
    The partition will be created based on the current month that will change every month.
    The UDA will be assigned to the current month using a load rule for both source and target databases.
    Since the current month will be different every month, my partition breaks so I would have to re-create it again.
    Is there any solution for this?
    I really appreciate your help!
    Thanks
    Lucia

    Hi Lucia,
    Besides what is in the Tech Ref http://download.oracle.com/docs/cd/E17236_01/epm.1112/esb_tech_ref/maxl_create.html , there are lots of examples on the web (google). Another place to look might be Glenn Schwartzberg's Blog: http://glennschwartzbergs-essbase-blog.blogspot.com/2008/08/partitions.html
    Best,
    robb

  • Urgent Help Please, Error with Nested Table

    Hello All,
    I'm trying to create data mining models based on some medical data. I have combined two tables (Patients) and (tumors) into one table (cancer_patients). In the (cancer_patients) table there is one column (tumors) as nested table column. So I got the following error (ORA-22913) about the nested table. I need an advice about how to fix this error in ODM please
    This is the code of the tables
    CREATE TABLE "DSS2_MINING"."PATIENTS"
       (     "PATIENT_ID" VARCHAR2(10 BYTE) NOT NULL ENABLE,
         "REGISTRY_ID" NUMBER(10,0),
         "RACE" VARCHAR2(2 BYTE),
         "***" VARCHAR2(1 BYTE),
         "BIRTHDATE_YEAR" NUMBER(4,0),
         "NUMBER_OF_PRIMARIES" NUMBER(1,0),
         "VITAL_STATUS_RECORD" VARCHAR2(1 BYTE),
         "CAUSE_OF_DEATH" VARCHAR2(5 BYTE),
         "SURVIVAL_TIME" VARCHAR2(4 BYTE),
         "SURVIVAL_TIME_FINAL" NUMBER,
         "SURVIVAL_VARIABLE" VARCHAR2(1 BYTE),
          CONSTRAINT "PATIENTS_PK" PRIMARY KEY ("PATIENT_ID");
    CREATE TABLE "DSS2_MINING"."TUMORS"
       (     "TUMOR_ID" NUMBER NOT NULL ENABLE,
         "PATIENT_ID" VARCHAR2(10 BYTE),   -- FK
         "SEER_RECORD_NUMBER" NUMBER,       -- This column contain a sequance number of the records for each patients
         "MARITAL_STATUS" VARCHAR2(1 BYTE),
         "AGE" NUMBER,
         "DATE_OF_DIAGNOSIS" DATE,
         "HISTOLOGY_GROUP" VARCHAR2(2 BYTE),
         "BEHAVIOR" VARCHAR2(1 BYTE),
         "GRADE" VARCHAR2(1 BYTE),
         "DERIVED_AJCC_STAGE_GROUP" VARCHAR2(2 BYTE),
         "STAGE_OF_CANCER" VARCHAR2(2 BYTE),
         "RADIATION" VARCHAR2(1 BYTE),
         "CS_SCHEMA" VARCHAR2(2 BYTE),
         "FIRST_PRIMARY_IND" VARCHAR2(1 BYTE),
         "TUMOR_SIZE" NUMBER(4,1),
         "TUMOR_EXTENSION" VARCHAR2(2 BYTE),
         "LYMPH_NODES" VARCHAR2(1 BYTE),
         "NODES_POSITIVE" NUMBER,
         "ESTROGEN" VARCHAR2(3 BYTE),
         "PROGESTERONE" VARCHAR2(3 BYTE),
         "SURGERY" VARCHAR2(2 BYTE),
          CONSTRAINT "TUMORS_PK" PRIMARY KEY ("TUMOR_ID");
    create or replace type tumor_object AS
    object(
    tumor_id VARCHAR2(1),  
    marital_status VARCHAR2(1),  
    age NUMBER(3),  
    date_of_diagnosis DATE, 
    cs_schema VARCHAR2(2),  
    histology_group VARCHAR2(2),  
    behavior VARCHAR2(1),  
    grade VARCHAR2(1),  
    first_primary_ind VARCHAR2(1),  
    tumor_size NUMBER(4,   1),  
    tumor_extension VARCHAR2(2),  
    lymph_nodes VARCHAR2(1),  
    nodes_positive NUMBER(4),  
    surgery VARCHAR2(2),
    radiation VARCHAR2(1)
    create or replace type tumor_table as table of tumor_object;
      CREATE TABLE "DSS2_MINING"."CANCER_PATIENTS"
       (     "PATIENT_ID" VARCHAR2(10 BYTE) NOT NULL ENABLE,
         "RACE" VARCHAR2(2 BYTE),
         "***" VARCHAR2(1 BYTE),
         "NUMBER_OF_PRIMARIES" NUMBER(1,0),
         "TUMORS" "DSS2_MINING"."TUMOR_TABLE" ,
         "VITAL_STATUS_RECORD" VARCHAR2(1 BYTE),
         "CAUSE_OF_DEATH" VARCHAR2(5 BYTE),
         "SURVIVAL_TIME_FINAL" NUMBER,
         "SURVIVAL_VARIABLE" VARCHAR2(1 BYTE),
          CONSTRAINT "CANCER_PATIENTS_PK" PRIMARY KEY ("PATIENT_ID")
       NESTED TABLE "TUMORS" STORE AS "TUMORS_STOR_TABLE"Then, I have transferred the data using
    INSERT
      INTO CANCER_PATIENTS
      SELECT  PATIENT_ID,
              RACE,
              NUMBER_OF_PRIMARIES,
               SELECT  CAST(
                            COLLECT(
                                    TUMOR_OBJECT(
                                                 TUMOR_ID,
                                                 MARITAL_STATUS,
                                                 AGE,
                                                 DATE_OF_DIAGNOSIS,
                                                 CS_SCHEMA,
                                                 HISTOLOGY_GROUP,
                                                 BEHAVIOR,
                                                 GRADE,
                                                 FIRST_PRIMARY_IND,
                                                 TUMOR_SIZE,
                                                 TUMOR_EXTENSION,
                                                 LYMPH_NODES,
                                                 NODES_POSITIVE,
                                                 SURGERY ,
                                                 RADIATION
                            AS TUMOR_TABLE
                 FROM  "TUMORS" T
                 WHERE T.PATIENT_ID = P.PATIENT_ID
              VITAL_STATUS_RECORD,
              CAUSE_OF_DEATH,
              SURVIVAL_TIME_FINAL,
              SURVIVAL_VARIABLE
        FROM  PATIENTS PThanks
    A.L
    Edited by: user9003901 on Nov 30, 2010 12:23 AM

    Hi
    i was using AWM since 9i just because it creates OLAP metadata with a new API called CWM2, and Oracle Enterprise Manager was using a propietary API .
    With AWM 10.1.0.4 building your OLAP metadata is very simple, you can define your Dimensions, cubes, measures and even you can load your data from your source system.
    You can refer to the Oracle® OLAP Application Developer's Guide where you can find more information on this tool.
    And relative to your error i will recommend that you build on a dimension-by-dimension basis and try to validate your OLAP Metadata.
    Regards

  • Ora-12203 error when connecting to oracle 9i on win2003 - urgent help reqd

    hi
    one of our clients who is on same N3 network and is trying to log on to our oracle 9i database which is installed on windows 2003 + srv pack 1 but is getting ora-12203 erorr.
    the ip address of the client machine has been allowed thr our firewalls and been allowed to use sqlnet on oracle port 1521
    following setting have also been done
    in registry HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\HOME(0) i have set
    USED_SHARED_SOCKET=TRUE
    using Net manager, i have set connection type as DEDICATED_SERVER.
    protocol as TCP/IP and Port no =1521.
    At O/S level we have given oracle_home for 9i access (read, modify execute ..etc) to all sub-folders under e:\orant\ora9i
    i have restarted the listener service and also the windows 2003 server.
    Is there any specific setup criteria which we need to cater when users connect to windows 2003 server
    thanks
    kedar

    Hi Paul
    we have 2 external machine which have been given access thr our firewalls
    our database is in Wales and the machines are in england.
    everything is ok on the server as i have checked the settings which i could know of
    All these machines are on same N3 network , the 2 client machines have DNSlookup set which goes thr all the necessary firewalls and when the following command is run on client machine it can see the server
    c:\> nslookup < machine_name >
    the access to our database is given thr range of ip address as we dont have static IP and when the above command is run it returns dynamic IP address for the database in Wales
    H:\>nslookup krusty.hsw.wales.nhs.uk
    Server: bwd-dc1.bwd.xelpct.nhs.uk
    Address: 10.xxx.xx.xx
    Non-authoritative answer:
    Name: krusty.hsw.wales.nhs.uk
    Address: 194.xxxx.x.xx <---- ip address of databse
    Thanks
    Kedar

Maybe you are looking for

  • MuVo T100 Prob

    I have strange problem with my mp3 player. When I bought it, it was all ok, I uploaded songs etc. But now mp3 player is just recharging but computer don't recognize it, I can't upload new songs. I don't why :/ Any sugestions ?

  • IPhone 6 - Intermittent Loss Of Sound

    Hi, My handset has just recently started loosing sound via the speakers/headphones....totally.  The phone is up to date on iOS8, it is always in a case and is very much looked after.  It hasn't been dropped or exposed to water (other than a few drops

  • A new MacBook Pro Z0J72B/A

    Hi can anyone tell me what year the MacBook Pro Z0J72B/A was manufactured & came out ,it is 13 inch ,320GB ,4GB ram & 2.4ghz as I've searched YouTube & Mac forum & cannot find out this information on the Internet ,So I will be grateful if anyone can

  • Adobe After Effect used in Harry Potter !

    Dear friends this might sound a bit childish , but I couldn't help myself to ask this question here ! I have seen all the films and I wondered if Hollywod used Adobe After effect anywhere in their HP films !! I know some of the plug ins (Red Giant, T

  • Retaining TAB fuctionality inside JEditorPane

    Hi, I am using JEditorPane to use as an internet browser. But I am unable to get TAB key feature working over the browsing page. That means "A TAB key-press" doesn't move the focus to the next focusable component in the browsing page (contained by JE