Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7806901
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T02:40:52+00:00 2026-06-02T02:40:52+00:00

I have a custom control with an ExtLib REST control on it. I’m creating

  • 0

I have a custom control with an ExtLib REST control on it. I’m creating JSON from the rest control. It’s working fine if I hardcode everything inside the doGet tag.

But when I try and access the custom properties via compositeData in the do get I get an error:

com.ibm.domino.services.ServiceException: Error while rendering service

Caused by: com.ibm.xsp.exception.EvaluationExceptionEx: Error while executing JavaScript action expression
    at com.ibm.xsp.binding.javascript.JavaScriptMethodBinding.invoke(JavaScriptMethodBinding.java:126)
    at com.ibm.xsp.extlib.component.rest.CustomService$ScriptServiceEngine.renderServiceGet(CustomService.java:311)
    at com.ibm.xsp.extlib.component.rest.CustomService$ScriptServiceEngine.renderService(CustomService.java:262)
    ... 20 more
Caused by: com.ibm.jscript.InterpretException: Script interpreter error, line=11, col=14: [ReferenceError] 'compositeData' not found

Is there a way to use composite to create my JSON object?

I’m trying to create an object like this:

var object = {};
object.height = compositeData.height
return toJson(object)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T02:40:53+00:00Added an answer on June 2, 2026 at 2:40 am

    The REST Control should be considered as an independent component that has no direct access to the page on which it exists because it is possible to call the REST service via a url similar to database.nsf/page.xsp/RESTServiceName.

    what you should do instead is call your REST service with a url that includes parameters to pass into the control such as database.nsf/page.xsp/RESTServiceName?height=20&width=50 and then reference them within the control using param.get("height") and param.get("width").

    Another option could be to put the parameters into a scope variable and read them from there.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Custom control derived from wxControl,inside a dialog with a vertical sizer
I have a custom control that inherits from UserControl , and I can't get
I have a custom control that inherits from .NET's CompositeControl class. This control overrides
I have custom control with asp textbox inside. And i need to Validate by
I have a custom control inherited from RichTextBox. This control has the ability to
I have a custom control that I've placed inside a cell of a grid.
I have a custom Control which contains the generic.xaml inside the Themes folder. I
I have a custom control (from MS Toolkit - DatePicker). I've made my own
I have a custom control which inherits from System.Web.UI.Control and some of its properties
I have a custom control that own a property. Inside this custom control OnInit

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.