on 05-22-2006 9:58 AM
Hi,
I just wanna have the name of the InfoProvider using a javascritp function in the web application designer ?
alert(INFOPROVDER) something like that ?
Thanks in advance
Aleksi
You can use the Text Element Item to display the InfoProvider
Drag a text element item onto your template and set properties:
General Title: No
Border Type: No Borders
Display General Text Elements: Ticked
Display Static Filter Value: un-ticked
Display Variable Values: un-ticked
List of Text Elements: - Element Type: General Text Symbol and Element ID: INFOCUBE
Link to SAP Help:
http://help.sap.com/saphelp_nw04/helpdata/en/9f/4e9d39d44cd45ee10000000a11402f/content.htm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your help ... I'm triny to do that : I have an object (DROPDOWNBOX for example) and I want to load this object with a different characteristic according to the InfoCube on which is based the query :
<object>
<param name="OWNER" value="SAP_BW"/>
<param name="CMD" value="GET_ITEM"/>
<param name="NAME" value="GR1DROPDOWNBOX_2"/>
<param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_FILTER_DDOWN"/>
<param name="DATA_PROVIDER" value="DP"/>
<param name="GENERATE_CAPTION" value=""/>
<script type="text/javascript">
<!--
if (INFOCUBE = YSPT ...)
{
<param name="IOBJNM" value="ygrch009"/>
{
else
{
<param name="IOBJNM" value="zgrch009"/>
}
-->
</script>
<param name="BOOKED_VALUES" value="Q"/>
<param name="MAXVALUES" value="500"/>
<param name="ONLY_VALUES" value="X"/>
<param name="TARGET_DATA_PROVIDER_1" value="DP"/>
ITEM: GR1DROPDOWNBOX_2
</object>
Someone could hep me ? It's possible to do that ?
Thanks in advance
Rather than trying to get the InfoCube couldn't you base your logic on the characteristics available from the dataprovider?
In Javascript use function SAPBWGetDataProviderDimensions to get the available "Dimensions" i.e. characteristics & structures
For example:
var dims = SAPBWGetDataProviderDimensions("DATAPROVIDER_1");
var type = "y";
if (dims != null)
{
for(j=1;j<dims.length;j++)
{
alert(dims[j][0] ); // this line added to display each characteristic
if (dims[j][0] == "ZFIELD") type = "z";
}
if (type == "z")
// logic to set Web Item attributes
}
Have a review of SAP help on Command URLs (e.g. changing Web Item Attributes) and also on Use of JavaScript Functions.
http://help.sap.com/saphelp_nw04/helpdata/en/b4/0fa239cec06b40e10000000a11402f/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a853bc623c075e10000000a114084/content.htm
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.