Creating drop-down list for prodname element in metadata causes errors

Frame 11
DITA 1.2
Due to restrictions beyond our control, we must use absurdly long product names. Therefore I want to use drop-down lists to make it easier for the authors to select a <prodname> in the metadata.
What I did:
1. In metaDecl.eddmod.fm, I created a new attribute and named it prod.
    a. I made it the Choice, and Required.
    b. The Choices currently are just Internal and RTVI for testing purposes. I'll put the absurdly long ones in when I have it working.
    c. I have a Prefix rule of: In all contexts Prefix: Product Name: <$attribute[prod]>
2. I imported metaDecl.eddmod.fm to all of these EDDs:
    In the base EDD  folder:
basemap.edd.fm
basetopic.edd.fm
map.eddmod.fm
topic.eddmod.fm
   In the technicalContent EDD folder:
concept.edd.fm
ditabase.edd.fm
generalTask.edd.fm
glossentry.edd.fm
glossgroup.edd.fm
reference.edd.fm
task.edd.fm
topic.edd.fm
3. I imported the element definitions into all of the following:
ChapterOutputTpl.fm
basemap.template.fm
basetopic.template.fm
basetopic.template.fm
topic.template.fm
generalTask.template.fm
glossentry.template.fm
glossgroup.template.fm
map.template.fm
ditabase.template.fm
reference.template.fm
concept.template.fm
task.template.fm
4. I imported the elememted definitions from task.template.fm into my test document (yes, it is a task topic).
What happened:
I get the following error message in the console:
XML Parser Messages (Document Instance)
Error at file H:\DITA_Westminster\Procedures - Our DITA\Inserting_Product_Names_Versions_In_Metadata\InsertingProductNamesAndVersionsInMetad ata.dita.82F, line 28, char 49, Message: Attribute 'prod' is not declared for element 'prodname'
Error at line 28, char 71, Message: Not enough elements to match content model  '(prodname,vrmlist,((brand|component|featnum|platform|prognum|series))*)'
What I did next:
1. I removed all elements from the general rule of <prodinfo> with the exception of <prodname>. <prodinfo) is the one that had prodname, vrmlist, (brand|component|featnum|platform|prognum|series) in the general rule. I also did a thorough search to ensure that no other element had this same list of element in the general rule. I couldn't find any.
2. I did the import to the EDDs and templates thing again.
3. I got the same error message again. <sigh />
Question:
Why am I still getting those 2 error messages? They are driving me crazy.
Marsha

Alex Gorly and Matt Sullivan solved one of my issues above:
Message: Attribute 'prod' is not declared for element 'prodname'
I'm still stumpled on the other one:
Message: Not enough elements to match content model  '(prodname,vrmlist,((brand|component|featnum|platform|prognum|series) )*)'
As stated above, I've even removed everything from the general rule of <prodinfo> except prodname and I'm still getting the same error. I've searched everywhere for this general rule and <prodinfo> is the only place I can find it.
What I really want is: (prodname), (vrmlist)?, (brand | component | featnum | platform | prognum | series)*
so that vrmlist is optional.
No matter what I do, unless I include a vrmlist, I get the above message. Currently, our CMS can't handle vrmlist but I don't want to remove it altogether because we may be replacing our CMS.
Help please!

Similar Messages

  • Help needed to create drop down list for a field.

    Hi,
    I have to create a parameter/select-options on the selection screen having  drop down values and also having multiple selections allowed.
    Please help me to attain this functionality.Its urgent.
    Thanks,
    Sandeep.

    Hi,
    Here is the exampel Program, i am sending the code for a Paramter, If you want this for the Select-options, then you need to have the paramer name as PS_PARM-LOW and you need to write the smae logic again for PS_PARM-HIGH to get the List box for the select-option
    REPORT ZLIST.
    TYPE-POOLS: VRM.
    DATA: NAME  TYPE VRM_ID,
          LIST  TYPE VRM_VALUES,
          VALUE LIKE LINE OF LIST.
    PARAMETERS: PS_PARM(10) AS LISTBOX VISIBLE LENGTH 10.
    AT SELECTION-SCREEN OUTPUT.
    NAME = 'PS_PARM'.
    VALUE-KEY = '1'.
    VALUE-TEXT = 'LINE 1'.
    APPEND VALUE TO LIST. VALUE-KEY = '2'.
    VALUE-TEXT = 'LINE 2'.
    APPEND VALUE TO LIST.
    CALL FUNCTION 'VRM_SET_VALUES' EXPORTING ID = NAME VALUES = LIST.
    START-OF-SELECTION.
    WRITE: / 'PARAMETER:', PS_PARM.

  • Custom drop down list for the filter for BEX report

    Hi, all:
    I am writing a query for a BEX report that prompts the user to enter a value for a field "GL account".  I would like to have the user select from a limited number of GL options rather than have the whole Chart of accounts show up. Is there a way to make a "custom" drop down list for the filter?
    Thanks!
    Jenny

    You need to make your GL account info object as an authorization object. And in the info object ,for BEx you need to select the option "only authorized values".
    Create an analyis authorization on gl account and assign the restricted set of GL accounts to the user. Asign this analysis authorization to the user.In the query restrict this infoobject with an authorization variable. This would solve your purpose.user would be able to see only a selected set of GL accounts for which he is authorized.

  • Creating Drop Down Lists in J2ME

    Hello all,
    I'm not an experienced programmer, and I fear that the rumours of posting a crie for help only to be set upon by hundreds of blood thirsty 'newbe' hunters may be true, but here goes none the less.
    Would love to know if any kind soul has hints on how to create drop down lists in J2ME, for selecting a option which would be able to relate to a database (Table).
    At the moment I'm using straight forward TextField entries, which is hardly convenient! :)
    Any help/comments/sweets appreciated!
    Cam

    Hi Cameron,
    Only MIDP 2.0 support drop down list. So if you currently coding in the MIDP 2.0 environment, here are the codings.
    String arr = new String[]{"Happy","Sad"};
    ChoiceGroup ch = new ChoiceGroup("Select Choice:",ChoiceGroup.POPUP,arr,null);
    append(ch);
    Hope this codes is helpful to you.

  • Drop down list for a field in table maintainance

    Hi,
    I have created a table maintainance for ztable. I need a drop down list for field so that user can select values present in the list while giving entries.
    I can not use fixed values in domain, because feild length is more and it wont fit into fixed values.
    I am trying to use VRM_SET_VALUES FM but not getting output. Can any one help me on this.
    Thank you,
    Regards,
    Kusuma K.

    TYPE-POOLS: vrm.        Include this in your program
    DATA: l_name  TYPE vrm_id,
          l_list  TYPE vrm_values,
          l_value LIKE LINE OF l_list.
      LOOP AT it_paym INTO w_paym.
        l_value-key = w_paym-pay_method.
        l_value-text = w_paym-text.
        APPEND l_value TO l_list.
      ENDLOOP.
      l_name = 'Table-field'.   change it as per your requirement this has to be perfect
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id              = l_name
          values          = l_list
        EXCEPTIONS
          id_illegal_name = 1
          OTHERS          = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    Hope it helps you,
    Abhijit G. Borkar

  • How to add drop down list for query manager report in sap business one

    Hi Every one,
    I need drop down list for parameter selection in sap business one Query Manager.I have two Parameters 'Sales Order','Invoice'.
    Please suggest.
    Thanks and Regards
    DEV

    Hi,
    you need to use this :
    /*select from [dbo].[OINV] T2*/
    DECLARE @Invoice varchar(100)
    /*where*/
    set @Invoice =/* T2.DocNum  */N'[%2]'
    you can change the tables and the parameter number but you have to write it exactly that way.
    when you run the query within the SBO you will get list of objects ( in this case list of invoices)
    hope it was helpful
    Shachar

  • How to change number of remembered items which would be shown in drop down list for edit controls. This use to be at least 5 I think, but now it is only 2!

    I need to see 3 different remembered usernames in drop-down list for username input.

    Works fine here. I can see at least four user names in the drop down list of a login form.
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Lotus Notes Missing in Drop Down List for Calendar Synch

    Hello there,
       A) I am attempting to synch my blackberry tour with my calendar in Lotus Notes 8.5.2.  I was able to previously synch my calendar when I had Lotus Notes 8.5.1, but since our upgrade to 8.5.2, I get an error saying it could not find a supported version of Lotus Notes. 
      B)  When I try to go in and configure the organizer section of the desktop software, there is no option for the drop down list for Lotus Notes.  I have tried uninstalling, rebooting and then reinstalling (based on info from other posts), but none of that seems to work.  I have checked and all the connectors are there, but for some reason, they are not being recognized.  Is there some specific key or file that intellisynch is looking for to know that Lotus Notes is installed on the machine?
    Now, I am assuming A&B are symptoms of a common problem, but I am at a loss as to how to move forward.  Any ideas on how I can get this software to recognize Lotus Notes?  I appreciate any help you can give.
    Thanks,
    Rick

    While calling method SET_TABLE_FOR_FIRST_DISPLAY pass 'A' to paramater I_SAVE .
    CALL METHOD grid1->set_table_for_first_display
          EXPORTING i_structure_name = 'SFLIGHT'
                    is_variant       = gs_layout           
                    i_save           = 'A'
                    i_default        = p_def
          CHANGING  it_outtab        = gt_sflight.

  • Getting Drop Down list for a field in portal based on the values in R/3

    Hi,
    Presently we were customizing the ESS>>Family Members/Dependants iview in Portal. Because of the design requirement, in R/3 we have added some custom field for infotype 21 (Family Member details Infotype). We have to display these field on portal in Family Member Iview.
    However for these custom fields i am not able to get the drop down list with all the possible values description(F4 help ) in portal unlike the standard SAP fields.
    I am able to display the codes but the description is not coming up for the fields. However for standard SAP field, only description comes.
    For this I tried to attach the search help to the data element and also assigned a check table to the data element in R/3. But still I am not getting the description in the drop down.
    So how can I get the description and only the description in the drop down.
    Thanks
    Namit

    Hi,
    When you run the Search hep is it giving the description or not
    You have to create the serarch help with both the fieldname and its description field then we cna the values. Or
    Try to mantain the text table for this field and get the data.
    Get the valeusinto drop drown with this table Or create the SearchHelp for this text table
    Regards
    Lekha

  • Restricting the values in Drop Down list for ESS application

    Hello Experts,
    We are trying to restrict the values in the drop down list box for payment method field for direct deposit iview.
    Here Payment is the Zlsch field.
    here we are trying to have only 3 vlaues in the drop down. Do I have to do it from java code or can this be restricted on the ECC side?
    Plese let me know.
    Thanks,
    James.

    James,
    What you have to do is create a DropDown ByIndex element instead of by Key and create a context node PaymentMethodNode and a value attribute PaymentAttribute under it ....then write the following code in the wdDoInit() method as :
    //Add whatever values you want in the DropDown
    String[] priority_options= new String[]{"Payroll/Corp/Partner Check","Employee Payroll ACH(PPD)"};
              List ListOfPriorities = new ArrayList();
              for(int i=0;i<priority_options.length;i++)
                   IPrivateDetailView.IPayment_MethodNodeElement pr= wdContext.createPayment_MethodNodeElement();
                   pr.setPaymentAttribute(priority_options<i>);
                   ListOfPriorities.add(pr);
              wdContext.nodePayment_MethodNode().bind(ListOfPriorities);
              for(int e=0;e<wdContext.nodePayment_MethodNode().size();++e)
                   wdContext.nodePayment_MethodNode().setSelected(e,e>=0 && e<=1);
    and then write the following code in wdDoModifyView() method:
    IWDDropDownByIndex di =(IWDDropDownByIndex)view.getElement("DropDownByIndex");
             di.bindTexts("Payment_MethodNode.PaymentAttribute");
    then create an Action and bind it to the onselect property of the DropDown and write the following code in the onAction method :
    if(wdContext.currentPayment_MethodNodeElement().getPaymentAttribute().equalsIgnoreCase("Payroll/Corp/Partner Check"))
        wdContext.currentSelectedInfotypeElement().setZlsch("C");
        else
         wdContext.currentSelectedInfotypeElement().setZlsch("P");
    I am sure it will work..

  • How To Create Drop Down List?

    Hi All,
    I Want to Create DropDown list For Company Code.
    I Gave Control Property As 'DropDownList'
    In Entry List, I Gave System Object And Bapi.
    After It Displays Input And Output.
    What Value I Assign to Company Code
    in Both Input And Output Ports.
    This is Very Urgent,please Give Steps For Quick Understanding.
    Thanks & regards
    SubbaRao Chinta.

    subbarao
    1- right click on your drop down list.
    2- choose properties.
    3- goto the entry list tabl
    4- select dynamic entry list.
    5- choose your system and search for the BAPI --> BAPI_COMPANYCODE_GETLIST.
    No input is required for this bapi
    6- for the output choose COMPANYCODE_LIST
    VALUE --> @COMP_CODE
    TEXT --> @COMP_NAME
    Regards,
    Sami
    Edited by: Sami Ahmed on Mar 24, 2008 10:54 AM

  • Drop down list for values at parameters forconfigurable product in CRM 2007

    Hi All,
    I want to create configurable service products in CRM 2007 connected with SAP IS-U.
    I uses the simplified product configuration, container approach. Hierarchy, settypes are set.
    Then I created parameters like for example discount, I can set in the WEB UI default value for this parameters, like 5%.
    But I need to have more variables for one parameter.
    For example:
    The agent sells an electricity product to the customer, and wants to configure the product in the sales process, give a discount from 5, 10, 15%.
    This variables 5,10,15% I like to get somehow in a drop down list, that the agent has a choice wich discount he gives.
    Thanks for any answers!
    Gabor

    Patrick,
    In PPOMA, did you check the requester for inheritance?  If the values are maintained at a higher level, is the inhertiance working to the requester level in the org structure?
    Regards, Dean.
    Edit: I just your reply to the previous posting, do you have one set as a default?
    Edited by: Dean Hinson on May 20, 2008 3:27 PM

  • Drop-down List for DUMMY...please help!

    Hi everyone,
    I'm new to LC Designer and i've been practicing with it a lot, but I can't figure this one thing out, please help.
    I'm trying to create a Drop down list (DDL for short) that contains several coordinates. Here's a simple illustration of what i mean:
    ============================
    Coordinates: [(Select Location)] | ------- (User-input required)
    X-Coordinate: [(Values.Values)] | ------- (These 3 coordinates will be calc'd
    Y-Coordinate: [(Values.Values)] | ------- and displayed depending on which
    Z-Coordinate: [(Values.Values)] | ------- location the user chooses)
    ============================
    This requires 4 DDL Boxes, for Coordinates, X-, Y-, and Z-coordinate respectively.
    How do I bind these three DDLs together and manipulate their properties so they will display the coordinates unique to the location selected?
    Sorry for taking so long, but i want to explain myself clearly.
    I appreciate any help you can provide,
    HL

    You need to use script on the change event of the location field to set the rawValue of the other three fields. Something like:
    if (xfa.event.newText == "Ottawa") {
    xCoordField.rawValue = "1";
    yCoordField.rawValue = "2";
    zCoordField.rawValue = "3";
    I would recommend using a text field or numeric field for the x,y,z coords though. Why use a drop down if the purpose isn't to let the user pick an option from a list of them?
    Chris
    Adobe Enterprise Developer Support

  • How to create drop-down list in Portal??

    My case: I have three locations A B C(in the database) for example.
    I would like to use drop-down list to show list of All, A, B, and C.
    After I choose any of them, for example A, it must show all the data of that particular location and if it is All it must show data of all three locations.
    By using Simple Parameter, it's just a static one but I prefer the dynamic one that get directly from the database. And I also got a problem of showing all locations by choosing All in my dropdown menu
    Any idea??!?
    Thank you so much.

    You could try a dynamic page:<br>
    <br>
    &LT;html&GT;<br>
    &LT;body&GT;<br>
    <br>
    &LT;form action="http://host.port/pls/portal/etc." method="get"&GT;<br>
    &LT;select name="location"&GT;<br>
    &LT;ORACLE&GT;<br>
    for rec in (select loc_code, loc_name from locations union select '-1' id, 'All' loc_name from dual)<br>
    loop<br>
    htp.p('&LT;option value="' || rec.loc_code || '"&GT;' || rec.loc_name || '&LT;/option&GT;');<br>
    end loop;<br>
    &LT;ORACLE&GT;<br>
    &LT;/select&GT;<br>
    &LT;/form&GT;<br>
    <br>
    &LT;/body&GT;<br>
    &LT;/html&GT;<br>
    <br>
    The form should then call your page with a &location=loc_code in the url. Using a page parameter and a bound variable you can access that. You may need to use a decode in your sql to deal with the All scenario:<br>
    <br>
    select ..... where loc_code like decode(:location, -1, loc_code, :location)<br>
    <br>
    Hope this helps.<br>
    <br>
    Patrick

  • XI pro not in drop down list for serial number verification

    I have installed XI pro and am directed to the serial number upgrade page. XI pro is not on the drop down list and when I enter my serial number it tells me its not for the qualifying product when i try to use any of the XI drop downs. ???

    Hi smilinbudha
    As you've purchased an upgrade, when you enter the the Acrobat Pro XI serial number it will look for a previous qualifying version on your computer.  If not found, you have the option to enter your previous version serial number so would enter your Acrobat Pro X serial number.
    Hope this helps.
    Thanks
    Bev

Maybe you are looking for