Preload record in form

Can I preload a record in a form, e.g. I select the record in a list and I get the selected record in the form with the Update/Delete button available. (I like the Pass Parameter between Portlets sample from this forum by Jerry Silver, for displaying reports. I would have the same behavior with a report on the left and a form on the right of my page, instead of another report, is it possible).
Thank you in advance,
Jean-Michel

Two ways I've found.
Pass the form the rowid of the record works fine (retrieves the row you want) or more intelligently, create a PL/SQL procedure which identifies the row in question (from a unique key or some other identifier) then call the form using its call interface.

Similar Messages

  • Dreamweaver CS4 - Record Insertion Form js error

    Hi
    I'm dreamweaver cs4 and started using the Record Insertion form, I was mainly experimenting with it and just seeing what it could do.
    However when I get to the wizard i have to wait a few seconds for it to connect to the database and then I get an error message that says:
    While executing onLoad in ServerObject-InsRecPHP.htm, the following Javascript error(s) occured:
    At line 283 of the file "Macintosh HD:Application:Adobe Dreamweaver
    CS4:Configuration:Commands:ServerObject-FormCmnPHP.js":
    invalid array length
    I was just wondering if this was a common problem, or I've messed something up either in Dreamweaver, or in the SQL database that I'm using.
    I've also noticed that its the same for Update and Delete Records Wizards aswell.
    Any help would be greatly appreciated
    Aaron Kennedy

    I see it's your first post. Welcome to the forum.
    A good place to start looking for answers is the Dreamweaver FAQ. You'll find the answer to your question under "Crashes, installation, JavaScript, and unexplained problems".

  • Problem with a primary key when creating a new record in Forms

    My table has a field - MDD_KEY - that is a primary key. It is updated from a sequence with a before-insert database trigger. I know this works properly as the primary key was accurately populated when I inserted 1433 records.
    In Forms 6, I have a form based on that table. I have set the mdd_key as a hidden field because I assume it will be entered by the before-insert trigger. However, when I enter data into the table, and then try to save it, I get a FRM-40202: Field must be entered. - followed by - FRM-40222: Disabled item MDD_KEY failed validation.
    If I set DATA Required to no, when I try to save I get an FRM-40600: Record has already been inserted - but no such record exists in the database. I know this record is unique and does NOT exist because I deliberately made it up.
    In the property palatte, the attributes of the field are:
    DATA Data Type Number
    Required Yes
    DATABASE Database Item Yes
    Primary Key Yes
    Query Only No
    Query Allowed Yes
    Query Length 0
    Insert Allowed Yes
    Update Allowed Yes
    Update Only if Null No
    Lock Record No
    I assume that my problem is that with a new record, the form wants to see the MDD_KEY populated before it saves - but that isn't going to happen until the before insert trigger fires in the database. I assume I have to populate that field within forms, but how do I do that without messing up the database trigger/sequence? I will have to load more data directly into the database - so I need the database trigger in place.
    I have not used primary keys before so I am more than a little bit confused about how and when it should be populated when a new record is created in Forms.
    Any help would be appreciated as I cannot enter new data into my form (works well with existing data).
    Thanks
    Glenn

    hi
    if u have any problem using seq then try that statemetn ur block level in ur form
    PRE-INSERT trigger
    select nvl(max(nvl(srno,0)),0)+1 into :srno from tablename;
    Rizwan

  • Record Insertion Form Wizard, page not displaying

    I used the "Record Insertion Form Wizard" in Dreamweaver 8 to
    build the following code. Problem is that when I upload this to my
    server and load the page nothing is being displayed. Anybody have
    any thoughts on this?

    Hi yea,
    you need to upload the includes folder that is created when
    using the
    interakt extensions.
    "Herman2468" <[email protected]> wrote in
    message
    news:e7mmi0$ic3$[email protected]..
    > Dreamweaver's "Record insertion form wizard" creates
    this code in my
    > add_products.php page
    >
    > 1 <?php
    require_once('../Connections/connStore1.php'); ?>
    > 2 <?php
    >
    > 4 //Alternative for PHAkt's functions.inc.php
    > 5 require_once('../includes/tNG_functions.inc.php');
    >
    > 7 //load the tNG classes
    > 8 require_once('../tNG/KT_tNG.inc.php');
    >
    > Which causes this error message:
    >
    > Warning: main(../includes/tNG_functions.inc.php): failed
    to open stream:
    > No
    > such file or directory in
    /home/herm1/public_html/admin/add_product.php on
    > line
    > 5
    >
    > Fatal error: main(): Failed opening required
    > '../includes/tNG_functions.inc.php'
    > (include_path='.:/usr/lib/php:/usr/local/lib/php') in
    > /home/herm1/public_html/admin/add_product.php on line 5
    >
    >
    > Dreamweaver is telling add_products.php to access a
    folder that does not
    > exist.
    > I'm stuck.
    >
    >
    >

  • Equivalent command in OAF for when when validate record in forms

    Hi,
    what is the equivalent command in OAF to when when validate record in forms
    kumar

    Hi Kumar,
    validateRow() of your XXVORowImpl is equivalent of When-Validate-Record of forms.
    This method calls validateEntity() of your XXEOImpl
    This method is generally invoked on form submits (POST Requests)
    Regards,
    Ravi

  • SQL syntax error when creating record insertion form

    Good day,
    I was hoping someone could help me.  I am trying to create a record insertion form on a website to insert data into a database table.  When attempting to create the form, I am getting the following error: 
    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' Organization, Office, Department, Phone, EmailAddress, JobTitle, `OfficialMaili' at line 1
    Not sure what is going on.  I am running windows 8 and DW cs5 w/ MYSQL.  I am testing on a local server prior to pushing to the remote server.
    Thank you for your assistance and please advise any code you would like me to send.

    Here is all the code from this particular webpage.  I apologize, I am too stupid to realize which parts are SQL vice PHP vice HTML:
    <?php require_once('Connections/group4.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
       if (PHP_VERSION < 6) {
         $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;
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
       $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
       $insertSQL = sprintf("INSERT INTO individual (Grade, LastName, FirstName, M.I., Organization, Office, Department, Phone, EmailAddress, JobTitle, `OfficialMailing Address`, Citizenship, Designation, IATrainingComplete, IADate) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)",
                            GetSQLValueString($_POST['Grade'], "text"),
                            GetSQLValueString($_POST['LastName'], "text"),
                            GetSQLValueString($_POST['FirstName'], "text"),
                            GetSQLValueString($_POST['MI'], "text"),
                            GetSQLValueString($_POST['Organization'], "text"),
                            GetSQLValueString($_POST['Office'], "text"),
                            GetSQLValueString($_POST['Department'], "text"),
                            GetSQLValueString($_POST['Phone'], "double"),
                            GetSQLValueString($_POST['EmailAddress'], "text"),
                            GetSQLValueString($_POST['JobTitle'], "text"),
                            GetSQLValueString($_POST['OfficialMailing_Address'], "text"),
                            GetSQLValueString($_POST['Citizenship'], "text"),
                            GetSQLValueString($_POST['Designation'], "text"),
                            GetSQLValueString($_POST['IATrainingComplete'], "text"),
                            GetSQLValueString($_POST['IADate'], "text"));
      mysql_select_db($database_group4, $group4);
       $Result1 = mysql_query($insertSQL, $group4) or die(mysql_error());
      $insertGoTo = "index.php";
       if (isset($_SERVER['QUERY_STRING'])) {
         $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
         $insertGoTo .= $_SERVER['QUERY_STRING'];
       header(sprintf("Location: %s", $insertGoTo));
    mysql_select_db($database_group4, $group4);
    $query_rsIndividual = "SELECT * FROM individual ORDER BY IndividualNumber ASC";
    $rsIndividual = mysql_query($query_rsIndividual, $group4) or die(mysql_error());
    $row_rsIndividual = mysql_fetch_assoc($rsIndividual);
    $totalRows_rsIndividual = mysql_num_rows($rsIndividual);
    ?>
    <!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" />
    <title>Contact Us</title>
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    .header {
      font-size: 36px;
      text-decoration: underline;
    .quote {
      font-size: 18px;
      font-style: italic;
    .tablethisone {
      margin: 5px;
      padding: 25px;
      border: medium none #000;
      text-align: center;
    </style>
    </head>
    <body>
    <p><img src="Images/EGA.png" width="227" height="222" alt="EGA" /><span class="header">SAAR Tracking System
    </span></p>
    <ul id="MenuBar1" class="MenuBarHorizontal">
       <li><a href="index.php">Home</a>  </li>
       <li><a href="search.php">Search</a></li>
       <li><a href="contact.php">Contact Us</a>  </li>
    </ul>
    <p> </p>
    <p>PRIVACY ACT STATEMENT</p>
    <p>Executive Order 10450, 9397; and Public Law 99-474, the Computer Fraud and Abuse Act.
       To record names, signatures, and other identifiers for the purpose of validating the trustworthiness of individuals requesting
       access to Department of Defense (DoD) systems and information. NOTE: Records may be maintained in both electronic
       and/or paper form.</p>
    <p> </p>
    <p> </p>
    <form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
       <table align="center">
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">Grade:</td>
           <td><input type="text" name="Grade" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">LastName:</td>
           <td><input type="text" name="LastName" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">FirstName:</td>
           <td><input type="text" name="FirstName" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">M.I.:</td>
           <td><input type="text" name="MI" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">Organization:</td>
           <td><input type="text" name="Organization" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">Office:</td>
           <td><input type="text" name="Office" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">Department:</td>
           <td><input type="text" name="Department" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">Phone:</td>
           <td><input type="text" name="Phone" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">EmailAddress:</td>
           <td><input type="text" name="EmailAddress" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">JobTitle:</td>
           <td><input type="text" name="JobTitle" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">OfficialMailing Address:</td>
           <td><input type="text" name="OfficialMailing_Address" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">Citizenship:</td>
           <td><input type="text" name="Citizenship" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">Designation:</td>
           <td><input type="text" name="Designation" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">IATrainingComplete:</td>
           <td><input type="text" name="IATrainingComplete" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">IADate:</td>
           <td><input type="text" name="IADate" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right"> </td>
           <td><input type="submit" value="Insert record" /></td>
         </tr>
       </table>
       <input type="hidden" name="MM_insert" value="form1" />
    </form>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p>Disclosure of this information is voluntary; however, failure to provide the requested information may impede, delay or
    prevent further processing of this request.</p>
    <p class="quote">&quot;Be polite, be professional, but have a plan to kill everybody you meet&quot; General James Mattis</p>
    <p> </p>
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    </body>
    </html>
    <?php
    mysql_free_result($rsIndividual);
    ?>

  • Dw cs5 BUG: record insertion Form

    TO RECREATE:
    When dreamweaver CS5 is connected to Coldfusion 8 and MySql server, And the mySql table field contains allow "NULL" (that is allows NULL)
    the "Record Insertion Form" generates incorrect code. The varchar(50) does not work -- it incorrectly generates cfqueryparam(..."cf_sql_clob")   Hopefully this will help some one else.
    mysql>
    CREATE TABLE `contacts`(
      `contacts_ID` INT UNSIGNED NOT NULL AUTO_INCREMENT
         ,`contacts_detail_ID` INT UNSIGNED NULL
      ,`firstname` VARCHAR(50) NOT NULL
      ,`lastname`  VARCHAR(50)  NOT NULL
      ,`emailaddr` VARCHAR(128) NOT NULL UNIQUE 
      ,`pwd` VARCHAR(40) NULL
      ,`contacts_status` TINYINT  UNSIGNED NOT NULL DEFAULT 1
        ,`modified_date` TIMESTAMP NOT NULL  DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
         ,PRIMARY KEY(`contacts_ID`)
         ,KEY(`firstname`)
         ,KEY(`lastname`)
         ,KEY(`emailaddr`)
      ">
    WRONG CODE:
    <cfset CurrentPage=GetFileFromPath(GetBaseTemplatePath())>
    <cfif IsDefined("FORM.MM_InsertRecord") AND FORM.MM_InsertRecord EQ "form1">
      <cfquery datasource="ndi2010">
    INSERT INTO contacts (firstname, lastname, emailaddr, pwd, contacts_status)
    VALUES (<cfif IsDefined("FORM.firstname") AND #FORM.firstname# NEQ "">
    <cfqueryparam value="#FORM.firstname#" cfsqltype="CF_SQL_CLOB" maxlength="50">
    <cfelse>
    </cfif>
    , <cfif IsDefined("FORM.lastname") AND #FORM.lastname# NEQ "">
    <cfqueryparam value="#FORM.lastname#" cfsqltype="CF_SQL_CLOB" maxlength="50">
    <cfelse>
    </cfif>
    , <cfif IsDefined("FORM.emailaddr") AND #FORM.emailaddr# NEQ "">
    <cfqueryparam value="#FORM.emailaddr#" cfsqltype="CF_SQL_CLOB" maxlength="128">
    <cfelse>
    </cfif>
    , <cfif IsDefined("FORM.pwd") AND #FORM.pwd# NEQ "">
    <cfqueryparam value="#FORM.pwd#" cfsqltype="CF_SQL_CLOB" maxlength="40">
    <cfelse>
    </cfif>
    , <cfif IsDefined("FORM.contacts_status") AND #FORM.contacts_status# NEQ "">
    <cfqueryparam value="#FORM.contacts_status#" cfsqltype="CF_SQL_TINYINT">
    <cfelse>
    NULL
    </cfif>
      </cfquery>
    CORRECTED / better CODE:
    <cfset CurrentPage=GetFileFromPath(GetBaseTemplatePath())>
    <cfif IsDefined("FORM.MM_InsertRecord") AND FORM.MM_InsertRecord EQ "form1">
      <cfquery datasource="ndi2010">
    INSERT INTO contacts (firstname, lastname, emailaddr, pwd, contacts_status)
    <cfqueryparam value="#FORM.firstname#" cfsqltype="CF_SQL_VARCHAR" maxlength="50">
    <cfelse>
    </cfif>
    , <cfif IsDefined("FORM.lastname") AND #FORM.lastname# NEQ "">
    <cfqueryparam value="#FORM.lastname#" cfsqltype="CF_SQL_VARCHAR" maxlength="50">
    <cfelse>
    </cfif>
    , <cfif IsDefined("FORM.emailaddr") AND #FORM.emailaddr# NEQ "">
    <cfqueryparam value="#FORM.emailaddr#" cfsqltype="CF_SQL_VARCHAR" maxlength="128">
    <cfelse>
    </cfif>
    , <cfif IsDefined("FORM.pwd") AND #FORM.pwd# NEQ "">
    <cfqueryparam value="#FORM.pwd#" cfsqltype="CF_SQL_VARCHAR" maxlength="40"
    null="#YesNoFormat(NOT Len(Trim(FORM.pwd)))#"  >
    <cfelse>
    <cfqueryparam value="" cfsqltype="CF_SQL_VARCHAR" maxlength="40"
    null="#YesNoFormat(1)#">
    </cfif>
    , <cfif IsDefined("FORM.contacts_status") AND #FORM.contacts_status# NEQ "">
    <cfqueryparam value="#FORM.contacts_status#" cfsqltype="CF_SQL_TINYINT">
    <cfelse>
    NULL
    </cfif>
      </cfquery>

    MX 2004 was always a bit "gummy" on this.  Instead of using the DW wizard, I downloaded a free version of Microsoft SQL Server Express Edition.  I use that for all table Inserts, Updates,etc.   This accesses the tables directly on the server.  Nothing needs to be synced, put, gotten or whatever.  Use DW for Form and UI creation and making prebuilt queries.
    Hope that helps
    Jerry H

  • Where is the Record Update Form Wizard in DWCC?

    Trying to follow online help but it doesn't relate to DWCC.   A tutorial I found for CS6 suggests that it's in Insert > Data Objects > Update Record > Record Update Form Wizard but in DWCC there is no "Data Objects" option in the Insert menu.
    By the way, I'm looking for the wizard not the straight Update behaviour which I'm aware is in the Server Behaviours panel.
    Thank you.
    NJ
    EDIT:  Just spoke to Adobe "support" by chat about this and they were absolutely useless. The directed me to the article that I've highlighted above as being for CS6, which isn't helpful because "Data Objects" isn't in the Insert menu in DWCC, and when I pointed that out they gave me this link to try:  http://www.adobe.com/devnet/
    Seriously?  Is this the best I can hope for from Adobe support?  It was clear that the operative was just doing Google searches for the answers as opposed to actually knowing the software that they represent.  Really disappointing support.

    Hi Jon,
    "Database functionality was removed from DWCC."  - I use database functionality a lot so this is a real let down.  Why has it been removed when it seems so integral to a lot of modern websites and web applications?
    I've got the Legacy Extension, or Depracated_ServersBehaviours panel extension, but that does not bring back the Record Update Form Wizard.
    Tutorials as far as CS6 reference the Record Update Form Wizard but I'm guessing that it has just been completely dropped in DWCC - not that anyone from Adobe know that one way or another.  The official "support" I received earlier was a complete joke (some guy doing Google searches whilst saying - "I'm just verifying your account").
    I'm quite handy with Google myself so maybe there's an opportunity for me to move into a career as an Adobe support technician.
    I'll have to find a third party extension then I guess.  Thanks for the advice.

  • Record Insertion Form Wizard Help required

    Hi there
    I am having trouble getting my insertion form to save the
    info to a database. What I want to do is to get customers to
    subscribe to a monthly newsletter by inserting their email
    addresses into a form which should then be saved to a MS Access
    Database. I have made the connection and theres no problems there.
    But when use the record insertion form wizard and try to test it on
    my testing server (offline)...and when I click submit I get the
    following message:
    The page cannot be displayed
    There is a problem with the page you are trying to reach and
    it cannot be displayed.
    Please try the following:
    Click the Refresh button, or try again later.
    Open the localhost home page, and then look for links to the
    information you want.
    HTTP 500.100 - Internal Server Error - ASP error
    Internet Information Services
    Technical Information (for support personnel)
    Error Type:
    Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
    [Microsoft][ODBC Microsoft Access Driver] Could not use
    '(unknown)'; file already in use.
    /jb_root/Digest_Subscription.asp, line 113
    Browser Type:
    Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Xtra
    V3.5)
    Page:
    POST 55 bytes to /jb_root/Digest_Subscription.asp
    POST Data:
    Email_Address=[email protected]&MM_insert=form1
    Time:
    Tuesday, 26 September 2006, 10:38:06 a.m.
    More information:
    Microsoft Support
    I have defined a go to page after submitting the info...but
    that doesnt come up and neither does it want to store the input
    data into the database..Can anyone please help me out here.

    Springbok_yfc wrote:
    >
    > Error Type:
    > Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
    > [Microsoft][ODBC Microsoft Access Driver] Could not use
    '(unknown)'; file
    > already in use.
    This error is usually associated with a permissions error.
    Check out this technote.
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_18802
    Cheers jojo
    Adobe Community Expert for Dreamweaver 8
    http://www.webade.co.uk
    http://www.ukcsstraining.co.uk/
    Extending Knowledge, Daily.
    http://www.communityMX.com/
    Free 10 day trial
    http://www.communitymx.com/joincmx.cfm

  • How can i display recent update/delete/insert records in form

    Hai !!!!
    i am new for forms,.......any body tell me, how can i display recent no of records updated or no of records deleted or no of records are inserted in a form. these records count are display in display items....give me detail explination......
    Subbu.....

    the easiest way is copy and paste the oracle-forms example from the OU.
    You need form-level-trigger ON-ERROR + ON-MESSAGE, POST-INSERT, POST-UPDATE, POST-DELETE, three global variables and a procedure:
    ON-ERROR
    handle_message( error_code, 'ERROR: ' || ERROR_TYPE || '-' || TO_CHAR(ERROR_CODE) ||': '|| ERROR_TEXT );
    ON-MESSAGE
    handle_message( message_code, MESSAGE_TYPE || '-' || TO_CHAR(MESSAGE_CODE) || ': ' || MESSAGE_TEXT );
    PROCEDURE handle_message( message_number IN NUMBER, message_line IN VARCHAR2 ) IS
    BEGIN
        IF message_number IN ( 40400, 40406, 40407 )
        THEN
          DEFAULT_VALUE( '0', 'GLOBAL.insert' );
          DEFAULT_VALUE( '0', 'GLOBAL.update' );
          DEFAULT_VALUE( '0', 'GLOBAL.delete' );
          MESSAGE('Save Ok: ' ||
            :GLOBAL.insert || ' records inserted, ' ||
           :GLOBAL.update || ' records updated, ' ||
           :GLOBAL.delete || ' records deleted !!!' );
          ERASE('GLOBAL.insert'); 
          ERASE('GLOBAL.update');
          ERASE('GLOBAL.delete');
        ELSE
             MESSAGE(message_line );
              END IF;
    END;
    POST-INSERT
    DEFAULT_VALUE('0', 'GLOBAL.insert');
    :GLOBAL.insert := TO_CHAR( TO_NUMBER( :GLOBAL.insert ) + 1 );
    POST-UPDATE
    DEFAULT_VALUE('0', 'GLOBAL.update');
    :GLOBAL.update := TO_CHAR( TO_NUMBER( :GLOBAL.update ) + 1 );
    POST-DELETE
    DEFAULT_VALUE('0', 'GLOBAL.delete');
    :GLOBAL.delete := TO_CHAR( TO_NUMBER( :GLOBAL.delete ) + 1 );try it
    Gerd

  • Restricting creation of new records using forms personalization

    Hi,
    I have a requirement for which I have to restrict he user from creating a record in the Supplier Master form if the suppliier type is 'Affiliate Supplier'.
    I have done the following setups
    Seq     10
    Description Restricting user from creating Affiliate records
    Level     Function
    Enabled Yes
    Condition:
    Trigger Event     WHEN-VALIDATE-RECORD
    Trigger object     VNDR
    Condition "${item.VNDR.VENDOR_TYPE_DISP_MIR.value} is NOT NULL
    and
    ${item.VNDR.VENDOR_TYPE_DISP_MIR.value} LIKE 'Affiliate%'
    Processing Mode BOTH
    Context     
    Level     User
    Value User Name
    Action Sequence     1
    Type          Message
    Action Description     Saving Affiliate record
    Language          ALL
    Message Type     Show
    Message Text     You Cannot Create Affiliate records Here
    Action Sequence     2
    Type          Builtin
    Action Description     Stop Proceesing
    Language          ALL
    Action Enabled     Yes
    Builtin Type     RAISE FORM_TRIGGER_FAILURE;
    Thi is working good on one instance but when I moved it to another instance
    when I query the form and try to navigate to the bank accounts tab of the form which is based on a differnt block i.e VNDR_USES block, this trigger fires there also and stops the processing.
    Any suggestions on this would be higly appriciated.
    Thanks in Advance.

    Is this oracle apps? There's other forums for that where you're more likely to get an answer.
    Here, perhaps?
    Personalization

  • How do you Delete a Record using Form with submit button?

    Hi,
    The table REGISTRATION has two feilds, FULL_NAME and USER_GROUP. I created a form that has a drop down
    of all the FULL_NAME values that allows the user to select the record that they want to delete. I got the drop down to work and
    created the Delete Record behavior, I just can't get the submit button to send the form data and cause the delete to happen.
    I have created other pages that update records in this way, but for some reason, I can't get delete to work.
    Any Ideas?
    Thank You in Advance,
    Eric
    Ps     Anyone know why this site locks up in I.E. on some PC's? My Company PC is locked down and they won't investigate. My laptop works but says error on page. I have the latest updates and JAVA ...
    Here is the code:
    <cfif IsDefined("FORM.Full_Name") AND #FORM.Full_Name# NEQ "">
      <cfquery datasource="ilmf_parts">
      DELETE FROM REGISTRATION
    WHERE Full_Name=<cfqueryparam value="#FORM.Full_Name#" cfsqltype="cf_sql_clob" maxlength="50">
      </cfquery>
      <cflocation url="index.cfm">
    </cfif>
    <cfquery name="REGISTRATION" datasource="ilmf_parts">
    SELECT Full_Name, User_Group
    FROM REGISTRATION
    ORDER BY Full_Name ASC
    </cfquery>
    <!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=iso-8859-1" />
    <title>User Delete Test Page</title>
    </head>
    <body>
    <p align="center">USER DELETE TEST PAGE </p>
    <p> </p>
    <form action="index.cfm" method="post" enctype="multipart/form-data" name="Delete_Form" id="Delete_Form">
      <table width="500" border="1" cellspacing="1" cellpadding="3">
        <tr>
          <th scope="col">NT Name </th>
          <th scope="col"><select name="select">
            <cfoutput query="REGISTRATION">
              <option value="#REGISTRATION.Full_Name#">#REGISTRATION.Full_Name#</option>
            </cfoutput>
          </select>
    </th>
        </tr>
        <tr>
          <td> </td>
          <td><input type="submit" name="Submit" value="DELETE" /></td>
        </tr>
      </table>
      <p> </p>
      <p> </p>
    </form>
    <p> </p>
    </body>
    </html>

    The name of your form control is "select".
    <select name="select">
    The name of your form field in your SQL is full_name
    <cfqueryparam value="#FORM.Full_Name#" cfsqltype="cf_sql_clob" maxlength="50">
    You probably really want these names to match!
    P.S.
    Is your name field really a "clob" data type?  Just how long are these names anyway.
    P.P.S.
    Why are you relocating from the page index.cfm to index.cfm?
    <form action="index.cfm" method="post" enctype="multipart/form-data" name="Delete_Form" id="Delete_Form">
    <cflocation url="index.cfm">

  • Display multiple records in forms 6i

    hi every body
    will anybody plz tell me how to display multiple records in tabular view of forms 6i.for example say i have a field in a block of a form.and i have to display multiple records in another block in the same form depending upon the value of the mentioned field in the above block.
    will anybody help me??

    Why are you manually populating your data block when Oracle Forms will do this for you? Oracle Forms is tightly integrated with the Oracle Database. You should just base your Forms data block on the ISSUED table. Then you can filter the records displayed by setting the WHERE Clause property to ID = :BLOCK1.ID or you can dynamically set it with code using the SET_BLOCK_PROPERTY('BLOCK_NAME',DEFAULT_WHERE,'ID = :BLOCK.ID') built-in.
    Then, the only code you would need in your Button's When-Button-Pressed trigger would be:
    BEGIN
      GO_BLOCK('BLOCK2');
      EXECUTE_QUERY;
    END;This is the point of InoL's reply. When a Form is based on a table, you can use the "Enter Query" and "Execute Query" built-in features to query and display records.
    Sounds like you might be new to Oracle Forms development. If that is the case, you might want to go through a few Forms Tutorials to learn what Forms can do for you. ;) Just search the internet for "Oracle Forms Tutorials" and you will find many!
    Craig...

  • How to control the  space between records in form layout

    Hi ,
    I need to display mutiple records (15-20) in a form ,
    and have choosen FORM layout as I need to display each record in two lines (Can a record be displayed in two lines in TABULAR layout ? ) .
    Now There is lot of space between each record and I could not move records closer . How can I control space between reords in FORM layout ?
    (While creating Canvas I selected Distance bwteen records = 0 )
    Thanks in advance,
    Asha

    Asha,
    no in tabular layout there is no way to display a record on two lines. All you can do is to use a stacked canvas and use it to make the table scrollable horizontally
    The distance between record setting is a property on the item level. if this is set to 0 (please double check) then all that is loeft is the item bevel. You can set the item bevel property to plain and then work on resizing the items hight until close to acceptable.
    Frank

  • Showing Blank Records oracle forms 11g

    Deal all..
    i am using oracle forms 11g ,  i created a form by using data block wizard & layout wizard  , but when i run the form, the form running successfully  in  browser,  url is (  http://arun-pc:9001/forms/frmservlet), but  it is showing empty records.
    when i check with sql  plus user Scott ,  i found 10 records in departments table ,  same user and same table  i used in oracle forms.
    i don't know what is the  problem.. i am new to oracle forms please help me..
    i am waiting 4r your valuable reply
    thank s in Advance..

    Hello. Mr.harsh shah...
    Thank u for your reply..
    I follow the link what u given in above post..  But still i have the same issue..  i am not sure, but   i think i have problem with my Environment, bcz in many blogs i read that oracle forms is not recommended to use with 64 bit OS. and second , iam not using developer suite 10g,
    currently i am using,
    operating system:  windows server 2008 r2
    weblogic server :-  wls1036 (64bit)
    JDK :- 7u17 64bit
    Oracle forms :-  11g
    and database in another host , just i edit tnsnames.ora file in forms directory.  the following are my configuration options
    Oracle Forms and Reports Installation
    Configuration Options
      Middleware Home Location: C:\Oracle\Middleware
      Oracle Home Location: C:\Oracle\Middleware\Oracle_FRHome1
      Oracle Instance Location: C:\Oracle\Middleware\asinst_1
      Oracle Instance: asinst_1
      Domain Option: Create Domain
      Domain Name: ClassicDomain
      Domain Home: C:\Oracle\Middleware\user_projects\domains\ClassicDomain
      Domain Host Name: WIN-DMJUC51KRHF
      Domain Port No: 7001
      User Name: weblogic
      Automatic Port Detection: true
      Administrator Console: http://WIN-DMJUC51KRHF:7001/console
      EM Console: http://WIN-DMJUC51KRHF:7001/em
      EMAgent URL: http://WIN-DMJUC51KRHF:5155/emd/main
      Forms URL: http://WIN-DMJUC51KRHF:8888/forms/frmservlet
      Reports URL: http://WIN-DMJUC51KRHF:8888/reports/rwservlet
    i check all the links above, all services showing running successfully..  but when i run the form , i dont fine any records , showing empty and blank records..
    please give me clarification ...
    Thank u very much..
    Arun

Maybe you are looking for

  • How to track Changes done in planning book....by whom.....in DP planning

    Hi All, I want to track the changes done in Key figures in planning book ..........mostly by whom .......let me know how to track the same in APO DP planning book...........any std..........way..........like R/3...........pl reply.............your ex

  • Ucm: displaying some fields on a profile based on a workflow step

    Hi, Is it possible to hide/display some standard/custom metadata fields on a profile based on a workflow step/ e.g. I am having a workflow with 3 steps 1. manager step 2. specialist step 3. reviewer step On the 3 step, a reviewer can decide calling a

  • Upgradation steps for XI 3.0 to PI 7.0..?

    Hi Folks,   Can anyone give me the steps to upgrade the xi 3.0 with some suport pack to pi 7.0  with some support pack. What i need is what are the consideration should be taken and poceedure to do it. What about the interfaces in xi.?   Thanks in ad

  • Creating autostart DVD in kiosk mode?

    I need to create a DVD or video file that will run in kiosk mode for an exhibit we have up. Since I've never done this before I have a few questions. 1. The video has already been created by our local cable TV folks and they said they can save it in

  • Mavericks Mail not working properly with Exchange server after upgrade from Lion

    Mail will no longer maintain a stable connection to my company's Exchange server after upgrading to Mavericks from Lion.  Nothing has been changed on the Exchange server.  It has only partially downloaded the messages that are on the server.  It seem