formview


how can i get last id inserted in formview


i have a form view after inserting record i want to know the last id of inserted record
You have to rely on your Datasource object.
If you're using an EntityDataSource for instance, it's pretty easy.
1
Catch the event
EntityDataSource1_Inserted(object sender, EntityDataSourceChangedEventArgs e)
2
There just Cast the entity that has been modified to your business entity.
Let's say your entity is of type Persons. Then you should have in C# :
var person = (Persons)(e.Entity);
Of course, your entity does have a primary Key. Should it be ID, then you just call
person.ID.
That's it.
Hope this helps, or at least, provides you with where you have to go next in solving your
issue.

Related Links

odoo: error creating new form view : Field(s) `arch` failed against a constraint: Invalid view definition
Modify OpenERP 6.1 product form view in web client
how can i get last id inserted in formview

Categories

HOME
notepad++
twitter-bootstrap-3
deep-learning
zend-framework
mstest
apiblueprint
solaris
package
access
visual-studio-emulator
regular-language
jtextpane
owin
fhir
plist
alamofire
favicon
scrolltop
mvc-mini-profiler
asp.net-mvc-viewmodel
enterprise-miner
microsoft-ocr
asciidoctor-pdf
poedit
libigl
roslyn
strongname
draft-js-plugins
xcode-ui-testing
oculus
datastax-enterprise-graph
sinch
twiml
testcomplete
send
recurring-events
complex-numbers
deltaspike
jmockit
jbutton
keras-layer
fossil
odroid
ods
metawidget
c9.io
doc
skylink
oracle-service-bus
android-checkbox
android-exoplayer
wc
clang++
textsum
openrasta
openblas
stdmap
headless
css-transforms
type-theory
shinobi
pocketsphinx-android
restore
choice
node-request
webjars
adafruit
android-dateutils
deep
data-protection
halcon
thread-sleep
exim4
toran-proxy
opl
android-launcher
alloy-ui
canvg
omnifaces
teamcity-9.1
user-permissions
rrule
iiop
sonarqube-5.0
personalization
rcaller
malformedurlexception
renderer
inputmismatchexception
ui-select2
scmmanager
onload-event
alice
asplinkbutton
joomla3.1
curb
panda3d
frameworkelementfactory
objectquery
maven-1
office-2007
eclipse-marketplace
pos-for-.net
burndowncharts
commercial-application

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App