cancel
Showing results for 
Search instead for 
Did you mean: 

DropDownBox Problem

Former Member
0 Kudos

Hi All,

I am using DropdownbyIndex UI element in my application. I am getting values from backend. And i write to action OnSelect.

public void onActionOnSelectUser(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )

{

//@@begin onActionOnSelectUser(ServerEvent)

wdContext.current__Arch__Arm_Project_Edit_InputElement().setIm_Project_Assignedto(wdContext.currentEx_User_ListElement().getUsername());

//@@end

}

Here i am using two different context elements. I am getting data from one context and assigning to another. My problem is here it is not updating values in backend.

Any Idea?

Thankx

Regards

RG

Accepted Solutions (1)

Accepted Solutions (1)

abhijeet_mukkawar
Active Contributor
0 Kudos

Ravi,

If the code is not giving any exception, then check you are executing model after putting input value in it.

i.e after this action you should execute model to store this value in backend

also using external debugging check if r3 is getting values or not(if you are exectuing model after setting its input value)

:(for external debugging goto transaction code se37, open your bapi->goto Utilities->Setting->Debugging->Here check if "Act" check box is activated or not), then put a break point in code and run application from WD.

regards

Answers (2)

Answers (2)

Former Member
0 Kudos

Hai,

public void onActionOnSelectUser(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )

{

//@@begin onActionOnSelectUser(ServerEvent)

wdContext.current__Arch__Arm_Project_Edit_InputElement().setIm_Project_Assignedto(wdContext.currentEx_User_ListElement().getUsername());

<b>wdContext.current__Arch__Arm_Project_Edit_InputElement()..modelObject().exceute();</b>

//@@end

}

Regards,

Naga

Former Member
0 Kudos

Hi Ravi,

Check weather are you able to update data in R/3. Are you executing the RFC after setting the value???

Regards,

Jhansi