dojo if i have only the value of the Column Portlet, Can i place to GridContainer?

Posted by user3639054 on Stack Overflow See other posts from Stack Overflow or by user3639054
Published on 2014-05-29T03:18:14Z Indexed on 2014/05/29 3:25 UTC
Read the original article Hit count: 84

Filed under:

i faced with problem situation. I don't know even how to solve the problem. So i would like to get advice. i saved value of Column Portlet and value of nbZones GridContainer in MongoDB. My situation is that if i get value of Column and ROW Portlet and value of nbZones GridContainer in MongoDB, Portlet and GridContainer value was taken from the DB to the location of the original place of it?

my MongoDB Data

{
  "GridSeq":1,
  "nbZones":3,
  "Portlet":[
  {
     "row":1,
     "col":0
  }
 ]
}

i calculate row value following code.

 var perColumn=[];
 var id=portlet.get('id');
 var col = portlet.get('column');
 if (perColumn[col] !== undefined) {
     perColumn[col]++;
 } else {
     perColumn[col] = 0;
 }
 var row = perColumn[col];
 console.log('id:'+id + ",row: " + row + ",col: " + col);

© Stack Overflow or respective owner

Related posts about dojo