• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

[SOLVED] Help with vvIn

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [SOLVED] Help with vvIn

    Hi All,

    I'm hoping you guys can give me a hand. I'm struggling getting my json data back from the web application.

    This is the json message I'm able to get in the RPG program by using the below because the root is 'data':

    Code:
    vvIn_char('data');
    
    //returns this                                                             
    {"orderNumber":"066000008","orderType":"","dueDate":"","assignee":"","stageFrom":"","ani":"","customerName":"","errorCode":"","stageTo":"","streetNumber":"","street":"","streetSuffix":"","streetDirectional":"","city":"","state":"","openOnly":"on","manualDeactivation":"off","displayLog":"off"}
    The question is how do I get these items that are in Data? vvIn_char('orderNumber'); does not work.

    I saw the documentation about using a file object to define the DS that can be used by the vvIn pgm, but this doesn't have an external file equivalent. I have created an internal data structure but you don't seem to be able to pass that in to the vvIn program.

    There has to be some easy way to do this that I'm just not getting.

    Here is my proc just in case it helps.

    Thanks for any help! I really appreciate it.

    Code:
         **-------------------------------------------------------------
         p getSearchResults...
         p                 b
         d                 pi
         d*
         d stmt            s           4096a   varying
         d search          s             32a   varying
         d col             ds                  likeDS(vvSSCol)
         d                                     dim(14) inz
    
         d orderNumber...
         d                 s              9a   varying
         d orderType...
         d                 s              2a   varying
         d dueDate...
         d                 s               d
         d assignee...
         d                 s             30a   varying
         d stageFrom...
         d                 s              3a   varying
         d ani...
         d                 s             10p 0
         d customerName...
         d                 s             30a   varying
         d dueTime...
         d                 s               t
         d errorCode...
         d                 s              2a   varying
         d stageTo...
         d                 s              3a   varying
         d streetNumber...
         d                 s              7a   varying
         d street...
         d                 s             20a   varying
         d streetSuffix...
         d                 s             26a   varying
         d streetDirectional...
         d                 s             25a   varying
         d city...
         d                 s             26a   varying
         d state...
         d                 s             25a   varying
         d openOnly...
         d                 s              3a   varying
         d manualDeactivation...
         d                 s              3a   varying
         d displayLog...
         d                 s              3a   varying
    
         d numElements     s              3  0
         d ii              s              3  0
    
          /free
           stmt= 'SELECT ' +
                 '   msoso# ORDER#, ' +
                 '   MSOTOS TOS, ' +
                 '   MSOSTG STAGE, ' +
                 '   MSOPH# ANI, ' +
                 '   case when MSONMF = ''N'' then trim(MSOLSN||MSOFRN) ' +
                 '      else trim(msolsn)||'', ''||trim(msofrn) end as NAME, ' +
                 '   case when msodyy = 0 then date(''0001-01-01'') ' +
                 '      else date(digits(MSODYY)||''-''|| ' +
                 '                digits(MSODMM)||''-''|| ' +
                 '                digits(MSODDD)) end DUEDATE, ' +
                 '   time(substr(digits(msodtm),1,2)||'':''|| ' +
                 '        substr(digits(msodtm),3,2)) as DUETIME, ' +
                 '   MSOASS ASSIGNEE, ' +
                 '   MSOST# STRNUMBER, ' +
                 '   MSOSTR STREET, ' +
                 '   MSOSST STRSUFFIX, ' +
                 '   MSOSDR STRDIR, ' +
                 '   coalesce(CTYDES, '' '') CITYNAME, ' +
                 '   MSOSTA STATE, ' +
                 '   coalesce(svecde, '' '') ERRORCODE ' +
                 'FROM svord ' +
                 'left outer join sverr on msoso# = sveso# ' +
                 'left outer join SVUSRCMT on svecde = cmterr ' +
                 'left outer join dbcty on msocty = ctycab ' +
                 'left outer join dbsta on msosta = stasab ' +
                 'left outer join syecd on msoass = ecdecd ' +
                 'left outer join DBSDR on msosdr = sdrsdr ' +
                 'left outer join DBSST on msosst = sstsst ' +
                 'WHERE substr(msoso#,1,1) not in (''A'', ''C'') ';
    
           //vvIn.variableName = 'data';
           //vvIn.fieldName    = 'orderNumber';
           //vvIn.totalSize    = %size(orderNumber:*all);
           //vvIn.elementSize  = %size(orderNumber);
           //numElements       = vvIn_JSON(vvIn:%addr(orderNumber));
    
           //orderNumber          = vvIn_char('orderNumber' : toUpper);
           //orderType            = vvIn_char('orderType' : toUpper);
           //dueDate              = vvIn_date('dueDate');
           //assignee             = vvIn_char('assignee');
           //stageFrom            = vvIn_char('stageFrom' : toUpper);
           //ani                  = vvIn_num('ani');
           //customerName         = vvIn_char('cutsomerName' : toUpper);
           //dueTime              = vvIn_time('dueTime');
           //errorCode            = vvIn_char('errorCode' : toUpper);
           //stageTo              = vvIn_char('stageTo' : toUpper);
           //streetNumber         = vvIn_char('streetNumber' : toUpper);
           //street               = vvIn_char('street' : toUpper);
           //streetSuffix         = vvIn_char('streetSuffix' : toUpper);
           //streetDirectional    = vvIn_char('streetDirectional' : toUpper);
           //city                 = vvIn_char('city' : toUpper);
           //state                = vvIn_char('state' : toUpper);
           //openOnly             = vvIn_char('openOnly' : toUpper);
           //manualDeactivation   = vvIn_char('manualDeactivation' : toUpper);
           //displayLog           = vvIn_char('displayLog' : toUpper);
    
           writeLogMessage('json message: %s' : vvIn_char('data'));
           writeLogMessage('orderNumber: %s' : vvIn_char('orderNumber'));
    
           if orderNumber <> *blanks;
              stmt+= ' and upper(MSOSO#) like '+
                           SQ+orderNumber+'%'+SQ+' ';
           endIf;
    
           if orderType <> *blanks;
              stmt+= ' and upper(MSOTOS) like '+
                           SQ+orderType+'%'+SQ+' ';
           endIf;
    
           if dueDate > *loval;
              stmt+= ' and char(DUEDATE) like '+
                           SQ+%char(dueDate)+'%'+SQ+' ';
           endIf;
    
           if assignee <> *blanks;
              stmt+= ' and upper(ECDNAM) like '+
                           SQ+assignee+'%'+SQ+' ';
           endIf;
    
           if stageFrom <> *blanks;
              stmt+= ' and upper(MSOSTG) between '+
                           SQ+stageFrom+'%'+SQ+' ';
    
              if stageTo <> *Blanks;
                 stmt+= ' and '+SQ+stageTo+'%'+SQ+' ';
              else;
                 stmt+= ' and '+SQ+'ZZZ'+SQ+' ';
              endIf;
    
           endIf;
    
           if ani <> *zeros;
              stmt+= ' and char(MSOPH#) like '+
                           SQ+%char(ani)+'%'+SQ+' ';
           EndIf;
    
           if customerName <> *blanks;
              //TODO need to come back and deal with res vs bus
              stmt+= ' and upper(trim(MSOLSN))||upper(trim(MSOFRN)) like '+
                        SQ+customerName+'%'+SQ+' ';
           EndIf;
    
           if dueTime <> *loval;
              stmt+= ' and char(MSODTM) like '+
                           SQ+%char(dueTime)+'%'+SQ+' ';
           EndIf;
    
           if errorCode <> *blanks;
              stmt+= ' and upper(CMTERR)||'+
                           SQ+' - '+SQ+'||upper(CMTMSG) like '+
                           SQ+errorCode+'%'+SQ+' ';
           EndIf;
    
           if streetNumber <> *blanks;
              stmt+= ' and upper(MSOST#) like '+
                           SQ+streetNumber+'%'+SQ+' ';
           endIf;
    
           if street <> *blanks;
              stmt+= ' and upper(MSOSTR) like '+
                           SQ+street+'%'+SQ+' ';
           EndIf;
    
           if streetSuffix <> *blanks;
              stmt+= ' and upper(sstsst)||'+
                           SQ+' - '+SQ+'||upper(sstdes) like '+
                           SQ+streetSuffix+'%'+SQ+' ';
           EndIf;
    
           if streetDirectional <> *blanks;
              stmt+= ' and upper(sdrsdr)||'+
                           SQ+' - '+SQ+'||upper(sdrdes) like '+
                           SQ+streetDirectional+'%'+SQ+' ';
           EndIf;
    
           if city <> *blanks;
              stmt+= ' and upper(ctycab)||'+
                           SQ+' - '+SQ+'||upper(ctydes) like '+
                           SQ+city+'%'+SQ+' ';
           EndIf;
    
           if state <> *blanks;
              stmt+= ' and upper(stasab)||'+
                           SQ+' - '+SQ+'||upper(stades) like '+
                           SQ+state+'%'+SQ+' ';
           EndIf;
    
           if openOnly = 'on';
              stmt+= 'and ord.msoucd between 0 and 1 ' +
                     'and ord.msosts <> '+SQ+'D'+SQ+' ' +
                     'and ord.msocpd = 0 ';
           EndIf;
    
           if manualDeactivation = 'on';
              stmt+= 'and msosts = '+SQ+'V'+SQ+' ';
           EndIf;
    
           if displayLog = 'on';
              stmt+= 'and msof04 = '+SQ+'L'+SQ+' ';
           EndIf;
    
           writeLogMessage('Processing SQL: %s' + X'25' :
                           %trim(stmt));
    
           vvOut.applySorters= '1';
           if vvIn_char('download')='true';
             col(1).sqlName='MSOSO#';
             col(1).heading='MSOSO#';
             col(2).sqlName='MSOTOS';
             col(2).heading='MSOTOS';
             col(3).sqlName='MSOSTG';
             col(3).heading='MSOSTG';
             col(4).sqlName='MSOPH#';
             col(4).heading='MSOPH#';
             col(5).sqlName='MSOLSN';
             col(5).heading='MSOLSN';
             col(6).sqlName='MSOFRN';
             col(6).heading='MSOFRN';
             col(7).sqlName='DUEDATE';
             col(7).heading='DUEDATE';
             col(8).sqlName='MSODTM';
             col(8).heading='MSODTM';
             col(9).sqlName='MSOASS';
             col(9).heading='MSOASS';
             col(10).sqlName='MSOST#';
             col(10).heading='MSOST#';
             col(11).sqlName='MSOSTR';
             col(11).heading='MSOSTR';
             col(12).sqlName='MSOSST';
             col(12).heading='MSOSST';
             col(13).sqlName='MSOSDR';
             col(13).heading='MSOSDR';
             col(14).sqlName='MSOCTY';
             col(14).heading='MSOCTY';
             vvOut.download    = '1';
             vvOut.file        = 'SVORDMNG.xls';
             vvOut_execSQLtoSS(vvOut:stmt:%addr(col):%elem(col));
           else;
             vvOut.rootName    = 'recs';
             vvOut.success     = 'true';
             vvOut.applyPaging = '1';
             vvOut.applySorters= '1';
             vvOut_execSQLtoJSON(vvOut:stmt);
           endif;
          /end-free
         p getSearchResults...
         p                 e

  • #2
    A service program can't interrogate the structure of a data structure defined internally within another RPG program, thus you need to define the DS externally as an object (typically as a physical file compiled without a member). Then you can reference it in your d specs as an externally defined data structure, and pass its name so the service program can dissect it when pulling in data from the browser. For example the Category Maintenance program VVADM_CATS uses externally defined data structures VVDSADM2, VVDSADM3 and VVDSADM4.

    That said, there may be something unusual about the way the data is being sent to the RPG program in your example. Can you post the front-end code you're using to do that? It would also be helpful to see the post values in the browser console.

    Rob

    Comment


    • #3
      Thanks Rob. I tried to respond, but apparently my response was to big, so let me break it up a bit.

      What I'm attempting to do is give the users multiple fields to search with that then repopulates the grid. I use multiple fields because I'm using auto complete on the fields. I won't include the stores and models for that though because those are all working ok.

      The bit that is doing the json request is. The search button is what is doing the request. Please note this is my first attempt at doing any of this, so if there is a better way I'm all ears, and in this case eyes.

      Code:
      Ext.define('SVORDMNG.view.Main', {
          extend: 'Ext.container.Viewport',
      
          requires: [
              'Ext.grid.Panel',
              'Ext.grid.View',
              'Ext.form.Panel',
              'Ext.tab.Panel',
              'Ext.form.field.Date',
              'Ext.form.field.Time',
              'Ext.tab.Tab',
              'Ext.form.field.Checkbox',
              'Ext.tab.Bar',
              'Ext.toolbar.Paging',
              'Ext.grid.column.Column'
          ],
      
          layout: 'fit',
      
          initComponent: function() {
              var me = this;
      
              Ext.applyIf(me, {
                  items: [
                      {
                          xtype: 'gridpanel',
                          itemId: 'filegrid',
                          title: 'Order Management',
                          columnLines: true,
                          forceFit: false,
                          store: 'Main',
                          viewConfig: {
                              itemId: 'filegridview'
                          },
                          dockedItems: [
                              {
                                  xtype: 'toolbar',
                                  dock: 'top',
                                  height: 303,
                                  itemId: 'filegridtoolbartop',
                                  items: [
                                      {
                                          xtype: 'form',
                                          height: 296,
                                          itemId: 'searchByForm',
                                          bodyPadding: 10,
                                          collapsible: true,
                                          title: 'Search By',
                                          jsonSubmit: true,
                                          items: [
                                              {
                                                  xtype: 'tabpanel',
                                                  width: 800,
                                                  bodyBorder: true,
                                                  frameHeader: false,
                                                  header: false,
                                                  manageHeight: false,
                                                  activeTab: 0,
                                                  plain: true,
                                                  items: [
                                                      {
                                                          xtype: 'panel',
                                                          height: 180,
                                                          maxHeight: 180,
                                                          minHeight: 180,
                                                          width: 800,
                                                          bodyBorder: true,
                                                          title: 'Order Details',
                                                          dockedItems: [
                                                              {
                                                                  xtype: 'container',
                                                                  dock: 'left',
                                                                  width: 390,
                                                                  layout: 'column',
                                                                  items: [
                                                                      {
                                                                          xtype: 'combobox',
                                                                          stateId: 'orderNumber',
                                                                          stateful: true,
                                                                          itemId: 'orderNumber',
                                                                          padding: 5,
                                                                          fieldLabel: 'Order #',
                                                                          labelWidth: 125,
                                                                          name: 'orderNumber',
                                                                          enableKeyEvents: true,
                                                                          enforceMaxLength: true,
                                                                          maxLength: 9,
                                                                          maxLengthText: 'The maximum length for this field is {9}',
                                                                          hideTrigger: true,
                                                                          displayField: 'ORDERNBR',
                                                                          minChars: 4,
                                                                          queryParam: 'orderNumber',
                                                                          store: 'orderNumberAutoComplete',
                                                                          triggerAction: 'query',
                                                                          typeAhead: true,
                                                                          valueField: 'ORDERNBR'
                                                                      },
                                                                      {
                                                                          xtype: 'combobox',
                                                                          stateId: 'orderType',
                                                                          stateful: true,
                                                                          itemId: 'orderType',
                                                                          padding: 5,
                                                                          fieldLabel: 'Order Type',
                                                                          labelWidth: 125,
                                                                          name: 'orderType',
                                                                          hideTrigger: true,
                                                                          displayField: 'ORDERTYPE',
                                                                          queryMode: 'local',
                                                                          store: 'orderTypes',
                                                                          triggerAction: 'query',
                                                                          typeAhead: true,
                                                                          valueField: 'ORDERTYPE'
                                                                      },
                                                                      {
                                                                          xtype: 'datefield',
                                                                          stateId: 'dueDate',
                                                                          stateful: true,
                                                                          itemId: 'dueDate',
                                                                          padding: 5,
                                                                          fieldLabel: 'Due Date',
                                                                          labelWidth: 125,
                                                                          name: 'dueDate'
                                                                      },
                                                                      {
                                                                          xtype: 'combobox',
                                                                          stateId: 'assignee',
                                                                          stateful: true,
                                                                          itemId: 'assignee',
                                                                          padding: 5,
                                                                          fieldLabel: 'Assigned To:',
                                                                          labelWidth: 125,
                                                                          name: 'assignee',
                                                                          enableKeyEvents: true,
                                                                          enforceMaxLength: true,
                                                                          maxLength: 30,
                                                                          maxLengthText: 'The maximum length for this field is {30}',
                                                                          hideTrigger: true,
                                                                          displayField: 'EMPNAME',
                                                                          minChars: 3,
                                                                          queryParam: 'assignee',
                                                                          store: 'getAssignees',
                                                                          triggerAction: 'query',
                                                                          typeAhead: true,
                                                                          valueField: 'EMPNAME'
                                                                      },
                                                                      {
                                                                          xtype: 'combobox',
                                                                          stateId: 'stageFrom',
                                                                          stateful: true,
                                                                          itemId: 'stageFrom',
                                                                          padding: 5,
                                                                          fieldLabel: 'Stage From:',
                                                                          labelWidth: 125,
                                                                          name: 'stageFrom',
                                                                          enableKeyEvents: true,
                                                                          enforceMaxLength: true,
                                                                          maxLength: 3,
                                                                          maxLengthText: 'The maximum length for this field is {3}',
                                                                          hideTrigger: true,
                                                                          displayField: 'STAGECODE',
                                                                          minChars: 1,
                                                                          queryParam: 'stage',
                                                                          store: 'getStages',
                                                                          triggerAction: 'query',
                                                                          typeAhead: true,
                                                                          valueField: 'STAGECODE'
                                                                      }
                                                                  ]
                                                              }
                                                          ],
                                                          items: [
                                                              {
                                                                  xtype: 'container',
                                                                  layout: 'column',
                                                                  items: [
                                                                      {
                                                                          xtype: 'combobox',
                                                                          stateId: 'ani',
                                                                          stateful: true,
                                                                          itemId: 'ani',
                                                                          padding: 5,
                                                                          fieldLabel: 'Phone Number:',
                                                                          labelWidth: 125,
                                                                          name: 'ani',
                                                                          enableKeyEvents: true,
                                                                          enforceMaxLength: true,
                                                                          maxLength: 12,
                                                                          minLength: 10,
                                                                          regex: '\d{3}-\d{3}-\d{4}|\d{10}',
                                                                          hideTrigger: true,
                                                                          displayField: 'ANI',
                                                                          minChars: 3,
                                                                          queryParam: 'ani',
                                                                          store: 'getANIs',
                                                                          triggerAction: 'query',
                                                                          typeAhead: true
                                                                      },
                                                                      {
                                                                          xtype: 'combobox',
                                                                          stateId: 'customerName',
                                                                          stateful: true,
                                                                          itemId: 'customerName',
                                                                          padding: 5,
                                                                          fieldLabel: 'Customer Name:',
                                                                          labelWidth: 125,
                                                                          name: 'customerName',
                                                                          enableKeyEvents: true,
                                                                          maxLength: 30,
                                                                          maxLengthText: 'The maximum length for this field is {30}',
                                                                          hideTrigger: true,
                                                                          displayField: 'CSTNAME',
                                                                          queryParam: 'customerName',
                                                                          store: 'getCustomerNames',
                                                                          triggerAction: 'query',
                                                                          typeAhead: true,
                                                                          valueField: 'CSTNAME'
                                                                      },
                                                                      {
                                                                          xtype: 'timefield',
                                                                          stateId: 'dueTime',
                                                                          stateful: true,
                                                                          height: '',
                                                                          itemId: 'dueTime',
                                                                          padding: 5,
                                                                          fieldLabel: 'Due Time:',
                                                                          labelWidth: 125,
                                                                          name: 'dueTime'
                                                                      },
                                                                      {
                                                                          xtype: 'combobox',
                                                                          stateId: 'errorCode',
                                                                          stateful: true,
                                                                          itemId: 'errorCode',
                                                                          padding: 5,
                                                                          fieldLabel: 'Error Code:',
                                                                          labelWidth: 125,
                                                                          name: 'errorCode',
                                                                          hideTrigger: true,
                                                                          displayField: 'ERRORDESC',
                                                                          minChars: 1,
                                                                          queryParam: 'errorCode',
                                                                          store: 'getErrorCodes',
                                                                          triggerAction: 'query',
                                                                          typeAhead: true,
                                                                          valueField: 'ERRORCODE'
                                                                      },
                                                                      {
                                                                          xtype: 'combobox',
                                                                          stateId: 'stageTo',
                                                                          stateful: true,
                                                                          itemId: 'stageTo',
                                                                          padding: 5,
                                                                          fieldLabel: 'Stage To:',
                                                                          labelWidth: 125,
                                                                          name: 'stageTo',
                                                                          enableKeyEvents: true,
                                                                          maxLength: 3,
                                                                          maxLengthText: 'The maximum length for this field is {3}',
                                                                          hideTrigger: true,
                                                                          displayField: 'STAGECODE',
                                                                          minChars: 1,
                                                                          queryParam: 'stage',
                                                                          store: 'getStages',
                                                                          triggerAction: 'query',
                                                                          typeAhead: true,
                                                                          valueField: 'STAGECODE'
                                                                      }
                                                                  ]
                                                              }
                                                          ]
                                                      },
                                                      {
                                                          xtype: 'panel',
                                                          maxHeight: 180,
                                                          minHeight: 180,
                                                          title: 'Address',
                                                          items: [
                                                              {
                                                                  xtype: 'container',
                                                                  height: 148,
                                                                  margin: '',
                                                                  layout: {
                                                                      type: 'table',
                                                                      columns: 4
                                                                  },
                                                                  items: [
                                                                      {
                                                                          xtype: 'combobox',
                                                                          stateId: 'streetNumber',
                                                                          stateful: true,
                                                                          itemId: 'streetNumber',
                                                                          padding: 5,
                                                                          width: 70,
                                                                          fieldLabel: 'Number',
                                                                          labelAlign: 'top',
                                                                          name: 'streetNumber',
                                                                          hideTrigger: true
                                                                      },
                                                                      {
                                                                          xtype: 'combobox',
                                                                          stateId: 'street',
                                                                          stateful: true,
                                                                          itemId: 'street',
                                                                          padding: 5,
                                                                          width: 231,
                                                                          fieldLabel: 'Street',
                                                                          labelAlign: 'top',
                                                                          name: 'street',
                                                                          enableKeyEvents: true,
                                                                          maxLength: 20,
                                                                          maxLengthText: 'The maximum length for this field is {20}',
                                                                          hideTrigger: true,
                                                                          displayField: 'STREET',
                                                                          minChars: 2,
                                                                          queryParam: 'street',
                                                                          store: 'getStreets',
                                                                          triggerAction: 'query',
                                                                          typeAhead: true,
                                                                          valueField: 'STREET'
                                                                      },
                                                                      {
                                                                          xtype: 'combobox',
                                                                          stateId: 'streetSuffix',
                                                                          stateful: true,
                                                                          itemId: 'streetSuffix',
                                                                          padding: 5,
                                                                          fieldLabel: 'Suffix',
                                                                          labelAlign: 'top',
                                                                          name: 'streetSuffix',
                                                                          enableKeyEvents: true,
                                                                          enforceMaxLength: true,
                                                                          maxLength: 26,
                                                                          maxLengthText: 'The maximum length for this field is {26}',
                                                                          hideTrigger: true,
                                                                          displayField: 'STREETSFX',
                                                                          minChars: 1,
                                                                          queryParam: 'streetSuffix',
                                                                          store: 'getStreetSuffixes',
                                                                          triggerAction: 'query',
                                                                          typeAhead: true
                                                                      },
                                                                      {
                                                                          xtype: 'combobox',
                                                                          stateId: 'streetDirectional',
                                                                          stateful: true,
                                                                          itemId: 'streetDirectional',
                                                                          padding: 5,
                                                                          fieldLabel: 'Directional',
                                                                          labelAlign: 'top',
                                                                          name: 'streetDirectional',
                                                                          enableKeyEvents: true,
                                                                          enforceMaxLength: true,
                                                                          maxLength: 25,
                                                                          maxLengthText: 'The maximum length for this field is {25}',
                                                                          hideTrigger: true,
                                                                          displayField: 'STREETDIR',
                                                                          minChars: 1,
                                                                          queryParam: 'streetDir',
                                                                          store: 'getStreetDirectionals',
                                                                          triggerAction: 'query',
                                                                          typeAhead: true
                                                                      },
                                                                      {
                                                                          xtype: 'combobox',
                                                                          colspan: 2,
                                                                          stateId: 'city',
                                                                          stateful: true,
                                                                          itemId: 'city',
                                                                          padding: 5,
                                                                          width: 311,
                                                                          fieldLabel: 'City',
                                                                          labelAlign: 'top',
                                                                          name: 'city',
                                                                          enableKeyEvents: true,
                                                                          enforceMaxLength: true,
                                                                          maxLength: 26,
                                                                          maxLengthText: 'The maximum length for this field is {26}',
                                                                          hideTrigger: true,
                                                                          displayField: 'CITYNAME',
                                                                          minChars: 1,
                                                                          queryParam: 'city',
                                                                          store: 'getCities',
                                                                          triggerAction: 'query',
                                                                          typeAhead: true
                                                                      },
                                                                      {
                                                                          xtype: 'combobox',
                                                                          colspan: 2,
                                                                          stateId: 'state',
                                                                          stateful: true,
                                                                          itemId: 'state',
                                                                          padding: 5,
                                                                          fieldLabel: 'State',
                                                                          labelAlign: 'top',
                                                                          name: 'state',
                                                                          enableKeyEvents: true,
                                                                          enforceMaxLength: true,
                                                                          maxLength: 25,
                                                                          maxLengthText: 'The maximum length for this field is {25}',
                                                                          hideTrigger: true,
                                                                          displayField: 'STATENAME',
                                                                          minChars: 1,
                                                                          queryParam: 'state',
                                                                          store: 'getStates',
                                                                          triggerAction: 'query',
                                                                          typeAhead: true
                                                                      }
                                                                  ]
                                                              }
                                                          ]
                                                      },
                                                      {
                                                          xtype: 'panel',
                                                          title: 'Other Details',
                                                          items: [
                                                              {
                                                                  xtype: 'container',
                                                                  maxHeight: 180,
                                                                  minHeight: 180,
                                                                  layout: {
                                                                      type: 'table',
                                                                      columns: 1
                                                                  },
                                                                  items: [
                                                                      {
                                                                          xtype: 'checkboxfield',
                                                                          stateId: 'openOnly',
                                                                          stateful: true,
                                                                          itemId: 'openOnly',
                                                                          padding: 5,
                                                                          fieldLabel: 'Open Only:',
                                                                          labelWidth: 125,
                                                                          name: 'openOnly',
                                                                          boxLabel: '',
                                                                          checked: true,
                                                                          uncheckedValue: 'off'
                                                                      },
                                                                      {
                                                                          xtype: 'checkboxfield',
                                                                          stateId: 'manualDeactivation',
                                                                          stateful: true,
                                                                          itemId: 'manualDeactivation',
                                                                          padding: 5,
                                                                          fieldLabel: 'Manual Deactivation:',
                                                                          labelWidth: 125,
                                                                          name: 'manualDeactivation',
                                                                          boxLabel: '',
                                                                          uncheckedValue: 'off'
                                                                      },
                                                                      {
                                                                          xtype: 'checkboxfield',
                                                                          stateId: 'displayLog',
                                                                          stateful: true,
                                                                          itemId: 'displayLog',
                                                                          padding: 5,
                                                                          fieldLabel: 'Display Log:',
                                                                          labelWidth: 125,
                                                                          name: 'displayLog',
                                                                          boxLabel: '',
                                                                          uncheckedValue: 'off'
                                                                      }
                                                                  ]
                                                              }
                                                          ]
                                                      },
                                                      {
                                                          xtype: 'panel',
                                                          padding: 5,
                                                          title: 'Export',
                                                          items: [
                                                              {
                                                                  xtype: 'container',
                                                                  height: 205,
                                                                  maxHeight: 200,
                                                                  minHeight: 200,
                                                                  padding: 5,
                                                                  layout: {
                                                                      type: 'table',
                                                                      columns: 1
                                                                  },
                                                                  items: [
                                                                      {
                                                                          xtype: 'button',
                                                                          itemId: 'downloadbutton',
                                                                          padding: 5,
                                                                          iconCls: 'vvicon-16 vvicon-download',
                                                                          text: 'Export Results',
                                                                          tooltip: 'download'
                                                                      }
                                                                  ]
                                                              }
                                                          ]
                                                      }
                                                  ],
                                                  tabBar: {
                                                      xtype: 'tabbar',
                                                      stateId: 'searchTabBar',
                                                      stateful: true
                                                  }
                                              },
                                              {
                                                  xtype: 'button',
                                                  handler: function(button, e) {
                                                      if (this.up('panel').getForm().isValid()) {
                                                          //     Ext.Msg.alert('Test', Ext.JSON.encode(this.up('panel').getForm().getValues()));
                                                          Ext.getStore('Main').getProxy().extraParams.data = Ext.JSON.encode(this.up('panel').getForm().getValues());
                                                          Ext.ComponentQuery.query('#filegrid #pagingtoolbar')[0].getStore().loadPage(1);
                                                      }
                                                  },
                                                  itemId: 'search',
                                                  text: 'Search'
                                              }
                                          ]
                                      }
                                  ]
                              },
                              {
                                  xtype: 'pagingtoolbar',
                                  dock: 'bottom',
                                  itemId: 'pagingtoolbar',
                                  width: 360,
                                  displayInfo: true,
                                  store: 'Main'
                              }
                          ],
                          columns: [
                              {
                                  xtype: 'gridcolumn',
                                  width: 91,
                                  dataIndex: 'ORDER#',
                                  text: 'Order #'
                              },
                              {
                                  xtype: 'gridcolumn',
                                  width: 48,
                                  dataIndex: 'TOS',
                                  text: 'TOS'
                              },
                              {
                                  xtype: 'gridcolumn',
                                  width: 52,
                                  dataIndex: 'STAGE',
                                  text: 'Stage'
                              },
                              {
                                  xtype: 'gridcolumn',
                                  width: 104,
                                  dataIndex: 'ANI',
                                  text: 'ANI'
                              },
                              {
                                  xtype: 'gridcolumn',
                                  width: 296,
                                  dataIndex: 'NAME',
                                  text: 'Customer Name'
                              },
                              {
                                  xtype: 'gridcolumn',
                                  renderer: function(value, metaData, record, rowIndex, colIndex, store, view) {
                                      return (typeof Valence !== 'undefined') ? Valence.util.Helper.formatDate(value) : value;
                                  },
                                  width: 99,
                                  dataIndex: 'DUEDATE',
                                  text: 'Due Date'
                              },
                              {
                                  xtype: 'gridcolumn',
                                  width: 78,
                                  dataIndex: 'DUETIME',
                                  text: 'Due Time'
                              },
                              {
                                  xtype: 'gridcolumn',
                                  width: 71,
                                  align: 'right',
                                  dataIndex: 'ASSIGNEE',
                                  text: 'Assignee'
                              },
                              {
                                  xtype: 'gridcolumn',
                                  width: 56,
                                  dataIndex: 'STRNUMBER',
                                  text: 'Addr #'
                              },
                              {
                                  xtype: 'gridcolumn',
                                  width: 200,
                                  dataIndex: 'STREET',
                                  text: 'Street'
                              },
                              {
                                  xtype: 'gridcolumn',
                                  width: 54,
                                  dataIndex: 'STRSUFFIX',
                                  text: 'Suffix'
                              },
                              {
                                  xtype: 'gridcolumn',
                                  width: 38,
                                  dataIndex: 'STRDIR',
                                  text: 'Dir'
                              },
                              {
                                  xtype: 'gridcolumn',
                                  width: 200,
                                  dataIndex: 'CITYNAME',
                                  text: 'City'
                              },
                              {
                                  xtype: 'gridcolumn',
                                  width: 47,
                                  dataIndex: 'STATE',
                                  text: 'State'
                              },
                              {
                                  xtype: 'gridcolumn',
                                  maxWidth: 85,
                                  minWidth: 85,
                                  width: 85,
                                  dataIndex: 'ERRORCODE',
                                  text: 'Error Code'
                              }
                          ]
                      }
                  ]
              });
      
              me.callParent(arguments);
          }
      
      });

      Comment


      • #4
        store
        Code:
        Ext.define('SVORDMNG.store.Main', {
            extend: 'Ext.data.Store',
        
            requires: [
                'SVORDMNG.model.Main',
                'Ext.util.Sorter'
            ],
        
            constructor: function(cfg) {
                var me = this;
                cfg = cfg || {};
                me.callParent([Ext.apply({
                    autoLoad: true,
                    model: 'SVORDMNG.model.Main',
                    remoteSort: true,
                    storeId: 'main',
                    sorters: {
                        property: 'ORDER#'
                    }
                }, cfg)]);
            }
        });

        Comment


        • #5
          Model
          Code:
          Ext.define('SVORDMNG.model.Main', {
              extend: 'Ext.data.Model',
          
              requires: [
                  'Ext.data.Field',
                  'Ext.data.proxy.Ajax',
                  'Ext.data.reader.Json'
              ],
          
              fields: [
                  {
                      name: 'ORDER#'
                  },
                  {
                      name: 'TOS'
                  },
                  {
                      name: 'STAGE'
                  },
                  {
                      name: 'ANI'
                  },
                  {
                      name: 'NAME'
                  },
                  {
                      name: 'DUEDATE'
                  },
                  {
                      name: 'DUETIME'
                  },
                  {
                      name: 'ASSIGNEE'
                  },
                  {
                      name: 'STRNUMBER'
                  },
                  {
                      name: 'STREET'
                  },
                  {
                      name: 'STRSUFFIX'
                  },
                  {
                      name: 'STRDIR'
                  },
                  {
                      name: 'CITYNAME'
                  },
                  {
                      name: 'STATE'
                  },
                  {
                      name: 'ERRORCODE'
                  }
              ],
          
              proxy: {
                  type: 'ajax',
                  extraParams: {
                      pgm: 'SVORDMNG',
                      action: 'getSearchResults'
                  },
                  url: '/valence/vvcall.pgm',
                  reader: {
                      type: 'json',
                      root: 'recs',
                      totalProperty: 'totalCount'
                  }
              }
          });

          Comment


          • #6
            To really understand what's going on, what we'd need to see is (1) the code making the Ajax call and (2) a screenshot of your browser console showing the post variables being sent on that call.

            Comment


            • #7
              I thought I would also just try the file creation option to see if I could get that to work, but I must be doing something wrong there as well maybe? Note that there will only ever be 1 result returned.

              numElements is set to 0 after the call to vvIn.

              So I created this table with DDL.
              Code:
              CREATE TABLE VALENCE40.SEARCHREC (                       
                ORDERNUMBER FOR COLUMN ORDNUM CHAR(9) NOT NULL,        
                ORDERTYPE CHAR(2) NOT NULL,                            
                DUEDATE DATE NOT NULL,                                 
                ASSIGNEE CHAR(30) NOT NULL,                            
                STAGEFROM CHAR(3) NOT NULL,                            
                ANI DEC(10,0) NOT NULL,                                
                CUSTOMERNAME FOR COLUMN CSTNAME CHAR(30) NOT NULL,     
                DUETIME TIME NOT NULL,                                 
                ERRORCODE CHAR(2) NOT NULL,                            
                STAGETO CHAR(3) NOT NULL,                              
                STREETNUMBER FOR COLUMN STRNUM CHAR(7) NOT NULL,       
                STREET CHAR(20) NOT NULL,                              
                STREETSUFFIX FOR COLUMN STRSUF CHAR(26) NOT NULL,      
                STREETDIRECTIONAL FOR COLUMN STRDIR CHAR(25) NOT NULL, 
                CITY CHAR(26) NOT NULL,                                
                STATE CHAR(25) NOT NULL,    
                OPENONLY CHAR(3) NOT NULL,                                   
                MANUALDEACTIVATION FOR COLUMN MANDEACT CHAR(3) NOT NULL,     
                DISPLAYLOG CHAR(3) NOT NULL                                  
               )
              I then changed the proc as follows:

              Code:
                    **************************************************************
                    *
                    * getSearchResults
                    *
                    **************************************************************
                   p getSearchResults...
                   p                 b
                   d                 pi
              
                   d stmt            s           4096a   varying
                   d search          s             32a   varying
                   d col             ds                  likeDS(vvSSCol)
                   d                                     dim(14) inz
              
                   d sr            e ds                  extname(SEARCHREC) inz dim(1)
                   d                                     QUALIFIED
              
                   d* searchDS        ds
                   d* orderNumber...
                   d*                                9a   varying
                   d* orderType...
                   d*                                2a   varying
                   d* dueDate...
                   d*                                 d
                   d* assignee...
                   d*                               30a   varying
                   d* stageFrom...
                   d*                                3a   varying
                   d* ani...
                   d*                               10p 0
                   d* customerName...
                   d*                               30a   varying
                   d* dueTime...
                   d*                                 t
                   d* errorCode...
                   d*                                2a   varying
                   d* stageTo...
                   d*                                3a   varying
                   d* streetNumber...
                   d*                                7a   varying
                   d* street...
                   d*                               20a   varying
                   d* streetSuffix...
                   d*                               26a   varying
                   d* streetDirectional...
                   d*                               25a   varying
                   d* city...
                   d*                               26a   varying
                   d* state...
                   d*                               25a   varying
                   d* openOnly...
                   d*                                3a   varying
                   d* manualDeactivation...
                   d*                                3a   varying
                   d* displayLog...
                   d*                                3a   varying
              
                   d numElements     s              3  0
                   d ii              s              3  0
              
                    /free
                     stmt= 'SELECT ' +
                           '   msoso# ORDER#, ' +
                           '   MSOTOS TOS, ' +
                           '   MSOSTG STAGE, ' +
                           '   MSOPH# ANI, ' +
                           '   case when MSONMF = ''N'' then trim(MSOLSN||MSOFRN) ' +
                           '      else trim(msolsn)||'', ''||trim(msofrn) end as NAME, ' +
                           '   case when msodyy = 0 then date(''0001-01-01'') ' +
                           '      else date(digits(MSODYY)||''-''|| ' +
                           '                digits(MSODMM)||''-''|| ' +
                           '                digits(MSODDD)) end DUEDATE, ' +
                           '   time(substr(digits(msodtm),1,2)||'':''|| ' +
                           '        substr(digits(msodtm),3,2)) as DUETIME, ' +
                           '   MSOASS ASSIGNEE, ' +
                           '   MSOST# STRNUMBER, ' +
                           '   MSOSTR STREET, ' +
                           '   MSOSST STRSUFFIX, ' +
                           '   MSOSDR STRDIR, ' +
                           '   coalesce(CTYDES, '' '') CITYNAME, ' +
                           '   MSOSTA STATE, ' +
                           '   coalesce(svecde, '' '') ERRORCODE ' +
                           'FROM svord ' +
                           'left outer join sverr on msoso# = sveso# ' +
                           'left outer join SVUSRCMT on svecde = cmterr ' +
                           'left outer join dbcty on msocty = ctycab ' +
                           'left outer join dbsta on msosta = stasab ' +
                           'left outer join syecd on msoass = ecdecd ' +
                           'left outer join DBSDR on msosdr = sdrsdr ' +
                           'left outer join DBSST on msosst = sstsst ' +
                           'WHERE substr(msoso#,1,1) not in (''A'', ''C'') ';
              
                     vvIn.variableName = 'data';
                     vvIn.object       = 'SEARCHREC';
                     vvIn.totalSize    = %size(sr:*all);
                     vvIn.elementSize  = %size(sr);
                     vvIn.longSqlNames = 'Y';
                     vvIn.lowercase    = 'Y';
                     numElements       = vvIn_JSON(vvIn:%addr(sr));
              
                     //orderNumber          = vvIn_char('orderNumber' : toUpper);
                     //orderType            = vvIn_char('orderType' : toUpper);
                     //dueDate              = vvIn_date('dueDate');
                     //assignee             = vvIn_char('assignee');
                     //stageFrom            = vvIn_char('stageFrom' : toUpper);
                     //ani                  = vvIn_num('ani');
                     //customerName         = vvIn_char('cutsomerName' : toUpper);
                     //dueTime              = vvIn_time('dueTime');
                     //errorCode            = vvIn_char('errorCode' : toUpper);
                     //stageTo              = vvIn_char('stageTo' : toUpper);
                     //streetNumber         = vvIn_char('streetNumber' : toUpper);
                     //street               = vvIn_char('street' : toUpper);
                     //streetSuffix         = vvIn_char('streetSuffix' : toUpper);
                     //streetDirectional    = vvIn_char('streetDirectional' : toUpper);
                     //city                 = vvIn_char('city' : toUpper);
                     //state                = vvIn_char('state' : toUpper);
                     //openOnly             = vvIn_char('openOnly' : toUpper);
                     //manualDeactivation   = vvIn_char('manualDeactivation' : toUpper);
                     //displayLog           = vvIn_char('displayLog' : toUpper);
              
                     writeLogMessage('json message: %s' : vvIn_char('data'));
                     writeLogMessage('number of elements: %s' : %char(numElements));
                     writeLogMessage('orderNumber: %s' : sr(1).ordNum);
              
                     if sr(1).ordNum <> *blanks;
                        stmt+= ' and upper(MSOSO#) like '+
                                     SQ+sr(1).ordNum+'%'+SQ+' ';
                     endIf;
              
                     if sr(1).orderType <> *blanks;
                        stmt+= ' and upper(MSOTOS) like '+
                                     SQ+sr(1).orderType+'%'+SQ+' ';
                     endIf;
              
                     if sr(1).dueDate > *loval;
                        stmt+= ' and char(DUEDATE) like '+
                                     SQ+%char(sr(1).dueDate)+'%'+SQ+' ';
                     endIf;
              
                     if sr(1).assignee <> *blanks;
                        stmt+= ' and upper(ECDNAM) like '+
                                     SQ+sr(1).assignee+'%'+SQ+' ';
                     endIf;
              
                     if sr(1).stageFrom <> *blanks;
                        stmt+= ' and upper(MSOSTG) between '+
                                     SQ+sr(1).stageFrom+'%'+SQ+' ';
              
                        if sr(1).stageTo <> *Blanks;
                           stmt+= ' and '+SQ+sr(1).stageTo+'%'+SQ+' ';
                        else;
                           stmt+= ' and '+SQ+'ZZZ'+SQ+' ';
                        endIf;
              
                     endIf;
              
                     if sr(1).ani <> *zeros;
                        stmt+= ' and char(MSOPH#) like '+
                                     SQ+%char(sr(1).ani)+'%'+SQ+' ';
                     EndIf;
              
                     if sr(1).cstName <> *blanks;
                        //TODO need to come back and deal with res vs bus
                        stmt+= ' and upper(trim(MSOLSN))||upper(trim(MSOFRN)) like '+
                                  SQ+sr(1).cstName+'%'+SQ+' ';
                     EndIf;
              
                     if sr(1).dueTime <> *loval;
                        stmt+= ' and char(MSODTM) like '+
                                     SQ+%char(sr(1).dueTime)+'%'+SQ+' ';
                     EndIf;
              
                     if sr(1).errorCode <> *blanks;
                        stmt+= ' and upper(CMTERR)||'+
                                     SQ+' - '+SQ+'||upper(CMTMSG) like '+
                                     SQ+sr(1).errorCode+'%'+SQ+' ';
                     EndIf;
              
                     if sr(1).strNum <> *blanks;
                        stmt+= ' and upper(MSOST#) like '+
                                     SQ+sr(1).strNum+'%'+SQ+' ';
                     endIf;
              
                     if sr(1).street <> *blanks;
                        stmt+= ' and upper(MSOSTR) like '+
                                     SQ+sr(1).street+'%'+SQ+' ';
                     EndIf;
              
                     if sr(1).strSuf <> *blanks;
                        stmt+= ' and upper(sstsst)||'+
                                     SQ+' - '+SQ+'||upper(sstdes) like '+
                                     SQ+sr(1).strSuf+'%'+SQ+' ';
                     EndIf;
              
                     if sr(1).strDir <> *blanks;
                        stmt+= ' and upper(sdrsdr)||'+
                                     SQ+' - '+SQ+'||upper(sdrdes) like '+
                                     SQ+sr(1).strDir+'%'+SQ+' ';
                     EndIf;
              
                     if sr(1).city <> *blanks;
                        stmt+= ' and upper(ctycab)||'+
                                     SQ+' - '+SQ+'||upper(ctydes) like '+
                                     SQ+sr(1).city+'%'+SQ+' ';
                     EndIf;
              
                     if sr(1).state <> *blanks;
                        stmt+= ' and upper(stasab)||'+
                                     SQ+' - '+SQ+'||upper(stades) like '+
                                     SQ+sr(1).state+'%'+SQ+' ';
                     EndIf;
              
                     if sr(1).openOnly = 'on';
                        stmt+= 'and ord.msoucd between 0 and 1 ' +
                               'and ord.msosts <> '+SQ+'D'+SQ+' ' +
                               'and ord.msocpd = 0 ';
                     EndIf;
              
                     if sr(1).manDeact = 'on';
                        stmt+= 'and msosts = '+SQ+'V'+SQ+' ';
                     EndIf;
              
                     if sr(1).displayLog = 'on';
                        stmt+= 'and msof04 = '+SQ+'L'+SQ+' ';
                     EndIf;
              
                     writeLogMessage('Processing SQL: %s' + X'25' :
                                     %trim(stmt));
              
                     vvOut.applySorters= '1';
                     if vvIn_char('download')='true';
                       col(1).sqlName='MSOSO#';
                       col(1).heading='MSOSO#';
                       col(2).sqlName='MSOTOS';
                       col(2).heading='MSOTOS';
                       col(3).sqlName='MSOSTG';
                       col(3).heading='MSOSTG';
                       col(4).sqlName='MSOPH#';
                       col(4).heading='MSOPH#';
                       col(5).sqlName='MSOLSN';
                       col(5).heading='MSOLSN';
                       col(6).sqlName='MSOFRN';
                       col(6).heading='MSOFRN';
                       col(7).sqlName='DUEDATE';
                       col(7).heading='DUEDATE';
                       col(8).sqlName='MSODTM';
                       col(8).heading='MSODTM';
                       col(9).sqlName='MSOASS';
                       col(9).heading='MSOASS';
                       col(10).sqlName='MSOST#';
                       col(10).heading='MSOST#';
                       col(11).sqlName='MSOSTR';
                       col(11).heading='MSOSTR';
                       col(12).sqlName='MSOSST';
                       col(12).heading='MSOSST';
                       col(13).sqlName='MSOSDR';
                       col(13).heading='MSOSDR';
                       col(14).sqlName='MSOCTY';
                       col(14).heading='MSOCTY';
                       vvOut.download    = '1';
                       vvOut.file        = 'SVORDMNG.xls';
                       vvOut_execSQLtoSS(vvOut:stmt:%addr(col):%elem(col));
                     else;
                       vvOut.rootName    = 'recs';
                       vvOut.success     = 'true';
                       vvOut.applyPaging = '1';
                       vvOut.applySorters= '1';
                       vvOut_execSQLtoJSON(vvOut:stmt);
                     endif;
                    /end-free
                   p getSearchResults...
                   p                 e

              Comment


              • #8
                Hey Rob,

                The ajax call is occurring from the model.

                Code:
                {
                                                            xtype: 'button',
                                                            handler: function(button, e) {
                                                                if (this.up('panel').getForm().isValid()) {
                                                                    //     Ext.Msg.alert('Test', Ext.JSON.encode(this.up('panel').getForm().getValues()));
                                                                    Ext.getStore('Main').getProxy().extraParams.data = Ext.JSON.encode(this.up('panel').getForm().getValues());
                                                                    Ext.ComponentQuery.query('#filegrid #pagingtoolbar')[0].getStore().loadPage(1);
                                                                }
                                                            },
                                                            itemId: 'search',
                                                            text: 'Search'
                                                        }
                So it is adding the extraparams with a parent of data and using the Ext.JSON.encode method to then put the form's values in as JSON. Then the model is triggered to reload since it now has the new extra params. This is a button handler that is attached to the search button for the form.

                This is what it shows in the access log for apache though.

                10.250.48.132 - - [12/Sep/2014:15:21:10 -0500] "GET /valence/vvcall.pgm?_dc=1410553296755&pgm=SVORDMNG&action=g etSearchResults&data=%7B%22orderNumber%22%3A%22066 000000%22%2C%22orderType%22%3A%22%22%2C%22dueDate% 22%3A%22%22%2C%22assignee%22%3A%22%22%2C%22stageFr om%22%3A%22%22%2C%22ani%22%3A%22%22%2C%22customerN ame%22%3A%22%22%2C%22errorCode%22%3A%22%22%2C%22st ageTo%22%3A%22%22%2C%22streetNumber%22%3A%22%22%2C %22street%22%3A%22%22%2C%22streetSuffix%22%3A%22%2 2%2C%22streetDirectional%22%3A%22%22%2C%22city%22% 3A%22%22%2C%22state%22%3A%22%22%2C%22openOnly%22%3 A%22on%22%2C%22manualDeactivation%22%3A%22off%22%2 C%22displayLog%22%3A%22off%22%7D&page=1&start=0&li mit=25&sort=%5B%7B%22property%22%3A%22ORDER%23%22% 2C%22direction%22%3A%22ASC%22%7D%5D&sid=289B971762 50AA98C7BF5A97D882FE7DC261372E968A78F801FF49197E9A BF6F&app=1004 HTTP/1.1" 200 6842 "http://dpitest.czncorp.com:7040/desktop/autocodeapps/SVORDMNG/index.html?app=1004&key=1410553281805&lang=en" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.103 Safari/537.36"

                I'm not sure how I capture the model sending its request for data in the browser console. :( I'll google and see if I can find out how though.

                Comment


                • #9
                  Tim,

                  If you have time we could jump on a quick online meeting and help get this figured out. If so please email support@cnxcorp.com.

                  Thanks

                  Comment


                  • #10
                    I found the values in the console.

                    2014-09-12_15-49-24.jpg

                    Comment


                    • #11
                      Thanks Rob. I sent a quick email. Not sure what you needed in it, but my contact info is in the signature.

                      Thanks for helping!

                      Comment

                      Working...
                      X