• The unknown tag ..... cannot be used as a control

    By Naveen Maurya 1 decade ago

    I followed the detailed instructions, but I've managed to break something.  I'm getting a lot of errors:

    • The unknown tag xc:ExportLink cannot be used as a control
    • The unknown tag xc:GanttChartcannot be used as a control
    • The unknown tag xc:HistogramChart cannot be used as a control
    • The unknown tag xc:PieChart cannot be used as a control

    Any idea what I've done wrong?

    • Copied the custom controls??

      By Naveen Maurya 1 decade ago

      I guess you have not copied the Custom Controls.... Smile

      • Screenshot

        By Thom Rosario 1 decade ago

        I definitely did.  I did a little googling, and the only mentions of the errors I'm getting are related to renaming the custom controls, which I didn't do.

        I'm also using the XPages Template Framework; is it possible that it's conflicting?

        • It worked for me!! Please confirm?

          By Naveen Maurya 1 decade ago

          Hi Thom,

          I downloaded the XPages Framework from here and added the components required for Java Charts. And it worked for me without any error. I have attached the database with this document. Please check if my database throws same error at your end.

          NOTE: While running XPage I used DemoPie.xsp as it uses hard-coded data. Other Demo XPages will not work.

          Regards,

          Naveen Maurya

          • Your demo worked for me,too

            By Thom Rosario 1 decade ago

            Your demo worked on my setup, so it seems like I didn't add the chart components properly.  I'll try again.  Thanks for the help you've provided so far; I'm excited to get this working!

          • I got it!

            By Thom Rosario 1 decade ago

            I redownloaded the zip and installed everything from scratch.  It's working great now!  Thanks!

            • Great! Can you try one more thing?

              By Naveen Maurya 1 decade ago

              Hi,

              Good to here that everything is working now. There is one thing you can try if you have time. In your database where error is showing you can go to Domino Designer, in "Project" menu click on "Clean". Check if it resolves the error. Below is the screenshot.

              Regards,

              Naveen Maurya

              • You're the man :)

                By Thom Rosario 1 decade ago

                Everything's all clean and wonderful now.  Thanks a ton.  I know it can be tough supporting a project like this; your effort is truly appreciated!

              • me to

                By Eric Tomenga 1 decade ago

                Same issue as the above person had. I can use the example database included in your zip file but going through the directions to setup my own always end with the error below.

                Description Resource Path Location Type
                The unknown tag xc:ExportLink cannot be used as a control. BALChart.xsp feedbackChart(1).nsf/CustomControls line 19 com.ibm.designer.domino.ide.resources.designerproblem
                The unknown tag xc:ExportLink cannot be used as a control. GanttChart.xsp feedbackChart(1).nsf/CustomControls line 22 com.ibm.designer.domino.ide.resources.designerproblem
                The unknown tag xc:ExportLink cannot be used as a control. HistogramChart.xsp feedbackChart(1).nsf/CustomControls line 18 com.ibm.designer.domino.ide.resources.designerproblem
                The unknown tag xc:ExportLink cannot be used as a control. PieChart.xsp feedbackChart(1).nsf/CustomControls line 22 com.ibm.designer.domino.ide.resources.designerproblem
                The unknown tag xc:ExportLink cannot be used as a control. ScatterChart.xsp feedbackChart(1).nsf/CustomControls line 22 com.ibm.designer.domino.ide.resources.designerproblem

                 

                Clean option hides the errors but when ever I build the project, they return.   Basically what the xPage generates is a blank page.

                 

                 No errors generated for ExportLink.xsp but I can not open the .xsp because an exception is thrown.

                java.lang.NullPointerException

                Then most of the object modesl making up up xPages shown as Unknown Source.

                 

                Any suggestions? 

                 

                 

                 

                 

                 

                • Found solution

                  By Eric Tomenga 1 decade ago

                  Since the customer control was the same error. I erased it and recopied it from the original and that seem to have fixed the errors occuring during build.  Don't know why I didn't try it before. 

                   

                   

                  • Glad you found out the solution :) <EOM>

                    By Naveen Maurya 1 decade ago
                    • Ran into other issues

                      By Eric Tomenga 1 decade ago

                      I ran into another issue when trying to go from hard coded data to pulling data from views.  The chart stopped generating.  No errors captured displayed.  I got a red X where the chart was supposed to go.  I thought I did something wrong, so I went back to the hard coded version to try again and from that point on, couldn't get any charts to generate for that particular control.  No errors shown.  When I switched to Java perspective I see that there was some issue validating and accessing the .jars.  I wasn't sure how to fix it so I tried to rebuild the Xpage from scratch and the same issue happened.  

                      It may be an issue with my work machine setup.  I can not install Fix packs.  I am in a locked down environment but have admin rights.  Newly installed Windows 7 setup.  I have 8.53 with UpgradePack 1.  But as I said I am unable to install fix packs.  In order to install the upgrade pack I had to update the permissions on my Notes directory.  So this may all be an environment issue.  I will have to try this on my home machine to see if I have the same issue.

                       

                       

      • Further thoughts?

        By Thom Rosario 1 decade ago

        Any other ideas?