This question has been flagged
2449 Views

Hi frnds,

 Can any one know about the  google spreed sheets. In this we can edit the scripting of the sheet, by using that below code is written here in a single oe_browse function  we are taking only one table or model data, but i want two tables data to browse in that function plz help the code

function oe_browse(model, fields, domain, sort, limit){
  if(typeof model !== "string"){
  
   throw "model arg expecting string";
    
  }
  if(typeof fields !== "string"){
    throw "fields arg expecting comma separated field names";
  }
  if (!domain) domain = "[]";
  if(typeof domain !== "string"){
    throw "domain arg expecting string";
  }
  if(sort && typeof sort !== "string"){
    throw "sort arg expecting string";
  }
  if(limit && typeof limit !== "number"){
    throw "limit arg expecting number";
  }
  
  fields = fields.replace(/\s+/g, ",").split(",");
  if(domain) {
    domain = domain.replace(/\'/g, '"');
  }
  domain = Utilities.jsonParse(domain);
  
  var records = seach_read(model, fields, domain, sort, limit);
  return parse_records_for_ss(records, fields);
}

Avatar
Discard