Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AbandonRows #91

Open
1 task done
gprocino opened this issue Sep 13, 2024 · 4 comments
Open
1 task done

AbandonRows #91

gprocino opened this issue Sep 13, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@gprocino
Copy link

gprocino commented Sep 13, 2024

Check existing issues

Markdown file

AttributeAssistant.atbx/Abandon Rows (v3.3)

Description

hi,
I used Abandon Rows script for two features.
The attribute rules "Abandon Rows" on master feature (like device) doesnt work if the field (like lifestatuscycle=10) change from null value to number 10. Instead if the field value change from number X to 10 it works.
Another question is about Association table.
If I use "rim" prefix - in abanon rows - for class1 and class2 the system use the some association table for both classes? Do I need to change the prefix for each class when I call the setting script?

thank you

Comments (optional)

Work enviroment: Pro 3.3.1 - UN7 in FileGeodatabase
No response

@gprocino gprocino added the bug Something isn't working label Sep 13, 2024
@MikeMillerGIS
Copy link
Member

If I use "rim" prefix - in abanon rows - for class1 and class2 the system use the some association table for both classes? Do I need to change the prefix for each class when I call the setting script?

  • Yes, that is expected, if a class exist, it will use it.

Looking into the other issue

@MikeMillerGIS
Copy link
Member

Can you post this part of your script? Want to see what SQL you used:
image

@MikeMillerGIS
Copy link
Member

MikeMillerGIS commented Sep 13, 2024

Ok, need to think how to properly handle this generically, but for your implementation, you can make the fix by changing

 var a = `__oid__ = 1 AND NOT (${where_clause})`;

to changing to the field in the where clause.

 var a = `__oid__ = 1 AND (NOT (${where_clause}) or <FIELD> IS NULL)`;

To detect if a feature transitioned into the desired state, we not the sql statement, but this does not detect if a feature is null.

@MikeMillerGIS
Copy link
Member

The other option if you do not want to change the code, change your where_clause to include a AND FIELD is not Null. Since we not the whole this, that will check to see if the original feature was null and moved to a state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants