2 Replies Latest reply: Sep 30, 2013 3:05 AM by 1037987 RSS

    Custom Component Creation Issue.

    1037987

      Hi,

       

      I'm trying to create custom component which adds the item in custom actions of check in page

      Code:

      <@dynamichtml DocInfoCustomActionshtmlIncludeOrString@>

      <@dynamichtml custom_docinfo_menus_setup@>

          <$include super.custom_docinfo_menus_setup$>

          <$exec rsAppendNewRow("PageMenusData")$>

          <$PageMenusData.nodeId = "CORE_CONTENT_ONLY"$>

          <$PageMenusData.parentId = "CONTENT_ACTIONS"$>

          <$PageMenusData.label = "AR"$>

          <$PageMenusData.type = "item"$>

          <$PageMenusData.href = "http://www.google.com"$>

          <$PageMenusData.loadOrder = 170$>

      <@end@>

      <@end

       

      Trying to create via Component Wizard

      Steps:

      1:New component

      2:Add in resource definition tab

      3:Selected Resource -HTML include/string

      4:in Add HTML  Resource Include/String screen gave name as DocInfo_sample_include and added the code below

      5:After clicking finish am getting below mentioned error.

       

      Unable to add resource error parsing file

      c:/Oracle/Middle~1/USER_p~1/domains/BASE_D~1/ucm/cs/custom/Docinfo/resources/docinfo_resource.htm

      Line 9 column 3

      -><@dynamichtml DocInfoCustomActionshtmlIncludeOrString@>

      -><@dynamichtml custom_docinfo_menus_setup@>

      -><$include super.custom_docinfo_menus_setup$>

      Resource definition tag inside the Resource definition tag

       

      Please guide me where am going wrong.

       

      Thanks,

      AR

        • 1. Re: Custom Component Creation Issue.
          William Phelps

          You're creating an include within an include, which is not allowed.

           

          <@dynamichtml DocInfoCustomActionshtmlIncludeOrString@>

          <@dynamichtml custom_docinfo_menus_setup@>

              <$include super.custom_docinfo_menus_setup$>

              <$exec rsAppendNewRow("PageMenusData")$>

              <$PageMenusData.nodeId = "CORE_CONTENT_ONLY"$>

              <$PageMenusData.parentId = "CONTENT_ACTIONS"$>

              <$PageMenusData.label = "AR"$>

              <$PageMenusData.type = "item"$>

              <$PageMenusData.href = "http://www.google.com"$>

              <$PageMenusData.loadOrder = 170$>

          <@end@>

          <@end


          In Component Wizard, don't enter the phrases <@dynamichtml <anything>@> or <@end@>.  These will be generated for you.

           

          • On the "Add/Edit HTML Resource Include/String" screen, click the include radio button.
          • In the "Name" box, enter "custom_docinfo_menus_setup".
          • In the unlabeled textarea box under the "Name" field, enter your code (without the dynamichtml and end markers).

               <$include super.custom_docinfo_menus_setup$>

              <$exec rsAppendNewRow("PageMenusData")$>

              <$PageMenusData.nodeId = "CORE_CONTENT_ONLY"$>

              <$PageMenusData.parentId = "CONTENT_ACTIONS"$>

              <$PageMenusData.label = "AR"$>

              <$PageMenusData.type = "item"$>

              <$PageMenusData.href = "http://www.google.com"$>

              <$PageMenusData.loadOrder = 170$>



          Refer to the screen print found here: Components Interface

          • 2. Re: Custom Component Creation Issue.
            1037987

            Hi,

             

            Thanks for the help i'm able to create component sucessfully now.

             

            But when i click on item AR in Content Actions menu, its displaying empty page!!!!

            Any idea on this, would b really helpfull