How to modify substitution variables such as #REGION_POSITION_02#,etc.
Hi,
I'm working with an APEX page template - 'One Level Tabs' in my application.
I have copied and extended this template to meet the requirements specified by the client by adding a background image on the page.Also I have added 5 regions on the page,each one with a backgroung image each.These images are all png format and are supposed to be transaparent revealing the background image of the page.However,when I ran the page I noticed that these region images appeared on a white background and did not show the image below.
Is there a way to modify the substitution variables such as #REGION_POSITION_02#,#REGION_POSITION_04#,#REGION_POSITION_05# ,etc. such that the images placed here appear transparent and reveal the back drop underneath?
Would appreciate it very much if anybody could throw some light on the matter.
Regards,
Priya Jetley
So this is the kind of thing?
changed the html code in the body of that page template and specified and image as a background to the main html tablePlease post the HTML code (wrap in tags to format properly in the forum).
in the source of the region specified the '<img src' tag
This wouldn't give a background image, but place the image in the region content?
Png format I believe has the ability to be transparent by default.Correct me if I am mistaken.
PNGs can have full transparency set using binary transparency, or full or partial transparency set using an alpha channel. Do you know which has been used? Is transparency apparent when the images are viewed on their own?
Again you are recommended to upload a simple example of what you have done to apex.oracle.com. This is the fastest and most reliable way to troubleshoot this type of issue.
Similar Messages
-
How to use substitution variable in case of dim build
Hi all,
Lets say I have 3 sub vars - Prevmonth, prevmonth-1, prevmonth-2. These will change every quarter.
I want to build a cube which will have which will have only the above 3 months in the Fiscal dimension. This will be used once at the end of quarter.
How do I refer substitution variables in case of dim build rule files? I want automate the process. We have SQL dim build for other dims, only this dim can be built from flat file also.
Or is there any other way to achieve this apart from using sub vars? I can try store the 3 variables in a table and then use them to build the cube, but want to see if we can avoid creating one more interface.
Thanks.Actually using the values of subvars to build a dimension (which I believe is what you want) is a fun problem. Here's an (Oracle) example that would do that, without requiring any additional table or flat file:
SELECT 'FiscalPeriod' AS Parent,
CASE Level
WHEN 1 THEN '&CurrMonth'
WHEN 2 THEN '&PrevMonth'
WHEN 3 THEN '&PrevMonthMinusOne'
END AS Child
FROM Dual
CONNECT BY Level <= 3
Here's how it looks in the load rule SQL dialog, and the data prep editor:
It's fun because I've never thought about it before, but I don't actually recommend this - if you have other ETL going on in SQL I'd generate the values in a table / view there, and have a script that both updates the subvars and builds the dimension direct from that. -
How to use substitution variables in Microsoft Word using Hyperion Smart view
Can we use Substitution Variables in copy data points and refresh in Microsoft Word? I tried it and it does not work dynamically (copy data points only copies what was in excel cell at that point). It only copies the static value of that variable from that cell. I want to use it dynamically in Word so that if I change the value of that variable in Essbase, it is updated in Word upon refresh. Any idea??
We need this feature for reporting in microsoft word and keep using the data points every year (instead of copying the cells from excel over again)
Any help/suggestion is appreciated.
Thanksyou can't use substitution variables with copy data points. I had tried a while ago (post 111.1.2.1.102) and it wouldn't work. I checked with Oracle development and they said it I not available
-
How to prevent substitution variable recognition?
Hi, is there any way to prevent the recognition of substitution variables in a SQL worksheet? For example, I would like to run the following query in SQL Developer 2.1.1.64:
SELECT UTL_HTTP.request ('http://localhost:8088/foo/servlet/bar?x=10&y=10')
FROM DUAL;Here, '&y' is not a substitution variable but a request parameter. Is there any way to escape the '&' sign? Or any other way to execute this query without substitution variable?
Thanks in advance.
Regards, MarkusTry this
set define offHTH,
dhalek -
How to compare substitution variable name to static member names (not data)?
Is there a way to write a BSO member formula that compares a substitution variable against the name of a static member (not the data value of the member)
For example, I have a BSO database that has the sub variable &CurrMth (which is set the real current month), and I am trying to use it in the Q1/Q2/Q3/Q4 member formulas
IF(&CurrMnth <> "Jan" AND &CurrMnth <> "Feb")
"Mar";
The intention of the above is: if &CurrMnth is neither Jan nor Feb, then the Mar value will be used. However, the system is actually comparing the values of &CurrMnth and Jan/Feb, rather than the names/text string of "Jan"/"Feb".
I have been looking around the tech references, but I was unable to find any functions that will compare the text strings of member names as they all appear to compare against the data itself.
Please let me know if there are any ways to compare the member names themselves in a member formula, not the data values.
Thanks!Thanks Celvin, that looks like it works!
However, I do need to do the same function in the equivalent quarter members in our ASO cube as well. Do happen know know if there's a similar MDX function I could use in the ASO cube to acheive the same result? I was using the following to achieve this in ASO (which obviously did not work):
IIF([Time Periods].[Jan] <> &CurrMth AND [Time Periods].[Feb] <> &CurrMth,
[Mar], -
How to setup substitution variable for CurrYr?
I am trying to setup substitution variable for Curryr. Can anyone provide steps to setup substitution variable?
ThanksAlso look Re: Update variables at this recent thread. JohnGoodwin highlights a good way to get this automated using a batch file
-
How to Update Substitution Variable
Hi All,
we are using Essbase 9.3.1.2. i am trying to create substitution variable using essbase console and i am getting an error as 1051082: substitution variable currmonth already exists however i have deleted all my substitution variables before creating them. When i checked in the backend using maxl i am able to see that the new substitution variable is created (*Currmonth*) however in console when i right click on the server --> edit -> variables i am not able see that variable that i have created.
Can anyone of you help me out...
regards,
Naveen.
Edited by: user12209997 on Sep 13, 2010 11:29 AMAre you sure you're not creating the substitution variable at say, the database level, but are then looking at the application or server level? Or the reverse?
What do you get in MaxL when you type:
display variable all ;
If you set a variable, can you use it in an Essbase retrieve through the Excel add-in? If yes, I'd say the variable really exists and it's EAS that is wrong. There's always the restart of the EAS service to try.
Regards,
Cameron Lackpour -
How to use DIAdem variables R1,L1,T1 etc. ?
Is there a programming manual for the DIAdem variables R1,L1,T1 etc. ?
To get the variable types in English, you can look for "Auxiliary variables" in the help. The long and short of it though is:
Name Type Dimension
R1, R2 ... R30 Real Single value
L1, L2 ... L30 Long Integer Single value
B1, B2 ... B10 Boolean Single value
T1, T2 ... T10 Text Single value
G1, G2 ... G30 Dynamic enumeration list Single value
RV1 ... RV4 Real Vector [1 ... 15]
LV1 ... LV4 Long Integer Vector [1 ... 15]
TV Text Vector [1 ... 10]
GV Dynamic enumeration list Vector [1 ... 10]
You can use these types instead of using Dim to create your own variables in script or calculator. Let me know if you have any other questions. Thanks and have a good one.
Adam B.
Applications Engineer
National Instruments -
How to modify global variable in a function?
Hello,
I want to modify a globalvariable in a function, at first I did it this way:
class Global_output_class
GlobalDim("Correlation_Status,fail_part,End_Exp")
dim pouet
Correlation_Status = 12
Call Correlation()
pouet = Correlation_Status
Function Correlation()
Dim Global_output_class_sub
Set Global_output_class_sub = new Global_output_class
Correlation_Status = 1
fail_part = 2
End_Exp = 3
Global_output_class_sub.CorrelationStatus = Correlation_Status
Global_output_class_sub.failpart = fail_part
Global_output_class_sub.EndExp = End_Exp
set Correlation = Global_output_class_sub
End function
In this case: correlation_status receive the value 12, then I go to my function correlationn() where it became 1
Then it goes out of the subfunction and takes the previous value from the program(12) ( I dont want that)
To solve the problem I made it this way:
class Global_output_class
public CorrelationStatus
public failpart
public EndExp
end class
GlobalDim("Correlation_Status,fail_part,End_Exp")
Correlation_Status = 12
Set Global_Output = Correlation()
Correlation_Status = Global_Output.CorrelationStatus
fail_part = Global_Output.failpart
End_Exp = Global_Output.EndExp
pouet = Correlation_Status
Function Correlation()
Dim Global_output_class_sub
Set Global_output_class_sub = new Global_output_class
Correlation_Status = 1
fail_part = 2
End_Exp = 3
Global_output_class_sub.CorrelationStatus = Correlation_Status
Global_output_class_sub.failpart = fail_part
Global_output_class_sub.EndExp = End_Exp
set Correlation = Global_output_class_sub
End function
This way my global value are recopied in themselves after leaving the subprogram
I got a lot of variables, is there any easier way so the global variable modified in a function keep the value after leaving the function?
Thanks for help,
Fred
Solved!
Go to Solution.Hi Fred,
it is possible to use a global defined variable but the better way is to use to use a funtion call (or procedure call) with parameters. Please find first the good solution for a funcion call with parameter and the sub-optimal way with an global valiable:
dim oParameter
set oParameter = new cGlobal_output_class
oParameter.Correlation_Status = 12
msgbox "Correlation_Status before Call Correlation: " & oParameter.Correlation_Status
Call Correlation(oParameter)
msgbox "Correlation_Status after Call Correlation: " & oParameter.Correlation_Status
Function Correlation(oPara)
msgbox "Correlation_Status in the FUNCTION before change: " & oPara.Correlation_Status
oPara.Correlation_Status = 1
oPara.fail_part = 2
oPara.End_Exp = 3
msgbox "Correlation_Status in the FUNCTION after change: " & oPara.Correlation_Status
End function
class cGlobal_output_class
dim Correlation_Status,fail_part,End_Exp
end class
call GlobalDim("oPouet")
dim oPouet
set oPouet = new cGlobal_output_class
oPouet.Correlation_Status = 12
msgbox "Correlation_Status before Call Correlation: " & oPouet.Correlation_Status
Call Correlation()
msgbox "Correlation_Status before Call Correlation: " & oPouet.Correlation_Status
Function Correlation()
msgbox "Correlation_Status in the FUNCTION before change: " & oPouet.Correlation_Status
oPouet.Correlation_Status = 1
oPouet.fail_part = 2
oPouet.End_Exp = 3
msgbox "Correlation_Status in the FUNCTION after change: " & oPouet.Correlation_Status
End function
class cGlobal_output_class
dim Correlation_Status,fail_part,End_Exp
end class
Greetings
Walter -
How to use substitution variable in sql
Hai All
I have two tables Rgpmain and Rgpitem the fields are
Rgpmain
unitid,periodid, docno, vendcode ,vendname, part_taken_by and .....
Rgpitem
unitid, periodid, docno, partno, partname .... And i need to give some values in runtime using sub variable
i need to to four values in sub function and i will give one value and i need the result of one variable
The qurey will like this
Select * from rgpmain m, rgpitem i where unitid=1 and periodid=14 and m.unitid=i. unitid and m.periodid= i.periodid and m.docno = i.docno and vendcode ='&p_vendcode'
Or
m.unitid=i. unitid and m.periodid= i.periodid and m.docno = i.docno and vendname like '&p_vendname%'
Or
m.unitid=i. unitid and m.periodid= i.periodid and m.docno = i.docno and partname like '&p_partname%'
or
m.unitid=i. unitid and m.periodid= i.periodid and m.docno = i.docno and partno ='&p_partno'
This is my query
And while i am executing there are four options showing to enter..
My need is i need enter only one field Ie vendcode and execute the vendcode like ABC01 then i need the only
the result that belong to vendcode ABC01 but my query giving all the rows
Pls tell me what is wrong with my query
Thanks In Advance
Srikkanth.MHai
Thanks Man i under stood that nv2 if 1 col is null then it will return 2 col or els 1 col but i working with large
database and i need four or five column using sub. Pls tell whats went wrong with my query when i am executing
one by one at the first time its works fine but next time it returns 1000 rows. pls tell me how to use four or five columns
Regards
srikkanth.M -
How to use substitution variables in sqlplus activity of process flow
I have a process flow that does nothing more than create a couple of packages that I cannot successfully deploy from OWB. A workaround, not something that I want to do, but currently there is not much time to adjust the packages so they can be deployed from OWB.
I can successfully create the packages from files that are present in a directory on the server. But the location (directory) is not the same in all cases (OTAP). So I thought to use an input parameter to the process flow (named TELLINGEN) and use that in the sqlplus activity.
I have created the parameter START_PATH with a default value.
I have added an sqlplus activity and placed the following into the PARAMETER_LIST variable of the activity:
?${Target.ConnectString}?@${TELLINGEN.START_PATH}/npl_dbug.pkg?
When I run the process flow I see the following in the output:
SQL*Plus: Release 10.2.0.3.0 - Production on Tue Mar 18 18:10:14 2008
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
SP2-0310: unable to open file "${TELLINGEN.START_PATH}/npl_dbug.pkg"
SQL> SQL> Disconnected from Oracle Database 10g Enterprise Edition Release
10.2.0.3.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
It obviously connects to sqlplus but then cannot find the file. Presumably because the variable has not been substituted.
How can I persuade the activity to substitute the variable?
Kind regards,
Eric.Have been reading around a bit and found the (a) solution:
I placed the following in PARAMETERLIST:
?${Target.ConnectString}?@${Working.RootPath}/base64.sql?
And it turns out ${Working.RootPath} is pointing to the location you can provide under the configure for the sqlplus activity in the process flow. Just as you have to provide the target destination as indicated here: Re: SQLPLUS Activity in Process Flow
From the documentation it was not immediately clear to me where Working.RootPath was pointing to. -
How to modify $PATH variable
Hello,
I'm having problems editing my $PATH variable.
I've created a ".profile" with this line
export /my_path:$PATH
But when I launch Terminal again, I get this error:
-bash: export: `/my_path:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin': not a valid identifier
Is there something that I am missing? Or is there another easier way to edit my $PATH variable?
Cheers!
MaxI'm having problems editing my $PATH variable.
I've created a ".profile" with this line
export /my_path:$PATH
But when I launch Terminal again, I get this error:
-bash: export: `/my_path:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin': not a valid identifier
Is there something that I am missing? Or is there another easier way to edit my $PATH variable?
export PATH="/my_path:$PATH"
Also note, that bash will look for 1 of 3 initialization files
.bash_profile
.bash_login
.profile
In that order, and will use the first one it finds and then stop looking. If you also have a .bashrc file, you would source that in your shell initialization file
source $HOME/.bashrc
By the way, Terminal, Unix, and command line command questions are best asked in the Mac OS X Technologies > Unix Forum
<http://discussions.apple.com/forum.jspa?forumID=735> -
How to call substitution variable from calculation script?
Use ampersand and variable name &varname
e.g FIX (&currMonth)
where currMonth is your variable
Cheers
John
http://john-goodwin.blogspot.com/
Edited by: JohnGoodwin on Mar 22, 2010 11:02 AM -
Hi ,
I have a substitution variable named curMonth and I set it to "Oct".
I want to use it in an if like
if(&curMonth == "Jan")
acc = calc1;
elseif(&curMonth == "Feb")
acc = calc2 ;
elseif(&curMonth == "Oct")
acc = calc10;
elseif(&curMonth == "Dec")
acc = calc12;
endif;
when I'm trying this the 1st condition is true so I have calc1 as result.
I changed it to many if... endif and i suppose that every condition was true because I found the last calc (calc12) as result in my account (acc).
Any ideas?
Thank you in advanceThere was another thread about comparing subvars to member names recently:
How to compare substitution variable name to static member names (not data)? -
For Mayank Guptha : how to create formula variable in IP
Hi,
How to create formula variable, such that it will appear in the variable screen.Hi,
the variables you create in formula function are local to the function.
Ex., DATA CST_ELMNT TYPE 0COSTELMNT.
DATA QTY TYPE 0QUANTITY.
To get the variables listed in the variable screen you need o create variables at aggregation/filter level for the required characteristics.
Maybe you are looking for
-
CRM fields not populating in BPS layout for opportunity Planning 0crm_order
Hello Support, We are using SAP CRM 5.0 SP09 with BW 7.0 SP 09. When creating an opportunity
-
How do I get the U2 album off my iphone ?
I have an iphone 4s and itunes on my macbook pro linked to that iphone handset. I have followed all the instructions provided to get rid of this U2 album off my iphone. It no longer appears in my itunes on my macbook. I have done everything advised
-
Hi !! Good evening. I am very new to CRM . How we can map Vendors from R/3 to CRM & CRM to R/3. There are only 5 classifications in CRM like-- Customer, Compitetor,Consumer, Prospect & COD Customer. Then how we can map. if it can be by T. Code --- PI
-
I can't play YouTube videos on my IPhone! What's the problem?
I can't watch YouTube Videos on my IPhone 4 (iOS 5.0.1 No jailbreak) The Debug Console from Safari tells me, that there's a mistake in the JavaScript. How to fix it? I already spoke with Google, but they didn't have a problem. I can open other websit
-
How to code this using FIELD SYMBOL ?
Hello All, I never used field symbols before and I think this is where I should use field symbols in my program. I have a selection parameter period (p_period) and based on the p_period value(XX), I need to display the HSLXX, KSLXX from table GLT0 us