Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

How to override emptyPickListMessage of PcikList interface

$
0
0
SmartClient version : SmartClient_v90p_2014-03-07_PowerEdition
Browser(s) and version(s) : Internet Explorer Version 9 and Google Chrome Version 28.0.1500.95 m


We tried to override the default value of emptyPickListMessage of PickList interface after loading required smart client libraries
The code is as follows :
Code:

isc.PickList.addInterfaceProperties({emptyPickListMessage : "test message"});
Below is the code to construct the PickList in my jsp:
Code:

sc.ListGrid.create({
        ID:"test",
        fields:[ {        name:"DEPARTMENT",
                                pickListProperties: {showFilterEditor:true},
                                pickListFields:[{name:"NUM",title:formatText('<fmt:message key="Field.DEP_NUMBER"/>')},
                                                                {name:"NAME",title:formatText('<fmt:message key="Field.ENGLISH_NAME"/>')}                                       
                                                                ]
                        }
                        ]
});

but when we put the emptyPickListMessage in pickListProperties,it is working fine.
But we need this customized/overriden value to be appeared/shown in all our pick list menus accross the application.
so we decided to keep the overriden value in a common file called common.jsp which will be included in all jsp pages.

Viewing all articles
Browse latest Browse all 4756

Trending Articles