on 06-18-2014 3:31 PM
Hi there,
i'd like to create a search help from backend using a BAPI in a view, i can retrieve the result list but when i select a row and want to put that first row value in my "inputWithHelpValues", the value is not set.
I have the error message : "Exception in method setBeanPropertyValue" pointing on my custom bean object.
If anyone have a solution, it would be helpful.
PS : i use WCEM 3.0
Hi,
I suggest to debug the issue. What kind of exception do you get? Is there any BeanPropertyValue at all? Is the search result list perhaps empty?
Regards,
Steffen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi again, sorry for the late.
That exception is the only one in my Log Viewer.
Here are some data from my development :
<helpValuesSearchMapping name="ValueHelpWithFunctionModule"
shlpName="IBO_SEARCH_USER_PERSON" table="">
<parameter name="NID" field="BNAME" descriptionField="" />
</helpValuesSearchMapping>
<helpValuesSearch name="ValueHelpWithFunctionModule"
type="list" description="Hierarchy Catg" maxRow="100">
<method name="getHelpValues" type="backend" />
<parameter name="NID" description="" valueDescriptionKey="" />
</helpValuesSearch>
<wcf:inputWithHelpValues id="hvStartZ"
searchManager="#{cc.vch.partnerDetails.helpValuesSearchManager}"
searchName="ValueHelpWithFunctionModule"
searchBean="#{cc.vch.partnerDetails}" searchPropertyName="partnerNid"
title="Recherche d'autrui" />
@BuildTime
public void prepareData() {
UserModuleAccess access = getModuleAccess();
UserListSearchHelpBean bean = (UserListSearchHelpBean)createBusinessObjectBean("UserListSearchHelpBean",
UserListSearchHelpBean.class.getName(),
UserListSearchHelpBean.class.getName());
bean.setHelpValuesSearchManager(access.getHelpValuesSearchManager());
}
public class UserListSearchHelpBean extends BusinessObjectBeanBaseImpl<UserModuleAccess>
implements HelpValuesSearchMappingProvider {
private String partnerNid;
public String getPartnerNid() {
return partnerNid;
}
public void setPartnerNid(String prio) {
this.partnerNid = prio;
}
@Override
public Map<String, String> getHelpValuesSearchMapping(String searchName) {
// TODO Auto-generated method stub
Map<String, String> map = new HashMap<String, String>();
if (searchName.equals("ValueHelpWithFunctionModule")) {
map.put("NID", "partnerNid");
}
return map;
}
@Override
protected String getObjectKey() {
// TODO Auto-generated method stub
return null;
}
}
If i forgot something, tell me.
I've checked "IBO_SEARCH_USER_PERSON" search help fields to match with the NID (from BNAME field)
I've try without HelpValuesSearchMappingProvider (and set the identical name on both bean and xml file), same result
The only way i can make a Search Help work was by calling a BAPI (and we know it's not the easiest way ). But even if i use a BAPI, i'm not able to bind data to my inputWithHelpValues
If you have any clue to solve my problem, i would be very grateful
Thanks !
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.