Search these areas:
Help
Support Forums
Product Info



-Introduction
-DataWeb: What's New
-Creating an Application
-The DataWeb Designer
-Application Management
-Data Tables
-Data Tables
-Views
-Templates
-Components
-Data Analysis
-Members
-Security
-Importing
-Exporting
-FTP
-JavaScript
-Object Model
-Full-Text Search
-Domain and Email Hosting
-HotBlock Modules
-Account Management
-Glossary
-New Responsive UI Module





DataWeb Help
Support Forums
Tutorial
Script Library
Knowledge Base

Home > Support

KnowledgeBase


How To: Access the RowId for a newly inserted record from within the view source
Article TypeHow To
TitleAccess the RowId for a newly inserted record from within the view source
<p>Within a view that permits inserting a new record, you may want to know the
RowId of the newly inserted record. For example, if you want to display the
newly inserted record in update mode immediately after it is submitted, you
might set the <b>redir_insert</b> attribute of the data region to display the
view in update mode, as follows:</p>

<p>redir_insert=&quot;?_mode=update"</p>

<p>After the record is inserted, the view is displayed in update mode, but the
record displayed is the first record in the table, not the newly inserted
record. To display the newly inserted record, you must specify a filter argument
including the RowId, and the value of the RowId as <b>##rowid##</b>, as follows. Note
that the RowId argument to the URL is case-sensitive and must be specified as <b>##rowid##</b>.&nbsp;</p>

<p>redir_insert=&quot;?_mode=update&amp;amp;RowId=##rowid##"</p>
Last ReviewedFebruary 20, 2015 14:09:23

  
Affiliate | Partner | Terms of Use | Privacy Policy | Contact Us | Pricing | Bring DataWeb In-House    
DataWeb, 720 North 10th Street, A #145, Renton, Washington 98057 *425-583-5970* Fax 484-770-4706* Email Us