We have a custom section with a row that contains a Free Text - Multiple Line extended attribute. In the UI, when in edit, there's a icon that you click that adds a new row to the custom section. How do I programmatically add the custom section, a new row, and set the Free Text - Multiple Line extended attribute in code?
Edited by: Hai at Tyson on Dec 20, 2012 2:36 PM
Edited by: Hai at Tyson on Jan 14, 2013 9:32 AM
i'll try. when a trade spec is being workflowed we want to add warning messages, which prompts the user to verify data on the spec, to a custom section. we want to append to the custom section in a guard. the data we ask the user to verify is not wrong in a sense that it should stop the workflow, it's just different and we need the user to verify that data.
Edited by: Hai at Tyson on Jan 9, 2013 8:27 AM
1. Create a CS template as system reserved in ADMIN (Figure out its pkid, rows' and columns' pkid by code or from database).
2. Define a container used to keep all CS data objects which implements IExtendedAttributeSectionContainer and IExtendedAttributeRootDO.
3. Make sure the control container (anyone of the parent hierarchy including the Page) implements ITranslationCacheContainer.
4. Create an EASectionInstance control and make changes on it through an instance of the IExtendedAttributeSectionInstanceService.