spagobi 调用分析[myself]

版本:spagobi 4.2 

 

从server上点击document的file缩略图开始:

 

【】http://localhost:8080/SpagoBI/js/src/ext/sbi/browser/FolderView.js

 

       return Sbi.browser.FolderView.superclass.onClick.apply(this, arguments);//line 53  //FolderDetailPanel.js

 

  首先缩略图js :/web-content/js/src/ext/sbi/browser/FolderViewTemplate.js

 

【】http://localhost:8080/SpagoBI/js/src/ext/sbi/browser/FolderDetailPanel.js

 

if(r.engine) {//451

    if(action !== null) {

    this.performActionOnDocument(r, action);

    } else {

    this.fireEvent('ondocumentclick', this, r, e);// DocumentsBrowser.js

    }

    } else{

    if(action !== null) {

    this.performActionOnFolder(r, action);

    } else {

    this.fireEvent('onfolderclick', this, r, e); // DocumentsBrowser.js

    }

    }      

    }

 

 

【】http://localhost:8080/SpagoBI/js/src/ext/sbi/browser/DocumentsBrowser.js

 

, onDocumentClick: function(panel, doc) {  //[280]

var maxNumberOfExecutionTabs = Sbi.settings.browser.maxNumberOfExecutionTabs || 0;

var numOfExecutionDocs =  this.containerBrowser.brSheet.items.length-1;

if (maxNumberOfExecutionTabs > 1 && numOfExecutionDocs >= maxNumberOfExecutionTabs){

alert(LN('sbi.execution.executionpage.tabs.overMaxNum'));

return

}

 

var executionPanel = new Sbi.execution.ExecutionPanel({

title: doc.title !== undefined ? doc.title : doc.name

, closable: true

}, doc);

executionPanel.tabType = 'document';

 

executionPanel.addListener('crossnavigationonothertab', this.onCrossNavigation, this);

executionPanel.addListener('openfavourite', this.onOpenFavourite, this);

executionPanel.addListener('closeDocument', this.closeDocument,this);

 

this.addPanelToSheet(executionPanel);

executionPanel.execute(); // ExecutionPanel.js

}

 

http://localhost:8080/SpagoBI/js/src/ext/sbi/execution/ExecutionPanel.js

 

【】js/src/ext/sbi/execution/ExecutionWizard.js

 

【一】 /SpagoBIProject/web-content/js/src/ext/sbi/execution/RoleSelectionPage.js

 

, synchronize: function( executionInstance ) {

if(this.fireEvent('beforesynchronize', this, executionInstance, this.executionInstance) !== false){

this.executionInstance = executionInstance;

this.synchronizeToolbar( executionInstance ); 

this.store.load({params: executionInstance}); //【0】

}

}

 

 

【0】

http://localhost:8080/SpagoBI/servlet/AdapterHTTP?ACTION_NAME=GET_ROLES_FOR_EXECUTION_ACTION&LIGHT_NAVIGATOR_DISABLED=TRUE

 

请求:

OBJECT_ID30

OBJECT_LABELfact_ms_livetable

isFromCrossfalse

 

源代码

OBJECT_ID=30&OBJECT_LABEL=fact_ms_livetable&isFromCross=false

 

响应:

{"metaData":{"root":"root","totalProperty":"results","valueField":"id","displayField":"name","descriptionField":"description","fields":["recNo",{"name":"id","header":"id"},{"name":"name","header":"name"},{"name":"description","header":"description"},"recCk"]},"root":[{"id":5,"name":"/spagobi/admin","description":"/spagobi/admin","typeId":32,"typeCd":"ADMIN","savePersonalFolder":true,"saveMeta":true,"saveRemember":true,"saveSubobj":true,"seeMeta":true,"seeNotes":true,"seeSnapshot":true,"seeSubobj":true,"seeViewpoints":true,"sendMail":true,"buildQbe":true,"doMassiveExport":true,"manageUsers":true,"defaultRole":false,"editWorksheet":true,"seeDocBrowser":true,"seeMyData":true,"seeFavourites":true,"seeSubscriptions":true,"seeToDoList":true,"createDocument":true,"kpiCommentEditAll":false,"kpiCommentEditMy":false,"kpiCommentDelete":false,"bmCategories":[165,164]}],"results":1}

 

