Michael Miller<\/A> attributeassistant<\/P><\/P>私は Attribute Assistant を設定して、ある Intersecting Service Pipe から別の Intersecting Service Pipe に ServiceID(外部キー フィールド)をコピーしています。新しい Service Pipe フィーチャを配置するときは正しく動作しますが、既存の Service Pipe フィーチャを分割するときには結果が一貫しません。ServiceID フィールドにレコードにリンクしない値がある場合は正しく動作し、分割によって作成された新しい Service Pipe フィーチャに ServiceID をコピーします。しかし、ServiceID フィールドにレコードにリンクする値がある場合、その値はコピーされません。<\/P><\/P>AA コードでは、<\/P>sourceFeature.get_Value(sourceField) はリンクされたレコードがある場合は null を返しますが、レコードに一致しない ServiceID を入力した場合は ServiceID の値を返します。<\/P><\/P>これはバグでしょうか、それとも回避策をご存知の方はいらっしゃいますか?<\/P><\/P>正確な設定は以下の通りです:<\/P>
<\/P>
私は Attribute Assistant を設定して、ある Intersecting Service Pipe から別の Intersecting Service Pipe に ServiceID(外部キー フィールド)をコピーしています。新しい Service Pipe フィーチャを配置するときは正しく動作しますが、既存の Service Pipe フィーチャを分割するときには結果が一貫しません。ServiceID フィールドにレコードにリンクしない値がある場合は正しく動作し、分割によって作成された新しい Service Pipe フィーチャに ServiceID をコピーします。しかし、ServiceID フィールドにレコードにリンクする値がある場合、その値はコピーされません。<\/P>
AA コードでは、<\/P>
sourceFeature.get_Value(sourceField) はリンクされたレコードがある場合は null を返しますが、レコードに一致しない ServiceID を入力した場合は ServiceID の値を返します。<\/P>
これはバグでしょうか、それとも回避策をご存知の方はいらっしゃいますか?<\/P>
正確な設定は以下の通りです:<\/P>
Let me try to explain the data model a little better:
There is a table called P_ServicesSummary. This table gets a uniqueid called ServiceID generated by Attribute Assistant. There is a 1:M relationship between P_ServicesSummary (Origin) ServiceID (PK) to the feature class P_Service(Destination) ServiceID (FK).
If the P_Service feature that I am splitting has a ServiceID value that matches a ServiceID in the P_ServicesSummary, it will return null as the value; however, if I enter "dumb data" into the ServiceID field like "12345", so there isn't a matching record in P_ServicesSummary table. The get value will return the "12345" and copy it to the newly created service feature correctly.
I will send the log information shortly.
OK, so I tested changing this value from "False" to "True" and it still doesn't work. The fields that do not have a relationship class with a link record work correctly, but the ServiceID field doesn't. For example, my InServiceDate and InServiceYear will copy to the newly created split feature, but the ServiceID does not.
I was thinking of something else, but I do not see that option. Could you activate the log file and maybe that can help us narrow it down. How are you splitting the service line? Does not make sense that get_value is not getting the value when split, unless the new feature is not getting is ID carried over because of the 1:M relationship. If you split a main that has a valid ID, with the AA turned off, do the resulting 2 features have the same ID, hence violating the 1:M relationship?
The key "OnCreateWhenSplit" has it's value set to "False". Should I change this to "True"?
There is an option to suspend the AA on split, can you check that in the loaded.aa.config file?
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.