Display ID on Form???

  • 18 August 2014
  • 2 replies
  • 13 views

Userlevel 3
Badge +16

Daft one this, but when I execute the SAVE method I want ro display the ID of the Record on the form, how do i do this?

 

The ID field in the Smartobject is using AutoNumber. I then try to show the ID on the form but its blank when i attempt a LOAD method.

Instead of using the Record, the form asks me for the ID and then it displays the record.

 

I just want the ID of the Record I just submited to appear on the form when I used the SAVE method . Any ideas?

 

Thanks in advance


2 replies

Badge +10

That should be qute straight forward. If the ID is a primary key in the database, when you generate the smartobject from that table the create method should return the ID as a return parameter. So after the in[put mapping screen where you create the record, the next screen should be output mappings. Just drag the ID from the context menu o the right hand side to the control on the form. You should now see the ID. Please let me know how you are creating the smartobject, so I can tel you exactly how to do this.

 

Userlevel 3
Badge +16

Thanks, working now! Hadn't used the ouput part to fill in the ID.

Reply