http://localhost:8080/SpagoBI/servlet/AdapterHTTP?ACTION_NAME=START_EXECUTION_PROCESS_ACTION&LIGHT_NAVIGATOR_DISABLED=TRUE

 

请求:

OBJECT_ID30

OBJECT_LABELfact_ms_livetable

ROLE/spagobi/admin

isFromCrossfalse

isPossibleToComeBackToRol...false

源代码

OBJECT_ID=30&OBJECT_LABEL=fact_ms_livetable&isFromCross=false&isPossibleToComeBackToRolePage=false&ROLE=%2Fspagobi%2Fadmin

 

响应:

{"execContextId":"bd9f5a41537a11e4b719c361df584794"}

 

 

【二】/SpagoBIProject/web-content/js/src/ext/sbi/execution/DocumentExecutionPage.js

 

 synchronize: function( executionInstance ) {

    Sbi.trace('[DocumentExecutionPage.synchronize]: IN');

if(this.fireEvent('beforesynchronize', this, executionInstance, this.executionInstance) !== false){  //716 【点击file操作】

this.executionInstance = executionInstance;

 

 

this.infoPage.synchronize( executionInstance );//【1】

this.showInfo();//【2】

 

this.parametersPanelSynchronizationPending = true;

this.parametersPanel.synchronize( this.executionInstance );//【3】

 

this.shortcutsPanelSynchronizationPending = true;

this.shortcutsPanel.synchronize( this.executionInstance );//【4】

}

 

 

 

【1】

 

this.infoPage.synchronize( executionInstance );  //【leh:11 -1】  do nothing无效

 

 

 

this.showInfo();

 

[TRACE] : [DocumentExecutionPage.synchronize]: IN

Log.js (第 33 行)

[TRACE] : [DocumentExecutionPage.showInfo]: IN

Log.js (第 33 行)

[TRACE] : [DocumentExecutionPage.synchronizeToolbar]: IN

Log.js (第 33 行)

[TRACE] : [DocumentExecutionPageToolbar.synchronize]: IN

Log.js (第 33 行)

[TRACE] : [DocumentExecutionPageToolbar.synchronize]: Document mode is equal to [INFO]

Log.js (第 33 行)

[TRACE] : [DocumentExecutionPageToolbar.addButtonsForInfoMode]: IN

Log.js (第 33 行)

[TRACE] : [DocumentExecutionPageToolbar.addButtonsForInfoMode]: OUT

Log.js (第 33 行)

[TRACE] : [DocumentExecutionPageToolbar.synchronize]: OUT

Log.js (第 33 行)

[TRACE] : [DocumentExecutionPage.synchronizeToolbar]: OUT

Log.js (第 33 行)

[TRACE] : [DocumentExecutionPage.showInfo]: OUT

 

【2】

this.parametersPanelSynchronizationPending = true;

this.parametersPanel.synchronize( this.executionInstance );

 

 

http://localhost:8080/SpagoBI/servlet/AdapterHTTP?ACTION_NAME=GET_PARAMETERS_FOR_EXECUTION_ACTION&LIGHT_NAVIGATOR_DISABLED=TRUE&CONTEST=undefined

 

请求:

OBJECT_ID30

OBJECT_LABELfact_ms_livetable

ROLE/spagobi/admin

SBI_EXECUTION_ID18d7359e537a11e4b719c361df584794

isFromCrossfalse

isPossibleToComeBackToRol...false

 

OBJECT_ID=30&OBJECT_LABEL=fact_ms_livetable&isFromCross=false&isPossibleToComeBackToRolePage=false&ROLE=%2Fspagobi%2Fadmin&SBI_EXECUTION_ID=18d7359e537a11e4b719c361df584794

 

响应:[]

 

 

 

 

http://localhost:8080/SpagoBI/servlet/AdapterHTTP?ACTION_NAME=GET_VIEWPOINTS_ACTION&LIGHT_NAVIGATOR_DISABLED=TRUE

 

请求:

OBJECT_ID30

OBJECT_LABELfact_ms_livetable

ROLE/spagobi/admin

SBI_EXECUTION_ID18d7359e537a11e4b719c361df584794

isFromCrossfalse

isPossibleToComeBackToRol...false

 

OBJECT_ID=30&OBJECT_LABEL=fact_ms_livetable&isFromCross=false&isPossibleToComeBackToRolePage=false&ROLE=%2Fspagobi%2Fadmin&SBI_EXECUTION_ID=18d7359e537a11e4b719c361df584794

 

响应:

{"results":[]}

 

【3】

 

 

this.shortcutsPanelSynchronizationPending = true;

this.shortcutsPanel.synchronize( this.executionInstance );//【leh:13 -1】 

 

http://localhost:8080/SpagoBI/servlet/AdapterHTTP?ACTION_NAME=GET_SUBOBJECTS_ACTION&LIGHT_NAVIGATOR_DISABLED=TRUE

 

请求:

OBJECT_ID30

OBJECT_LABELfact_ms_livetable

ROLE/spagobi/admin

SBI_EXECUTION_IDbd9f5a41537a11e4b719c361df584794

isFromCrossfalse

isPossibleToComeBackToRol...false

源代码

OBJECT_ID=30&OBJECT_LABEL=fact_ms_livetable&isFromCross=false&isPossibleToComeBackToRolePage=false&ROLE=%2Fspagobi%2Fadmin&SBI_EXECUTION_ID=bd9f5a41537a11e4b719c361df584794

 

 

响应:

 

{"results":[]}

 

 

http://localhost:8080/SpagoBI/servlet/AdapterHTTP?ACTION_NAME=GET_SNAPSHOTS_ACTION&LIGHT_NAVIGATOR_DISABLED=TRUE

 

 

请求:

 

OBJECT_ID30

OBJECT_LABELfact_ms_livetable

ROLE/spagobi/admin

SBI_EXECUTION_IDbd9f5a41537a11e4b719c361df584794

isFromCrossfalse

isPossibleToComeBackToRol...false

源代码

OBJECT_ID=30&OBJECT_LABEL=fact_ms_livetable&isFromCross=false&isPossibleToComeBackToRolePage=false&ROLE=%2Fspagobi%2Fadmin&SBI_EXECUTION_ID=bd9f5a41537a11e4b719c361df584794

 

响应:

{"results":[]}

 

 

 

 

【4】

 

http://localhost:8080/SpagoBI/servlet/AdapterHTTP?ACTION_NAME=GET_URL_FOR_EXECUTION_ACTION&LIGHT_NAVIGATOR_DISABLED=TRUE

 

请求:

 

OBJECT_ID30

OBJECT_LABELfact_ms_livetable

PARAMETERS{}

ROLE/spagobi/admin

SBI_EXECUTION_IDbd9f5a41537a11e4b719c361df584794

isFromCrossfalse

isPossibleToComeBackToRol...false

源代码

OBJECT_ID=30&OBJECT_LABEL=fact_ms_livetable&isFromCross=false&isPossibleToComeBackToRolePage=false&ROLE=%2Fspagobi%2Fadmin&SBI_EXECUTION_ID=bd9f5a41537a11e4b719c361df584794&PARAMETERS=%7B%7D

 

 

响应:

 

{"url":"http://localhost:8080/SpagoBI/servlet/AdapterHTTP?NEW_SESSION=TRUE&user_id=biadmin&PAGE=ExecuteBIObjectPage&TITLE_VISIBLE=FALSE&TOOLBAR_VISIBLE=FALSE&OBJECT_LABEL=fact_ms_livetable&ROLE=/spagobi/admin&RUN_ANYWAY=TRUE&IGNORE_SUBOBJECTS_VIEWPOINTS_SNAPSHOTS=TRUE&SBI_EXECUTION_ID=bd9f5a41537a11e4b719c361df584794&LIGHT_NAVIGATOR_ID=7923753e-0048-4113-821c-3c7b79765814&isFromCross=false&SBI_ENVIRONMENT=DOCBROWSER"}

 

 

 

 

 

 

 

 

【5】

http://localhost:8080/SpagoBI/servlet/AdapterHTTP?ACTION_NAME=GET_NOTES_ACTION&LIGHT_NAVIGATOR_DISABLED=TRUE

 

 

请求:

MESSAGEGET_LIST_NOTES

SBI_EXECUTION_IDbd9f5a41537a11e4b719c361df584794

源代码

SBI_EXECUTION_ID=bd9f5a41537a11e4b719c361df584794&MESSAGE=GET_LIST_NOTES

 

响应:

{"results":[],"totalCount":0}

 

 

【6】

 

[TRACE] : [DocumentExecutionPage.executeDocument]: IN

Log.js (第 33 行)

[TRACE] : [DocumentExecutionPage.doExecuteDocumunt]: Executing document with these parameters: {}

Log.js (第 33 行)

[DEBUG] : [DocumentPage.synchronize] : IN

Log.js (第 33 行)

[TRACE] : [DocumentPage.synchronize]: Executing document with these parameters: {}

Log.js (第 33 行)

[DEBUG] : [DocumentPage.synchronize] : OUT

Log.js (第 33 行)

[TRACE] : [DocumentExecutionPage.showDocument]: IN

Log.js (第 33 行)

[TRACE] : [DocumentExecutionPage.synchronizeToolbar]: IN

Log.js (第 33 行)

[TRACE] : [DocumentExecutionPageToolbar.synchronize]: IN

Log.js (第 33 行)

[TRACE] : [DocumentExecutionPageToolbar.synchronize]: Document mode is equal to [VIEW]

Log.js (第 33 行)

[TRACE] : [DocumentExecutionPageToolbar.addButtonsForViewMode]: IN

Log.js (第 33 行)

[DEBUG] : [ExportersMenu.createMenu] : Creating menu items for an exporter menu associated to a document of type [DASH]

Log.js (第 33 行)

[DEBUG] : [ExportersMenu.createMenu] : Menu item for exportation format [PDF] added succesfully to the exporter menu associated to a document of type [DASH]

Log.js (第 33 行)

[DEBUG] : [ExportersMenu.createMenu] : Succesfully created [1] menu items out of [1] requested exportation format

Log.js (第 33 行)

[TRACE] : [DocumentExecutionPageToolbar.addButtonsForViewMode]: OUT

Log.js (第 33 行)

[TRACE] : [DocumentExecutionPageToolbar.synchronize]: OUT

Log.js (第 33 行)

[TRACE] : [DocumentExecutionPage.synchronizeToolbar]: OUT

Log.js (第 33 行)

[TRACE] : [DocumentExecutionPage.showDocument]: OUT

Log.js (第 33 行)

[TRACE] : [DocumentExecutionPage.executeDocument]: OUT

Log.js (第 33 行)

TypeError: l.fireFn is undefined

 

 

if(l.fireFn.apply(l.scope||this.obj||window, arguments) === false){

 

ext-all-debug.js (第 1504 行)

[TRACE] : [DocumentPage.synchronize]: Url for execution is equal to: http://localhost:8080/SpagoBI/servlet/AdapterHTTP?NEW_SESSION=TRUE&user_id=biadmin&PAGE=ExecuteBIObjectPage&TITLE_VISIBLE=FALSE&TOOLBAR_VISIBLE=FALSE&OBJECT_LABEL=fact_ms_livetable&ROLE=/spagobi/admin&RUN_ANYWAY=TRUE&IGNORE_SUBOBJECTS_VIEWPOINTS_SNAPSHOTS=TRUE&SBI_EXECUTION_ID=bd9f5a41537a11e4b719c361df584794&LIGHT_NAVIGATOR_ID=7923753e-0048-4113-821c-3c7b79765814&isFromCross=false&SBI_ENVIRONMENT=DOCBROWSER

 

 

 

 

你可能感兴趣的:(Go)