cancel
Showing results for 
Search instead for 
Did you mean: 

Select Options

Former Member
0 Kudos

Hi experts,

I have a problem with a select options... I declared a select options in my main window and I used the select options in a view.

I have to use this select options in another view of my WDA also, but when I make the link of this view with the select options and I going to show my view, I have an error... This error is "The current application triggered a termination with a short dump.

". How can I do for to use the select options in more views?

Tks a lot.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

it seems that you are trying to re-create your select options....if you are using the same select options in multiple views..you just need to create them only once....

thanks..

AS.

Former Member
0 Kudos

Hi,

I checked with debug and I see that my problem is when I execute in a second view the method ADD_SELECTION_FIELD: this method has as parameter the ID (I_ID). I think that the problem is that ID is the same, but I need to use the same select-options with the same data... How can I do?

Former Member
0 Kudos

Hi,

{

I checked with debug and I see that my problem is when I execute in a second view the method ADD_SELECTION_FIELD: this method has as parameter the ID (I_ID). I think that the problem is that ID is the same, but I need to use the same select-options with the same data... How can I do?

}

as I said that if you are using the same select options..than you do not need to recreate them....if in your application you already created them once....do not call ADD_SELECTION_FIELD method again.....if this is your first time creating the select options....than call this method....

thanks...

AS...

Former Member
0 Kudos

Ok,you are right but I have this problem:I have my ADD_SELECTION_FIELD method only in the WDDOINIT of the first view... If I click from my dashboard directly on the second view, I don't have executing the ADD_SELECTION_FIELD method, so I don't see the select-options...

Former Member
0 Kudos

Hi

{

Ok,you are right but I have this problem:I have my ADD_SELECTION_FIELD method only in the WDDOINIT of the first view... If I click from my dashboard directly on the second view, I don't have executing the ADD_SELECTION_FIELD method, so I don't see the select-options... }

you can easily create an attribute to see if your select-option method is already being called or not....if it is...than do not call it again...if it is not...than call this method....which will solve the problem.....

try to create this attribute at component level and make it public...so all the views can see and share it....

Thanks...

AS...

Former Member
0 Kudos

Tks I solved!

Former Member
0 Kudos

Hi,

I guess you have created the select options in a separate view right and try to call the same view upon link of an action.

When you are doing this always delete the component if exists before you create it.

Also in WINDOW context, for that select options you have embedded that control to view contianer element. You need to avoid these.

In how many views, you want to have this same select options.

Or

that many component usages you need to create, but as per coding have iit in component controller and use the same method.

Paste the short dump or check in ST22.

Regards,

Lekha.