Multiple commands in 3.5 WAD - RESET_ITEM, FILTER and DRILLDOWN
Hello All,
I'm using 3.5 WAD.
My requirement is to fire following multiple commands:
1. RESET_ITEM
2. FILTER
3. DRILL DOWN
For first command I tried
var cmdUrl = SAP_BW_URL_Get() + "&CMD=RESET_ITEM&ITEM=TABLE_1&ITEM_ID="+itemID;
SAPBWOpenURL(SAP_BW_URL_Get() +cmdUrl );
which works fine.
Now I want to add filter command to filter multiple single values.
I tried
filter_command = filter_command + "&FILTER_IOBJNM_" + (checkIndex +1) + "=0CRM_OBJ_ID__0CRM_CURRPH&FILTER_VALUE_" +(checkIndex +1) + "=" + phasesField[checkIndex].value ;
SAPBWOpenURL(SAP_BW_URL_Get() +cmdUrl + filter_command);
where checkIndex is loop counter.
But its not working. If I individually fire filter_command, it works neither. If I initialize fitler_command as
var filter_command = "&CMD_1=LDOC&TEMPLATE_ID=ZAJ_EDIT";
it works; but if I refire the query in the same session, it fails.
Could anyone suggest any good methodology to fire those multiple commands?
Do I have to form a single URL or ...some other way to fire all commands like commandSequence in 7.0?
I do no want to use form because my filters and drill downs are going to be dynamic.
Thanks..
Abhijeet
http://help.sap.com/saphelp_nw04/helpdata/en/8d/07863be3047e19e10000000a114084/frameset.htm
Function documentation Command Sequences Locate the document in its SAP Library structure
Use
Many questions require you to change several objects in different ways with commands. For example, you cannot use the current methods with a single request (command) for filtering a data provider for the fiscal year 1999 and another data provider for 2000.
A command sequence allows you to add new commands to an original command. Data is requested from the OLAP processor and the HTML page is sent back to the Web Browser only after all of the commands have been processed.
· The subsequent command sequences are added to the original command as parameter CMD_N. If the command is within an >SAP_BW_URL> tag, you need to make sure that the complete command sequence is set in quotation marks. No quotation marks can be set within the command sequence. If the command sequence is transported using a URL, you have to make sure that you replace the characters = and & with their hexadecimal display in the command sequence
¡ Replace = with %3D
¡ Replace & with %26
Similar Messages
-
I have connected TABULAR Model to Excel, and in the pivot the filter is on multiple dimensions. When doing the drillthrough action it gives error - Error: Show Details cannot be executed when multiple items are selected in a report filter field or in a slicer
Is there any workaround to this error? so that drillthrough can be done even with multiple selection.Hi Vikas,
The reason behind the error message requires the knowledge on what happens at the backend. When you perform a drill-through action, a query is sent to Analysis Services. This query is expressed in a query language called Multi-Dimensional Expression (MDX).
Since the MDX language doesnot support drill-through command against a set (collection of tuples) an error is persisted.
For now, there is no workaround as it is a limitation of the underlying language that is generating the query.
When multiple items are selected you lose the ability to drill-down on individual metrics. To resolve you must either:
1. Select a single Item.
2. Select all items.
Hope this helps!
Please mark as Answer if this helps! Thanks, Rajasekhar. -
Multiple selection with wildcard in WAD
Hello,
How can I do filtering with multiple selection with wildcard in WAD 7 ?
We have this problem in two seperate situation. The first is in the parameter screen where we want to filer the output with two wildcard. The first one we can put on the field and then go to the selection screen but what about the other ????. The second situation is in the report when we want to filter one of the columns with wildcard.
I will appreciate if someone will open my eyes about this.
IlanHello,
you can use the * for wildcards in the BEx Web.
For example 37* -> 370000 up to 379999.
Buy,
André -
Using ProcessBuilder to execute multiple commands.
I am having issues getting ProcessBuilder to execute multiple commands in windows.
As an example I would like to execute "dir /w" fallowed by "java.exe some.App arg1 arg2".
I can accomplish this from the command line by using "&".
Example: dir /w & java.exe some.App arg1 arg2 Or: dir /w & dir /c"
For internal commands (i.e. dir and cd) I know that commands in the array being passed to ProcessBuilder must be formatted like {"dir /w", "dir /c"}
see post: [http://www.java-tips.org/java-se-tips/java.util/from-runtime.exec-to-processbuilder.html]
Here is an example of one of the many things I have tried:
{code}
String[] commands = new String[]{"dir /w", "&", "java.exe", "some.App", "arg1", "arg2"};
ProcessBuilder pb = new ProcessBuilder(commands);
pb.start();
{code}
Any other ideas / what am I doing wrong?
Edited by: brianjbrady on May 7, 2009 4:49 PM
Edited by: brianjbrady on May 7, 2009 4:50 PMbrianjbrady wrote:
You can run dir all day long without using cmd.exe. Try it. It works for me.Perhaps you have cygwin in your path.
How are you running dir out of interest (and don't say with a DOS window ;)
import java.io.*;
import java.util.Arrays;
public class Main {
public static void main(String... args) throws IOException {
run("dir");
run("dir.exe");
run("cmd", "/c", "dir");
run("c:\\cygwin\\bin\\dir");
private static void run(String... command) throws IOException {
try {
ProcessBuilder pb = new ProcessBuilder(command);
pb.redirectErrorStream(true);
Process p = pb.start();
InputStream is = p.getInputStream();
System.out.println("\nCommand " + Arrays.asList(command) + " reported");
int b;
while ((b = is.read()) >= 0)
System.out.write(b);
is.close();
p.destroy();
} catch (IOException e) {
System.err.println("\nCommand " + Arrays.asList(command) + " reported " + e);
}Prints
Command [dir] reported java.io.IOException: Cannot run program "dir": CreateProcess error=2, The system cannot find the file specified
Command [dir.exe] reported java.io.IOException: Cannot run program "dir.exe": CreateProcess error=2, The system cannot find the file specified
Command [cmd, /c, dir] reported
Volume in drive D is Work Disk
Volume Serial Number is AC0B-0757
Directory of D:\dev\scratch
26/12/2008 22:15 <DIR> .
26/12/2008 22:15 <DIR> ..
03/09/2007 21:45 <DIR> classes
26/08/2008 20:14 65,280 mynamedpipe
23/11/2008 11:37 201,354 name.ppt.txt
24/10/2008 20:00 201,354 race.txt
05/11/2008 23:17 6,193,334 record.csv
08/01/2009 16:44 704 scratch.iml
27/12/2008 12:29 21,576 scratch.ipr
08/05/2009 20:02 53,258 scratch.iws
28/04/2009 21:34 <DIR> src
07/12/2008 11:44 101 test.txt
8 File(s) 6,736,961 bytes
4 Dir(s) 32,506,023,936 bytes free
Command [c:\cygwin\bin\dir] reported
classes name.ppt.txt record.csv scratch.ipr src
mynamedpipe race.txt scratch.iml scratch.iws test.txt -
Running multiple commands in command prompt
Hi
I am having the following scenario
open command prompt
open xilinx command prompt
switch to xmd console
run a set of commands
print the final output to screen
I am having the following doubts
Can system exec.vi take multiple commands as standard input?
If yes what is the delimiter?
If no what other options I have to achieve my goal
ThanksWhy not write a batch file and start that with System Exec?
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions -
Multiple command buttons in jsp
Hi
I need a multiple commands buttons (for example 3) in a web page; then I need to call a bean method or another jsp page for every button
Is possible? If yes, could you post a code?
Thankschange the action through javascript
-
How can I use the "Correct camera distortion" filter and process multiple files in PSE 11?
How can I use the "Correct camera distortion" filter and process multiple files in PSE 11?
Did you check the help page for Correct Camera Distortion and Process multiple file
Correct Camera Distortion: http://helpx.adobe.com/photoshop-elements/using/retouching-correcting.html#main-pars_headi ng_5
Process multiple files: http://help.adobe.com/en_US/photoshopelements/using/WS287f927bd30d4b1f89cffc612e28adab65-7 fff.html#WS287f927bd30d4b1f89cffc612e28adab65-7ff6 -
How to place multiple commands using lcdui package?
I want to place multiple commands using lcdui package. I find that if I use more than 3 it becomes a menu item. How to circumvent this?
With regards,
Amini dont think you would be able to do this because of the screen size and also because all the cell phones only provide back,exit & menu buttons to program.so thats why you need to place the commands in the screen if the number of options are more.
-
Bash function/script to execute multiple commands on same output
Occasionally, I come across the need to pass the output of a single command to multiple others (without piping each to the next), so today, I wrote a [very] simple Bash script to accomplish the task. Piping the output of a command to `tree' is much like piping it to `tee', except `tree' allows you to execute multiple commands on the same output, rather than only writing to log files:
#!/bin/bash
# tree -- pipes the output of one command to >= 1 other
# Usage: command | tree 'command 1' 'command 2'
doc=$( cat - )
for arg in "$@"; do
bash -c "${arg}" <<EOF
${doc}
EOF
done
An example of its usage:
$ echo -e "1 2 3\n4 5 6" | tree 'grep 1' 'grep 4' "grep 1 | tee grep.log | awk '{print \$2}'"
1 2 3
4 5 6
2
$ cat grep.log
1 2 3
Though not elaborate, the script gets the job done.
Last edited by deltaecho (2009-03-10 20:34:01)Xyne wrote:
You could always call it "the Ukrainian Pipe"
(if you can't laugh at this, you either need to loosen up or make a point to follow (annual) current events)
That was a good one -
Running multiple commands in SCCM 2012 R2
Dear Professionals
I am really new in SCCM 2012 an i did alot of self study but there are a few things are really killing me ...
how i run Running multiple commands in a task sequence
Diskpart
Sel Disk 0
clean
Exit
And also in what step i should create this command line to solve error code 0x80070070
Thank youi will try that .. but i have been told that command may not fix the problem i have ...
is there another way to only format c:\ and leave the other partitions as it is ??
i am booting from PXE and use the USMT TS is that correct or i must run it from software Center ??
in the text file i only copy and paste the commands as it is or i should paste it in a specific form ?? like
Diskpart
Sel Disk 0
clean
Exit
Or
Diskpart & Sel Disk 0 & clean
& Exit
from what i read online i think the main problem is that the partition can not be wiped
Thank you so much for your time and patience
Yahia Zouhair -
Executing multiple commands with sudo fails
Hi,
We're having trouble with sudo and bash. When we want to execute multiple commands and there are spaces, the commands don't run. Here's an example of what works:
[root@erpapp1-prod ~]# sudo -i -u oracle bash -c 'ls;pwd'
In this case, I get a listing of the files in /home/oracle followed by the current directory of /home/oracle.
Here's an example of what DOESN'T work:
[root@erpapp1-prod ~]# sudo -i -u oracle bash -c 'ls; pwd'
Notice the space before "pwd". In this case, all I get is the listing of files in /home/oracle.
Caveat: I'm a real beginner with Linux. I've compared many of the files (/home/oracle/.bash_profile, /home/oracle/.bashrc, /etc/bashrc, /etc/profile) from this server to another where we don't have issues and, other than some logic being in different order, don't see much of a difference. Again, very beginner here.
Any ideas? Thanks!
ToddWhat shows up as a space may not necessarily be a space. For instance, it could be some control character like a newline, which might interfere with the execution. For example:
$ test=`echo -e "test;\ntest"`
$ echo $test
test; test
$ echo "$test"
test;
test
Here is another example:
# test=`echo -e "ls;\npwd"`
# su - oracle -c "$test"
oradiag_oracle
/home/oracle
# su - oracle -c $test
oradiag_oracle
I cannot guess how you construct the command list. Perhaps the problem is a text files that was created under Windows and copied as binary to Linux, or a shell script using a different IFS environment variable, etc.
Personally I would use a different approach. From a security standpoint it is a bad idea to use passwords at the command prompt because every user can see them using the ps -ef output. -
how to execute multiple commands through java programming .I tried with the code
Process pro=Runtime.getRuntime().exec("cmd /c cd C:\\Symbian\\Carbide\\MyXmlParserWeb\\group\\s60_3rd");
pro.waitFor();
BufferedReader reader=new BufferedReader(new InputStreamReader(pro.getInputStream()));
String line=reader.readLine();
while(line!=null)
System.out.println(line);
line=reader.readLine();
for(int i=0;i<2;i++){
try {
Thread.sleep(500);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
Process pro4=Runtime.getRuntime().exec("bldmake clean");
pro.waitFor();
BufferedReader reader4=new BufferedReader(new InputStreamReader(pro4.getInputStream()));
String line4=reader4.readLine();
while(line4!=null)
System.out.println(line4);
line4=reader4.readLine();
for(int i=0;i<2;i++){
try {
Thread.sleep(500);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
Process pro1=Runtime.getRuntime().exec("bldmake bldfiles");
pro1.waitFor();
BufferedReader reader1=new BufferedReader(new InputStreamReader(pro1.getInputStream()));
String line1=reader1.readLine();
while(line1!=null)
System.out.println(line1);
line1=reader.readLine();
for(int i=0;i<2;i++){
try {
Thread.sleep(500);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}class MainClass extends Thread {
InputStream is;
String type;
OutputStream os;
MainClass(InputStream is, String type)
this(is, type, null);
MainClass(InputStream is, String type, OutputStream redirect)
this.is = is;
this.type = type;
this.os = redirect;
public void run()
try
PrintWriter pw = null;
if (os != null)
pw = new PrintWriter(os);
InputStreamReader isr = new InputStreamReader(is);
BufferedReader br = new BufferedReader(isr);
String line=null;
while ( (line = br.readLine()) != null)
if (pw != null)
pw.println(line);
System.out.println(type + ">" + line);
if (pw != null)
pw.flush();
} catch (IOException ioe)
ioe.printStackTrace();
public static void main(String args[])
if (args.length < 1)
System.out.println("USAGE java GoodWinRedirect <outputfile>");
System.exit(1);
try
FileOutputStream fos = new FileOutputStream(args[0]);
Runtime rt = Runtime.getRuntime();
Process proc = rt.exec("cmd.exe");
// any error message?
MainClass errorGobbler = new
MainClass(proc.getErrorStream(), "ERROR");
// any output?
MainClass outputGobbler = new
MainClass(proc.getInputStream(), "output", fos);
// kick them off
errorGobbler.start();
outputGobbler.start();
// any error???
int exitVal = proc.waitFor();
System.out.println("ExitValue: " + exitVal);
fos.flush();
fos.close();
} catch (Throwable t)
t.printStackTrace();
i have modified the code again.but still no result..... -
How to change multiple commands label text from default "Menu" to "Go to"
I m new in J2me and J2me polish and having problems in label of command.
Here I code that add multiple commands
Command chPinCom = new Command("Change Pin", Command.SCREEN, 2);
Command accCom = new Command("Account", Command.SCREEN, 2);
Command favCom = new Command("Favourites", Command.SCREEN, 2);
the code that add commands in list
listScr.addCommand(chPinCom);
listScr.addCommand(accCom);
listScr.addCommand(favNumCom);
listScr is the type of LIst
Please help that hoe I change commands label text from default "Menu" to "Go to" that showed in right bottom on the screenIt's possible see book "Pro J2ME Polish Open Source Wireless Java Tools Suite" on page 90 ....see Localizing the J2ME Polish GUI
I just change my build.xml file and add one more variable like
<variable name="polish.command.options" value="Go To"/>
and it's working fine.. -
SQL*Plus - multiple commands
Is there a way to execute multiple commands in a single sql*plus command file, e.g.
select count(*) from table1
select count(*) from table2
The above gets a syntax error becuase of the multiple commandsHi,
If you just want counts from two tables, you could try:
select
(select count(*) from table1) Count_Tab1,
(select count(*) from table2) Count_Tab2
from dual;
Regards Robert -
Use Of Filter and Drill Down By Option in Context Menu
Hi,
We are on BI 7.0 patch 14.0
I have the Filter and Drill Down by option checked in the context menu Web item in WAD . However when I preview on the Web what happens is that the characteristic that I am using the filter and drill down on shows up horizontally as opposed to in a column.
For eg: If I have the following data initially
01/01/2007 250
02/01/2007 500.
I keep my cursor on 01/01/2007 and do a filter and drill down by 0calqtr then what I see now is
01/2007 02/2007 03/2007 04/2007
instead of
01/2007
02/2007
03/2007
04/2007.
Each CalQtr will have a key figure Value beside it in the horizontal mode.
This happens only when I pick the characteristic on the Graph. On the Web Item Analysis it works fine. Has anyone faced this issue before. This worked fine when it was WAD 3.5. This affects the presentation of the graph. For Objects that have not been migrated the result still shows fine.Hi,
We are on BI 7.0 patch 14.0
I have the Filter and Drill Down by option checked in the context menu Web item in WAD . However when I preview on the Web what happens is that the characteristic that I am using the filter and drill down on shows up horizontally as opposed to in a column.
For eg: If I have the following data initially
01/01/2007 250
02/01/2007 500.
I keep my cursor on 01/01/2007 and do a filter and drill down by 0calqtr then what I see now is
01/2007 02/2007 03/2007 04/2007
instead of
01/2007
02/2007
03/2007
04/2007.
Each CalQtr will have a key figure Value beside it in the horizontal mode.
This happens only when I pick the characteristic on the Graph. On the Web Item Analysis it works fine. Has anyone faced this issue before. This worked fine when it was WAD 3.5. This affects the presentation of the graph. For Objects that have not been migrated the result still shows fine.
Maybe you are looking for
-
OpenGL crash error when opening after effects
When I try to load up After Effects it crashes and says "After effects crashed previously attempting to initialize OpenGL". I have updated my graphics card drivers etc. What do I do
-
Linux 6.4 fails to install "Oracle Linux NTFS how-to"
HI a total linux newbie here. I am running the latest x86_64 oracle linux Red Hat Enterprise Linux Server release 6.4 (Santiago) I have followed the instructions at : Oracle Linux NTFS how-to I manage to do : wget http://pkgs.repoforge.org/rpmforge-r
-
Print wirelessly on canon pixma MP780 from Macbook Pro
Hi I have a Canon Pixma MP780 and want to know if I can set it up to print wirelessly from my Macbook Pro. I would appreciate any advice if you know how to do this. Thanks very much.
-
I am going to buy a second Apple TV. When I turn on Apple TV with the Remote App, will it activate both Apple TV boxes or will it allow me to select the one I want to operate?
-
With Nokia mfg closing down, anymore support for e...
Am using an N8 and very interested to get the N9 later, but just before purchase, read news about the last mfg closing down. Will there be anymore support for Nokia phones, and how long will the support last? Or, should we start switching to other br