Forum Discussion
I am interested in knowing that do you update .mds file or .pjs file to enable or disable a script in project suite at runtime.
Please share.
Also as for XML then we are storing properties of each object as attributes in XML.
Then we query XML to get all attributes and there values for a particular object.
Code is something like :
Set xmlObject = Doc.selectSingleNode(
"//Page[@strObjUniq = '" & strPageName & "']/*[@strObjUniq = '" & strUniqueName & "']")
'@@ Move forward in case of xmlObject is null
on error resume next
'@@ fetch out the attributes name and values from xmlobject
'@@ check if the atribute is ID and the value is not null then initialize it into a dictionary
Set pn_attribs = xmlObject.attributes
For Each pnAttr in pn_attribs
if (pnAttr.name =
"id") AND Not((pnAttr.value) = "") Then
dictObjectRep.Add
"prop", pnAttr.name
dictObjectRep.Add
"value", pnAttr.value
set getObjrep = dictObjectRep
Exit for
'@@ check if the atribute is name and the value is not null then initialize it into a dictionary
Else if (pnAttr.name =
"name") AND Not((pnAttr.value) = "") Then
dictObjectRep.Add
"prop", pnAttr.name
dictObjectRep.Add
"value", pnAttr.value
set getObjrep = dictObjectRep
Exit for
End If
End if
Related Content
- 4 years ago
Recent Discussions
- 4 days ago
- 5 days ago