Pass parameter from .aspx to crm

Soru Pass parameter from .aspx to crm

  • 08 Temmuz 2008 Salı 20:04
     
     

    hi again,

     

    I have a dynamic iframe set up in crm that displays a .aspx page that has data i would like to bring into the from based off of this dynamic value.  Basically what i need is how to pull a specific attribute from the aspx to a field in crm.

     

    If anyone could help with this it would be greatly appreciated

    ~Gordon

Tüm Yanıtlar

  • 09 Temmuz 2008 Çarşamba 02:13
    Moderatör
     
     
    Just to clarify, why don't you just use attributes on the CRM form to accomplish this?
  • 09 Temmuz 2008 Çarşamba 08:08
    Moderatör
     
     

    From my understanding of what you're trying to do, you'll need some client script. The section 'Allow Access to Form Data' at http://msdn.microsoft.com/en-us/library/cc150846.aspx describes how to do this

  • 09 Temmuz 2008 Çarşamba 13:43
     
     

    Hello,

     

    Weel if you "pull" from the javascript event use this :

    document.frames['IFRAME_name'].document.forms['forms_name'].elements['element_name'].value

     

    If you "push" from the aspx page use this:

    parent.document.forms[0].all.crmFieldName.DataValue; (this will take the value of a field in the general tab '0')

     

    You should be abble to set and get the value you need,

     

    Hope it helps,

     

  • 17 Temmuz 2008 Perşembe 13:31
     
     

    i understand what i have to use im just having trouble writing the code itself.  i need to bring a value from the asp on the iframe to a field in crm.  i am trying to use something like this...

     

    fromIframe = parent.document.forms[0].all.name.DataValue;
    crmForm.all.new_fromASP.value = fromIframe;

     

    however im not 100% sure what to put in the first line for the items like document, name, and if thats what i need for form.

    this is what i have now

    fromIframe = document.all.IFRAME_ASP.document.forms_form.element_Name.value;

     

     

    im using crm3.0  any help would be greatly appreciated

    thank you

    ~gordon