Skip to Content
author's profile photo Former Member
Former Member

Traversing the context

Hi,

Looking for some information on traversing the view context.

Using a different version of the same example in one of my previous posts 😊

NodeA

-


NodeA1

********attribute1

********NodeA11

*************attribute2

The context structure described above is created at design time. I create and populate node elements from NodeA, at runtime.

Need code to access value of 'attribute1', and the value of selected element of NodeA11. NodeA11 can have multiple attributes, that is added at runtime.

Example of context at runtime is as follows

CommonFields

-


Field (node element)

*******name (attribute)

*******ValueSet (node element)

  • 3A (attribute)

  • 3B (..)

  • 3C (..)

If you get any headache solving this question, I apoligise upfront.

Thanks !

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on May 25, 2005 at 01:21 AM

    Hi Srikanth

    Check this post on the context serializer

    converting-context-tree-to-xml

    You can conditionalize some aspects of this code like checking for the attribute name against a defined string to derive the value for that particular attribute

    Regards

    Pran

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.