Showing results for 
Search instead for 
Do you mean 
Community Home Request Access Read Blogs Share Your Ideas Search Community View My Settings
Reply
Highlighted
Tuned Listener
Posts: 26
Registered: ‎06-28-2010

Binding Data Elements in a Dialog Workspace

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!

 

-Matthew-

Highlighted
Tuned Listener
Posts: 26
Registered: ‎06-28-2010

Re: Binding Data Elements in a Dialog Workspace

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!

Highlighted
Tuned Listener
Posts: 26
Registered: ‎06-28-2010

Re: Binding Data Elements in a Dialog Workspace

Also, if you want to bind to the current entity id you can also bind to the MainEntity.Id and that will give you whatever the ID of the current page is.