How to use adapter inside the application in worklight

前端 未结 2 1577
灰色年华
灰色年华 2020-12-18 17:21

Im new to worklight. Now im started using adapter. Check this link one of my stackoverflow friend have same doubt click this Calling the procedure inside the application. Th

2条回答
  •  没有蜡笔的小新
    2020-12-18 17:49

    enter image description here

    Here i retrieved the values. but its not displaying in html page. this is my code

    function wlCommonInit(){
        // Common initialization code goes here
        WL.Logger.debug("inside the wlcommoninit");
        busyIndicator = new WL.BusyIndicator('AppBody');
        getData();
    
    }
    
    
    
    
    
    
    function loadFeedsSuccess(result){
        WL.Logger.debug("Feed retrieve success");
    
    }
    
    function loadFeedsFailure(result){
        WL.Logger.error("Feed retrieve failure");
    
    }
    
    
    function getData() {
        var invocationData = {
                adapter : 'SqlAdap',
                procedure : 'procedure1',
                parameters : []
            };
    
        WL.Client.invokeProcedure(invocationData,{
            onSuccess :  loadFeedsSuccess,
            onFailure : loadFeedsFailure,
        });
        }
    

提交回复
热议问题