You need to sign in to do that
Don't have an account?
sparky
s-control to trigger record creation
Hi, wondering if it's possible to create an s-control that:
* initiates creation of a record (let's say an Opportunity)
* sets the needed foreign keys
* sets the Record Type
* fills in certain fields in the form (amount and date, for example)
* leaves the user in Edit mode with option to complete/commit or cancel
If so, does anyone have an example they could point me to?
I've seen the technique where the record is created & committed via code, then pulled up in edit mode. But I'd prefer to give control back to the user before the rec is committed.
Sorry if this is old hat - a quick search of the forum didn't turn up the answer.
Thanks!
Matthew
* initiates creation of a record (let's say an Opportunity)
* sets the needed foreign keys
* sets the Record Type
* fills in certain fields in the form (amount and date, for example)
* leaves the user in Edit mode with option to complete/commit or cancel
If so, does anyone have an example they could point me to?
I've seen the technique where the record is created & committed via code, then pulled up in edit mode. But I'd prefer to give control back to the user before the rec is committed.
Sorry if this is old hat - a quick search of the forum didn't turn up the answer.
Thanks!
Matthew
I've probibly got it buried in my notes around here somewhere.
Thanks!
M.
Here's the code:
Code:
Message Edited by gokubi on 04-13-2006 02:53 PM
then go to the Forms tab and you will see all the name and value pairs that the form would like to have to work properly.
you then construct a URL with these ( all the ones you want) lumped together with "&"
so you end up with /003/e?name=value&name2=value&...
the recordtype id is just another name=value pair.
to get it to "save" , i think you just add "save=1" to the end.
hope this helps get you started.
M.
Ron - do you know if the save=1 attribute still works?
Thank you,
Brendan