Auto enter contacts in DayBack

General support questions.
Posts: 4
Joined: Tue Jan 19, 2016 2:26 am
PostPosted: Tue Jan 19, 2016 6:52 am
Guys any tips how to implement auto-enter conntacts, i would like to make auto enter contacts so that once i user wants to create an event in the event pop-over their name is alredy there or their account name is there but if they want to put some other contact they still can i dont want to lock them out of puting in events for someone else, Tnx in advance for help
SeedCode Staff
SeedCode Staff
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am
PostPosted: Tue Jan 19, 2016 7:59 am
If the contact is the user making the entry, that sounds more like the "resource" me: that way each of your users gets their own column on the resource view and "contact" can be reserved for who you user is meeting with.

But, you can do it either way. I think the way I'd tackle this is with a new auto-enter field that records the created-by account name of the user. Then, in the script "Create Edit Delete Event ( SourceNo, Operation ) { Hide, DateStart , DateEnd , TimeStart ... }" where it starts working with the contact id in line 170 I'd add a branch to say of $sc_ContactID IS empty and your contact ID field is also empty, the set the contact ID to the ID matching the name of the user recorded in your new created-by account name field.

I added the highlighted lines below. Note that it's just a case( ) statement being used to map account names to contact IDs and that we're just using the actual field names in your table (sample events::id_contact) instead of SetFieldByName: once DayBack is entered into your file you don't need to keep up the "abstraction" that makes the calendar so easy to integrate. You don't need to integrate it any more. Note that if you have multiple sources you'll either need to keep using the abstracted SetFieldByName or add an additional test to the Else IF statement to see if $sc_SourceNo = 1

scriptelse.png
scriptelse.png (229.28 KiB) Viewed 13299 times

=)

Hope that helps.
John Sindelar
SeedCode
Posts: 4
Joined: Tue Jan 19, 2016 2:26 am
PostPosted: Tue Jan 19, 2016 8:10 am
ill try this and see if it works Thank you for the quick replay if doesn't work ill try to be more on the point and ask for one more tip in the same post ty for help and sorry for bothering
SeedCode Staff
SeedCode Staff
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am
PostPosted: Tue Jan 19, 2016 8:11 am
No bother =)
John Sindelar
SeedCode

Return to General Support

Who is online

Users browsing this forum: No registered users and 2 guests

cron
(855) SEEDCODE
[email protected]
Follow us: