Use of "&" in rules
Hi Gurus,
I am new to rules, i have to understand some code and need to modify. I very new to rules. I have a doubts regarding rules. What is the use of "&" sign in rules? How do we use this in rules? And could you plz explain below statements.
1) HS.Exp “A#BegRetainedEarnings ”&“= A#EndRetEarn.Y#Prior.P#Last ”&“+ A#NetIncome.Y#Prior.P#Last.W#YTD” -- in this statement what is the use of "&" and how it works.
2) HS.Exp "A#Account3.C1#Computers = " & SomeVariable --- In this stament "&" use and how it works.
3) HS.Exp “A#Account3.C1#Computers = A#Account4 “ & “.C1#Computers * 1.1” -- Plz explain this statement and *".C1#Computers"* . with out specifying other dimensions, what is the purpose of ".C1#Computers".
Thanks and regards
nivas
Ampersands is your concatenation symbol, it is used to add a variable to a text string.
HS.Exp “A#BegRetainedEarnings ”&“= A#EndRetEarn.Y#Prior.P#Last ”&“+ A#NetIncome.Y#Prior.P#Last.W#YTD”
The ampersand appears to be unnecessary in the above example this should work
HS.Exp “A#BegRetainedEarnings = A#EndRetEarn.Y#Prior.P#Last+ A#NetIncome.Y#Prior.P#Last.W#YTD”
You can test this by scanning your rules.
HS.Exp "A#Account3.C1#Computers = " & SomeVariable --- In this stament "&" use and how it works.
if your variable equals Banana, the equivalent string would be HS.Exp "A#Account3.C1#Computers = Banana" meaning whatever the value of the variable is what it will be appended to the string.
HS.Exp “A#Account3.C1#Computers = A#Account4 “ & “.C1#Computers * 1.1” -- Plz explain this statement and ".C1#Computers" . with out specifying other dimensions, what is the purpose of ".C1#Computers".
Again the ampersand appears to be unnecessary.
The purpose of ".C1#Computers", is to limit the value placed on your target account to that of the Computers Member of the Custom 1 dimension.
Please take the following statement the right way: Before venturing into the rules file, learn some VBA.
Edited by: Raul Rodriguez on Feb 12, 2011 3:35 PM
Similar Messages
-
[SOLVED] how to use diffrent iptables rules for different ppp account?
x86 plantform run arch linux system , have two network interface etn1 eth0 .eth1 connect to internet. eth0 connect to other terminals through switch. want use different iptables rules for different pppoe account .also want to know how to forbidden more than one terminals established pppoe link use same account at the same time .
Last edited by linuxsir (2013-09-26 06:48:01)(You establish PPPoE sessions over the local network to the Arch machine? Which then routes the traffic?)
first question ,yes that is exactly what i am done. second question i also have a small scripts on windows pc to solve routes traffic problem
route -p delete 0.0.0.0
route -p add 192.168.9.0 mask 255.255.255.0 192.168.9.1
route -p add 0.0.0.0 mask 0.0.0.0 192.168.22.0
but after a while i found scripts is not necessary because windows always attempt to use PPPoE sessions as default internet connection local connection is also ok
and use -i pppX in my iptables rules dose not solve my problem , because same account start PPPoE session could be marked as ppp0 or ppp1. it is hard to identified which account start session. -
Use of Selection Rule in Report Writer.
Hello Everybody,
I am trying to make use of selection rule in report writer. We have a mixed chart of accounts using both IFRS and USGAAP account. Distinction between USGAAP and IFRS is based on certain value in gl account master data. Using report writer rule I wish to exclude IFRS account for a specfic report.
For example
REPORT = X = Rule to restrict selection to only USGAAP account
REPORT = Y = Rule to restrict selection to only IFRS account.
I have created a rule and tried to build user-exit around it. However during the callup of the selection rule no values are transferred to user-exit and therefore the ABAP consultant is not able to write any specific code.
Request your inputs on usage of selection rules in report writer.
Regards
Jayesh.Hi Jayesh,
Please have a look at the below attachment.
[http://help.sap.com/saphelp_470/helpdata/en/5b/d22e3843c611d182b30000e829fbfe/content.htm]
Warm regards,
Murukan Arunachalam -
How to change the response of human task if we are using the skip rule
Hi,
We have developed the request workflow in OIM11g for this we are using the Beneficiary Manager approval composite to approve the request by his manager.
We are using the skip rule in the human task component to skip the user if the requester is beneficiary manager.
After the skip rule is executing the the request is going to failed state because of the response it is sending to the OIM
The skip rule is working as expected but the response sending to OIM is COMPLETED instead of APPROVE.
Please let us know the steps to change the response to Approve after the skip rule is executed or how to add the response COMPLETED in OIM.
ThanksYou will have to write a conditional block outisde the task where you would check if the skip condition is met and if yes then you will have to hard code the approved conditions into the payload for the task outcome.
<assign name="SetAutoApproveConditions">
<copy>
<from expression="string('APPROVE')"/>
<to variable="ApprovalTask_1_globalVariable"
part="payload"
query="/task:task/task:systemAttributes/task:outcome"/>
</copy>
<copy>
<from expression="string('COMPLETED')"/>
<to variable="ApprovalTask_1_globalVariable"
part="payload"
query="/task:task/task:systemAttributes/task:state"/>
</copy>
</assign>HTH,
BB -
Can I use a OID rule for a Query SQL Lov of BIP?
Hi. Can I use OID data (rules) for a query sql lov in BIP? Ex. filters users/store.
Thank you.
R.Hi,
I didn't look at the example, but if you want to secure your application then you should use container managed security. Read this .
Anyway, you could add this before return "good"; in your login_action()
FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put("username", user);Then, you can access this from anywhere in the application by using #{sessionScope.username}.
Pedja -
Send custom error message using IDoc conversion rule?
Hello,
I am using an Idoc conversion rule in BD79 to load cost centers. In my conversion rule I use a conversion exit function module to concatenate 2 specific characters and sending cost center value together and then this output value placed in the receiving cost center field. This works fine, but now I want to send a custom error message to the idoc and fail the idoc if the sending cost center value is greater than 8 digits.
Does anyone know how to send an error message or update an idoc with an error message using a conversion rule (bd79)?
Thank you,
RhondaHi Rhonda,
Any luck on the below.. i have a similar issue...
Sorry to hijack your thread... -
Comparing two List values using Oracle Business Rules
Hi all,
i just need to know how to use the Oracle Business Rules to Compare 2 list types
say for example list1( 10,20,30,40) and List2(10,50,60). when i compare both the list using the business rules
the rule should return true if there is atleast one match..here 10.
any help is appreciated
Thanks,
karthikHi folks,
Please show the way....
Regards,
PavanKumar.M -
AppLocker allows unsigned apps to start using a publisher rule?
Hi all,
I am looking at deploying AppLocker policies to prevent unauthorized software from being executed.
I have created a test lab (fully patched W2K8 R2 SP1) for this purpose but have hit the following issues with Publisher rules that I do not understand…
I have a single publisher rule allowing anything signed by…
“Signed by O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US”
…to be executed by ‘everyone’, audit mode.
This worked as expected until closer examination which showed that all files from Microsoft are being allowed as opposed to only those digitally signed files.
Is this correct behavior, as TechNet documentation suggests this should not happen?
So for example, the Internet Explorer executable ‘iexplorer.exe’ contains in the file properties a digital signature, timestamped and associated certificate.
However, the Management console ‘mmc.exe’ contains no such signature – therefore I am assuming it is NOT signed and would be blocked by the AppLocker publisher rule.
This I confirmed by running the ‘signtool.exe’ utility against them which confirms no digital signature in the executable ‘mmc.exe’.
Both are however permitted to run via the publisher AppLocker rule.
If I use the AppLocker console to create a rule and select the mmc.exe, it accepts it as if it is signed. Where is it getting this information from? Every other test on the file seems to suggest it is not signed and AppLocker documentation indicates
only signed files can be used for publisher rules.
My main concern is that this opens up a potentially vulnerability to circumvent AppLocker.
Signtool command line output for reference…
C:\Tools>signtool verify /pa "C:\Program Files\Internet Explorer\iexplore.exe"
Successfully verified: C:\Program Files\Internet Explorer\iexplore.exe
C:\Tools>signtool verify /pa c:\windows\system32\mmc.exe
SignTool Error: No signature found.
SignTool Error: File not valid: c:\windows\system32\mmc.exe
Number of errors: 1Toby,
If you didn't remove the default executable rules, anything located under \Windows\ is allowed by the default rule named "(Default Rule) All files located in the Windows folder". -
Http - http redirection using header-field rule
Hi,
Is it possible to configure an http -> http redirection using header-field rules if the CSS is NOT performing the SSL encryption/decryption ?
We can get the redirect working not using the header-field rule but not with it configured.
cheers,
MikeGilles,
The header-field rule works to redirect the http traffic to a specific service, but we also want the header-field rule config under the port 443 content rule.
Can the CSS see the header or is it encrypted ?
service 10.10.10.1-443
ip address 10.10.10.1
protocol tcp
port 443
keepalive maxfailure 2
keepalive retryperiod 45
keepalive frequency 45
keepalive type script testscript "10.10.10.1 4000 3179 archepns"
active
service 10.10.10.2-443
ip address 10.10.10.2
protocol tcp
port 443
keepalive maxfailure 2
keepalive retryperiod 45
keepalive frequency 45
keepalive type script testscript "10.10.10.2 4000 3179 archepns"
active
service archepns_redirect
keepalive type none
type redirect
no prepend-http
ip address 1.1.1.1
domain https://www-knowledge-epe.company.com
active
header-field-group archepns_url
header-field Request-Line request-line contain "/archepns"
header-field-group archepns_url2
header-field Request-Line request-line contain "/archepns"
content archepns-redirect-sso
vip address 20.20.20.1
protocol tcp
port 80
url "/*"
header-field-rule archepns_url weight 0
add service archepns-redirect
active
content archepns-443
vip address 20.20.20.1
port 443
url "/*"
header-field-rule archepns_url weight 0
add service 10.10.10.1-443
active
content archepns-redirect-sso
vip address 20.20.20.1
protocol tcp
port 80
url "/*"
header-field-rule archepns_url2 weight 0
add service archepns-redirect
active
content archepns-443
vip address 20.20.20.1
port 443
url "/*"
header-field-rule archepns_url2 weight 0
add service 10.10.10.2-443
active -
Hi,
I have one human tasks in BPEL process in which i am using different stages and with using advance routing rules i am routing my task payload to one stage to another.My payload has Task Status and Branch,after approving the human task from first stage I want to send modified value of the Task Status to the next stage without using worklist API or manual updation but only using the advance routing rules,is it possible ??? If anyone have any idea about this than please enlight me with your valuable solutions and advices...
Thanx
Regards
AjralHi SamGoe,
According to your description, my understanding is that you want to update the PoerPoint slide from SharePoint 2010 slide library automatically.
It seems to be not necessary to use Macros. SharePoint provides an OOB way to notify you to check for update to the slide library slides when you open the presentation. PowerPoint does this because you selected the option
Tell me when this slide changes when you copied the slides from the library.
More information, please refer to the link below:
http://office.microsoft.com/en-us/powerpoint-help/sharepoint-slide-libraries-ii-use-slides-in-the-library-RZ010254089.aspx?section=6
I hope this helps.
Thanks,
Wendy
Wendy Li
TechNet Community Support -
Multiple Use of Navigation-Rule
Hi!
Is it possible to use the navigation rules in the faces-config multiple times or must i create one rule for each link?
I thought about this way:
<navigation-rule>
<from-view-id>/Page1.jsp</from-view-id>
<from-view-id>/downloads.jsp</from-view-id>
<navigation-case>
<from-outcome>login</from-outcome>
<to-view-id>/Login.jsp</to-view-id>
</navigation-case>
</navigation-rule>The Page1.jsp redirects as well as the downloads.jsp to the Login.jsp. Both are in a navigation bar.
Is there any workaround possible or must i add several navigation rules?The <from-view-id> is optional. Just remove them.
By the way, I would rather use plain vanilla links (<h:outputLink> or just <a>) for plain navigation. Navigation by POST isn't always a good idea. -
Finding limit of logarithm using L'hospital rule
I have trouble finding derivative of logarithmic function:
Supposed I have the following problem:
Lim (as n --> infinity) 3(log n)^4 / 3nlog n + 2nHow do I find the limit of the above using l'hospital rule? I need to find the limit to determine the run time whether it is big_O, big_thete, or little-o.The limit as x tends to infinity of a(x) /b(x) is the same as the limit as x tends to infinity of a'(x)/b'(x).
So, take the limit as n tends to infinity of the derivative of the numerator / the derivative of the denominator.
This process can be repeated until the limit is easy.
Easy eh? -
Using media css rule with group container?
Hi,
I have a label created in a component that extends Group container. I need to use the media rule to set the font size of the label for different screen densities.
If I create the component in mxml it works fine. But, how do i get it to work with action script component.
Thanks and Regards,
Kanthi.Yeah kind of. But is it possible to use media rule inside a style declaration?
Like
.myLabelStyle{
@media (application-dpi: 320) and (os-platform: "IOS"){
Thanks and Regards,
Kanthi -
Force statement to use a given rule or execution plan
Hi!
We have a statement that in our production system takes 6-7 seconds to complete. The statement comes from our enterprise application's core code and we are not able to change the statement.
When using a RULE-hint (SELECT /*+RULE*/ 0 pay_rec...........) for this statement, the execution time is down to 500 milliseconds.
My question is: Is there any way to pin a execution plan to a given statement. I have started reading about outlines, which seems promising. However, the statement is not using bind-variables, and since this is core code in an enterprise application I cannot change that either. Is it possible to use outlines with such a statement?
Additional information:
When I remove all statistics for the involved tables, the query blows away in 500 ms.
The table tran_info_types has 61 rows and is a stable table with few updates
The table ab_tran_info has 1 717 439 records and is 62 MB in size.
The table query_result has 777 015 records and is 216 MB in size. This table is constantly updated/insterted/deleted.
The query below return 0 records as there is no hits in the table query_result.
This is the statement:
SELECT /*+ALL_ROWS*/
0 pay_rec, abi.tran_num, abi.type_id, abi.VALUE
FROM ab_tran_info abi,
tran_info_types ti,
query_result qr1,
query_result qr2
WHERE abi.tran_num = qr1.query_result
AND abi.type_id = qr2.query_result
AND abi.type_id = ti.type_id
AND ti.ins_or_tran = 0
AND qr1.unique_id = 5334549
AND qr2.unique_id = 5334550
UNION ALL
SELECT 1 pay_rec, abi.tran_num, abi.type_id, abi.VALUE
FROM ab_tran_info abi,
tran_info_types ti,
query_result qr1,
query_result qr2
WHERE abi.tran_num = qr1.query_result
AND abi.type_id = qr2.query_result
AND abi.type_id = ti.type_id
AND ti.ins_or_tran = 0
AND qr1.unique_id = 5334551
AND qr2.unique_id = 5334552;Here is the explain plan with statistics:
Plan
SELECT STATEMENT HINT: ALL_ROWSCost: 900 Bytes: 82 Cardinality: 2
15 UNION-ALL
7 NESTED LOOPS Cost: 450 Bytes: 41 Cardinality: 1
5 NESTED LOOPS Cost: 449 Bytes: 1,787,940 Cardinality: 59,598
3 NESTED LOOPS Cost: 448 Bytes: 19,514,824 Cardinality: 1,027,096
1 INDEX RANGE SCAN UNIQUE TRADEDB.TIT_DANIEL_2 Search Columns: 1 Cost: 1 Bytes: 155 Cardinality: 31
2 INDEX RANGE SCAN UNIQUE TRADEDB.ATI_DANIEL_7 Search Columns: 1 Cost: 48 Bytes: 471,450 Cardinality: 33,675
4 INDEX UNIQUE SCAN UNIQUE TRADEDB.QUERY_RESULT_INDEX Search Columns: 2 Bytes: 11 Cardinality: 1
6 INDEX UNIQUE SCAN UNIQUE TRADEDB.QUERY_RESULT_INDEX Search Columns: 2 Bytes: 11 Cardinality: 1
14 NESTED LOOPS Cost: 450 Bytes: 41 Cardinality: 1
12 NESTED LOOPS Cost: 449 Bytes: 1,787,940 Cardinality: 59,598
10 NESTED LOOPS Cost: 448 Bytes: 19,514,824 Cardinality: 1,027,096
8 INDEX RANGE SCAN UNIQUE TRADEDB.TIT_DANIEL_2 Search Columns: 1 Cost: 1 Bytes: 155 Cardinality: 31
9 INDEX RANGE SCAN UNIQUE TRADEDB.ATI_DANIEL_7 Search Columns: 1 Cost: 48 Bytes: 471,450 Cardinality: 33,675
11 INDEX UNIQUE SCAN UNIQUE TRADEDB.QUERY_RESULT_INDEX Search Columns: 2 Bytes: 11 Cardinality: 1
13 INDEX UNIQUE SCAN UNIQUE TRADEDB.QUERY_RESULT_INDEX Search Columns: 2 Bytes: 11 Cardinality: 1 Here is the execution plan when I have removed all statistics (exec DBMS_STATS.DELETE_TABLE_STATS(.........,..........); )
Plan
SELECT STATEMENT HINT: ALL_ROWSCost: 12 Bytes: 3,728 Cardinality: 16
15 UNION-ALL
7 NESTED LOOPS Cost: 6 Bytes: 1,864 Cardinality: 8
5 NESTED LOOPS Cost: 6 Bytes: 45,540 Cardinality: 220
3 NESTED LOOPS Cost: 6 Bytes: 1,145,187 Cardinality: 6,327
1 TABLE ACCESS FULL TRADEDB.TRAN_INFO_TYPES Cost: 2 Bytes: 104 Cardinality: 4
2 INDEX RANGE SCAN UNIQUE TRADEDB.ATI_DANIEL_6 Search Columns: 1 Cost: 1 Bytes: 239,785 Cardinality: 1,547
4 INDEX UNIQUE SCAN UNIQUE TRADEDB.QUERY_RESULT_INDEX Search Columns: 2 Bytes: 26 Cardinality: 1
6 INDEX UNIQUE SCAN UNIQUE TRADEDB.QUERY_RESULT_INDEX Search Columns: 2 Bytes: 26 Cardinality: 1
14 NESTED LOOPS Cost: 6 Bytes: 1,864 Cardinality: 8
12 NESTED LOOPS Cost: 6 Bytes: 45,540 Cardinality: 220
10 NESTED LOOPS Cost: 6 Bytes: 1,145,187 Cardinality: 6,327
8 TABLE ACCESS FULL TRADEDB.TRAN_INFO_TYPES Cost: 2 Bytes: 104 Cardinality: 4
9 INDEX RANGE SCAN UNIQUE TRADEDB.ATI_DANIEL_6 Search Columns: 1 Cost: 1 Bytes: 239,785 Cardinality: 1,547
11 INDEX UNIQUE SCAN UNIQUE TRADEDB.QUERY_RESULT_INDEX Search Columns: 2 Bytes: 26 Cardinality: 1
13 INDEX UNIQUE SCAN UNIQUE TRADEDB.QUERY_RESULT_INDEX Search Columns: 2 Bytes: 26 Cardinality: 1 Our Oracle 9.2 database is set up with ALL_ROWS.
Outlines: http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96533/outlines.htm#13091
Cursor sharing: http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:3696883368520Hi!
We are on Oracle 9iR2, running on 64-bit Linux.
We are going to upgrade to Oracle 10gR2 in some months. Oracle 11g is not an option for us as our application is not certified by our vendor to run on that version.
However, our performance problems are urgent so we are looking for a solution before we upgrade as we are not able to upgrade before we have done extensive testing which takes 2-3 months.
We have more problem sql's than the one shown in this post. I am using the above SQL as a sample as I think we can solve many other slow running SQL's if we solve this one.
Is the SQL Plan management an option on Oracle 9i and/or Oracle 10g? -
Error in mapping generation when using a data rule
I hope someone can point me in the right direction on this one. I've searched all over but can't find a similar problem anywhere.
This is OWB Client 10.2.0.1.31 and repository 10.2.0.1.0 in a 10g SE database . I have a table on which I have defined a data rule, which is deployed in the database along with its corresponding error table. The rule I have used is the built-in IS_DATE and it is applied to a VARCHAR2 field that will store a date in a specific format. I have defined the table as an operator in a mapping, and set the IS_DATE data rule action to MOVE TO ERROR. When I try to deploy the mapping I get the follwoing errors in the log:
Warning ORA-06550: line 244, column 4:
PL/SQL: ORA-00907: missing right parenthesis
Warning ORA-06550: line 221, column 3:
PL/SQL: SQL Statement ignored
Warning ORA-06550: line 3112, column 132:
PLS-00103: Encountered the symbol "DD" when expecting one of the following:
. ( ) , * @ % & | = - + < / > at in is mod remainder not
range rem => .. <an exponent (**)> <> or != or ~= >= <= <>
and or like LIKE2_ LIKE4_ LIKEC_ between || multiset member
SUBMULTISET_
The symbol "." was substituted for "DD" to continue.
When I look at the generated code, there are lines like this one:
not (wb_to_date("table"."column", Month dd, RRRR, Mon dd, RRRR, MM-DD-RRRR, MM/DD/RRRR, YYYY-MM-DD, YYYY/MM/DD) is not null
Why is OWB not putting single quotes around the data formats from the built-in data rule? Is there something fundamental I'm missing in my warehouse model?Hi
This is bug 5195315, which looks to be fixed in a 10.2 patch. If you can pick up the latest 10.2 patch there is like 3 years of fixes worth picking up.
Cheers
David
Maybe you are looking for
-
I'm new to ipod touch, 4g. My questions is how can I download a contact list other than through facebook or yahoo or gmail?
-
Upgrade R12.0.6 to R12.1.3 results in disabled currency
Hello, I was wondering if anyone has seen this when upgrading Oracle Financials R12.0.6 to R12.1.3: The foreign currency (in our case CAD) was disabled after the upgrade process. I had to manually go in and enable this currency. Thanks, Manish
-
I have two applications that run under X11: Xephem and Open Office. About the time I upgraded to OS 10.5.4 I noticed that they wouldn't start. Today I looked at the discussion groups here and upgraded to X11 2.3.1. They still won't launch. Before the
-
Taking print out allignment problem(urgent)
Dear all, I am faching an allignment problem while taking printout,i didnt face this problem before , i didnt able to find solution for this problem so anybody help me to solve this problem . and also give me the solution why this problem arise. than
-
Essbase server cube deployment error
Hi All , I have installed essbase 11.1.2 in windows machine with oracle DB. i have tried both the options . cube deployment wizard-> data source setting - 1) ODBC (Essbase dynamic create option) 2) ODBC(DSN name) while deploying a cube in server 11.1