Replacement variable issue
Hi Gurus,
I need to create a replacement variable to use it in a formula in the structure. As I know to create a replacement variable I need to drag and drop characteristic in rows. Without draging the characteristic to rows/free characteristic how to create replacement variable. If drag it will change my aggregation level. I don't need that. Please advice is there any alternative way I could fix this problem.
Thanks
Liza
You can try defining this new key figure production/no of days in cube itself. Since production is characteristic, calculate no of days and use update routines for Production/no of days.
Assign points if helpful
Regards!
Manasa.
Similar Messages
-
How to create replacement variable
Hi,
Any one has idea how to create replacement variable in bps.
I need to pass one variable value to another.\
Because both the fields are fields to be change. But user does not want to do double entry.
So need to pass one value from another. Is there any way. I can fix this issue.
Thanks
Naman ShahSo far not found any answer so closing
-
Hello,
Can anybody please help me with a replacement path issue which I have been struggling with for days, and I am completely lost
now and close to despair!
Here's what I am trying to do. I have a simple query with one key figure (let it be Presence) and three items in structure in rows: 0EMPLOYEE, 0PROFIT_CTR and variance. The idea is to show the result both for the person (0EMPLOYEE), and compare it with their overall profit centre result, and calculate variance.
For example:
John Doe: 50% (presence)
Profit centre which John belongs to: 40% (presence)
variance: 10%
The only variable I want to input is John's name, and the query is supposed to find his current (time dependant) profit centre (0EMPLOYEE_0PROFIT_CTR) and use it to calculate the profit centre result. Is there any way that I can achieve this?
Once the query is done, I want to set it up on the Broadcaster to run for all the people in the firm.
Please please help me,
Cheers,
AgataAglukas,
You need two queries to achieve this
Query 1 u2013 ( this gets Profit center of that employee to feed into Query 2)
Column Presence(key figure)
Row u2013 profit center
Employee u2013 Employee variable that is user entry
Query 2 u2013
Column u2013 Presence
Row Structure u2013 Selection 1- Title- Employee u2013Restriction should be employee with user entry variable
Selecton 2 u2013 Title For entire profit center u2013 Restriction should be Profit center u2013 Variable should be-Replacment path Variable- fetching Profit center from Query 1
Selection 3 u2013 Selection 1-Selection 2 this could be a cell defination.
Hope this helps
Regards -
Hi,
Problem Description:
After installing my new product version, when user does log-off and log in again into admin account
or switch from admin account to non-admin account, PATH environment variable shows incorrect path of my product (previous product version’s path) using command prompt.
It seems windows refresh issue during session changes (log off and log in / switch from Admin to
Non-admin account).
Why PATH environment variable is not refresh immediately after log off and log in again or Switch
from admin to non-admin mode?.
Please see my thread for more details http://social.msdn.microsoft.com/Forums/vstudio/en-US/445ab42c-bdff-405a-8d53-558e1b6c7d34/path-environment-variable-issue-when-user-logoff-and-login-or-switch-from-admin-to-nonadmin?forum=windowsgeneraldevelopmentissues
Also submitted bug for this in connect.microsoft.com portal.In that it has lots of information
like problem statement, Reproduction steps and Expected Results.
Bug ID: 871782
Could you please any body help me for this?. your support will be appreciated.
Thanks,
MarichamyWhy PATH environment variable is not refresh immediately after log off and log in again or Switch
from admin to non-admin mode?.
I wouldn't have any expectation of what you are doing to work the way you expect. E.g. why is the %ABC% being replaced at all? There is some help about this ambiguous scenario in the cmd help...
/V:ON Enable delayed environment variable expansion using ! as the
delimiter. For example, /V:ON would allow !var! to expand the
variable var at execution time. The var syntax expands variables
at input time, which is quite a different thing when inside of a FOR
loop.
/V:OFF Disable delayed environment expansion.
So, what's the setting for the /V: switch that your users would be using? Perhaps you should be using the ! instead of the % for your ABC variable?
Oh. There's more below where I found that...
Delayed environment variable expansion is NOT enabled by default. You
can enable or disable delayed environment variable expansion for a
particular invocation of CMD.EXE with the /V:ON or /V:OFF switch. You
can enable or disable delayed expansion for all invocations of CMD.EXE on a
machine and/or user logon session by setting either or both of the
following REG_DWORD values in the registry using REGEDIT.EXE:
HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\DelayedExpansion
and/or
HKEY_CURRENT_USER\Software\Microsoft\Command Processor\DelayedExpansion
to either 0x1 or 0x0. The user specific setting takes precedence over
the machine setting. The command line switches take precedence over the
registry settings.
In a batch file the SETLOCAL ENABLEDELAYEDEXPANSION or DISABLEDELAYEDEXPANSION
arguments takes precedence over the /V:ON or /V:OFF switch. See SETLOCAL /?
for details.
If delayed environment variable expansion is enabled, then the exclamation
character can be used to substitute the value of an environment variable
at execution time.
So, I guess the essence of your "bug" will boil down to whether you
need the feature to get the result you want and the
truth of that first sentence but it certainly looks like a "can of worms" to me. ; )
HTH
Robert Aldwinckle -
Using Replacement Variables Without Filtering in a Query
I want to use a replacement variable for the posting period and for current fiscal week, but I do not want my query results to be filtered by these values. Instead, I just want to show a column with the fiscal period as a number and the current week as a number. Does anyone know how to do this?
My query shows JAN-DEC values for all key figures but when I use the replacement variable to display NOV as a number, JAN-OCT is blank b/c the query is filtering by NOV. I just want to see a column of "11s".
Any ideas?Hi Tracey,
I was not able to reply you yesterday. After you gave the details, I had this solution in mind but it was a Friday evening and I had to leave.
My understanding :
When user enters the month in selection screen eg: 11 (Nov)
The key figure which is getting displayed in the report till month of Nov should be KF1 else it should be KF2.
So report should be like this
Jan - KF1
Feb - KF1
Mar - KF1
Apr - KF1
May - KF1
Jun - KF1
Jul - KF1
Aug - KF1
Sep - KF1
Oct - KF1
Nov - KF1
Dec - KF2
Solution:
Make a Restricted KF - RKF1
This will have KF1 with a restriction on the month column "<= " month enetered by user in selection screen (use the same variable)
Make one more Restricted KF - RKF2
This will have KF2 with a restriction on the month column "> " month enetered by user in selection screen (use the same variable)
Now make a Calulated KF
CKF = RKF1 + RKF2
Use this in your report.
I think this is what you are trying to get.
Please do award points if you found this useful.
Regards, Mey -
Domain template with custom replacement variables
Hi everyone,
the following document explains how to use "replacement variables" to prepare runtime scripts (bash) when a domain is created from a template:
http://docs.oracle.com/cd/E23943_01/web.1111/e14139/tempbuild.htm#i1100973
Other than the listed variables, is it possible to create our own variables? If yes, how can we assign values to those custom variables when creating the domain from a WLST script?
Thank you,
Gabriel LavoieHave you taken a look at this hotfix?
http://support.microsoft.com/kb/2907591
We had to apply it in order for our variables to be seen.
joeblow -
I'm trying to use a replacement variable in the following script.
Someone can help me to find the error?
Thanks in advance
Paolo
SYS@orcl1 SQL> !uname -a
Linux localhost.localdomain 2.6.18-274.17.1.el5 #1 SMP Tue Jan 10 17:26:03 EST 2012 i686 i686 i386 GNU/Linux
SYS@orcl1 SQL> select * from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for Linux: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
SYS@orcl1 SQL> !cat query1.sql
declare
TYPE QueryCurType is REF CURSOR;
query1 QueryCurType ;
cursor c1 is select owner,table_name from dba_tables where owner not in ('SYS','SYSTEM') and table_name not like '%$%';
cursor c2(t1 varchar2) is select column_name from dba_tab_columns where table_name=t1 and DATA_TYPE in ('NVARCHAR2','VARCHAR2','CHAR');
temp_var varchar2(3000);
query varchar2(3000);
begin
for tab1 in c1 loop
for col in c2(tab1.table_name) loop
query:='select '||col.column_name||' from '||tab1.owner||'.'||tab1.table_name||' where '||col.column_name||' like ' ||*'&&1'*;
dbms_output.put_line('executing..'||query);
open query1 for query;
loop
fetch query1 into temp_var;
if concat('a',temp_var) != 'a' then
dbms_output.put_line('Found String: "'||temp_var||'"# Column:'||col.column_name||'# Table:'||tab1.table_name);
end if;
exit when query1%NOTFOUND;
end loop;
end loop;
end loop;
end;
SYS@orcl1 SQL> @query1 '%TAB%';
old 11: query:='select '||col.column_name||' from '||tab1.owner||'.'||tab1.table_name||' where '||col.column_name||' like ' ||'&&1';
new 11: query:='select '||col.column_name||' from '||tab1.owner||'.'||tab1.table_name||' where '||col.column_name||' like ' ||'%TAB%';
declare
ERROR at line 1:
ORA-00911: invalid character
ORA-06512: at line 13
SYS@orcl1 SQL> @query1 %TAB%
old 11: query:='select '||col.column_name||' from '||tab1.owner||'.'||tab1.table_name||' where '||col.column_name||' like ' ||'&&1';
new 11: query:='select '||col.column_name||' from '||tab1.owner||'.'||tab1.table_name||' where '||col.column_name||' like ' ||'%TAB%';
declare
ERROR at line 1:
ORA-00911: invalid character
ORA-06512: at line 13Hello,
DECLARE
TYPE QueryCurType IS REF CURSOR;
query1 QueryCurType ;
CURSOR c1 IS
SELECT owner
,table_name
FROM dba_tables
WHERE owner NOT IN ('SYS','SYSTEM')
AND table_name NOT LIKE '%$%';
CURSOR c2(t1 VARCHAR2) IS
SELECT column_name
FROM dba_tab_columns
WHERE table_name =t1
AND data_type IN ('NVARCHAR2','VARCHAR2','CHAR');
temp_var VARCHAR2(3000);
query VARCHAR2(3000);
BEGIN
FOR tab1 IN c1 LOOP
FOR col IN c2(tab1.table_name) LOOP
query := 'select ' ||col.column_name||
' from '||tab1.owner||'.'||tab1.table_name||
' where '|| col.column_name ||
' like ' ||'&&1';
dbms_output.put_line('executing..'||query);
OPEN query1 FOR query;
LOOP
FETCH query1
INTO temp_var;
IF CONCAT('a',temp_var) != 'a' THEN
dbms_output.put_line(
'Found String: "'||temp_var||'"# '||
'Column:'||col.column_name||'# '||
'Table:'||tab1.table_name);
END IF;
EXIT WHEN query1%NOTFOUND;
END LOOP;
END LOOP;
END LOOP;
END;
/From your posting I cannot see where line 13 is. But my first attempt would be not to use Oracle keywords like QUERY as variable names.
Can you execute the block, when you manually replace the variable?
Regards
Marcus
P.S.: Please use tags around your code to preserve formatting. -
Calculated Key figure and formula variable issue - Urgent
Hi,
I have created a formula variable on dates. When I run this locally it returns results. Now I have created a calculated key figure on this formula variable. It is not returning any results. Any idea on why this is happening.
Thanks,
KalHi Kal,
Can you paste your Formula & Calculated Keyfigure calculation.
If possible give information on ur formula variable ( processing by , charactesristic , replace variable with ( if it is replacement path ) , Dimension id )
Regards,
SRIKANTH -
Replacement variables SQL Plus x PLSQL x APEX
How Can I use replacement variables SQL Plus, integrating with APEX ,PLSQL?
This isn't going very well is it?
Perhaps it has something to do with a lack of knowledge of the english language, that you don't explain your case more, but I'll try to rephrase your question:
You would like to call a query in SQL*PLUS from an Apex application?
Then my answer would be simple: you can't.
But my return question would be: why would you want that?
You can also run your query in your Apex application and show the result on a page. Why is there a need to run it in SQL*PLUS? -
Formula variable / Replacement path issue
Hi Experts,
I have a Field which has different status description.
I want to bring the count of only one preferred description.
Model Status
A1 New
A2 Open
A3 New
B1 Closed
B2 Pending
B3 New
I want to view only the closed count of models
Model Count of Closed
A1 0
A2 0
A3 0
B1 1
B2 0
B3 0
I tried doing this using the formula variable and Replacement path with Status Field.
But I'm unsuccessful in selection the desired status.
Please help me to over come this.
ThanksHi Dear Prasad,
I can't restrict the characterstic to Closed. If I do so the output will be only for Closed.
But here I want to bring every model with value as 0 and 1 for model with closed status.
Hi Dear Raju,
The requirement what I have here is more complex. like, the result will be for 6 month displaying every single cal/day.
and also I have to find out percentage of closed for every cal/day based on number of model we got.
i have only asked a small portion of it, with this input i will manage to build the percentage etc....
I cannot bring counter inside. My report is already too wide to be displayed.
I have tried similar kind of thing, using CKF, Formula Variable and Replacement path with the Char - InfoObj.
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/009819ab-c96e-2910-bbb2-c85f7bdec04a&overridelayout=true
But I'm not very sure how do I get only count of the my desired status.
Please help.
Thanks -
Concatentating of variables issue - Getting Not a variable debugging.
I'm building a insert statement based on a view I have by building
while stepping thru a bulk collect. I'm Concatentating my 4 varibles to
create a final sql statment that I want to use for Execute Immediate.
However when Concatentating the four variables the last variables for some
strang reason null out the variable.
While debugging I see all 4 variables populated ok, I played with changing the
variables lengths to see if that was the issue but I still have the issue.
Any idea why I would get "not a variable" when Concatentating the final variable?
Below is the Procedure with 2 lines showing the partial one that works and the
full line that fails.
CREATE OR REPLACE Procedure File_Load_Proc Is
Type Fl_Tab Is Table Of File_Load%Rowtype Index By Binary_Integer;
Recs Fl_Tab;
ValCols Varchar2(1000);
SelCols Varchar2(1000);
SqlStatI Varchar2(200);
SqlStatS Varchar2(200);
FinalSql Varchar2(32767);
v Integer;
VMp# Map.Mp#%Type := Null;
Procedure Get_Data
Is
Begin
Select * Bulk Collect
Into Recs
From File_Load;
End Get_Data;
Procedure Perform_Insert
Is
Begin
Null;
--Execute Immediate FinalSql;
End Perform_Insert;
Procedure Process_FileLoad_Data
Is
Begin
For Indx In 1 .. Recs.Count Loop
--First Record from Map
If Recs(Indx).RO# = 1 Then
If VMp# Is Null Then
VMp# := Recs(Indx).MP#;
Elsif VMp# <> Recs(indx).MP# Then
v := Length(SqlStatI || Rtrim(ValCols,',') || ') ' || RTrim(SelCols,',') || SqlStatS);
--This shows values the partial string values
FinalSql := RTrim(SelCols,',') || SqlStatS;
--When I add all the pieces to the sql statment the variable contains no data
FinalSql := SqlStatI || Rtrim(ValCols,',') || ')' || RTrim(SelCols,',') || SqlStatS;
Perform_Insert;
End If;
SqlStatI := 'Insert Into ' || Recs(Indx).SD_Into_Tb || ' (';
ValCols := Null;
SelCols := 'Select ';
SqlStatS := ' From ' || Recs(Indx).SD_Select_Tb || ';';
End If;
ValCols := ValCols || Recs(Indx).SD_Name_Out || ',';
SelCols := SelCols || Recs(Indx).SD_Name_In || ',';
End Loop;
--Insert last Map Records;
FinalSql := SqlStatI || Rtrim(ValCols,',') || ')' || RTrim(SelCols,',') || SqlStatS;
Perform_Insert;
End Process_FileLoad_Data;
Begin
Get_Data;
-- Loop Thru Records and build Insert Statements
Process_FileLoad_Data;
Commit;
Exception
When Others Then
Rollback;
Raise;
End File_Load_Proc;This could be an artifact of whatever front end program you're using to debug.
If I were you, I'd try adding debug statements (via your custom debug log package if you have one or via dbms_output.put_line if you haven't - not forgetting to set serveroutput on first *{;-) ) to record what each value was. That should help you to pinpoint what the issue might be. -
Front Panel Mass Binding Project Variables Issue
Hello -
When attempting to bind controls to shared variables through the front panel mass binding option, there is an issue where you can not seem to bind a "project item" to the control. The method of binding I am using is to export a text list of control names, urls, mode, and function to a text editor utilizing the front panel binding mass configuration options. The text editor shows, in the fourth column, a "0" for no function, a "1" for network item, and a "2" for project item. when attempting to import the list back into the front panel binding mass configuration, all "2" indications become "1", as all items are treated as network. Thus one can not effectively bind to a project shared variable item.
The binding works fine manually by means of utilizing the properties selection of the control, but it is difficult to do this for 821 controls, as in my application.
My application is based on a OPC served group of 821 variables which are linked to controls and indicators through the shared variable representation for each item created in the multiple variable editor.
Does anyone have a work around for this issue, as it is a showstopper right now, ie, you can not effectively bind a large quantity of controls or indicators to project located shared variables as required.
The rationale behind utilizing project located variables instead of network located variables is to reduce the amount of calls to the OPC server which was causnig a large latency in the refresh of the 821 items. With the items defined as shared variables within the project, a single call is issued, which has tremendously sped up the refresh cycle for the list of variables.
Thank you in advance for your insight in this matter,
John DeCroosHello Brian A.,
In response to you comment --
"in 2006, and John did not follow up with any more information for Efosa"
-- a great deal of information was provided to NI (Efosa and many, many others, up to the product manager for the DCS module). I have never heard back on a fix for this bug for the identified version of LabVIEW. The reply by Efosa here was well after we had shipped our product -- (please see date + Efosa's apology) -- we had found our own solution as is identified in the original post.
My solution was, as is also indicated in my original post, to manually bind each variable. This was unbelievably time consuming, but was all I had.
The version of software I am now working on uses far less variables, manually bound to avoid the multiple binding issue we had in the past.
I have checked the mass binding function in LV 8.5.1, it works fine now. I guess it would have been nice to have had a reply that the bug had been resolved ---- would have helped me out a bit.
Thank you,
John DeCroos -
Presentation Variable issue in OBIEE 11g
Hi,
I have 2 reports, report 1 and report 2
When i drill down on report 1 column 'Number of id's' will open the details report of Id's report 2
I am using a Presentation variable in report 2 filters (detail report) which is generated in Main report dasnbord prompt.
They have separate star schema.
Main report(reprot1) using Aggregated table.
Sub report(report2) using detail table.
Problem:
After upgradation from OBIEE 10.1.3.4 to OBIEE 11.1.1.5,(Unix server) The presentation variable value is not getting passed to the detail report. This is working completely fine in OBIEE 10g.
Is there any BUG in OBIEE 11g wrt presentation variable or do we want to change the configuration?
Thanks,
SatheeshHi,
Not sure about the behaviour in 11g, but we faced a similar issue in 10g while passing the presentation varaibles to detail report where main/detail report where coming from different subject areas. The behavior was a little unpredictable. To overcome this, we tried using request variable instead of presentation variable and it worked for us.
You can give it a try by doing the same and see if it works for you.
Thanks -
How to dynamically replace variables in SMARTFORM texts based on item data?
Hi experts,
I'm currently designing a confirmation of order using Adobe PDF forms. The general layout with tables, pictures and texts was not big deal.
But one tiny bit doesn't work and I'm becoming more and more desperate about it.
We need various free texts for our pdf form. I created the texts using smartform texts. Some of these texts need to be slightly dynamic, so I added some dynamic fields in it.
For example:
"The material is currently out of stock.You can expect shipping around week &num_week&."
To replace the dynamic field &num_week& in my interface, I read that I have to name the dynamic field exactly like the corresponding field in my interface. In my case this would be now:
"The material is currently out of stock.You can expect shipping around week &SLS_PRT_COM-ITEM_DETAIL-ZZ_EXTRAFIELDS-ZZWEEKNUM&."
To see the text on my form, I added a text object with type 'text module' and the proper textname. Of course I'm able to insert text on my form, save and activate it without problems. But if I want to print the form, nothing happens as the print program exits with an error code.
After some hours I found out that this problem only occurs if I'm trying to replace the dynamic field with a field from the item table. Using a field from head details or globals like sy-mandt works like a charm.
So my question is: Is it possible to use item data to replace dynamic fields of a smartform text?
Greetings and thanks in advance!
AndréHi
Have a look at the links below:
LiveCycle ES2 * Adobe LiveCycle Designer ES2
Using floating field in Adobe Forms to display text paragraph with dynamic variables in between
After adding the floating field it will apeare in the hierarchy pallet above or bellow the text field.
Good luck
Shai. -
Hi, I'm putting together my first shop.
I have built and tested on
IE6, then upgraded to IE7 & Firefox 2 XP PRo
IE7 XP Home
All is well and the site works fine on the XP machines. Each
client / Browser retaining its own shopping cart information.
Allowing for different users to select items.
A friend has given me 2 old machines to build a testing
workstation for browser compatability. These are both IE6 Win98
machnes although 1 will be changing. Despite a few layout issues
all seemed fine. Until I added things to the shopping basket.
It seems IE6 now (at least certainly under Win98) cannot
persist the session data across pages. I'm not sure if this could
be related to how they are conntected together (using a 10/100
switch) or if there is a setting in IE6 which would prevent this
(not sure how this would be the case) or, more worrying, am I doing
something wrong. My session/cart information is based heavily upon
the CFMX7 Web Application Contruction Kit example. So I'm not sure
what I could have done wrong.
Here is the code below. Its using NAte Wiess' own CFC and
works perfectly in IE7 and I Think IE6 on XP
Any suggestions.or if there is a setting in IE6 which would prevent this (not
sure how
this would be the case)
This is a very likely concern to investigate. For sessions to
work
correctly, by default, cookies must be enabled in the
browser. If the
browser has been configured to not accept cookies, then every
request
made from that browser creates a new session on the server.
If you want your sessions to work without cookies you can
pass the CFID
and CFTOKEN values that define an individual session through
URL
variables. This does take some work to make sure every link,
form and
any other interaction that generates a new request to the web
server
pass these values.
There are aides in ColdFusion to help you with this process,
check the
documentation for all the fun details.
Maybe you are looking for
-
Phone is connecting and transfering data in the ba...
Today at work my Nokia 6710 did start to transfer data in the background without my interaction. I was typing a sms while the symbol for data transfer below the 3G lit up. Did a quick check in the menu->settings->connectivity->Conn.mgr. Yes, one act
-
I am at a loss maybe it is a faulty Express
Ok so I have read page after page of ideas but none are working, I currently have an Airport Extreme supplying wifi and ethernet cable internet to multiple devices this comes from a DSL modem/router. I need to get wifi access further down the house
-
ITunes crashes overnight with EXC_BAD_ACCESS KERN_INVALID_ADDRESS
I leave iTunes running 24/7 as a music and video server for home sharing. After upgrading to a new 2012 iMac and migrating data, I had everything up and running again quickly. But I noticed that each day when I would wake up in the morning that iTu
-
Hi, I have a web dynpro application that can access an external database via EJB. I also have a web module (JSP). In the web dynpro application there is a button that calls a webpage from my web module. Supposedly, when I click the button, the value
-
What is my Mac and does it have blu-ray?
I would like to know if my iMac supports blu-ray? It came out before the 2011 model and would also like to know what it is called?