Home フォーラム 開発 Setting id fields through code

このトピックには1件の返信が含まれ、1人の参加者がいます。1 ヶ月前 coshaughnessy15 さんが最後の更新を行いました。

2件の投稿を表示中 - 1 - 2件目 (全2件中)
  • 投稿者
    投稿
  • #10503

    coshaughnessy15
    参加者

    Hi,

    I was wondering if there is a way to set id fields on an item using methods rather than having to write out the AML. An example for what I am trying to do is this.

    Set an id on an item:

    myItem.setProperty(“myfield_id”, myFieldID);

    I realize this doesn’t build out the same aml that is required to set it properly which would be “<Item type ‘myItem'”><id>myfieldItemID></Item> and instead just sticks the ID without the appropriate item type .

    I am hoping there is a way since I find it much cleaner to use the item methods instead of having AML string in my code.

    Thanks

    #10504

    coshaughnessy15
    参加者

    Never mind, I figured out what was going on.

2件の投稿を表示中 - 1 - 2件目 (全2件中)

このトピックに返信するにはログインが必要です。