cancel
Showing results for 
Search instead for 
Did you mean: 

Search Help - Transfer the selected Data

Former Member
0 Kudos

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


Thank you in advance !

Accepted Solutions (0)

Answers (1)

Answers (1)

steffen_mueller3
Participant
0 Kudos

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

Former Member
0 Kudos

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 !