cancel
Showing results for 
Search instead for 
Did you mean: 

OVS : ApplyResult method is not getting called

Former Member
0 Kudos

Hi Experts,

I have implemented OVS input help for a field in the page. When I click on Inputhelp, the pop-up appears and after clicking on "go", it gives the search result as well. But when I click on the value I want, result is not getting tranferred to the input field.

I cheked using message manager class and found that the ApplyResult method is not getting called when I select one of the value. What could be the reason of this? please help.

Br,

Nilz

Accepted Solutions (1)

Accepted Solutions (1)

former_member201361
Active Contributor
0 Kudos

Hi Nilz,

Apply result method should be called when u select a row in the OVS table.

the messages which u have tried to print using message manager may not be printed, coz the pop up(OVS Window) window is destroyed. can u post the code which u have written in apply result, with some context for what u have developed OVS.

Former Member
0 Kudos

Hi,

As far as I know, the MessageManager is Singleton, so you can register any messages inside your method and they should show up in the screen during the next render phase.

One behaviour that you should be aware, the OVS is attached to an input field, for instance. This field can be "Read Only", and you still can use the OVS. However, when we have this situation, you will notice that the "Lead Selection" box inside the OVS is hidden. Also, at this time, the function applyResult will not be called.

Hope it helps,

Daniel

Former Member
0 Kudos

Hi Daniel,

Yes, you were right. The problem was with Input Field. It was kept as read only and hence the apply result method was not getting called. When I changed it to readonly false, it started working.

But I want this field to be readonly. Working on this. If you have any suggessions, please do so.

Br,

Nilz

Former Member
0 Kudos

Hi,

I'd ask you to explain a bit more what are you trying to achieve. It looks like you want to use an OVS, and you probably have something going on already. I do not see how you can "bypass" this behaviour, it looks more conceptual, which I think you should not be using the OVS in a readOnly field. (Actually I think the OVS should not open when the Field is readOnly, but it opens..) - Maybe you should use a different field, implement another "OVS" if you have a different logic going on.

Regards,

Daniel

Former Member
0 Kudos

Hi Daniel,

It is done now. What I have done is I kept 2 input fields: 1 readonly (A) and the other normal (B). Width of B I kept as 0px. Both the fields are attached to single Transperant Container. And attached OVS to B. But it looks like it is attached to A (as B is invisible). in wdModifyView, I am copying data from OVS enabled context attributes to Display only context attributes.

It is working fine now. Thank you. I felt initially that Read Only Input Field could be the issue but kept on trying other possibilities.

Br,

Nilz

Answers (1)

Answers (1)

former_member185879
Active Contributor
0 Kudos

Hi Nilz,

Can u copy the code which u have written in the OVS or atleast in the apply result method?

did you tried printing some messages in apply result method?

Regards

SM Nizamudeen