Sage CRM

 View Only
Expand all | Collapse all

I have a fairly modified customer on Sage CRM 7.0i

  • 1.  I have a fairly modified customer on Sage CRM 7.0i

    Posted 03-13-2014 09:42
    I have a fairly modified customer on Sage CRM 7.0i. Lots of workflows in place, lots of field level scripting, etc. On the Document entry screen we're defaulting many fields based on various criteria. I can't seem to get the document owner field to let me override the user with a different user via a create script. Anybody know if there is a trick to this? (@PeterWolf ?)


  • 2.  RE: I have a fairly modified customer on Sage CRM 7.0i

    Posted 03-13-2014 09:54
    Can you post your create script? I can send it to the team for review.


  • 3.  RE: I have a fairly modified customer on Sage CRM 7.0i

    Posted 03-13-2014 10:33
    Thanks Peter, I'll grab a copy of the latest version, but we've stripped it down to nothing more than: Default Value = ##; (## is user id) ReadOnly = True; or Default Value = ""John Smith""; ReadOnly = True; Tried with and without the read only line. That helped on some of our other fields but the owner field not working the same.


  • 4.  RE: I have a fairly modified customer on Sage CRM 7.0i

    Posted 03-13-2014 10:43
    If we could see the exact code, that would be best. From the above ""Default Value"" s/b ""DefaultValue"" - I'm guessing it's correct in the true tablescript.


  • 5.  RE: I have a fairly modified customer on Sage CRM 7.0i

    Posted 03-13-2014 11:29
    Yeah that was just my typo. I'm working on this with someone else, he has a copy of their CRM on his system and he left. He'll send it to me when he gets where he's going. Thanks.


  • 6.  RE: I have a fairly modified customer on Sage CRM 7.0i

    Posted 03-13-2014 11:32
    I'm working on this with someone else"" ... wow ... that hurts man. That really hurts. Either way - post the code and let's take a look at it. My team isn't aware of any limitations on this that should be preventing you from changing the owner.


  • 7.  RE: I have a fairly modified customer on Sage CRM 7.0i

    Posted 03-13-2014 11:38
    Dude...I mean Jim my partner here at neo3. Not another var, relax! When it get's really hairy, you'll be the first one in on it.


  • 8.  RE: I have a fairly modified customer on Sage CRM 7.0i

    Posted 03-13-2014 12:40
      |   view attached
    Here's the latest attempt: if(CurrentUser.user_primarychannelid=='31') { DefaultValue='175'; ReadOnly='True'; }


  • 9.  RE: I have a fairly modified customer on Sage CRM 7.0i

    Posted 03-13-2014 13:12
    Whew ... I had just started sobbing in my coffee when I read that last message. ;) I sent the code to the team - let's see what they come back with.


  • 10.  RE: I have a fairly modified customer on Sage CRM 7.0i

    Posted 03-13-2014 13:15
    From the team: Are they trying to add a new Document or edit an existing? Does the field appear as Read Only? Are they sure the contents of the IF statement are evaluating as true?


  • 11.  RE: I have a fairly modified customer on Sage CRM 7.0i

    Posted 03-13-2014 13:33
    New Document. yes, the field appears as read only(but we only added that after we found a post on the Sage CRM Community.) The IF is evaluating as true. We have the exact same IF on about 5 other fields on the new document screen and they are all defaulting as we want them too. And I'm sorry about the tears in the coffee...


  • 12.  RE: I have a fairly modified customer on Sage CRM 7.0i

    Posted 03-14-2014 10:18
    @PeterWolf --bump-- any thing from the team?


  • 13.  RE: I have a fairly modified customer on Sage CRM 7.0i

    Posted 03-14-2014 10:31
    Did you try removing the Default Value on the field set up? 1. Go to Admin > Customization : Documents. 2. Click the Owner field. 3. Under the Default drop-down, select ""No Default"".


  • 14.  RE: I have a fairly modified customer on Sage CRM 7.0i

    Posted 03-14-2014 11:36
    Ah Ha! You're the man, thanks @PeterWolf . Now I've got to make sure all the scenarios where a new document gets created have ""coded"" defaults.


  • 15.  RE: I have a fairly modified customer on Sage CRM 7.0i

    Posted 03-14-2014 13:11
    Glad to help. The eware dll looks to field level defaults first and foremost over create script code with all entities.