Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Thanks for reply its working for me.But When i click on create page it is showing "null".Instead of i need to show new ponum in create page. Commented Nov 8, 2011 at 10:02
  • @SathishKumar Ahhh... the id isn't created until it is first saved... You could change it to: id ? String.format( "%04d", id ) : 'Not saved' to show something to the user before it is saved, or use something like a sequence if your (database supports them). However this would mean that clicking create page would create lots of new ponums which might never make it into the database Commented Nov 8, 2011 at 10:07