cancel
Showing results for 
Search instead for 
Did you mean: 

Vendor - Add vendor Id info as User ID of Contact

Former Member
0 Kudos

Hi Expert,

i have the following requirement :

New button called u2018Add Dummy contactu2019will be available via toolbar, and when user click on this button, dummy contact date will be filled in automatically.

The mandatory data that should be filled in are the following:

First Name = Dummy

Last Name = Dummy

Email = noreplay@ xxxx.com

User ID: vendor number must appear automatically eg VEN-000078

I have created the scripting u2013 Toolbar for Contact object, and First Name, Last Name and Email are filled in automatically.

How I can fill in the vendor number like VEND-0078 in User ID field ?

Could you send me the scripting code for this?

Thanks & Regards,

Anacia

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Anacia

What is the critaria for selecting Vendor ID in UserID field? Have you created a vendor "VEN-000078" with a dummy contact ?Plz elaborate

Regards

Mudit Saini

Former Member
0 Kudos

Hi Mudit,

Thnaks for your reply.

steps to create dummy contact :

- i create vendor first - VEN-000078

- i click on the Add Contact button

- i click on the "Add Dummy contact" button , availaible under menu - toolbar ( button created via scripting toolbar)

- when i clikc on this button --> Vendor Id VEN-000078 should be fill in automatically in the Name field - user ID

any scripting code this ?

Thanks & Regads,

Anacia

Former Member
0 Kudos

Hi

Try the below mentioned code for scripting class - contact:

Vendor = doc.getParentIBean(); // To get to Vendor bean from contact

VendorID = Vendor.getExternalId(); // To get Vendor ID

doc.setName(VendorID); // Set VendorID as userID

Regards

Mudit Saini

Edited by: Mudit_UCB on Aug 31, 2011 12:35 PM

Former Member
0 Kudos

Hi Mudit_ICB,

Thanks a lot for your feedback.

It is working fine your scripting code and userd id is filled in automatically with external id value.

i need unique doc name vlaue and not external id.

i replaced it and it is working good.

Thanks & Regards,

Anacia