Skip to content

Manipulating a non-existent field #6266

Answered by tonygermano
elavy-harris asked this question in Q&A
Discussion options

You must be logged in to vote

Three main points -

  1. I think the simplest solution is to use the code template I mentioned in my other answer.
  2. You mentioned padding fields in a segment as well as components in a field. I think if you don't use option 1, then you should do this by default so that,
    • fields are created in the correct order, and
    • you don't need to worry about a field not existing when go to add components
  3. You made an interesting discovery, but I don't know if that's how e4x is supposed to work or it's just a quirk of the current Rhino implementation. I personally would not rely on it, but it turns out you can get the fieldName without passing it in separately. I think something like this is closer to what …

Replies: 2 comments 13 replies

Comment options

You must be logged in to vote
13 replies
@tonygermano
Comment options

@tonygermano
Comment options

@elavy-harris
Comment options

@tonygermano
Comment options

Answer selected by elavy-harris
@elavy-harris
Comment options

@elavy-harris
Comment options

@pacmano1
Comment options

@elavy-harris
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants