Multiple values in the Variable.
How can I assign multiple values to a variable in the RPD?I want 'NY', 'CA', 'HE', 'TX' declares a variable, is it possible? If so, how?
Thank you.
Hello
In your init block change for initialization and use SQL statements like this:
Select 'STATE', Sun-places where the State IN ('NY', 'CA', 'HE', 'TX')
This will create a STATE variable that has all of these values in it.
You can then use it in a report as a filter [column name] = STATE the server OBIEE should automatically turn this into one for physics SQL.
Kind regards
Matt
Tags: Business Intelligence
Similar Questions
-
Get the current value of the variable when reaching CNVCreateSubscriber
I use CNVCreateSubscriber () to create a subscription read to a network Variable: whenever the value of the variable changes, the DataCallback is called and I'm able to get the new value of the variable.
But how to get the value of the variable when a subscription is created?
I read in the help CNVCreateBufferedSubscriber () returns this information, but I wonder if using CNVGetDataFromBuffer () in a polling loop has the same performance as the approach to DataCallback of CNVCreateSubscriber ().
In addition, the dataStatus (CNVGetDataFromBuffer) parameter is different for different Subscribers? (that is if I have multiple subscribers, CNVStaleData is related to the specific Subscriber or is a global property of the variable)?
CNVData data;
CNVGetConnectionAttribute (customer, CNVMostRecentDataAttribute, &data);)
-
Display image based on the value of the variable of the choice by the user
Hi all, I hope someone can help with what I think is a simple request. Ive only been using Captivate 7 for a few days and still feeling my way around things.
I installed a question multiple choice quiz that has 4 possible answers (correct 1: incorrect 3.)
It works fine out of the box, and when a user presses the button send the response box appears showing if the user responded to this correctly or not.
What I want to do, that is forward a bit, and if the user gets the answer wrong I would a small image of a check mark appears next to the correct answer.
I have included my image on the stage, he gave an alpha of 0 to hide effectively.
In interactions in advance, I created a variable called showImage with an initial value of 0
What I am struggling with now is how to increase the value of the variable to 1 when a user selects a wrong answer and change the alpha of 0 to 100 for show the image illustrating the choice of the correct answer.
I know that what I have described, is essentially what is happening at the end of the quiz, if a user has access to review their answers but I would like to be able to do as they progress through the questions.
Thanks a lot for your help
D
Hi D,
What you need to do is rather than make his alpha 0. It completely hide the scene until the user gives the correct answer.
So, I want you.
(1) insert a picture
2) go to image and all properties panel up - untick 'Visible output.
(3) open properties Quiz, select under Actions failure level 1/2/3
(4) select 'Last attempt' as 'Show' and the image you you inserted
This way the image will appear if the user selects an incorrect answer.
I hope this helps.
See you soon,.
Anjaneai
-
a problem in passing multiple values in the loop settings for
Hi all
I am facing a problem in passing multiple values in the loop settings for.
EX:
CREATE or REPLACE PROCEDURE (pr_id OUT NUMBER) HAVE
tab type is table of NUMBER;
TEMP_TAB TAB;
BEGIN
Select the COLLECT LOOSE pr temp_tab pr_id;
I'm in 1.TEMP_TAB. loop of COUNTING
PR_ID: = temp_tab (i);
end loop;
END TEST;
OUTPUT:-
pr_id = 234578
in the example above, I'm only a value as an out parameter. but I send you PR_ID of the loop.
why I don't get all the values that the parameters.please offer a solution for me.
Thank you my friend.More clarification, let's look at your code...
-- create a procedure and have a single numeric out variable CREATE OR REPLACE PROCEDURE TEST ( pr_id OUT NUMBER ) AS -- declare a type as an array of numbers type tab is table of NUMBER; -- declare a varianble of that array type TEMP_TAB TAB; BEGIN -- query all the values from the table into the array select pr_id BULK COLLECT INTO temp_tab from pr; -- loop through each value in the array for i in 1..TEMP_TAB.COUNT loop -- set the value of the single OUT parameter, OVERWRITING any previous value it has PR_ID := temp_tab(i); -- loop around to the next value end loop; -- end the procedure with the final value of PR_ID END TEST;
-
TestStand 2012 keeps the value of the variable
I have a problem with TestStand 2012 that preserves the value of the variable. I have a step and its parameters in the string variable. I use the expression step as Step.Settings += "00". I run the sequence under sequential model and the problem is that Step.Settings is equal to "00" on the first run, '0000' on the second throw, '000000' on the third race and so forth, but it must rest '00' on each race. I can't find the root cause. Anyone has the same problem and can advice how to solve?
Try to uncheck the properties of the sequence > optimize reentrant calls to this sequence to the sequence that contains the step.
-
Save the value of the variable on rising
Hello
My setup is quite complicated (and does not work properly yet)... anyway, I give all of the code.
What interests me now is to learn how to save for later use the value of the variable 'Bias' on a rising "min. . found.
The 1st idea coming is to create another case of event for changes "min. Found" , where to save in a registry change, but the problem is "min. Found" changes fires on the edges and falling .
Thanks in advance
Pavel
Pavel_47 wrote: but the problem is "min. Found" changes fires on the edges and falling .
It's actually worse than that. Change value Min found fires with all writing, regardless if the value has changed or not. It's one of the dangers of the use of the Value property (signs).
Do a Boolean search PtByPt crossing. It's a useful for this situation VI. It will display a TRUE with the edge that you tell him. After that, just use a case structure and make any desired calculations in it.
-
change in value of the variable periodically
Hi all
I want to change the value of the variable periodically such as on the front panel, initial, final and incremental value must be defined by the user and the variable value changes automatically after every 5 seconds. and I want also the time interval should be set by the user on the front panel. How is that possible?
Any help will be greatly appreciated
Take a look at the attached simple project. You can change all the values on the fly. Change the initial value or the value of interval timer are asynchronous to the timer (the changes are made as soon as the user changes the value in the user interface). The other values are updated only when the timer clicks. The difference is that I have added reminders to the initial value and the interval timer value. Given that these other values are used that when the timer clicks, they didn't need reminders. Their values are used in the callback of the timer.
I added a callback for the timer interval allow an operator to correct an error. For example, if they wanted to wait for 10 seconds, but they came in 100, with the reminder, they do not need to wait 100 seconds before the timer is updated with correction.
-
Gettting ODI-17511: no value to the variable. ?
Hi all
I am facing an error when executing a Package to load all dishes unique to Oracle DB folder files.
The thing is that I am able to load data but it's operator error display "no value to the variable ' MULTI_DEMO." "File_name'"
Details of my project are:
PROJECT_NAME: MULTI_DEMO
Name of the interface: MULTI_TEST
Have 5 text files in my folder of the source code. and the target is created as the same schema as the source
variables: filename, County, Files_Count
statement = file_name
DataType: alphanumeric
Keep history: last value
Request used:
SELECT FILE_NAME FROM (SELECT FILE_NAME, SRC_FILE_DETAILS RN ROWNUM)
WHERE RN =' #MULTI_DEMO.count '
statement = count
Data type: digital
Keep a history: last value
Request used: nothing
statement = Files_Count
Data type: digital
Keep a history: last value
Request used: select count (*) in SRC_FILE_DETAILS
I have clearly chosen patterns appropriate for the two variables with queries.
in the Package diagram:
step 1: count = 1 assign (type: set variable) {-> File_Name and failure success: END}
step 2: filename (type: Refresh variable) {-> multi_test success and failure: END}
step 3: multi_test (type: flow (interface)) {success-> count and failure: END}
step 4: count increment = 1 (type: set variable) {success-> Files_Count and failure: END}
step 5: Files_Count (type: Refresh variable) {success-> count and failure: END}
step 6: County (type: evaluate the variable) is operator " > = " value is "MULTI_DEMO.count" {success-> File_Name and failure: END}
Please find below the picture for flow diagram
I have changed the stage names, hope you find my reviews.
Please help me to sort out this error.
I use OBIEE 11.1.1.9
The error is in short:
java.lang.Exception: ODI-17511: no value to the variable ' MULTI_DEMO. File_name'.
at oracle.odi.runtime.agent.execution.sql.RefreshVariableExecutor.execute(RefreshVariableExecutor.java:70)
at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:1)
at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)
at com.sunopsis.dwg.dbobj.SnpSessTaskSqlV.processTask(SnpSessTaskSqlV.java:410)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2637)
at com.sunopsis.dwg.dbobj.SnpSessTaskSqlV.treatTask(SnpSessTaskSqlV.java:240)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:577)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:468)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)
to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ 2.doAction(StartSessRequestProcessor.java:380)
at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:312)
to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$ 0 (StartSessRequestProcessor.java:304)
to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ StartSessTask.doExecute (StartSessRequestProcessor.java:874)
at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:133)
to oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$ 2.run(DefaultAgentTaskExecutor.java:84)
at java.lang.Thread.run(Thread.java:662)
I repeat, "I am able to load data but always error in the last step.
Thanks a mllion.
Shakur
-
How to display the value of the variable for bottom of pl/sql
How to display the value of the variable for bottom of pl/sql
declare
V_1 number: = 10;
V_2 number: = 20;
V_3 number: = 30;
v_4 number: = 40;
v_5 number: = 50;
test varchar2 (100);
Start
I'm in 1.5
loop
test: = "v_" | I have;
dbms_output.put_line(i||) e > ' | test);
end loop;
end;
/
How to get below output:
1 > v_1
2 > v_2
3 > v_3
4 > v_4
5 > v_5
But I want to output of
1 > 10
2 > 20
3 > 30
4 > 40
5 > 50
Hello
You cannot reference variables as you did and get the value of the variable. Use pretty collection.
set serveroutput on size 2000 declare type number_table is table of number; numbers number_table := number_table(10, 20, 30, 40, 50); begin for i in numbers.first .. numbers.last loop dbms_output.put_line(i || '->' || numbers(i)); end loop; end; / anonymous block completed 1->10 2->20 3->30 4->40 5->50
See the Collections of PL/SQL and Records http://docs.oracle.com/cd/E11882_01/appdev.112/e25519/composites.htm#LNPLS005
-
Reg exp to divide the values of the variables
Hello all, I use Oracle 11.2 of SOE, the value of the variable C is: numberA:numberB for example, C: = ' 1 B: 5 A: 12 has: B: 43 3A ", I have divided than the values of two Variables A and B with the letters of withdrawal and replacement of: for the comma. Namely, the value of each would be: is: 5,12,43 B is: 1.3 someone could help to come up with the correct Exp Reg for this task. Thanks in advance.
Here's a way (like SQL or PL/SQL):
with t (Spercu))
Select "1 B: 5 A: 12 A: B: 43 3A ' double
)
Select Spercu
, regexp_replace (regexp_replace (regexp_replace(strC||':','\d+B:'),' A:$ '), ':', ',') as strA
, regexp_replace (regexp_replace (regexp_replace(strC||':','\d+A:'),' B:$ '), 'B:', ',') as strB
;SPERCU STRA, STRB
---------------- -------- ------
1 B: 5 A: 12 A: B: 43 3A 1.3 5,12,43or
declare
varA varchar2 (30);
varB varchar2 (30);
varC varchar2 (30): = ' 1 B: 5 A: 12 A: B: 43 3A;
Start
varA: = regexp_replace (regexp_replace (regexp_replace(varC||':','\d+B:'),' A:$ '), ':', ',');
varB: = regexp_replace (regexp_replace (regexp_replace(varC||':','\d+A:'),' B:$ '), 'B:', ',');
dbms_output.put_line (Vara);
dbms_output.put_line (varB);
end;
anonymous block filled
5,12,43
1, 3Replace it after you add a trailing colon varC, Interior removes all the ' nB: "Vara and all the" nA: "from varB. The Middle replace deletes the pair of colon final letter, and replace external converts the other pairs of commas leter-colon.
Kind regards
Bob -
PLSQL do not replace the value of the variable
Here is the small procedure that I write...
m_t_database_links: this table contains the names of database links in the column link_name
PLSQL not replaces the "BOLD" part with the value of the variable. I know I'm missing something. Can someone please?
========================================================================
DECLARE
m_v_var1 varchar2 (10);BEGIN
FOR m_c_link_name IN (SELECT m_t_database_links FROM link_name)
LOOP
Select first_name into the emp @m_c_link_name.link_namem_v_var1;
dbms_output.put_line (m_v_var1);END LOOP;
END;
/I think that you will need to use dynamic SQL here because you can use variables for table names unless it's the dynamic SQL code.
-
Get the value of the Variable text
Hi all
How to get the value of the Variable text. I want to check the value of variable text title in each page.
Thank you and best regards,
Robert S
myText.textVariableInstances.everyItem (.resultText) would do it.
The representation of a TextVariable on the page is a TextVariableInstance. They are objects of 'text' (parent may be: cell phone, change, note, Note, history, TextFrame, XmlStory). The "resultText" property is the string that the variable instance currently shows. See Adobe InDesign CS5 (7,0) object model JS: TextVariableInstance
-
Creating a variable that contains the value of the variable system (Long) Date of change
Can someone tell me how to write a script to create a variable named DocDate, which contains the value of the variable of system (Long) Date of change? Or write a script that creates a variable named DocDate, which contains the current date? I can't find a lot of documentation on scripting ExtendScript.
Hi Julee, when you create a user variable in the interface, you cannot include the building blocks of time in the definition. They can only be used in system like the System Date of Modification (Long) variable variables. So the question is, why not just use the variable Date of change (Long) system in your document? What is the purpose of the variable user DocDate? Let me know what you think here, and I can try to help you.
Here are some ExtendScript resources:
My blog: FrameAutomation.com | FrameMaker, faster and more effective to
Debra Herman blog: Extension of FrameMaker
The large samples of Russ Ward: FrameMaker ExtendScript samples - West Street Consulting
-Rick
-
Getting the value of the variable defined in the component cfg file in the Service Manager.
Hello
I have a component custome and I need to set a variable in the cfg of the component file and I need to access this variable in my personal (using java) service manager.
Can someone tell me how to get the value of the variable in the Manager.The link should load now.
The Basic code is:
String value = SharedObjects.getEnvironmentValue ("variableName");Jonathan
http://jonathanhult.com -
Pass the value of the variable during execution
Hello
I have a package with a set of interfaces and three other variables.
I want to pass the value of the variable at runtime, based on the value passed I want to decide which interface to run then. How can I do this? I got a set variable but I want to asssign the value during execution.
Any help is greatly appreciated.
Thank you
SanYou have many options to achieve this goal.
1. keep the run settings in the database, extract the Variables in a time of refreshment and use these variables in your Interfaces to get values of execution.
2. change the value to the variables on the outside. You can declare a variable in a package as a step of the statement, and then use the variable in your interface in a successive step in your package. Then, create a scenario of your package and creating the scenario, it will prompt you to include the variables that you want to include as a startup parameter. Choose the one (s) concerned. Citing this scenario using Java or an OdiStartScen command or by using Webservices ODI externally, you can provide values of the runtime as a result.
I hope this helps.
Concerning
APublished by: 922636 on August 29, 2012 23:53
Maybe you are looking for
-
Using Windows 7 64 bit, how to find the voice command Windows?
-
Satellite Pro P300 - very slow WiFi connection
Toshibe Satellite Pro P300 with built in the Atheros AR9281 wireless. Running Windows 7. ESET NOD32 Antivirus. BIOS 2.5 All the latest versions of the drivers installed including the driver Atheros 8.0.0.225.0 wireless. Wireless is annoying... Someti
-
ERRORS, Office 2007 updates fail, won't uninstall programs
OK, here's the deal. About 5 days ago I installed, beta Office 2010 on my PC, around the same time I down loaded a trial version of Hoyle Casino Empire. When I tried to remove it, I received a message - the component that you are trying to use is on
-
How can I download full software Officejet 4219 features for windows 7
Range of printers all in one HP officejet 4219. My os is windows 7. I can't download the full software features. Anyone?
-
Problems of blackBerry Smartphones with new sync Curve 8330/from the Outlook calendar.
I hope someone can help with my problem - after two days I'm out of ideas. 1.i am running a Vista 64 bit laptop with Microsoft Office 2007, including Outlook. 2. yesterday, I bought a Blackberry 8330 and downloaded initially included DM, version 4.5.