issue w/ Data Definition Fields to System Name

mdcarter's Avatar

mdcarter

30 Aug, 2010 07:26 PM

I'm trying to use the Data Definition Fields to System Name plugin to generate system names for a site I am working on. The problem I am encountering is that I can't use some field types w/ the plugin to generate my system names. The specific action I am trying to do is take a value from a dropdown field "meeting" and concatenate it with a date field called "date". However, it gives me an error when ever I do this. I have simplified it using only one field, meeting, and I still get the following error:

An error occurred during creation: Content must be entered for at least one of the following fields: meeting

This happens even when I have clearly selected a value from the dropdown. If I switch the field to one that is a simple text field it works fine, but that doesn't do what I want in the long run.

I need to be able to generate page name that contains the meeting group and the date: finance-committee-08-30-2010

Any suggestions? I am currently working in our test instance running 6.7.

-Matt

  1. 1 Posted by mdcarter on 08 Sep, 2010 05:57 PM

    mdcarter's Avatar

    bump... any solution to this?

  2. Support Staff 2 Posted by Tim on 08 Sep, 2010 06:27 PM

    Tim's Avatar

    Hey there,

    I just tried this locally and was able to reproduce the behavior you are seeing. Let me do some more investigating to see if this is something that was intentionally left out or if this is supposed to work like a standard text field.

  3. Support Staff 3 Posted by Tim on 08 Sep, 2010 09:02 PM

    Tim's Avatar

    Ok, I've got some more information for you regarding this behavior. It does appear that this was done purposely and is really only meant to be used with text fields (as is mentioned in the plug-in description). One of the reasons for this is that with other fields (like multi-select and check boxes), the system wouldn't know which value to use for the plug-in.

    If you would like to see this functionality in the product, please feel free to submit a new idea in our Idea Exchange.

    In the meantime, if you have any Java experience, you might be able to write an Asset Factory Plug-in to do exactly what you are looking for.

    Let me know if this helps.

  4. 4 Posted by mdcarter on 08 Sep, 2010 09:24 PM

    mdcarter's Avatar

    Unfortunately it doesn't help, but it does answer my question.

    Can you point out where it says this in the plug-in description. I speculate that you are referring to the section:

    Field Identifiers - This is a comma-separated list of the identifiers of structured data text nodes to pull the new name's segments from. These are the values that will be concatenated together.

    The phrase "structured data text nodes" is a bit ambiguous. In the data definition builder the text box is referred to as "Text field" and the XML configuration for most of the various input types all use the text tag and are differentiated by a type attribute.

      <text type="dropdown" identifier="meeting" label="Meeting" default="Regents" required="true">
        <dropdown-item value="Regents"/>
      </text>
      <text type="calendar" identifier="date" label="Meeting Date" required="true"/>

    This is what may have caused my confusion. I inferred that that value of the text node of the generated XML that the Data definition created would be used in the plugin to create the system name. However, it appears that no XML is generated till after this step.

    An additional note in the description of the plugin could make this more clear.
    Also on a side note, the name of the plugin used in documentation differs from the name of the plugin in the recent releases.
    Structured Data Fields to System Name vs. Data Definition Fields to System Name

  5. Support Staff 5 Posted by Tim on 09 Sep, 2010 03:47 PM

    Tim's Avatar

    I completely agree with you here. Yes, I was referring to that section of the description as well as the general description: "the plug-in takes the value of the Data Definition text fields".

    I've created an internal issue to update this in the product as well as in the documentation. Apologies for the confusion!

  6. Tim closed this discussion on 09 Sep, 2010 03:47 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac