Is there any way to make constituent ID available in the extension form built for "Modeling and Propensity Attribute Edit Form 2"?

Is there any way to make constituent ID available in the extension form built for "Modeling and Propensity Attribute Edit Form 2"?. The edit form extension only has attribute category code as a parameter. It neither has the Record ID nor the Constituent ID. The edit button itself is on the constituent's wealth and rating page.

Comments

  • It looks like that edit form takes in "ATTRIBUTEKEY" as the context, which is a section field on the datalist.  Not super-helpful since the datalist is CLR, so you can't see where the ATTRIBUTEKEY comes from, but looking at the actual value that gets passed in to the edit data form it appears to be the ID for the entry in the attribute table.  In my case, I tested with an attribute that permitted more than one per record--so to get the constituent ID I'd need to go back to the database and retrieve the attribute row from the attribute table.  That row will contain the constituent the attribute relates to.  You'd need to do this with a custom-deployed stored procedure or some other means of calling back to the application server to translate the attribute ID to a constituent ID.  


    If the attribute is "one per record", I believe the ATTRIBUTEKEY would be the constituent's ID.  So you'd need to be able to handle both cases.

Categories