Ability to alter REST dataset prior to display in REST Grid Hot

by Scott Hofmann on June 10, 2015

Provide a mechanism where a REST dataset may be altered prior to display in a REST Grid.

  • Seeking a feature to allow for altering a REST dataset using JavaScript or AppScript prior to the time it is displayed in the REST Grid. The AppScript should be able to access data within SBM and utilize data within the REST dataset to generate data for display in 1 or more columns of the REST Grid.

    This functionality would provide the following benefits:

    1) a means to correct REST service results if the REST service does not function correctly

    2) to programmatically generate data for display in a column of the REST Grid.

    In some cases, 3rd party REST services may produce results are are nearly usable but might have a minor flaw or they might return more results than what should be presented. Being able to programmatically alter the REST dataset would provide a means for solving these types of issues.

    Some data must be displayed that is not contained in the REST dataset being returned but it can be generated. Being able to populate 1 or more columns in the REST dataset prior to display would solve this problem.

    Ideas

    Status
    Target Release
    SBM 11.0
  • Please login to view any attachments.

  • Already have an account? or Create an account
    Note that this capability is available in JavaScript, not AppScript (AppScript is not available in the browser where this needs to occur).
    Tom Clement Commented by Tom Clement October 30, 2015
    Top 10 Reviewer  -  

    Note that this capability is available in JavaScript, not AppScript (AppScript is not available in the browser where this needs to occur).

    I can confirm that this feature will be in SBM 11.0 as part of our REST Grid improvements:

    http://serenacentral.com/blogs/entry/what-s-new-in-sbm-composer-11-0-forms-1

    Also, here's another post that steps through exactly how to implement it:

    http://serenacentral.com/blogs/entry/composer-11-0-modifying-rest-data-before-it-is-rendered
    Tom Clement Commented by Tom Clement September 09, 2015
    Last updated: September 10, 2015
    Top 10 Reviewer  -  

    I can confirm that this feature will be in SBM 11.0 as part of our REST Grid improvements:

    http://serenacentral.com/blogs/entry/what-s-new-in-sbm-composer-11-0-forms-1

    Also, here's another post that steps through exactly how to implement it:

    http://serenacentral.com/blogs/entry/composer-11-0-modifying-rest-data-before-it-is-rendered

    The ability to register a callback function with the REST grid object is in the works for SBM 11.0. To make this work, you'd define the JavaScript function you want to manipulate the JSON data, then call a method to register that function with the REST Widget. Now, when the REST call is made and the JSON returned, if this function has been registered, it will call it, passing the JSON data, then use the result of the function call as the data the REST Grid displays. FYI, we're also adding the ability to hide and show columns at runtime.
    Tom Clement Commented by Tom Clement June 22, 2015
    Top 10 Reviewer  -  

    The ability to register a callback function with the REST grid object is in the works for SBM 11.0. To make this work, you'd define the JavaScript function you want to manipulate the JSON data, then call a method to register that function with the REST Widget. Now, when the REST call is made and the JSON returned, if this function has been registered, it will call it, passing the JSON data, then use the result of the function call as the data the REST Grid displays. FYI, we're also adding the ability to hide and show columns at runtime.

     

PrintEmail

Recent Tweets

Twitter response: "Invalid or expired token."