Skip to Content
0

Passing the dropdown values in the URL to compare Design Studio reports

Oct 09, 2017 at 07:27 AM

78

avatar image
Former Member

Dear All,

I need to compare the values from drop down with each other.e,g in Dropdown I have values like A, B ,C. Now user needs to compare the values from A with B or C.I tried to add below code at the on select of dropdown of company BU

if(CHECKBOX_1.isChecked())

{

APPLICATION.openNewWindow("Open doc link of the same report for comparison");

CHECKBOX_1.setChecked(true);}

. With this option check box is always checked and open a new window but the values doesn't pass from parent to child windows. Please help in this regards.

My design studio version 1.6

10 |10000 characters needed characters left characters exceeded

Hi Afzal,

In order for the community to assist, you will need to provide much more detailed information to clarify your requirement, including screenshots and the script code you are using to build the URL.

Regards,

Mustafa.

0
Former Member
Mustafa Bensan

Hi Mustafa,

Thanks for your reply.The user wants to compare the different Lov's of the dropdown with the same reports.It should like to open a new window to comapare. I tried with

Below given is the code with the url link that is set on Select of the drop down of BU.

if(CHECKBOX_1.isChecked())

{

APPLICATION.openNewWindow("http://0.0.0.0.0:8081/BOE/OpenDocument/opendoc/openDocument.jsp?sIDType=CUID&iDocID=M1nV1XUAB68HAEECRgAAQ00DAqwSaZYAAAA");

CHECKBOX_1.setChecked(true);

}

Attached herein is the screen shot ss1.png
ss1.png (50.1 kB)
0
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Mustafa Bensan Oct 09, 2017 at 09:20 AM
0

Hi Afzal,

From the script code you have provided, it looks like all you are doing is launching the OpenDoc link of the Design Studio application without actually passing any application-specific URL parameters. I suggest you review the following tutorial to understand the process for implementing URL parameters: Pass URL Parameters Between Applications

Regards,

Mustafa.

Show 16 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Mustafa,

Thanks for update.I was not able to achieve to pass the values from Dropdown to be popped up once I click on the check box .From the dropdown the selected values should have been passed in the URL.

It works if we have parameters by using

APPLICATION.openPromptDialog(400, 500);

It is same requirement as is shown in the thread

https://archive.sap.com/discussions/thread/3434414

, but it holds for DS 1.5 only

capture-dropdown.png

0

Hi Afzal,

As I mentioned before, nowhere in your script code do I see where you are actually passing the dropdown value as a URL parameter. Furthermore, you are also referring to prompt variables. Please be much clearer about what you are trying to pass in the URL: dropdown values or variable prompt values, or both.

Regards,

Mustafa.

0
Former Member

Hi Mustafa;

I am trying to pass dropdown values in the URL. Below given are my codes which is on select of the Checkbox

Check Box codes:

APPLICATION.openNewWindow("http://172.18.105.150:8081/BOE/OpenDocument/opendoc/openDocument.jsp?sIDType=CUID&iDocID=M1nV1XUAB68HAEECRgAAQ00DAqwSaZYAAAA"+"&X_BU="+DROPDOWN_BU.getSelectedValue());

Dropdown

DS_1.setFilter("0PROFIT_CTR",X_BU);

DS_2.setFilter("0PROFIT_CTR",X_BU);

DS_3.setFilter("0PROFIT_CTR",X_BU);

DS_4.setFilter("0PROFIT_CTR",X_BU);

DS_5.setFilter("0PROFIT_CTR",X_BU);

DROPDOWN_BU.setSelectedValue(X_BU);

0

Afzal,

You need to move the code below to the "On Startup" event of your application instead of placing it in the Checkbox event:

DS_1.setFilter("0PROFIT_CTR",X_BU);
DS_2.setFilter("0PROFIT_CTR",X_BU);
DS_3.setFilter("0PROFIT_CTR",X_BU);
DS_4.setFilter("0PROFIT_CTR",X_BU);
DS_5.setFilter("0PROFIT_CTR",X_BU);
DROPDOWN_BU.setSelectedValue(X_BU);

Regards,

Mustafa.

0
Former Member

Hello Mustafa,

I moved the codes on the On Startup of the application, but still there is no change.On clicking the checkbox, the url opens on new windows and doesn't ask any dropdown at the beginning.

Thanks

Afzal

0

What exactly do you mean by "the url opens on new windows and doesn't ask any dropdown at the beginning"?

0
Former Member

Hi Mustafa,

On clicking the "Checkbox "which is having the codes as

APPLICATION.openNewWindow("http://172.18.105.150:8081/BOE/OpenDocument/opendoc/openDocument.jsp?sIDType=CUID&iDocID=M1nV1XUAB68HAEECRgAAQ00DAqwSaZYAAAA"+"&X_BU="+DROPDOWN,

.getSelectedValue());It opens a new window in the browser.

0

Yes but isn't that the desired result?

0
Former Member

Hi Mustafa

NO, My requirement is to get the Dropdown values on clicking the check box to be passed these values into the URL and show desired results into the URL.

It is similar to

APPLICATION.openPromptDialog(400, 500);but it asks me BeX Query prompts which doesn't fill requirement.but I need Drop down values to be passed.

0

You are currently already passing the dropdown value of X_BU in the URL. Are there other dropdown values you want to pass as well?

0
Former Member
Correct, I want to pass the values of DropDown in the URL
0

In that case, please clarify WHICH DROPDOWN VALUES you want to pass in ADDITION TO X_BU.

0
Former Member

No , the same values of the dropdown X_BU

0

You are already passing the selected value of the BU dropdown via the URL parameter X_BU, so I don't understand what the issue is. Perhaps you can try to be clearer about the problem.

0
Former Member

Yes, But the values passed from the dropdown doesn't get selected in the new window

0

You should check that the correct value is being passed in the variable X_BU. You can test this by adding a TEXT component and setting its value to X_BU in the On Startup script of the application.

Also, how and when is the dropdown being populated?

0