Hi Andrea,
Can you send the nodes and edges files used to create the graph?
-Alexei


Director of Web Development - Farallon Geographics, Inc. - 971.227.3173

On Fri, May 13, 2016 at 8:20 AM, <[email protected]> wrote:

> Adam,
>
> No, the two E55s are not contained in those E3 branches, but both E55s
>  and E3s are all children of the mergenode CONDITION_STATE.E3. Is this
> perhaps the cause of the problem? But I should note that
> DISTURBANCE_STATE.E3 does not cause any problems, only THREAT_STATE.E3 does.
>
> Best,
>
> andrea
>
>
> On Tuesday, May 10, 2016 at 8:34:01 PM UTC+3, Alexei Peters wrote:
>>
>> Hi All,
>> I just recently came across a Google Chrome extension that can aid in
>> debugging your knockout based forms.
>>
>>
>> https://chrome.google.com/webstore/detail/knockoutjs-context-debugg/oddcpmchholgcjgjdnfjmildmlielhof?hl=en
>>
>> The issue you're having Andrea does sound like it might be related to an
>> improperly formed graph structure like Adam suggested.
>>
>> Hope this helps,
>> Alexei
>>
>>
>> Director of Web Development - Farallon Geographics, Inc. - 971.227.3173
>>
>> On Mon, May 9, 2016 at 7:06 AM, Adam Cox <[email protected]> wrote:
>>
>>> Hi Andrea,
>>>
>>> I've been doing a lot of work with forms, and definitely agree that
>>> these issues are hard to debug. Remember that there are three places you
>>> need to look to fix issues with forms.  In this case, the meaurement.htm,
>>> measurement.js, and forms.py files.  Too often I found that a
>>> complicated-looking error came down to a misnamed node somewhere along the
>>> way, so keep that in mind.  Also, if you don't already have it open, be
>>> sure to open dev tools and read any errors that come out in the console.
>>> Usually these are helpful.
>>>
>>> At any rate, the behavior you see may be only tangentially related to
>>> the real issue.  What you're describing sounds like you may be trying to
>>> use a branching structure that is problematic.  Are either of the E55 nodes
>>> contained in the E3 branches?  You should not have a section that holds the
>>> top part of the branch at the same time as another section has a child
>>> entity of the same branch...
>>>
>>> Adam
>>>
>>> On Sunday, May 8, 2016 at 1:36:50 PM UTC-6, [email protected] wrote:
>>>>
>>>> Hello All,
>>>>
>>>> I am experiencing an issue with branch-list.js that is a bit difficult
>>>> to pin down. On my measurement form (see attached measurement.js), and only
>>>> on that one as far as I can see, it would appear that, after creating 4
>>>> branches of THREAT_STATE.E3, branch-list.js begins to duplicate some of
>>>> them. If I attempt to delete one of the duplicated branches, another one
>>>> gets duplicated. I should add that this problem does not affect the other
>>>> main mergenode, DISTURBANCE_STATE.E3, which contains many more child nodes
>>>> than THREAT_STATE.E3.
>>>>
>>>> I am not too familiar with Knockout JS and find it a bit hard to debug
>>>> those classes. Can you help?
>>>>
>>>> Thanks,
>>>>
>>>> Andrea
>>>>
>>>>  define(['jquery', 'underscore', 'knockout-mapping',
>>>> 'views/forms/base', 'views/forms/sections/branch-list'], function ($, _,
>>>> koMapping, BaseForm, BranchList) {
>>>>     return BaseForm.extend({
>>>>         initialize: function() {
>>>>             BaseForm.prototype.initialize.apply(this);
>>>>
>>>>             var date_picker =
>>>> $('.datetimepicker').datetimepicker({pickTime: false});
>>>>             date_picker.on('dp.change', function(evt){
>>>>                 $(this).find('input').trigger('change');
>>>>             });
>>>>
>>>>             this.addBranchList(new BranchList({
>>>>                 el: this.$el.find('#threat-state-section')[0],
>>>>                 data: this.data,
>>>>                 dataKey: 'THREAT_STATE.E3',
>>>>                 validateBranch: function (nodes) {
>>>>                     return true;
>>>>                     return this.validateHasValues(nodes);
>>>>                 }
>>>>             }));
>>>>
>>>>             this.addBranchList(new BranchList({
>>>>                 el: this.$el.find('#disturbance-state-section')[0],
>>>>                 data: this.data,
>>>>                 dataKey: 'DISTURBANCE_STATE.E3',
>>>>                 validateBranch: function (nodes) {
>>>>                     return true;
>>>>                     return this.validateHasValues(nodes);
>>>>                 }
>>>>             }));
>>>>
>>>>
>>>>             this.addBranchList(new BranchList({
>>>>                 el: this.$el.find('#condition-type-section')[0],
>>>>                 data: this.data,
>>>>                 dataKey: 'CONDITION_TYPE.E55',
>>>>                 validateBranch: function (nodes) {
>>>>                     return true;
>>>>                     return this.validateHasValues(nodes);
>>>>                 }
>>>>             }));
>>>>
>>>>             this.addBranchList(new BranchList({
>>>>                 el: this.$el.find('#disturbance-extent-section')[0],
>>>>                 data: this.data,
>>>>                 dataKey: 'DISTURBANCE_EXTENT_TYPE.E55',
>>>>                 validateBranch: function (nodes) {
>>>>                     return true;
>>>>                     return this.validateHasValues(nodes);
>>>>                 }
>>>>             }));
>>>>         }
>>>>     });
>>>> });
>>>>
>>>> --
>>> -- To post, send email to [email protected]. To unsubscribe,
>>> send email to [email protected]. For more information,
>>> visit https://groups.google.com/d/forum/archesproject?hl=en
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "Arches Project" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
> -- To post, send email to [email protected]. To unsubscribe,
> send email to [email protected]. For more
> information, visit https://groups.google.com/d/forum/archesproject?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Arches Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- To post, send email to [email protected]. To unsubscribe, send 
email to [email protected]. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to