This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - How to get the value from the parent form to the relationship tab

Arasuser - Tuesday, July 21, 2009 10:54 PM:

 Hi ,

I need to take some value from the parent form and populate it in the relationship tab. I use the following code to get the value from the parent form and call this method on the grid event when creating a new row.

But i am getting the error "exception has been thrown by the target of an invocation" client side error.

Can anyone tell me what could be the problem?

Thanks

sri

 

 



Brian - Monday, July 27, 2009 7:55 PM:

The code you are using did not post to the forum so no one will be able to help you.

If you are still stuck please post the code.

Cheers,

Brian.



Arasuser - Monday, July 27, 2009 11:03 PM:

Hi Brian

Thanks for your query. I could able to fix it up on my own.

Thank you once again.

Srii

 



hiro - Thursday, August 27, 2009 11:31 PM:

Hi, I have a same stuck.

In OnChangeCell, I want to change a cell value of relationship grid row,

depending on a property value of parent form.

How to get the value from the parent form?

If possible, Let me know by a simple sample code. Please help me.



Brian - Thursday, September 3, 2009 12:53 AM:

 Hi Hiro,

You can get at the xml document (which has all of the data that is being displayed on the form) like this.

In your onChangeCell method

var itmCtx = parent.thisItem;   // This is the main xml document that belongs to the Item.

var propVal = itmCtx.getProperty("property_value_to_retrieve");  // get the Property value you want to do something with

alert(propVal);  // do something with the property value you have just retrieved.

 

Hope this helps.

Brian.

 



hiro - Friday, September 4, 2009 10:32 PM:

Hi brian

I can do that, perfect sample!!

thank you.

Best regards

hiro