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

Retrieving values for all elements having used a supply function

Can someone advise on how do I retrieve all elements populated into the nodes and attributes at runtime?

The structure of my context is

PartNumbers (singleton node, with cardinality 0..n)

--PartNum

Headers (singleton node, with a supply function)

--HeaderNum

Items (singleton node, with a supply function)

--ItemNum

Value node ‘PartNumbers’ is a parent node of ‘Headers’, which again is the parent node of ‘Items’.

Each node has an associated value attribute as a num (PartNum, HeaderNum, and ItemNum)

The relationship between these nodes is like a single PartNum has multiple HeaderNums, and each HeaderNum further has multiple ItemNums.

For e.g.

PartNum1

Header1

Item1

Item2

Header2

Item1

Item2

In order to establish the relationship between the dependent and the independent nodes, I am implementing a supply function for the two dependent nodes (Headers, and Items).

I have got this relationship working and displaying in separate views so far, but I need to have all the PartNumbers, the associated Headers and the Items to be written to a file.

Having used supply functions with a singleton node the content of the node elements (Headers and Items) changes each time the lead selection of the parent node (PartNumbers) changes and as a consequence, I can’t get values of all the elements.

Can someone please help?

Many Thanks,

Vicky

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 27, 2005 at 10:02 AM

    Hi Vicky,

    As you said, since you have declared the inner nodes as singleton, only one instance of those will exist. Each time the parent element gets changed, the supply function will be called and the innernodes will be overwritten.

    If you need to get all the generated values of the innernodes, you either need to declare the nodes as non-singleton or go for some workaround method (like creating another non-singleton structure and creating a new element each time the lead selection changes). Please update us if yu get some other solution.

    Best Regards,

    Nibu.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 27, 2005 at 10:42 AM

    Hi Vicky

    Make the inner nodes as non singleton and use calculated attribute instead of Supply function.

    Regards

    NagaKishore

    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.