Get Value of Custom Field into custom table

Aasim Khan asked on September 28, 2015 17:14


I have created one page type. In page type i created one custom control that is inherit custom fields form another custom table. So basically while i am creating any new document for same page type then custom fields of page type is showing along with custom fields of custom table(Custom control).

So my requirement is that there is one field into page type(i.e. item unit) when i select this field value so according that the custom fields value should be show and hide. I am not able to get the value of page type fields value(item unit) into field of custom table.

Can you please help me for that?

Regards, Aasim Afridi

Recent Answers

Brenden Kehren answered on September 28, 2015 17:25

Create a global event handler for that page type and create/update an existing custom table record based on that document ID or GUID. There are great examples in the API Examples code along with the global event handler page I referenced.

0 votesVote for this answer Mark as a Correct answer

Joshua Adams answered on September 28, 2015 19:27

I usually create a custom macro method, that way inside of my transformation I can reference it throught a simple call and use it over and over. I would recommend caching it though, because each time the macro is hit, you don't want to hit the database/server for each.

0 votesVote for this answer Mark as a Correct answer

Aasim Khan answered on September 30, 2015 15:03

Hi Adams,

I can get the value from the database if i use the macro. I am not able to get the current value what i selected in field. So i want to access that value as this.value but its not accessible.

Please help me.

Regards, Aasim Afridi

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.