• 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.

[HELPED] not sure if it's a bug or not (problem vvcall ?)

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

  • [HELPED] not sure if it's a bug or not (problem vvcall ?)

    hi,
    i have a strange problem

    I use the following (pgm: cmgp10r) in my coding and i receive the below mentioned error in my browser-console;
    Code:
    [E] Ext.JSON.decode(): You're trying to decode an invalid JSON String: Incorrect Action was transferred || (GETLAYOUT)
    when i copy the rpg-program logic into program cmqu10r and change this in my model definition, everything works fine..??

    The "cmqu10r" ("qu" from quotation) is the initial app which is on the portal, and the "cmgp10r" ("GP" from General Purpose) is in fact a separate program that contains procedures to be shared among the full project..(comparable to a service pgm)
    'I've verified that the cmgp10r is member of the authorized pgm of the valence portal) .
    is this a bug, or am i missing something?

    PHP Code:
    Ext.define('Shared.model.Layout',{
        
    extend 'Ext.data.Model',
        
    fields : ['CMXDESC'],    
        
    proxy : {
            
    type 'ajax',
            
    url 'vvcall.pgm',
            
    extraParams : {
                  
    pgm 'cmgp10r',
     
    //           pgm : 'cmqu10r',
                
    action 'getLayout'
            
    },
            
    reader : {
                
    type 'json',
                
    root 'layout'
            
    }
        }
    }); 

  • #2
    It seems like the return from your pgm is not in JSON format. Check in the web console what is being returned. If the program is not authorized it could be returning an HTML message. otherwise it is possible your program is returning the string "Incorrect action was transferred"

    Feel free to paste the return into here as long as it is not super long.

    Comment

    Working...
    X