Jump to content
Salesforce and other SMB Solutions are coming soon. ×

Create new portal record via script?


efilbert

Recommended Posts

I essentially want to know--if I open a new window where I have a portal on that new window with a drop-down menu field in the portal, how can I have that drop-down be a new record in the portal and not a previously created record in the portal?

 

 

More Details: Basically, I have a layout associated with the table "Person". I have a portal on that layout (a TO of the table "Types"). Each portal row has a field with an item that comes from a value list. In my previous version, the user could select an item via a drop-down and then hit a details button (also in the portal row) which would bring up a new layout and allow them to enter data into a record associated with a TO specific to that value list item. The problem is, they could then go back to my original layout and in the portal change the field via the drop-down again--BUT I would of course still have that TO associated with the previous value from the drop-down. So, instead of allowing the user to select via a drop-down, I've created a button adjacent to the portal that opens a new window. In that new window, I want the user to select from a drop-down the field value, hit a button to close that window, and then have the original layout (still open behind) refresh.

 

I tried initially having the new window be a layout of the portal table ("Types"). However, in that case, the portal was changing the portal record associated with the first record in my Person table, not the current Person record. So, I changed the layout of the small pop-up window to be that of the "Person" with the "Types" portal TO on it (essentially a duplicate layout of my original with no fields other than the drop-down field from the portal and the portal displaying only 1 row). However, I find "Go To Last Portal Row" doesn't get me a new portal record--it just gets me the last :) And if I follow it with "New Record/Request", I just get a new record in my Person table. So, how do I have a new record in that portal row awaiting me when I open my little window?

 

Any suggestions appreciated.

Link to comment
Share on other sites

Hi

How did you figure it out. I have the same problem

 

I go to the last record in the portal where I want to add the new info, then open a new window but it has selected the first record

 

Thanks

Mike

Link to comment
Share on other sites

Hi, I actually changed the way I was going about it. Instead of having the new window with the portal be a duplicate layout (with changes to the layout of course) of my original window, I went directly to a layout of the table associated with the portal and just created a new record via script. So, I didn't really solve what I has posted about it, but I came up with a solution that worked well for me.

Link to comment
Share on other sites



×
×
  • Create New...

Important Information

Terms of Use