cancel
Showing results for 
Search instead for 
Did you mean: 

how to refresh inputfield with f4 help

Former Member
0 Kudos

hello friends,

I have an input field with f4 help, ( which are basically variants ); user can delete the variant, and then i call again the bapi to retrieve the new variant, but in inputfield it still shows the old variant ( the one which user just deleted is still visible in inputfield )

anyidea how I can refresh the inputfield f4 help...

Regards,

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member720137
Active Participant
0 Kudos

Hi

Before Populating Values in Input Field from Bapi, Just Clear ur Attribute first then call Bapi..

e.g

IWDAttributeInfo name1Info1 =wdContext.getNodeInfo().getAttribute( ATTRIBUTE NAME)

ISimpleTypeModifiable name1=name1Info1.getModifiableSimpleType();

IModifiableSimpleValueSet name1ValueSet=name1.getSVServices().getModifiableSimpleValueSet();

just write nameValueSet.clear()

Now call ur Bapi...

Regards

Puneet

Former Member
0 Kudos

Hello Puneet,

Thanks for your reply, this can solve me problem, but the thing is how I can refresh the inputfield, as the value ( which is deleted is still visible in inputfiled )

I was not able to find any method to refresh or reset the inputfield, ( cant initlize to "" ) as then it always do like wise...

Any idea how I can reset the input filed or refresh ?

Regards,

former_member720137
Active Participant
0 Kudos

Hi

Just set the value of context as null..

or u can use View.ResetView() in WDDoModify())

Regards

Puneet

Message was edited by:

Armin Reichert

Former Member
0 Kudos

I am doing <b>view.resetView();</b>, but it did not help me,

The value is still visible in inputfield, , I just want to refresh the inputfield...

Regards,

former_member720137
Active Participant
0 Kudos

Hi

Y dont u set the I/P field context to null on action Delete ?

put the last statement as wdcontext.currentcontextelment.setI/P(null); inside action Delete.

i assume u r not using I/P inside Table UI..

Regards

Puneet

Former Member
0 Kudos

what is I/P ?

Regards,

Former Member
0 Kudos

Does any one has any idea / suggestion for me ?

Regards,