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 7583553
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T18:42:27+00:00 2026-05-30T18:42:27+00:00

I am working with Sigma grid, populating it from PHP. Sigma is supposed to

  • 0

I am working with Sigma grid, populating it from PHP. Sigma is supposed to have a formula handling function, but it only seems to work with JS loaded datasets. So I was wondering if it was possible to modify some of the cells after load of page, do include spreadsheet-like formulae?

This is the code produced by Sigma (one row of it):

19
2012-02-11
Bob
LB
128
0
0
0


So the effect I want to have is to take the last cell, and add the previous 3 cell values (inside td and div each).

Ideas?

  • 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-05-30T18:42:29+00:00Added an answer on May 30, 2026 at 6:42 pm

    Add the following to the gridoption

    onCellClick: function(value, record , cell, row,  colNo, rowNo,columnObj,grid){
    
    overRowNo=rowNo;
    overColNo=colNo;
    cellValue=value;
    
    },
    afterEdit: function(  value,  oldValue,  record,  col,  grid){
    // ordered trays calculation
        if(overColNo == 5 || overColNo == 6){       
        var text = $(this.activeCell).find('div.gt-inner').text();console.log(text);
        if (!$.isNumeric(text)){ //jquery's isnumeric function
             alert ('Please enter a valid number.');
             // because cell 5 is a drop down select we don't need to scan for bad input; this is only for cell 6 - ordered cells
             text = 0;
         }
                var traycode = mygrid.getColumnValue(5,overRowNo);
                var ordcells = mygrid.getColumnValue(6,overRowNo);
                 if (parseInt(traycode) >0) { 
                 tray = parseInt(traycode); 
                 } else { 
                    tray=text;
    
    
             }
               if (parseInt(ordcells) >0) { 
                 ordcell = parseInt(ordcells); 
                 } else {               
                     ordcell= $('input.gt-editor-text').first().val();  
             }
             //alert(tray+' '+ordcell);
             if (tray > 0 && ordcell > 0)  var ordtrays = Math.ceil(ordcell/tray);
            if (ordtrays > 0){
            mygrid.setColumnValue('ordered_trays',overRowNo,ordtrays);
             mygrid.updateEditState();
               mygrid.activeRecord.ordered_trays = ordtrays;
    
        mygrid.refresh();
        }
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Working on calling a C function from my asm project. I'm trying to push
Working example: http://alpha.jsfiddle.net/gTpWv/ Both of the methods work separately, but once regexp for smilies
Working with COM interop, I can call a managed function from within unmanaged code.
Working on a project at the moment and we have to implement soft deletion
Working on a somewhat complex page for configuring customers at work. The setup is
Working with an Oracle 9i database from an ASP.NET 2.0 (VB) application using OLEDB.
I have toyed with a number of ideas to do this, but so far
Working demo CLick $(document).ready(function(e) { $('span#pijlr, span#pijll').show(); $('#gallery').css('overflow','hidden'); $('span#pijlr').click(function(e) { if (!$('#gallcont').is(':animated')) { var
I am trying to get http://www.emacswiki.org/emacs/PrettyGreek working for emacs 21.3.1 on Windows. I have
I have a decent admin script working for checking what IPs are logging on

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.