Hello All,
I have a interface which contains form layout and i want to reuse only the contents of this interface as i can not use the forma layout in the new interface, please help me how to reuse the interface in newer interface.
Discussion posts and replies are publicly visible
I guess it depends on how much of the Form Layout you need to re-use. In your original layout you could encapsulate everything that is contained in the 'contents' attribute in its own rule. You could then re-use this. What would be missing would be the values of the other attributes:
label, instructions, buttons, validations, validationGroup, skipAutoFocus, showWhen
Hi Stewart, Thanks for replying, I have some text fields and one dropdown fields in contents that i would use in new interface, so are you saying to create new interface that should contain only text fields and drop down field?
Yes. Something like this:
a!formLayout( contents: rule!XXX_IF_contents( textField1: ri!textField1, textField2: ri!textField2, textField3: ri!textField3, dropDownValue: ri!droDownValue ) )
You can then re-use the rule!XXX_IF_contents() in the other form you mention.
Thanks Stewart, i got this