Skip to Content

Using Input Fields in simple WebDypro

Hi,

I'm using a simple WebDypro for data input. I had the problem that my field were not open for input. I saw it on the screen but wasn't able to enter any data. But I still had an simple application were the input worked fine. After comparing these to applications, I found that the difference is in the definition of the context. The version that's working the input field is bind to a field from the context that's directly under the root of the context. In the version that's not working I used a field that's under a value node in the context. After switching to a field that's in the root of the context, I was able to enter the field. Using fields from a model makes it impossible to use only fields in the root of the context.

Is the described problem a bug, or do I have to initialize anything for using structured contexts.

Regards,

Dirk

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 Dec 31, 2003 at 10:39 AM

    Hi Dirk,

    value attributes in the root node of a context are always created automatically. Attributes in nodes further down the hierarchy will not be created automatically if the cardinality of the node isn't 1:1 or 1:n. Switch the cardinality of the corresponding nodes to 1:x or create an element for example in wdDoInit() by using wdContext.nodeXXX.createXXXElement() and then bind it by using wdContext.nodeXXX.bind(element) or add it by using wdContext.nodeXXX.addElement(element) respectively.

    Regards

    Stefan

    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.