Alpha Video Training
Results 1 to 2 of 2

Thread: Submitting Multiple Embedded Grids at One Time

  1. #1
    Member
    Real Name
    Clifton Green
    Join Date
    Jun 2012
    Posts
    12

    Default Submitting Multiple Embedded Grids at One Time

    I have a master grid that contains an embedded linked grid. Naturally, each embedded grid has its own submit button. I want to just use one master submit button, but I'm getting a javascript error each time that says:

    "Object doesn't support property or method 'submitGridPart'"

    In the child grid, I run this code in the onGridRender event:
    Code:
    if(window['__uwgrating'] == undefined){
    	window['__uwgrating'] = ''
    };
    
    window['__uwgrating'] = window['__uwgrating']+','+'{Grid.object}';
    In the parent grid, I created an action button with the following code:
    Code:
    window['__uwgrating'] = window['__uwgrating'].slice(1,62);
    window['__uwgrating'].submitGridPart();
    The first line just extracts first alias (I have not yet written the loop that would repeat the procedure.) I know that the grid object alias is extracting correctly because I ran a window.alert and it showed the correct alias. However, I get that same javascript error every time.

    Does anyone know what the problem is, or know of a better way to submit multiple child grids with one click?

  2. #2
    Member
    Real Name
    Clifton Green
    Join Date
    Jun 2012
    Posts
    12

    Default Re: Submitting Multiple Embedded Grids at One Time

    Found the answer from here: http://msgboard.alphasoftware.com/al...d-from-a-child

    Basically, you need to use the javascript eval() method. Here's the example from the link:

    Code:
    window['__uwgrating'] = window['__uwgrating'].slice(1,62);
    	
    var cmd = window['__uwgrating'] + '.submitGridPart();'
    eval(cmd);

Similar Threads

  1. Multiple Grouping Option in Grids?
    By pettechservices in forum Application Server Version 11 - Web/Browser Applications
    Replies: 2
    Last Post: 11-23-2012, 02:19 PM
  2. Reports with embedded grids
    By chadbrown in forum Application Server Version 11 - Web/Browser Applications
    Replies: 7
    Last Post: 02-03-2012, 01:46 PM
  3. Multiple grids on a5w page
    By mpatrizio in forum Application Server Version 11 - Web/Browser Applications
    Replies: 1
    Last Post: 01-31-2012, 10:55 PM
  4. Using Multiple Linked Grids : How to show all rows on all grids that are linked?
    By joannristau in forum Application Server Version 10 - Web/Browser Applications
    Replies: 0
    Last Post: 08-09-2011, 05:48 PM
  5. Multiple Parameters when Building Grids
    By Rich Hartnett in forum Archived Wishlist
    Replies: 0
    Last Post: 06-01-2006, 01:36 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •