locked
'View' columns displaying incorrectly RRS feed

  • Question

  • Hi all,

    I have just added a couple of new columns to a Campaign view within CRM.  These are currency values that are calculated using JavaScript within each individual Campaign.  For some reason the view displays totally different values than those displayed when on the forms!  For instance the first Campaign listed in the view has values of: £30, £10, and -£50.  In the form the values are £100, £10, and -£90.  I have literally no idea where these values are coming from!  Any ideas? 

    Thanks.

    Monday, November 5, 2012 2:12 PM

Answers

All replies

  • Are you sure you have added correct field in crm view ??

    Contact Me
    Follow me on Twitter
    Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.


    Monday, November 5, 2012 2:15 PM
    Moderator
  • 100% certain.  The values displayed are not anywhere within the form.  I'm thinking it must be linked to the fact that the values are calculated using JavaScript but I don't know why it's doing this...
    Monday, November 5, 2012 2:19 PM
  • Hi,

    I think that in your form you are doing some calculation in the OnLoad event and these calculations manipulate the values dynamically when you load the form. So you see other values in the form itself than in the grid because in the grid there is no JavaScript to make the calculations.

    Could this be the issue here?

    If you want to circumvent this inconsistency you will have to tranfer your calculation to either a plugin or a workflow, so that the values do not get generated dynamically, but are saved during the creation or the update of the records.

    Greetings,

    Pavlos


    Please mark this reply as an answer and vote it as helpful if it helps you find a resolution to your problem.
    View my latest gallery contribution here.
    Visit my blog here.


    • Edited by Pavlos Panagiotidis Monday, November 5, 2012 2:24 PM
    • Marked as answer by RoarCRM Monday, November 5, 2012 2:25 PM
    • Unmarked as answer by RoarCRM Wednesday, November 7, 2012 4:05 PM
    • Proposed as answer by Pavlos Panagiotidis Wednesday, November 7, 2012 5:12 PM
    Monday, November 5, 2012 2:22 PM
  • Doh!  You are correct, how silly!

    Thanks.

    Monday, November 5, 2012 2:25 PM
  • Hi again,

    Another quick question.  When I perform a calculation in the OnLoad event that sums two fields and enters the value into another field, why are these values not actually saved when I save and close?  If I set up a JS alert that runs as soon as the form is opened it always displays the values that were initially entered no matter how much I've changed them?  It's as if it never changes the initial values that were entered, it just makes them appear updated?

    Thanks

    Wednesday, November 7, 2012 4:10 PM
  • Hi,

    you have to setsubmitmode "always" to that field.

    link to refer:http://sliong.wordpress.com/2012/06/06/crm-2011-always-submit-attribute-using-javascript-setsubmitmode/

    http://madcomputerist.blogspot.in/2012/03/forcesubmit-vs-setsubmitmode-in-crm.html

    this will definitely work for u.

    (mark as answer and vote as helpful)

    Thanks,

    SASANK K

    • Marked as answer by RoarCRM Wednesday, November 7, 2012 5:01 PM
    Wednesday, November 7, 2012 4:36 PM
  • Great stuff! Thanks!

    Wednesday, November 7, 2012 5:01 PM