Custom trigger

Hi--
I am inserting into 2 tables sc_tblBioInfo and sc_tblSemesterInfo. I have 2 fields 'Plantoenroll' and 'year' that are inserted into 2 different fields into sc_tblSemesterInfo. That works fine.
I also need to insert 'Plantoenroll' and 'year' combined into 1 field called 'Plantoenroll' in sc_tblBioInfo.
I have created a custom trigger to combine them and insert into sc_tblBioInfo:
function Trigger_Custom(&$tNG) {
$Plantoenroll = $tNG->getColumnValue("Plantoenroll");
$year = $tNG->getColumnValue("year");
$newSubject = $Plantoenroll . $year;
$ins_sc_tblBioInfo->addColumn("Plantoenroll","STRING_TYPE","VALUE",$newSubject);
return null;
I am getting an error "Column Plantoenroll is not part of the current transaction." How do I make Column Plantoenroll part of the current transaction?
Is there a better way to insert 2 fields into a table and also insert those 2 fields as 1 field into a different table?
Thanks for any help.
--rayne

Rayne,
If I understand correctly, you want to insert/update a different table than the table the ADDT form is inserting to.
The form on your page inserts a new record into sc_tblSemesterInfo table. You also want to insert a new value based on combining two fields into one and insert or update the new value in the sc_tblBioInfo table.
Unfortunately, you cannot use:
$ins_sc_tblBioInfo->addColumn("Plantoenroll","STRING_TYPE","VALUE",$newSubject);
to update a different database table than the one the form is associated with.
The correct code would be:
$tNG->addColumn("Plantoenroll","STRING_TYPE","VALUE",$newSubject);
but using this in a trigger only allows you to add Columns to the trasaction database table that the form is inserting to. You cannot tell it to update a different database table like this.
The key question is whether you need to do an Update to an existing record in sc_tblBioInfo, or are you a doing fresh an insert in the sc_tblBioInfo table?
You need to do a custom trigger that does a database call to do an insert or update operation on the sc_tblBioInfotable table. After you combine the values into a new value, are you needing to insert a new record into the sc_tblBioInfotable table, or are you needing to update an existing record in the sc_tblBioInfotable table?
Shane

Similar Messages

  • Session variable not storing in custom trigger

    I have a custom trigger in which I want to store a session variable , so i can use the value in the insert transaction which happens after. But for some reason the session variable is not stored, resulting in the data not being stored.
    any clues would help.
    rudi
    here are the relevant code:
    //start Trigger_Custom_Subject_Mentor trigger
    function Trigger_Custom_Subject_Mentor(&$tNG) {
    //Check subject exists
    @session_start();
    $_SESSION['sb_id'] = $subject_id;
    //end Trigger_Custom_Subject_Mentor trigger
    // Make an insert transaction instance
    $ins_share = new tNG_insert($conn_smart);
    $tNGs->addTransaction($ins_share);
    // Register triggers
    $ins_share->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Insert1");
    $ins_share->registerTrigger("END", "Trigger_Redirect", 90);
    // Add columns
    $ins_share->setTable("`share`");
    $ins_share->addColumn("share_item", "NUMERIC_TYPE", "POST", "share_item");
    $ins_share->addColumn("share_subject", "NUMERIC_TYPE", "SESSION", "sb_id");
    $ins_share->setPrimaryKey("share_id", "NUMERIC_TYPE");
    // Register triggers
    $ins_share->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Insert1");
    $ins_share->registerTrigger("BEFORE", "Trigger_Custom_Subject_Mentor", 50);
    $ins_share->registerTrigger("END", "Trigger_Default_Redirect", 99, "share.php?item_id={share_item}");

    hi User,
    1) Pull a dummy column in Fx use the Session variable --->(Variable -->session )
    2) Next, goto narrative view in Narrative view section use @1
    3) If u want you can hide the column that we created in criteria section

  • Can anyone help with a custom trigger?

    Hi - I know this is a tough one and appreciate anyone's help!
    I'm trying to create a custom trigger that confirms 2 fields belong to the same record. If they do, proceed with insert transaction.
    I have gone through the tutorial (from the old Interakt Discussion Board tutorial at http://www.interaktonline.com/Documentation/MXKollection/075000_tutorialdiscussionboard.h tm) on how to create a custom trigger that checks to see whether a duplicate message and subject exist in the table and if so, stop the insert. I have this working fine, using my own table and fields.
    Can anyone help me to change the script here to confirm that both fields belong to the same record? Here is what I have right now:
    $query = "SELECT * FROM dan_camptrans_login_familyid_confirmid WHERE family_id = ".KT_escapeForSql($tNG->getColumnValue("family_id"),$tNG->getColumnType("family_id"))." AND confirm_id = ".KT_escapeForSql($tNG->getColumnValue("familyconfirm_id"),$tNG->getColumnType("familycon firm_id"));
    $result = $tNG->connection->Execute($query);
    if(!$result) {
    $error = new tNG_error("Could not access database!",array(),array());
    return $error;
    } else {
    if($numberOfRecords = $result->recordCount()) {
    $uniqueFailed = new tNG_error("There is already a message with the same subject and content!",array(),array());
    return $uniqueFailed;
    } else {
    return NULL;
    Any help would be SUPER appreciated!
    Dan

    Thank you very much Shane for responding.
    Right now, if I fill out the form and enter any numbers in the family_id and familyconfirm_id fields that are currently NOT in the dan_camptrans_login_familyid_confirmid table, the form submits fine. If however, both fields already exist within the same record, the error is returned.
    I guess what I am looking for is the opposite. When the form is submitted, the table dan_camptrans_login_familyid_confirmid is checked. If both field entries are not within the same record, return the error.
    Basically, I am sending out a user ID and confirmation number via mail to users. When they register they need to enter in both of these numbers and only if they match the records will the registration proceed.
    The main recordset/form that this custom trigger is attached to is one for my user registration table. This custom trigger and associated table is only to confirm the user registering has the correct information to register.
    Thanks again - I hope that I am explaining this clearly.
    Dan

  • Delete mutiple image with custom trigger

    I am attempting to delete multiple images associated with a record being deleted. The record has a field with the default filename, then each image has a prefix ("thumb_", "callout_", "feature_") along with this filename.
    My issue is two-fold. I am attempting this with a custom trigger (on the delete record; using AFTER), but I keep getting an error message when I try to pull in the filename using tNG->getColumnValue(). The error reads:
    tNG_fields.getColumnValue:
    Column file is not part of the current transaction.
    Here is my code:
    $file = $tNG->getColumnValue('file');
    deleteFileAndThumbs($file);
    My second issue is in regards to the redirect after the triggers.
    getPrimaryKeyValue() works just fine. Thus, if I change the image names to correspond to my record's "id" #, it will pull the ID # just fine. It will make it through my code and redirect back to the listing page. However, the images will not be deleted. If I remove the redirect, the images delete, but it just sits on this page. So I assume my issue is a result of the page redirecting before al the images are deleted. Is there a way to not allow the redirect to run until my deleteImages function is completed?
    Thanks!

    Ok. How about executing a SELECT inside a Custom Trigger and accessing
    the resulting rows to use in PHP code also in the trigger?
    Example - within the Custom Trigger execute:
    $sql="SELECT * FROM table";
    How do I execute it? With the regular DW code like:
    mysql_select_db($database_conWV, $conWV);
    $sql="SELECT * FROM table";
    $result = mysql_query($sql, $conWV) or die(mysql_error());
    $row_result = mysql_fetch_assoc($result);
    $totalRows_result = mysql_num_rows($result);
    or with some ADDT code like:
    $result = $tNG->connection->execute($sql);
    If I do the "ADDT" way, how do I access the rows?
    $result['column'] or something?
    Alec
    Adobe Community Expert

  • Can we update oracle standard table Attributes column by custom trigger?

    Can we update the oracle Standard table's Attributes column using custom trigger? Is it allowed by oracle? Is this supported?
    Thanks

    ATTRIBUTE columns store DFF information and therefore custom code can be used to update their contents. Care must be taken that such updates do not cause "logical" corruption (an ATTRIBUTE column may be designed to store the color of a product, for example, but an incorrect SQL statement can update the value to a numeric one, thus causing corruption - Oracle does not have a means to check the validity of these update statements). Also, some localizations, such as Brazil and India, reserve some ATTRIBUTE columns for their use - updating such columns is not supported. More information may be found in the Flexfields Guide for your release at http://www.oracle.com/technology/documentation/applications.html
    HTH
    Srini

  • Custom Trigger Issues

    I am trying to create a PM messaging system with ADDT. So far, things are going pretty well. But I have a problem with a custom trigger i am trying to write. Before a message is sent, I want the recipients private message count to be checked. If it equals 2, an error message is displayed and the message does not get sent. This is the code that I have at the moment.
    //start checkPM_Count trigger
    function checkPM_Count(&$tNG) {
    $username_pmcount = $_POST['msg_reciever'];
    $checkPMCount_SQL = "SELECT u_pmcount from members WHERE u_name='$username_pmcount'";
    $result1 = mysql_query($checkPMCount_SQL) or die($checkPMCount_SQL."
    ".mysql_error());
    $pm_count = $result1['u_pmcount'];
    if ($pm_count == '2') {
    $tNG->setError(new tNG_error('The user you are trying to send a message to has 2 private messages, sorry but we cant send your message until that user deletes some of their messages.', array(), array()));
    Can anyone tell me if there is something wrong with the code above. No error message is shown and the message is still being sent regardless.
    Thanks

    I am trying to create a PM messaging system with ADDT. So far, things are going pretty well. But I have a problem with a custom trigger i am trying to write. Before a message is sent, I want the recipients private message count to be checked. If it equals 2, an error message is displayed and the message does not get sent. This is the code that I have at the moment.
    //start checkPM_Count trigger
    function checkPM_Count(&$tNG) {
    $username_pmcount = $_POST['msg_reciever'];
    $checkPMCount_SQL = "SELECT u_pmcount from members WHERE u_name='$username_pmcount'";
    $result1 = mysql_query($checkPMCount_SQL) or die($checkPMCount_SQL."
    ".mysql_error());
    $pm_count = $result1['u_pmcount'];
    if ($pm_count == '2') {
    $tNG->setError(new tNG_error('The user you are trying to send a message to has 2 private messages, sorry but we cant send your message until that user deletes some of their messages.', array(), array()));
    Can anyone tell me if there is something wrong with the code above. No error message is shown and the message is still being sent regardless.
    Thanks

  • Custom Trigger After Insert

    After a insert into table 1, i want to take a value from that transaction and use it in a custom trigger to instert into another datbase the 2 values. One is the primary key value of the transaction of table 1 and the other is a session variable of the logged in user. I can get the value of the session user, but i cant get the value of the transaction field.
    $updateRequestDate = "INSERT INTO request_notify (id_request, username) Values({rsrequest.id_request}, '" . $_SESSION['kt_login_user'] . "')";
    $update_result = $tNG->connection->execute($updateRequestDate);
    if(!$update_result) {
    $updateError = new tNG_error("Error setting the logged in status to N", array(), array());
    return $updateError;
    } else {
    return NULL;
    I have the custom trigger set to go after insert transaction.
    How do you get the value of a transaction field for a custom trigger?

    Gunter,
    You rock. Working example, using your knowledge.
    $updateRequestDate = "INSERT INTO test2 (idtest_note, username_note) VALUES ('". $tNG->getColumnValue("id_test") ."', '". $_SESSION['kt_login_user']."')";
    $update_result = $tNG->connection->execute($updateRequestDate);
    if(!$update_result) {
    $updateError = new tNG_error("Error setting the logged in status to N", array(), array());
    return $updateError;
    } else {
    return NULL;

  • Custom Trigger help needed

    How do I include values from existing recordsets in a SQL statement
    within a Custom Trigger?
    For example, my page has a few recordsets. Assume one of the recordsets
    tells me what state the current user lives in. $row_rsCurUsr['state']
    There is an Insert form on the page with a Custom Trigger (after)
    attached. I need the Custom Trigger to perform another action (insert,
    update, delete, whatever) but it needs to use the $row_rsCurUsr['state']
    value. How can I do this?
    I've tried something similar to:
    $triggerSql = "INSERT INTO anothertable (id, state) VALUES
    ({SESSION.kt_login_id},{rsCurUsr.state})";
    and
    $triggerSql = "INSERT INTO anothertable (id, state) VALUES
    (".$_SESSION['kt_login_id'].",".$row_rsCurUsr['state'].")";
    but neither seems to work.
    Alec
    Adobe Community Expert

    Ok. How about executing a SELECT inside a Custom Trigger and accessing
    the resulting rows to use in PHP code also in the trigger?
    Example - within the Custom Trigger execute:
    $sql="SELECT * FROM table";
    How do I execute it? With the regular DW code like:
    mysql_select_db($database_conWV, $conWV);
    $sql="SELECT * FROM table";
    $result = mysql_query($sql, $conWV) or die(mysql_error());
    $row_result = mysql_fetch_assoc($result);
    $totalRows_result = mysql_num_rows($result);
    or with some ADDT code like:
    $result = $tNG->connection->execute($sql);
    If I do the "ADDT" way, how do I access the rows?
    $result['column'] or something?
    Alec
    Adobe Community Expert

  • Custom Trigger Connection

    Hello All.
    How do I change the connection in a Custom Trigger?
    I want to update a table in a second database.
    Jan

    Jan,
    I'm pretty sure you can do this. You should be able to do something like this in the trigger:
    mysql_select_db($database_Connection_2, $Connection_2);
    $query_RecordsetUpdate = "UPDATE....";
    $RecordsetUpdate = mysql_query($query_RecordsetUpdate, $Connection_2) or die(mysql_error());
    This is just the basic code with no error handling, which you may want to add.
    $database_Connection_2 and $Connection_2 need to match the variable names located in your database connection file for Connection_2 located in the Connections folder of your site.
    I have never had to connect to a separate database, but this should work.
    Be sure to add this at the top:
    require_once('Connections/Connection_2.php');
    So that your php script has access to the information for Connection_2.
    Shane

  • Custom Trigger : how to setError Correctly

    Hello, i try to create a "AFTER" custom trigger for custom validation..
    for example:
    if($tNG->getColumnValue("data")>20){
        - do setError
        - rollback
    any idea how to accomplish this ?

    Hello viktor
    what is your data type? is integer? or your data type is Character and you want check data length?
    you can check data that user entered with form validation easily
    if you want check data length, use 'min char' and 'max char' field in form validation wizard else if your data type is integer, you can use 'Greater than' or 'Less than' fields in validation form wizard
    I hope you can solve your problem
    Regards,
    Hamid

  • Custom Trigger and error handling problem

    hi ! I'm creating a custom trigger in ASP
    <br />
    <br />all it do is to check the lenght of given string.
    <br />it has a logic , true or false operation.
    <br />I just want to display an error message !
    <br />
    <br />I try BEFORE or AFTER in trigger register, but still didn't work !
    <br />
    <br />but why it didn't work ?
    <br />
    <br />any ideas ?
    <br />
    <br /><%<br />'start Trigger_Custom trigger<br />Function Trigger_Custom (ByRef tNG)<br /><br /> xemployer = len(trim(tNG.getColumnValue("employer")))<br /> xemail = len(trim(tNG.getColumnValue("email")))<br /> xjob_position = len(trim(tNG.getColumnValue("job_position")))<br /> xeducation = len(trim(tNG.getColumnValue("education")))<br /> xreference = len(trim(tNG.getColumnValue("reference")))<br /> xage_max = len(trim(tNG.getColumnValue("age_max")))<br /> xgender = len(trim(tNG.getColumnValue("gender")))<br /> <br /> totallen = (xemployer + xemail + xjob_position + xeducation + xreference + xage_max + xgender)<br /><br /> if (totallen > 158) then<br /><br /> Set update_error = new tNG_error<br /> update_error.init "Your Data contain too much characters ! (max 158)", Array(), Array()<br /> Set Trigger_Custom = update_error<br /><br />  else<br /> Set Trigger_Custom = nothing<br />  end if<br /><br />Set Trigger_Custom = nothing<br />End Function<br />'end Trigger_Custom trigger<br />%>
    <br /><%<br />' Register triggers<br />ins_Job.registerTrigger Array("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Insert1")<br />ins_Job.registerTrigger Array("BEFORE", "Trigger_Default_FormValidation", 10, formValidation)<br />ins_Job.registerTrigger Array("END", "Trigger_Default_Redirect", 99, "../includes/nxt/back.asp")<br />ins_Job.registerTrigger Array("BEFORE", "Trigger_Custom", 50)<br />%>
    <br />
    <br /><%<br />' Register triggers<br />upd_Job.registerTrigger Array("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Update1")<br />upd_Job.registerTrigger Array("BEFORE", "Trigger_Default_FormValidation", 10, formValidation)<br />upd_Job.registerTrigger Array("END", "Trigger_Default_Redirect", 99, "../includes/nxt/back.asp")<br />upd_Job.registerTrigger Array("BEFORE", "Trigger_Custom", 50)<br />%>

    hello there, thanks for replying
    <br />i know what you mean, i see that the first time i submitted in to this forum.
    <br />
    <br />actually IT IS SEPARATED !
    <br />i just copy paste my code into this TextBOX, and that's whats happened
    <br />
    <br />ok i copy paste my code again, but this time i use ENTER to seperated those lines.
    <br />
    <br /><% 'start Trigger_Custom trigger <br /><br />Function Trigger_Custom (ByRef tNG) <br /><br />xemployer = len(trim(tNG.getColumnValue("employer"))) <br />xemail = len(trim(tNG.getColumnValue("email"))) <br />xjob_position = len(trim(tNG.getColumnValue("job_position"))) <br />xeducation = len(trim(tNG.getColumnValue("education"))) <br />xreference = len(trim(tNG.getColumnValue("reference"))) <br />xage_max = len(trim(tNG.getColumnValue("age_max"))) <br />xgender = len(trim(tNG.getColumnValue("gender"))) <br /><br />totallen = (xemployer + xemail + xjob_position + xeducation + xreference + xage_max + xgender) <br /><br />if (totallen > 158) then <br /><br />Set update_error = new tNG_error <br />update_error.init "Your Data contain too much characters ! (max 158)", Array(), Array() <br />Set Trigger_Custom = update_error <br /><br />else <br />Set Trigger_Custom = nothing <br />end if <br /><br />Set Trigger_Custom = nothing <br />End Function <br />'end Trigger_Custom trigger <br />%>
    <br />
    <br /><% ' Register triggers <br /><br />ins_Job.registerTrigger Array("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Insert1") ins_Job.registerTrigger Array("BEFORE", "Trigger_Default_FormValidation", 10, formValidation) ins_Job.registerTrigger Array("END", "Trigger_Default_Redirect", 99, "../includes/nxt/back.asp") ins_Job.registerTrigger Array("BEFORE", "Trigger_Custom", 50) <br /><br />%>
    <br />
    <br /><% ' Register triggers <br /><br />upd_Job.registerTrigger Array("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Update1") upd_Job.registerTrigger Array("BEFORE", "Trigger_Default_FormValidation", 10, formValidation) upd_Job.registerTrigger Array("END", "Trigger_Default_Redirect", 99, "../includes/nxt/back.asp") upd_Job.registerTrigger Array("BEFORE", "Trigger_Custom", 50) <br /><br />%>
    <br />
    <br />there it is My Actual Code looks like.
    <br />
    <br />again, thanks for replying

  • Custom Trigger Help

    Can i make a custom trigger that searches for all " " and replaces them with a zero (0). I have the update form feeding in to a form that will show errors if there is a zero in it, because it is using math.
    I have about 40 fields in a form and it can't have any blanks in it.
    Thanks in advance.
    Amy

    Ah I think I understand,
    <br />
    <br />---------
    <br /><% 'start Trigger_Custom trigger Function Trigger_Custom (ByRef tNG)<br /><br />Set Trigger_Custom = nothing<br />End Function<br />'end Trigger_Custom trigger<br />%>
    <br />---------
    <br />
    <br />sorry for still struggling a little, but as I´m a PHP guy, this code doesn´t say much to me - however this:
    <br />
    <br />$tNG-&gt;setColumnValue("column_name", your string replacement code here, $tNG-&gt;getColumnValue("column_name")));
    <br />
    <br />...would have to be copied and pasted into the "enter custom trigger code" text field of ADDT´s "Custom Trigger" behaviour, and then assumingly modified by replacing my "your string replacement code" dummy placeholder with your ASP code which would do that string replacement.
    <br />
    <br />Does this answer your question ?
    <br />
    <br />-------
    <br />As far as do you ever stop working, I mean you seem to be online all the time. Do you ever get a break?
    <br />-------
    <br />
    <br />Usually I´d take a nap now, because it´s 1:35 AM here in Germany -- but I´m a late riser anyway and still have some work to do, so I don´t care ;-)
    <br />
    <br />Cheers
    <br />Günter Schenk
    <br />Adobe Community Expert, Dreamweaver

  • Custom Trigger on MTL_SYSTEM_ITEMS_B firing twice from Item form

    Hi ,
    I wrote a custom trigger on MTL_SYSTEM_ITEMS_B for after update. When ever an item is update from the seeded Items Form, it is firing twice. When I do it from back end it is working fine. Any insights or fixes into issue will be much appreciated.
    Thanks.

    Obtain FRD log file to find out why the trigger is fired twice.
    R12: Forms Runtime Diagnostics (FRD), Tracing And Logging For Forms In Oracle Applications (Doc ID 438652.1)
    Steps To Take FRD Trace in 11.5.10 & R12 (Doc ID 867943.1)
    R12: How To Create An FRD (Forms Runtime Diagnostic) Log Using Forms 10g (Doc ID 445166.1)
    How To Collect And Use Forms Trace (FRD) in Oracle Applications Release 12 (Doc ID 373548.1)
    Thanks,
    Hussein

  • Custom Trigger after Delete not  executing

    I have a custom trigger that I want to execute after a user performs a DELETE Transaction. Here is the PHP code:
    $DB_SERVER = "somewhere.com";
    // username:
    $DB_USER = "me";
    // password:
    $DB_PASS = "password";
    // database name:
    $DB_NAME = "training";
    $sessid=$_GET['sessid'];
    $userid=$_GET['id'];
    mysql_connect($DB_SERVER, $DB_USER, $DB_PASS);
        mysql_select_db($DB_NAME);
    $sql = "DELETE FROM tms_registered where eid ='$sessid' AND uid = '$userid'";
    $sql2 = "SELECT COUNT(*) AS max FROM tms_registered WHERE eid ='$sessid'";
    $result = mysql_query( $sql2 )
            or die ( 'Unable to execute query.' );
    $max_value = mysql_result($result, $i, "max");
    $sql3 = "UPDATE tms SET cur_reg='$max_value' WHERE tmid='$sessid'";
    I have also written the trigger by declaring the variables at the top of the PHP script page and then use 'global': at the begining of the trigger:
    global $DB_SERVER, $DB_USER, $DB_PASS, $DB_NAME, $sessid, $userid;
    The trigger does not execute after the DELETE transaction. What am I doing wrong?
    TIA

    Dear Karthi & Santosh,
    Thanks for your prompt replies.
    I am already maintaining following detail in OPJF
    01     5     S     1     Production     4     Released (general)
    Dear Santosh,
    I have changed the Syst.Sts from REL to CNF and save it. Deleted the trigger point assignment and reassign it. Create new Production Order. But Now
    Trigger is not executing at the time of order creation as well as Order confirmation (CO11N).
    There are following functions available in the system:
    Release succeeding operations
    Release up to stop indicator
    Release preceeding operations
    Create order with reference
    Insert reference operation set
    Start workflow task
    and i am using "Create order with reference" is it OK, or I have to use another function.
    Please suggest.
    With thanks,
    DSC

  • Guidence needed for Custom Trigger

    I have an ADDT Dynamic List and Form. (I love these things!) When I add/edit/delete a record using the form, I would like to update another (unrelated) database table and would like to know if that is possible using a Custom Trigger. I have read Ch. 16 of the ADDT Help manual and am a bit lost with the jargon  as I am not a power-php person.
    Here is what I need to do: Select from a different table a record by a value in a field and update another field in it. Then return to the Dynamic List page.
    The other solution which is an easy cop-out is once the transactions have been completed on the Form page, go to an intermediate PHP script that carries out the Select and Update process then return to the Dynamic List page.
    Any suggestions/comments welcome. Thanks.

    Hi Albert. Thanks for pointing out yet another hidden gem in ADDT.
    The help for this SB is a little vague.
    As a result I have no idea on how this will help.
    Here is the situation in a bit more detail.
    Lets say the Dynamic Form is used to enter News items. These are kept in a table for News Items. These Items are presented on a News page in the site. This page gets its content from the Pages table as well as the News table.
    There is no relationship between the two tables. However, the Pages table includes a field called updated which contains the date the "page" was last updated. Each News item also has an Updated field, but when the news item is updated I also want to update the updated field for the News Page.
    My first thought was to add a custom trigger to the News Items Form page that could grab the News Page record from the Pages table and update its updated field.
    So the Pages Table looks like this:
    Table name:pages_pag
    Columns:
    id_pag  - the primary key
    idpag_pag - the self foreign key
    menulabel_pag - the menu label
    template_pag - the template file used to display the page.
    pageheading_pag - the page heading
    content_pag - the page content
    updated_pag - the date created/updated
    etc etc......
    The News Table looks like this:
    Table name: news_nws
    Columns:
    id_nws
    heading_nws
    summary_nws
    details_nws
    updated_nws
    etc...
    Hope this explains what I am trying to achieve.

Maybe you are looking for

  • My canon MP600 will not print due to error message U052

    Error message - The type of print head is incorrect - install the correct print head. I have not changed the print head - all lights are solid red with the exception of M and C. When you remove them and reinstall the lights are solid red. I have remo

  • Windows 7 -Delay after right click and installation query

    Hi, I have freshly clean installed Windows 7 home premium x64 in my HP laptop which was previously running the x86 version of the same factory installed OS.I have performed a usb install.Now,I have two queries- 1.During the installation,when the mach

  • Photoshop thumbnails and CS4

    I have been installing PS7 to get PSD thumbnails to show their image (rather than a generic icon) in Windows. I understand this facility was dropped in CS. Does anyone know if this has been restored in CS4 or will I have to continue to install PS7 be

  • Mp4 video isn't burning in my idvd project

    I've been trying to burn a mp4 vid into my idvd project, which is fine.  But after I begin to burn the finished product, "along with the slideshow which loads up just fine" the whole process comes to a stop when iDVD  get to loading video part it.  t

  • Help interpreting Panic Report

    I think I know what is causing these crashes that I am getting, just based on my own observation of certain patterns that seem to cause the crashes. However, the panic reports are gibberish to me, so I was hoping that someone could interpret this lat