Skip to Content

Using Input Fields in simple WebDypro


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.



Add comment
10|10000 characters needed characters exceeded

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.



    Add comment
    10|10000 characters needed characters exceeded