08-09-2010 01:58 PM
I am attempting to create new credit card inforomation for a contact. So I have a set up with a credit card tab on the main contact page. From within this credit card tab I have a button which pops up a new dialog workspace with all of the credit card information fields that the user must enter. The problem that I am having is that there is no way, according to my current knowledge, to retrieve the contact id from the current entity that I am calling it from. Does anyone have a way to either pass this data or retrieve it from another source? I have tried to bind it to lots of different things. The Credit card entity has the contact id as a property but it does not seem to have the knowledge to use it properly.
Thanks in advance and any help would be greatly appreciated!
08-12-2010 01:35 PM
Here is the code to get the current entity from a c# code snippet
this.contactID.Text = (string)this.EntityContext.EntityID;
In my case I was getting the contact ID and putting it into a text box.
Good luck to anyone who need this!