cancel
Showing results for 
Search instead for 
Did you mean: 

VC and WAD integration error

Former Member
0 Kudos

Dear all,

I integrated a VC iView and a WAD iView step by step according to the How-To document "How to Integrate Visual Composer Applications and BEx Web Templates". In VC iView, I created a signal-out and received the variable value in the WAD iView. But when I preview the page including these two VC and WAD iViews, I got the following error promt between the two iViews:

"sapbi_page.registerPassiveElement( [['BI_ADVANCED','ANALYSIS_ITEM_1_interactive_left_top',0],['BI_COMMAND_TYPE','PASSIVE_VALUE_TRANSFER',0],['TARGET_ITEM_REF','ANALYSIS_ITEM_1',0],['PASSIVE_ID','ANALYSIS_ITEM_1_interactive_left_top_paginator',0]], "sapbi_acPaginatorTransfer" );

sapbi_page.registerPassiveElement( [['BI_ADVANCED','ANALYSIS_ITEM_1_interactive_left_bottom',0],['BI_COMMAND_TYPE','PASSIVE_VALUE_TRANSFER',0],['TARGET_ITEM_REF','ANALYSIS_ITEM_1',0],['PASSIVE_ID','ANALYSIS_ITEM_1_interactive_left_bottom_paginator',0]], "sapbi_acPaginatorTransfer" );"

Please help.

Thanks in advance

Jin Ming

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

When I try to create hierarchy in WAD and result table in VC as per prakash darji.And I enabled debugg in script of WAD , when click hierarchy I am getting "&<Params version="2" ><Row F0COMP_CODE="1100" /></Params>" like message. But There is no values refreshed in VC. What could be the problem? we are in support pack 12.

Regards,

Former Member
0 Kudos

The following code in what I posted in the script web item of Web Application:

<script language=javascript>

var xmldoc;

function load(xmlFile)

{

// code for IE

if (window.ActiveXObject)

{

xmldoc = new ActiveXObject("Msxml2.DOMDocument.3.0");

xmldoc.loadXML(xmlFile);

}

else

{

alert('Your browser cannot handle this script');

}

}

EPCMPROXY.subscribeEvent( "urn:com.sap.vc:epcm", "Filter1", window, "myreceiveEvent");

function myreceiveEvent( eventObj )

{

values = eventObj.dataObject;

unesc_val = unescape(values);

load(unesc_val);

values = xmldoc.getElementsByTagName("Row").item(0).getAttribute("F0COMP_CODE");

var url = location.protocol"//"location.host+SAP_BW_URL_Get();

url = url + "&data_provider=*&multi=X&FILTER_IOBJNM=0COMP_CODE&FILTER_VALUE=" + values +"&filter_collapse=";

SAPBWOpenURL(url);

}

</script>

Is there anything wrong with these codes, or any additional codes needed?

Former Member
0 Kudos

Hi Ming Jin,

did you mean the how-to of prakash darji?

Best Regards,

Marcel

Former Member
0 Kudos

I think yes. It is the following link:

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ad182ac7-0a01-0010-4fb8-8a4d217b19c1">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ad182ac7-0a01-0010-4fb8-8a4d217b19c1</a>

Former Member
0 Kudos

I found the reason.

It seems that if the data is more than one page, the error prompt shows. I changed my query to forbid the result rows. Now it is fine.

But there is another problem. When I chose a value in the dropdown box of VC iview, result data of WAD iview doesn't change accordingly. It seems that the variable value of VC iview isn't passed to WAD iview.

How can I do to solve this problem, debug or something?

Thanks in advance.

Jin Ming

Former Member
0 Kudos

Hi Jin Ming,

did you create an event "select" from the drop down box or a pushbutton "submit" to transfer the value of the drop down box? The value will only be passed over signal out, if an event is fired along the transition line.

Make also sure, that the assignment of values along this transition is correct, i.e. that @<dropdown_value> is assigned to <outputparameter>

Best Regards, Benni

Former Member
0 Kudos

Yes, I created a pushbutton named "Submit". I set its action to "evt1", which is the line connecting form to signal out. I also checked the assignment of values along the transition line. Nothing wrong, too.

Basically, I developed step by step according to that how-to document. I don't know what I should do to solve the problem.

Thanks in advance.

Jin MIng

Former Member
0 Kudos

I opened flash debugger. Below is the debugger info:

--- Debug Logger ---

14: [AAD4UQ] schedulePlan(EVT1)

13: [AAD4UQ] executeNext(shift plansQueue - length:0)

12: [AAD4UQ] executeNext([STEP1])

11: [AAD4UQ] signal: urn:com.sap.vc:epcm&Filter1&<Params version="2" ><Row F0COMP_CODE="1100" /></Params>

10: [AAD4UQ] checkStep([STEP1])

9: [AAD4UQ] [PLAN2] Evaluate OSIGNAL1

8: [AAD4UQ] executeNext([STEP0])

7: [AAD4UQ] checkStep([STEP0])

6: [AAD4UQ] [PLAN2] Map FORM1 -> OSIGNAL1

5: [AAD4UQ] executeNext([STEP2])

4: [AAD4UQ] [PLAN2] Reset OSIGNAL1

3: [AAD4UQ] executeNext([STEPundefined])

2: [AAD4UQ] schedulePlan(FORM1_EVT1)

1: [AAD4UQ] raiseEvent(FORM1, EVT1)

Former Member
0 Kudos

Hi Jin Ming, looks right to me. As you can see, the data is sent out:

"&<Params version="2" ><Row F0COMP_CODE="1100" /></Params>"

So I think you have to look for the error on the WAD-Side of your application. You could just do one more thing: check with a different working application that sends data, whether is another log-entry in the debug logger after schedulePlan(EVT1).

Best Regards, Benni

Former Member
0 Kudos

Hi Ming Jin,

a colleague told me that there are java script errors in this document. I asked my colleague that he send me the file with correct javascript codes. When I got it then I will post it in the WIKI.

Best Regards,

Marcel

Former Member
0 Kudos

I also think the problem is on WAD side. I just don't know how to find it. There is another question about VC side: How can I check the xml file content of this iview which is generated by VC? As you may know, this xml file is processed by the javascipt of WAD iView.

Former Member
0 Kudos

If you get the right code, please let me know. Thank you very much.

Former Member
0 Kudos

I saw something in this post

"

1. Make sure VC and WAD are using the same fully qualified domain name.

2. Make sure you don't have the javascript error in the bottom left of your IE browser.

"

1. How can I check whether VC and WAD are using the same fully qualified domain name?

2. I have the javascript error in the bottom left of my IE browser.

Former Member
0 Kudos

I found the problem but don't know how to solve it.

The problem is in that SAP_BW_URL_Get isn't available in BI 7.0, which is my BI's version. This post explains it. /message/3041237#3041237 [original link is broken]

Guys in this post said using commands to replace SAP_BW_URL_Get functionality, but I don't know how to use commands. Anyone can help me?

Thanks in advance.

Jin Ming

Former Member
0 Kudos

Finally, I got the solution. The following link document is suitable for NW2004 BI 7.0.

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5a40f2f7-0c01-0010-d69f-c6317c5165cd">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5a40f2f7-0c01-0010-d69f-c6317c5165cd</a>