on 08-29-2011 1:46 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.