I have a ListBox 


I have Destination set to - a method called  - Filter_OnChange_Send_list


When a value in the List Box Changes, the above method is supposed to fire 


But nothing happens .. what am I doing wrong ???


Omran Bhatti wrote:

I have a ListBox 


I have Destination set to - a method called  - Filter_OnChange_Send_list


When a value in the List Box Changes, the above method is supposed to fire 


But nothing happens .. what am I doing wrong ???


Hi Omran, 


Can you share your OML, or maybe some prints? 


Thanks


Hello Onram,

You can check a few things.
First, if you have any kind of JavaScript error (check in the consola of the browser, inspect). THis can be disabling the action.

Second, you can check if it is really NOT calling the action, or if you have some kind of logic problem that makes your action not behave as you expect.

I did a very fast test and everything is working here (the OnChange assign Screen action is being called correctly when I select an element in the List Box).

Cheers.

Ho Omran,

Can you please share your oml it will be helpful to find out the problem.


Reagrds

-SK-

Hi Omran,

Have you tried to set the break point in onchange action and see if the pointer is coming inside that action when you change the value?

If it is coming inside the action, have you set any if condition which is not allowing the further execution of logic?

Also check when you come inside the action, if pointer is going to exception handling?

Also check the logs from Service Center.

Thanks and Regards,

Suraj Borade

I had to create a button that called a screen action that assigned the currently selected value in the Listbox to the variable I could then pass to the server action to update my table. It worked :) 

Couldn't figure out why changing the listbox selection would not call the destination screen action I had assigned. Tried the debugger too but it would never get to the screen action.

Also make sure that the OnChange is triggered. It won't be triggered unless the element loses the focus, meaning unless you press anything else(any part of the screen).

Eduardo Jauch wrote:

Hello Onram,

You can check a few things.
First, if you have any kind of JavaScript error (check in the consola of the browser, inspect). THis can be disabling the action.

Second, you can check if it is really NOT calling the action, or if you have some kind of logic problem that makes your action not behave as you expect.

I did a very fast test and everything is working here (the OnChange assign Screen action is being called correctly when I select an element in the List Box).

Cheers.


Hi, 

My list box on change action is not executing can you tell me what can be the error, its executing if i m calling it on, onchange of container enclosing list box but if i do so the list box multiple selection does not works.


Thanks

Hi Shivangi Thakur,

Have you tried debugging and adding a breakpoint on your screen action to see if it gets triggered? That will help understand where your problem might be.

Without more info it's hard to pinpoint what could be wrong, if you can provide a sample OML with the problem it will make it easier to check for issues.

Jorge Martins wrote:

Hi Shivangi Thakur,

Have you tried debugging and adding a breakpoint on your screen action to see if it gets triggered? That will help understand where your problem might be.

Without more info it's hard to pinpoint what could be wrong, if you can provide a sample OML with the problem it will make it easier to check for issues.

Hi Jorge,

I did debugging, with normal list box, onchange action is executing but i just checked when i m using a forge component named "Multiple Select" , its not executing ..

here is a sample oml attached with this msg


Hi Shivangi Thakur,

So this is a problem with a Forge component, not with the default behaviour of the platform?

My suggestion is you first read this quick guide on how to ask questions in the Forums, and post your issue on the Component's Support section.

If you searched there, you'd quickly notice there is already an answer to your issue posted. You will need to slightly modify the component so it triggers the OnChange event of the original Combobox/Listbox.

Jorge Martins wrote:

Hi Shivangi Thakur,

So this is a problem with a Forge component, not with the default behaviour of the platform?

My suggestion is you first read this quick guide on how to ask questions in the Forums, and post your issue on the Component's Support section.

If you searched there, you'd quickly notice there is already an answer to your issue posted. You will need to slightly modify the component so it triggers the OnChange event of the original Combobox/Listbox.

Thanks Jorge for guiding me :)