Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Urgent---How to get the List from the .meta file
annu1
Hi All,
I have a requirement that in Datacapture file has one dropdown list, which may contains Textarea , button, checkbox, radio button etc,once the user selected any option from drop down list then its read from meta file (xml file) and get the list of item from meta file and populate them into one Item fields in datacapture file.
Example: Code in cfg file
< item name="fieldstype" pathid="fieldstype"
< description Type of the field <
< Label > Type of the field < label >
select required="t”
< option label=" " value=" " selected="t" >
< option label="Text" value="Text" >
< option label="Text area" value="Text area" >
< option label="Checkbox" value="Checkbox" >
< option label="File" value="File" >
< option label="Password" value="Password" >
< option label="Radio Buttons" value="Radio Buttons" >
< option label="Select" value="Select" >
< option label="Multiple select" value="Multiple select" >
< option label="Calender" value="Calender" >
</select>
</item>
I need to call the validation.meta file contains the below code
< validations >
< validation >
< Element Types >
< Element Type > Button < Element Type >
< Validation name > ADD < /Validation name >
< Validation file > ADD.js < /Validation file >
< Input parameter >
< parameter name=”value”: “parameter no”=”1” >
< /Input parameter >
< Validation name >MInus < /Validation name >
< Validation file > MInus.js < /Validation file >
< Input parameter >
< parameter name=”value”: “parameter no”=”1” >
< /Input parameter >
< Validation name >DIVIDE < /Validation name >
< Validation file > DIVIDE.js < /Validation file >
< Input parameter >
< parameter name=”value”: “parameter no”=”1” >
< /Input parameter >
< /Element Type >
< Element Type > Textarea < Element Type >
< Validation name > numecic < /Validation name >
< Validation file > numecic.js < /Validation file >
< Input parameter >
< parameter name=”value”: “parameter no”=”1” >
< /Input parameter >
< /Element Type >
Same for other type of element(checkbox,radio button etc)
From this meta file I need to collect the validation names for the element type selected in Teamsite(Textarea,radio button or button etc) and need to populate the list of validation in form.
Exam: User selected the button as a element type then new field Validation Type should be populated with ADD,MINUS,DIVIDE.
Thanks in adavance
-Anu
Find more posts tagged with
Comments
Frederik
should be doable with FormAPI and a callServer()
annu1
I want to know one more thing.
I want that if in a validation.xml have two parameter
like:
< Input parameter >
< parameter name=”value”: “parameter no”=”1” >
< /Input parameter >
< Input parameter >
< parameter name=”value”: “parameter no”=”2” >
< /Input parameter >
then in DCR display two item for this input(This parameter is not fixed ,it may be 2 for one type, may be more then 2 for other type)so I add the Item dynamically in cfg file.
If possible then please provide sample code.
Thanks
Anu
nipper
No one is going to write this for you. You get paid for it we don't. What you are looking for has been done often but is not trivial.
If you do not know how to do it, tell your boss to bring someone in who does.
A simple call server example is in the manual. So are examples for adding to select lists, check boxes, etc.
Try reading those if you are going to do it yourself.